FluentButton constructor
const
FluentButton({
- Key? key,
- required Widget? child,
- VoidCallback? onPressed,
- FluentButtonAppearance appearance = FluentButtonAppearance.secondary,
- FluentButtonSize size = FluentButtonSize.medium,
- FluentButtonShape shape = FluentButtonShape.rounded,
- FluentButtonIconPosition iconPosition = FluentButtonIconPosition.before,
- Widget? icon,
- FluentButtonStyle? style,
- FocusNode? focusNode,
- bool autofocus = false,
- String? semanticLabel,
Creates a button with an optional icon and a child label.
Implementation
const FluentButton({
super.key,
required this.child,
this.onPressed,
this.appearance = FluentButtonAppearance.secondary,
this.size = FluentButtonSize.medium,
this.shape = FluentButtonShape.rounded,
this.iconPosition = FluentButtonIconPosition.before,
this.icon,
this.style,
this.focusNode,
this.autofocus = false,
this.semanticLabel,
});