OutlinedButton.icon constructor

OutlinedButton.icon(
  1. {Key? key,
  2. required VoidCallback? onPressed,
  3. VoidCallback? onLongPress,
  4. ButtonStyle? style,
  5. FocusNode? focusNode,
  6. bool? autofocus,
  7. Clip? clipBehavior,
  8. MaterialStatesController? statesController,
  9. required Widget icon,
  10. required Widget label}
)

Create a text 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.

Implementation

factory OutlinedButton.icon({
  Key? key,
  required VoidCallback? onPressed,
  VoidCallback? onLongPress,
  ButtonStyle? style,
  FocusNode? focusNode,
  bool? autofocus,
  Clip? clipBehavior,
  MaterialStatesController? statesController,
  required Widget icon,
  required Widget label,
}) = _OutlinedButtonWithIcon;