LoadingButton constructor
const
LoadingButton({
- Key? key,
- required Widget defaultWidget,
- Widget? loadingWidget,
- required Future onPressed()?,
- LoadingButtonType? type = LoadingButtonType.Elevated,
- Color? color,
- Color? textcolor,
- double? width,
- double? height = kMinInteractiveDimension,
- double? borderRadius = 5.0,
- BorderSide? borderSide = BorderSide.none,
- bool animate = true,
- EdgeInsetsGeometry? padding,
Implementation
const LoadingButton({
Key? key,
required this.defaultWidget,
this.loadingWidget,
required this.onPressed,
this.type = LoadingButtonType.Elevated,
this.color,
this.textcolor,
this.width,
this.height = kMinInteractiveDimension,
this.borderRadius = 5.0,
this.borderSide = BorderSide.none,
this.animate = true,
this.padding,
}) : super(key: key);