GradientElevatedButton.icon constructor
GradientElevatedButton.icon({
- Key? key,
- required VoidCallback? onPressed,
- VoidCallback? onLongPress,
- ButtonStyle? style,
- FocusNode? focusNode,
- bool? autofocus,
- Clip? clipBehavior,
- required Gradient gradient,
- required Widget icon,
- required Widget label,
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 GradientElevatedButton.icon({
Key? key,
required VoidCallback? onPressed,
VoidCallback? onLongPress,
ButtonStyle? style,
FocusNode? focusNode,
bool? autofocus,
Clip? clipBehavior,
required Gradient gradient,
required Widget icon,
required Widget label,
}) = _ElevatedButtonWithIcon;