ExButtonLoading constructor
const
ExButtonLoading({
- required double height,
- required double width,
- required Widget child,
- Key? key,
- double minWidth = 0,
- Widget? loader,
- Duration animationDuration = const Duration(milliseconds: 450),
- Curve curve = Curves.easeInOutCirc,
- Curve reverseCurve = Curves.easeInOutCirc,
- dynamic onTap(
- Function startLoading,
- Function stopLoading,
- ExButtonState btnState
- Color? color,
- Color? borderColor,
- double? elevation,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- double borderRadius = 90,
- 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,
- ExButtonType type = ExButtonType.elevated,
Implementation
const ExButtonLoading({
required this.height,
required this.width,
required this.child,
super.key,
this.minWidth = 0,
this.loader,
this.animationDuration = const Duration(milliseconds: 450),
this.curve = Curves.easeInOutCirc,
this.reverseCurve = Curves.easeInOutCirc,
this.onTap,
this.color,
this.borderColor,
this.elevation,
this.padding = EdgeInsets.zero,
this.borderRadius = 90,
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,
this.type = ExButtonType.elevated,
});