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