IconLoadingButton constructor
const
IconLoadingButton({
- Key? key,
- Color? color = Colors.blue,
- double height = 55,
- double width = 225,
- required Widget child,
- required IconData iconData,
- required VoidCallback? onPressed,
- double loaderSize = 50.0,
- double loaderStrokeWidth = 1.5,
- bool animateOnTap = true,
- Color valueColor = Colors.blue,
- double borderRadius = 25,
- double elevation = 5,
- Duration duration = const Duration(milliseconds: 500),
- Curve curve = Curves.easeInOutCirc,
- Color? errorColor = Colors.redAccent,
- Color? successColor = Colors.green,
- Duration resetDuration = const Duration(seconds: 15),
- bool resetAfterDuration = false,
- IconData successIcon = Icons.check,
- IconData failedIcon = Icons.close,
- Curve completionCurve = Curves.elasticOut,
- Duration completionDuration = const Duration(milliseconds: 1000),
- Color? disabledColor,
- required IconButtonController controller,
- double spaceBetween = 10,
- Color iconColor = Colors.white,
Constructor
Implementation
const IconLoadingButton({
Key? key,
this.color = Colors.blue,
this.height = 55,
this.width = 225,
required this.child,
required this.iconData,
required this.onPressed,
this.loaderSize = 50.0,
this.loaderStrokeWidth = 1.5,
this.animateOnTap = true,
this.valueColor = Colors.blue,
this.borderRadius = 25,
this.elevation = 5,
this.duration = const Duration(milliseconds: 500),
this.curve = Curves.easeInOutCirc,
this.errorColor = Colors.redAccent,
this.successColor = Colors.green,
this.resetDuration = const Duration(seconds: 15),
this.resetAfterDuration = false,
this.successIcon = Icons.check,
this.failedIcon = Icons.close,
this.completionCurve = Curves.elasticOut,
this.completionDuration = const Duration(milliseconds: 1000),
this.disabledColor,
required this.controller,
this.spaceBetween = 10,
this.iconColor = Colors.white,
}) : super(key: key);