UIProLoadingButton.text constructor

const UIProLoadingButton.text({
  1. Key? key,
  2. required String text,
  3. bool isLoading = false,
  4. VoidCallback? onPressed,
  5. Color? textColor,
  6. Color? disabledTextColor,
  7. double? borderRadius,
  8. double? height,
  9. double? width,
  10. bool fullWidth = false,
  11. EdgeInsets? padding,
  12. TextStyle? textStyle,
  13. Widget? leading,
  14. Widget? trailing,
  15. double loadingIndicatorSize = 20,
  16. Color? loadingIndicatorColor,
  17. double loadingIndicatorStrokeWidth = 2.5,
  18. Widget? loadingWidget,
  19. bool animateStateChanges = true,
  20. 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;