MUIGradientBlockButton constructor
const
MUIGradientBlockButton({
- Key? key,
- required String text,
- required VoidCallback onPressed,
- Gradient bgGradient = const LinearGradient(colors: [Colors.black, Colors.grey]),
- 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 MUIGradientBlockButton({
super.key,
required this.text,
required this.onPressed,
this.bgGradient = const LinearGradient(colors: [Colors.black, Colors.grey]),
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,
});