LoadingButton constructor

const LoadingButton({
  1. Key? key,
  2. required Widget idleStateWidget,
  3. LoadingButtonType type = LoadingButtonType.color,
  4. LoadingType loadingType = LoadingType.cupertinoActivityIndicator,
  5. bool useAnimation = true,
  6. bool useEqualLoadingStateWidgetDimension = true,
  7. double width = double.infinity,
  8. double height = 40.0,
  9. double contentGap = 6.0,
  10. double borderRadius = 4.0,
  11. double elevation = 2.0,
  12. Color buttonColor = Colors.blueAccent,
  13. Color loadingColor = Colors.amber,
  14. Function? onPressed,
})

Implementation

const LoadingButton({
  Key? key,
  required this.idleStateWidget,
  this.type = LoadingButtonType.color,
  this.loadingType = LoadingType.cupertinoActivityIndicator,
  this.useAnimation = true,
  this.useEqualLoadingStateWidgetDimension = true,
  this.width = double.infinity,
  this.height = 40.0,
  this.contentGap = 6.0,
  this.borderRadius = 4.0,
  this.elevation = 2.0,
  this.buttonColor = Colors.blueAccent,
  this.loadingColor = Colors.amber,
  this.onPressed,
}) : super(key: key);