OutlineButton.icon constructor

OutlineButton.icon({Key key, @required VoidCallback onPressed, ButtonTextTheme textTheme, Color textColor, Color disabledTextColor, Color color, Color highlightColor, Color splashColor, double highlightElevation, Color highlightedBorderColor, Color disabledBorderColor, BorderSide borderSide, EdgeInsetsGeometry padding, ShapeBorder shape, Clip clipBehavior, @required Widget icon, @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, icon, label, and clipBehavior must not be null.

Implementation

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