ZdsFloatingActionButton.extended constructor

const ZdsFloatingActionButton.extended(
  1. {required Widget label,
  2. Key? key,
  3. Widget? icon,
  4. String? tooltip,
  5. double? extendedIconLabelSpacing,
  6. EdgeInsetsGeometry? extendedPadding,
  7. VoidCallback? onPressed}
)

Creates a wider StadiumBorder-shaped floating action button with a label and an optional icon.

The label argument, usually a Text, must not be null.

Implementation

const ZdsFloatingActionButton.extended({
  required Widget label,
  super.key,
  this.icon,
  this.tooltip,
  double? extendedIconLabelSpacing,
  EdgeInsetsGeometry? extendedPadding,
  this.onPressed,
})  : _floatingActionButtonType = _FloatingActionButtonType.extended,
      _extendedLabel = label,
      _extendedIconLabelSpacing = extendedIconLabelSpacing,
      _extendedPadding = extendedPadding;