ActionButton constructor
const
ActionButton({
- EdgeInsetsGeometry padding = const EdgeInsets.all(12.0),
- ShapeBorder buttonShape = const CircleBorder(),
- Clip clipBehavior = Clip.antiAlias,
- bool closeFabOnTap = true,
- required Widget icon,
- double elevation = 4.0,
- Color? shadowColor,
- Color? textColor,
- VoidCallback? onPressed,
- Color? color,
- Widget? text,
- Key? key,
Creates a material design action button with an optional text label.
The button can display an icon or other widget, specified by icon
,
and an optional text label. The appearance of the button can be customized
with various styling parameters.
Implementation
const ActionButton({
this.padding = const EdgeInsets.all(12.0),
this.buttonShape = const CircleBorder(),
this.clipBehavior = Clip.antiAlias,
this.closeFabOnTap = true,
required this.icon,
this.elevation = 4.0,
this.shadowColor,
this.textColor,
this.onPressed,
this.color,
this.text,
super.key,
});