FButton.icon constructor
FButton.icon({
- required VoidCallback? onPress,
- required Widget child,
- FBaseButtonStyle style() = _outline,
- VoidCallback? onLongPress,
- VoidCallback? onSecondaryPress,
- VoidCallback? onSecondaryLongPress,
- bool autofocus = false,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - ValueChanged<
bool> ? onHoverChange, - ValueChanged<
FWidgetStatesDelta> ? onStateChange, - bool selected = false,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - Key? key,
Creates a FButton that contains only an icon.
child
is wrapped in IconThemeData.
Implementation
FButton.icon({
required this.onPress,
required Widget child,
this.style = _outline,
this.onLongPress,
this.onSecondaryPress,
this.onSecondaryLongPress,
this.autofocus = false,
this.focusNode,
this.onFocusChange,
this.onHoverChange,
this.onStateChange,
this.selected = false,
this.shortcuts,
this.actions,
super.key,
}) : child = IconContent(child: child);