MUIGradientButton constructor

const MUIGradientButton({
  1. Key? key,
  2. required String text,
  3. required VoidCallback onPressed,
  4. Gradient bgGradient = const LinearGradient(colors: [Colors.black, Color.fromARGB(255, 61, 61, 61)]),
  5. Color textColor = Colors.white,
  6. double borderRadius = 10,
  7. bool hapticsEnabled = false,
  8. int animationDuration = 250,
  9. double widthFactorUnpressed = 0.04,
  10. double widthFactorPressed = 0.035,
  11. double heightFactorUnPressed = 0.03,
  12. double heightFactorPressed = 0.03,
  13. double maxHorizontalPadding = 70,
  14. IconData? leadingIcon,
  15. IconData? actionIcon,
  16. Color iconColor = Colors.white,
  17. 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,
});