LoadingButton constructor
const
LoadingButton({
- Key? key,
- required Widget idleStateWidget,
- LoadingButtonType type = LoadingButtonType.color,
- LoadingType loadingType = LoadingType.cupertinoActivityIndicator,
- bool useAnimation = true,
- bool useEqualLoadingStateWidgetDimension = true,
- double width = double.infinity,
- double height = 40.0,
- double contentGap = 6.0,
- double borderRadius = 4.0,
- double elevation = 2.0,
- Color buttonColor = Colors.blueAccent,
- Color loadingColor = Colors.amber,
- Function? onPressed,
Implementation
const LoadingButton({
Key? key,
required this.idleStateWidget,
this.type = LoadingButtonType.color,
this.loadingType = LoadingType.cupertinoActivityIndicator,
this.useAnimation = true,
this.useEqualLoadingStateWidgetDimension = true,
this.width = double.infinity,
this.height = 40.0,
this.contentGap = 6.0,
this.borderRadius = 4.0,
this.elevation = 2.0,
this.buttonColor = Colors.blueAccent,
this.loadingColor = Colors.amber,
this.onPressed,
}) : super(key: key);