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