UnifiedButton.icon constructor

const UnifiedButton.icon({
  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. Axis direction = Axis.horizontal,
  14. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  15. MainAxisSize mainAxisSize = MainAxisSize.min,
  16. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  17. TextDirection? textDirection,
  18. VerticalDirection verticalDirection = VerticalDirection.down,
  19. TextBaseline? textBaseline,
  20. required Widget child,
  21. EdgeInsetsGeometry? padding,
})

Implementation

const UnifiedButton.icon(
    {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,
    this.direction = Axis.horizontal,
    this.mainAxisAlignment = MainAxisAlignment.center,
    this.mainAxisSize = MainAxisSize.min,
    this.crossAxisAlignment = CrossAxisAlignment.center,
    this.textDirection,
    this.verticalDirection = VerticalDirection.down,
    this.textBaseline,
    required this.child,
    this.padding});