ElevatedButtonModifier.icon constructor

ElevatedButtonModifier.icon({
  1. Key? key,
  2. Key? modifierKey,
  3. required VoidCallback? onPressed,
  4. VoidCallback? onLongPress,
  5. ValueChanged<bool>? onHover,
  6. ValueChanged<bool>? onFocusChange,
  7. ButtonStyle? style,
  8. FocusNode? focusNode,
  9. bool? autofocus,
  10. Clip? clipBehavior,
  11. required Widget icon,
  12. required Widget label,
  13. MaterialStatesController? statesController,
})

Create an elevated button from a pair of widgets that serve as the button's icon and label.

The icon and label are arranged in a row and padded by 12 logical pixels at the start, and 16 at the end, with an 8 pixel gap in between.

The icon and label arguments must not be null.

Implementation

factory ElevatedButtonModifier.icon({
  Key? key,
  Key? modifierKey,
  required VoidCallback? onPressed,
  VoidCallback? onLongPress,
  ValueChanged<bool>? onHover,
  ValueChanged<bool>? onFocusChange,
  ButtonStyle? style,
  FocusNode? focusNode,
  bool? autofocus,
  Clip? clipBehavior,
  required Widget icon,
  required Widget label,
  MaterialStatesController? statesController,
}) = _ElevatedButtonModifierWithIcon;