LoadingButton constructor

const LoadingButton({
  1. Key? key,
  2. required Widget defaultWidget,
  3. Widget? loadingWidget,
  4. required Future onPressed()?,
  5. LoadingButtonType? type = LoadingButtonType.Elevated,
  6. Color? color,
  7. Color? textcolor,
  8. double? width,
  9. double? height = kMinInteractiveDimension,
  10. double? borderRadius = 5.0,
  11. BorderSide? borderSide = BorderSide.none,
  12. bool animate = true,
  13. EdgeInsetsGeometry? padding,
})

Implementation

const LoadingButton({
  Key? key,
  required this.defaultWidget,
  this.loadingWidget,
  required this.onPressed,
  this.type = LoadingButtonType.Elevated,
  this.color,
  this.textcolor,
  this.width,
  this.height = kMinInteractiveDimension,
  this.borderRadius = 5.0,
  this.borderSide = BorderSide.none,
  this.animate = true,
  this.padding,
}) : super(key: key);