OutlineButton.icon constructor

  1. {Key key,
  2. @required VoidCallback onPressed,
  3. VoidCallback onLongPress,
  4. ButtonTextTheme textTheme,
  5. Color textColor,
  6. Color disabledTextColor,
  7. Color color,
  8. Color focusColor,
  9. Color hoverColor,
  10. Color highlightColor,
  11. Color splashColor,
  12. double highlightElevation,
  13. Color highlightedBorderColor,
  14. Color disabledBorderColor,
  15. BorderSide borderSide,
  16. EdgeInsetsGeometry padding,
  17. ShapeBorder shape,
  18. Clip clipBehavior,
  19. FocusNode focusNode,
  20. bool autofocus,
  21. @required Widget icon,
  22. @required Widget label}

Create an outline 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 highlightElevation argument must be null or a positive value. The icon, label, autofocus, and clipBehavior arguments must not be null.


factory OutlineButton.icon({
  Key key,
  @required VoidCallback onPressed,
  VoidCallback onLongPress,
  ButtonTextTheme textTheme,
  Color textColor,
  Color disabledTextColor,
  Color color,
  Color focusColor,
  Color hoverColor,
  Color highlightColor,
  Color splashColor,
  double highlightElevation,
  Color highlightedBorderColor,
  Color disabledBorderColor,
  BorderSide borderSide,
  EdgeInsetsGeometry padding,
  ShapeBorder shape,
  Clip clipBehavior,
  FocusNode focusNode,
  bool autofocus,
  @required Widget icon,
  @required Widget label,
}) = _OutlineButtonWithIcon;