UnifiedButton constructor

const UnifiedButton({
  1. Key? key,
  2. UnifiedButtonCategory category = UnifiedButtonCategory.none,
  3. Widget? icon,
  4. required VoidCallback? onPressed,
  5. VoidCallback? onLongPress,
  6. ValueChanged<bool>? onHover,
  7. ValueChanged<bool>? onFocusChange,
  8. ButtonStyle? style,
  9. Clip clipBehavior = Clip.none,
  10. FocusNode? focusNode,
  11. bool autofocus = false,
  12. WidgetStatesController? statesController,
  13. required Widget child,
  14. 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;