DraftModeUIButton.label constructor
DraftModeUIButton.label(
- String text, {
- required IconData icon,
- Key? key,
- Widget? pendingChild,
- bool isPending = false,
- VoidCallback? onPressed,
- DraftModeUIButtonSize size = DraftModeUIButtonSize.large,
- DraftModeUIButtonVariant variant = DraftModeUIButtonVariant.primary,
- Color? backgroundColor,
- Color? textColor,
- bool stretched = true,
- EdgeInsetsGeometry? padding,
- bool autoPending = false,
- TextStyle? textStyle,
- double? gap,
Creates a button with an icon and text label arranged in a Row.
Implementation
factory DraftModeUIButton.label(
String text, {
required IconData icon,
Key? key,
Widget? pendingChild,
bool isPending = false,
VoidCallback? onPressed,
DraftModeUIButtonSize size = DraftModeUIButtonSize.large,
DraftModeUIButtonVariant variant = DraftModeUIButtonVariant.primary,
Color? backgroundColor,
Color? textColor,
bool stretched = true,
EdgeInsetsGeometry? padding,
bool autoPending = false,
TextStyle? textStyle,
double? gap,
}) {
return _DraftModeUIButtonLabel(
key: key,
label: text,
icon: icon,
gap: gap,
pendingChild: pendingChild,
isPending: isPending,
onPressed: onPressed,
size: size,
variant: variant,
backgroundColor: backgroundColor,
textColor: textColor,
stretched: stretched,
padding: padding,
autoPending: autoPending,
textStyle: textStyle,
);
}