BaseButton.icon constructor
const
BaseButton.icon({
- Key? key,
- VoidCallback? onPressed,
- VoidCallback? onLongPress,
- ButtonStyle? style,
- FocusNode? focusNode,
- bool autofocus,
- Clip clipBehavior,
- EdgeInsetsGeometry? padding,
- Color? color,
- Color? disabledColor,
- double minSize,
- double? pressedOpacity,
- BorderRadius? borderRadius,
- AlignmentGeometry alignment,
- Widget icon,
- Widget label,
- bool filledButton,
- bool filledTonalButton,
- bool textButton,
- bool outlinedButton,
- bool elevatedButton,
- bool adaptiveHaptics,
- bool useCNButton,
- CNButtonStyle? cnButtonStyle,
- bool shrinkWrap,
- BaseParam? baseParam,
CupertinoButton, child is Row(children:icon, label)
or
MaterialButton, child is Row(children:icon, label)
or
TextButton.icon
or
outlinedButtonButton.icon
or
ElevatedButton.icon
Implementation
const factory BaseButton.icon({
Key? key,
VoidCallback? onPressed,
VoidCallback? onLongPress,
ButtonStyle? style,
FocusNode? focusNode,
bool autofocus,
Clip clipBehavior,
EdgeInsetsGeometry? padding,
Color? color,
Color? disabledColor,
double minSize,
double? pressedOpacity,
BorderRadius? borderRadius,
AlignmentGeometry alignment,
Widget icon,
Widget label,
bool filledButton,
bool filledTonalButton,
bool textButton,
bool outlinedButton,
bool elevatedButton,
bool adaptiveHaptics,
bool useCNButton,
CNButtonStyle? cnButtonStyle,
bool shrinkWrap,
BaseParam? baseParam,
}) = _BaseButtonWithIcon;