NavigationButton constructor
const
NavigationButton({
- Key? key,
- VoidCallback? onPressed,
- bool? enableFeedback = true,
- Widget? label,
- double? spacing,
- AbstractButtonStyle? style,
- AlignmentGeometry? alignment,
- bool? enabled,
- NavigationOverflow overflow = NavigationOverflow.marquee,
- AlignmentGeometry? marginAlignment,
- required Widget child,
Creates a navigation button.
Parameters:
child(Widget, required): Icon or content widgetenableFeedback(bool?) : Whether to enable haptic feedbackonPressed(VoidCallback?): Press callbacklabel(Widget?): Optional label textspacing(double?): Space between icon and labelstyle(AbstractButtonStyle?): Button stylealignment(AlignmentGeometry?): Content alignmentenabled(bool?): Whether enabled for interactionoverflow(TextOverflow?): Label overflow behaviormarginAlignment(AlignmentGeometry?): Margin alignment
Implementation
const NavigationButton({
super.key,
this.onPressed,
this.enableFeedback = true,
super.label,
super.spacing,
super.style,
super.alignment,
super.enabled,
super.overflow,
super.marginAlignment,
required super.child,
});