MUILoadingButton constructor
const
MUILoadingButton({
- Key? key,
- required String text,
- required Future onPressed(),
- String loadingStateText = '',
- Color bgColor = Colors.black,
- Color textColor = Colors.white,
- Color loadingStateBackgroundColor = Colors.grey,
- Color loadingStateTextColor = Colors.white,
- double borderRadius = 10,
- int animationDuration = 250,
- bool hapticsEnabled = false,
- double widthFactorUnpressed = 0.04,
- double widthFactorPressed = 0.035,
- double heightFactorUnPressed = 0.03,
- double heightFactorPressed = 0.025,
- double maxHorizontalPadding = 50,
- IconData? leadingIcon,
- IconData? actionIcon,
- Color iconColor = Colors.white,
- 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,
});