MUIGradientButton constructor
const
MUIGradientButton({
- Key? key,
- required String text,
- required VoidCallback onPressed,
- Gradient bgGradient = const LinearGradient(colors: [Colors.black, Color.fromARGB(255, 61, 61, 61)]),
- Color textColor = Colors.white,
- double borderRadius = 10,
- bool hapticsEnabled = false,
- int animationDuration = 250,
- double widthFactorUnpressed = 0.04,
- double widthFactorPressed = 0.035,
- double heightFactorUnPressed = 0.03,
- double heightFactorPressed = 0.03,
- double maxHorizontalPadding = 70,
- IconData? leadingIcon,
- IconData? actionIcon,
- Color iconColor = Colors.white,
- List<
BoxShadow> ? boxShadows,
Implementation
const MUIGradientButton({
super.key,
required this.text,
required this.onPressed,
this.bgGradient = const LinearGradient(
colors: [Colors.black, Color.fromARGB(255, 61, 61, 61)]),
this.textColor = Colors.white,
this.borderRadius = 10,
this.hapticsEnabled = false,
this.animationDuration = 250,
this.widthFactorUnpressed = 0.04,
this.widthFactorPressed = 0.035,
this.heightFactorUnPressed = 0.03,
this.heightFactorPressed = 0.03,
this.maxHorizontalPadding = 70,
this.leadingIcon,
this.actionIcon,
this.iconColor = Colors.white,
this.boxShadows,
});