LoadingButton constructor
const
LoadingButton({
- Key? key,
- required double height,
- required double width,
- double minWidth = 0,
- Widget? loader,
- Duration animationDuration = const Duration(milliseconds: 450),
- Curve curve = Curves.easeInOutCirc,
- Curve reverseCurve = Curves.easeInOutCirc,
- required Widget child,
- dynamic onTap(
- Function startLoading,
- Function stopLoading,
- ButtonState btnState
- Color? color,
- double? elevation,
- EdgeInsetsGeometry padding = const EdgeInsets.all(0),
- double borderRadius = 0.0,
- Clip clipBehavior = Clip.none,
- FocusNode? focusNode,
- MaterialTapTargetSize? materialTapTargetSize,
- bool roundLoadingShape = true,
- BorderSide borderSide = const BorderSide(color: Colors.transparent, width: 0),
- double? disabledElevation,
- Color? disabledColor,
- Color? disabledTextColor,
- bool animate = false,
Implementation
const LoadingButton({
super.key,
required this.height,
required this.width,
this.minWidth = 0,
this.loader,
this.animationDuration = const Duration(milliseconds: 450),
this.curve = Curves.easeInOutCirc,
this.reverseCurve = Curves.easeInOutCirc,
required this.child,
this.onTap,
this.color,
this.elevation,
this.padding = const EdgeInsets.all(0),
this.borderRadius = 0.0,
this.clipBehavior = Clip.none,
this.focusNode,
this.materialTapTargetSize,
this.roundLoadingShape = true,
this.borderSide = const BorderSide(color: Colors.transparent, width: 0),
this.disabledElevation,
this.disabledColor,
this.disabledTextColor,
this.animate = false,
});