ActionButton constructor

const ActionButton({
  1. EdgeInsetsGeometry padding = const EdgeInsets.all(12.0),
  2. ShapeBorder buttonShape = const CircleBorder(),
  3. Clip clipBehavior = Clip.antiAlias,
  4. bool closeFabOnTap = true,
  5. required Widget icon,
  6. double elevation = 4.0,
  7. Color? shadowColor,
  8. Color? textColor,
  9. VoidCallback? onPressed,
  10. Color? color,
  11. Widget? text,
  12. 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,
});