SimpleButton constructor
const
SimpleButton({
- Key? key,
- String? text,
- IconData? icon,
- Widget? leadingWidget,
- Widget? trailingWidget,
- bool isOutlined = false,
- double borderRadius = 16,
- Color? borderColor,
- Color? buttonColor,
- Color? backgroundColor,
- Gradient? gradient,
- Color? disabledBackgroundColor,
- bool showLoading = false,
- double? width = double.infinity,
- Color? textColor,
- void onPressed()?,
- double height = 54,
- Color? loadingColor,
- bool isEnabled = true,
- double iconSize = 24,
Implementation
const SimpleButton({
super.key,
this.text,
this.icon,
this.leadingWidget,
this.trailingWidget,
this.isOutlined = false,
this.borderRadius = 16,
this.borderColor,
this.buttonColor,
this.backgroundColor,
this.gradient,
this.disabledBackgroundColor,
this.showLoading = false,
this.width = double.infinity,
this.textColor,
this.onPressed,
this.height = 54,
this.loadingColor,
this.isEnabled = true,
this.iconSize = 24,
});