MUILoadingBlockButton constructor

const MUILoadingBlockButton({
  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 widthFactorPressed = 0.95,
  13. double heightFactor = 0.05,
  14. IconData? leadingIcon,
  15. IconData? actionIcon,
  16. Color iconColor = Colors.white,
  17. double widthFactor = 0.98,
  18. List<BoxShadow>? boxShadows,
})

Implementation

const MUILoadingBlockButton({
  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.widthFactorPressed = 0.95,
  this.heightFactor = 0.05,
  this.leadingIcon,
  this.actionIcon,
  this.iconColor = Colors.white,
  this.widthFactor = 0.98,
  this.boxShadows,
});