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