DraftModeUIButton constructor
const
DraftModeUIButton({
- Key? key,
- required Widget child,
- 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,
Implementation
const DraftModeUIButton({
super.key,
required this.child,
this.pendingChild,
this.isPending = false,
this.onPressed,
this.size = DraftModeUIButtonSize.large,
this.variant = DraftModeUIButtonVariant.primary,
this.backgroundColor,
this.textColor,
this.stretched = true,
this.padding,
this.autoPending = false,
});