ButtonLoader constructor

const ButtonLoader({
  1. IconData? successIcon,
  2. Color? successIconColor = Colors.green,
  3. IconData? errorIcon,
  4. Color? errorIconColor = Colors.red,
  5. Widget? loader,
  6. CircularProgressIndicator androidLoader = const CircularProgressIndicator(color: Colors.white),
  7. CupertinoActivityIndicator iosLoader = const cup.CupertinoActivityIndicator(color: Colors.white),
  8. ProgressRing fluentUILoader = const fluent.ProgressRing(activeColor: Colors.white),
  9. Duration animatedDuration = const Duration(milliseconds: 500),
  10. Color backgroundLoaderColor = const Color.fromRGBO(4, 99, 180, 1),
  11. double? loaderContainerHeight,
  12. double? loaderContainerWidth,
  13. Widget? customWidgetInSuccess,
  14. Widget? customWidgetInError,
})

Implementation

const ButtonLoader({
  this.successIcon,
  this.successIconColor = Colors.green,
  this.errorIcon,
  this.errorIconColor = Colors.red,
  this.loader,
  this.androidLoader = const CircularProgressIndicator(color: Colors.white),
  this.iosLoader = const cup.CupertinoActivityIndicator(color: Colors.white),
  this.fluentUILoader = const fluent.ProgressRing(activeColor: Colors.white),
  this.animatedDuration = const Duration(milliseconds: 500),
  this.backgroundLoaderColor = const Color.fromRGBO(4, 99, 180, 1),
  this.loaderContainerHeight,
  this.loaderContainerWidth,
  this.customWidgetInSuccess,
  this.customWidgetInError,
});