MUILoadingButton constructor

const MUILoadingButton({
  1. Key? key,
  2. required String text,
  3. required Future onPressed(),
  4. String loadingStateText = '',
  5. Color bgColor = Colors.black,
  6. Color textColor = Colors.white,
  7. Color loadingStateBackgroundColor = Colors.grey,
  8. Color loadingStateTextColor = Colors.white,
  9. double borderRadius = 10,
  10. int animationDuration = 250,
  11. bool hapticsEnabled = false,
  12. double widthFactorUnpressed = 0.04,
  13. double widthFactorPressed = 0.035,
  14. double heightFactorUnPressed = 0.03,
  15. double heightFactorPressed = 0.025,
  16. double maxHorizontalPadding = 50,
  17. IconData? leadingIcon,
  18. IconData? actionIcon,
  19. Color iconColor = Colors.white,
  20. List<BoxShadow>? boxShadows,
})

Implementation

const MUILoadingButton({
  super.key,
  required this.text,
  required this.onPressed,
  this.loadingStateText = '',
  this.bgColor = Colors.black,
  this.textColor = Colors.white,
  this.loadingStateBackgroundColor = Colors.grey,
  this.loadingStateTextColor = Colors.white,
  this.borderRadius = 10,
  this.animationDuration = 250,
  this.hapticsEnabled = false,
  this.widthFactorUnpressed = 0.04,
  this.widthFactorPressed = 0.035,
  this.heightFactorUnPressed = 0.03,
  this.heightFactorPressed = 0.025,
  this.maxHorizontalPadding = 50,
  this.leadingIcon,
  this.actionIcon,
  this.iconColor = Colors.white,
  this.boxShadows,
});