UIProButton constructor
const
UIProButton({
- Key? key,
- required String text,
- bool isLoading = false,
- VoidCallback? onPressed,
- Color? backgroundColor,
- Color? textColor,
- Color? disabledBackgroundColor,
- Color? disabledTextColor,
- double? borderRadius,
- double? height,
- double? width,
- bool fullWidth = true,
- EdgeInsets? padding,
- double? elevation,
- TextStyle? textStyle,
- Widget? leading,
- Widget? trailing,
- double loadingIndicatorSize = 20,
- Color? loadingIndicatorColor,
- double loadingIndicatorStrokeWidth = 2.5,
- Widget? loadingWidget,
- BorderSide? borderSide,
- UIProButtonVariant variant = UIProButtonVariant.filled,
- bool animateStateChanges = true,
- Color? splashColor,
Creates a loading-aware button.
Implementation
const UIProButton({
super.key,
required this.text,
this.isLoading = false,
this.onPressed,
this.backgroundColor,
this.textColor,
this.disabledBackgroundColor,
this.disabledTextColor,
this.borderRadius,
this.height,
this.width,
this.fullWidth = true,
this.padding,
this.elevation,
this.textStyle,
this.leading,
this.trailing,
this.loadingIndicatorSize = 20,
this.loadingIndicatorColor,
this.loadingIndicatorStrokeWidth = 2.5,
this.loadingWidget,
this.borderSide,
this.variant = UIProButtonVariant.filled,
this.animateStateChanges = true,
this.splashColor,
});