RoundedLoadingButton constructor
const
RoundedLoadingButton({
- Key? key,
- required RoundedLoadingButtonController controller,
- required VoidCallback? onPressed,
- required Widget child,
- Color? color = Colors.lightBlue,
- double height = 50,
- double width = 300,
- double loaderSize = 24.0,
- double loaderStrokeWidth = 2.0,
- bool animateOnTap = true,
- Color valueColor = Colors.white,
- double borderRadius = 35,
- double elevation = 2,
- Duration duration = const Duration(milliseconds: 500),
- Curve curve = Curves.easeInOutCirc,
- Color? errorColor = Colors.red,
- Color? successColor,
- 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,
initalize constructor
Implementation
const RoundedLoadingButton({
Key? key,
required this.controller,
required this.onPressed,
required this.child,
this.color = Colors.lightBlue,
this.height = 50,
this.width = 300,
this.loaderSize = 24.0,
this.loaderStrokeWidth = 2.0,
this.animateOnTap = true,
this.valueColor = Colors.white,
this.borderRadius = 35,
this.elevation = 2,
this.duration = const Duration(milliseconds: 500),
this.curve = Curves.easeInOutCirc,
this.errorColor = Colors.red,
this.successColor,
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,
}) : super(key: key);