UnifiedButton constructor
const
UnifiedButton({
- Key? key,
- UnifiedButtonCategory category = UnifiedButtonCategory.none,
- Widget? icon,
- required VoidCallback? onPressed,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - ButtonStyle? style,
- Clip clipBehavior = Clip.none,
- FocusNode? focusNode,
- bool autofocus = false,
- WidgetStatesController? statesController,
- required Widget child,
- EdgeInsetsGeometry? padding,
Implementation
const UnifiedButton({
super.key,
this.category = UnifiedButtonCategory.none,
this.icon,
required this.onPressed,
this.onLongPress,
this.onHover,
this.onFocusChange,
this.style,
this.clipBehavior = Clip.none,
this.focusNode,
this.autofocus = false,
this.statesController,
required this.child,
this.padding,
}) : direction = Axis.horizontal,
mainAxisAlignment = MainAxisAlignment.center,
mainAxisSize = MainAxisSize.min,
crossAxisAlignment = CrossAxisAlignment.center,
textDirection = null,
verticalDirection = VerticalDirection.down,
textBaseline = null;