ButtonLoader constructor
const
ButtonLoader({
- IconData? successIcon,
- Color? successIconColor = Colors.green,
- IconData? errorIcon,
- Color? errorIconColor = Colors.red,
- Widget? loader,
- CircularProgressIndicator androidLoader = const CircularProgressIndicator(color: Colors.white),
- CupertinoActivityIndicator iosLoader = const cup.CupertinoActivityIndicator(color: Colors.white),
- ProgressRing fluentUILoader = const fluent.ProgressRing(activeColor: Colors.white),
- Duration animatedDuration = const Duration(milliseconds: 500),
- Color backgroundLoaderColor = const Color.fromRGBO(4, 99, 180, 1),
- double? loaderContainerHeight,
- double? loaderContainerWidth,
- Widget? customWidgetInSuccess,
- 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,
});