MUIPrimaryBlockButton constructor
const
MUIPrimaryBlockButton({
- Key? key,
- required String text,
- required VoidCallback onPressed,
- Color bgColor = Colors.black,
- Color textColor = Colors.white,
- double borderRadius = 10,
- bool hapticsEnabled = false,
- int animationDuration = 250,
- double widthFactorPressed = 0.95,
- double heightFactor = 0.05,
- IconData? leadingIcon,
- IconData? actionIcon,
- Color iconColor = Colors.white,
- double widthFactor = 0.98,
- List<
BoxShadow> ? boxShadows,
Implementation
const MUIPrimaryBlockButton(
{super.key,
required this.text,
required this.onPressed,
this.bgColor = Colors.black,
this.textColor = Colors.white,
this.borderRadius = 10,
this.hapticsEnabled = false,
this.animationDuration = 250,
this.widthFactorPressed = 0.95,
this.heightFactor = 0.05,
this.leadingIcon,
this.actionIcon,
this.iconColor = Colors.white,
this.widthFactor = 0.98,
this.boxShadows});