EasyButton constructor
const
EasyButton({
- Key? key,
- required Widget idleStateWidget,
- required Widget loadingStateWidget,
- EasyButtonType type = EasyButtonType.elevated,
- bool useWidthAnimation = true,
- bool useEqualLoadingStateWidgetDimension = true,
- double width = double.infinity,
- double height = 40.0,
- double contentGap = 0.0,
- double borderRadius = 0.0,
- double elevation = 0.0,
- Color buttonColor = Colors.blueAccent,
- Function? onPressed,
Implementation
const EasyButton({
Key? key,
required this.idleStateWidget,
required this.loadingStateWidget,
this.type = EasyButtonType.elevated,
this.useWidthAnimation = true,
this.useEqualLoadingStateWidgetDimension = true,
this.width = double.infinity,
this.height = 40.0,
this.contentGap = 0.0,
this.borderRadius = 0.0,
this.elevation = 0.0,
this.buttonColor = Colors.blueAccent,
this.onPressed,
}) : super(key: key);