NavigationButton constructor

const NavigationButton({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. bool? enableFeedback = true,
  4. Widget? label,
  5. double? spacing,
  6. AbstractButtonStyle? style,
  7. AlignmentGeometry? alignment,
  8. bool? enabled,
  9. NavigationOverflow overflow = NavigationOverflow.marquee,
  10. AlignmentGeometry? marginAlignment,
  11. required Widget child,
})

Creates a navigation button.

Parameters:

  • child (Widget, required): Icon or content widget
  • enableFeedback (bool?) : Whether to enable haptic feedback
  • onPressed (VoidCallback?): Press callback
  • label (Widget?): Optional label text
  • spacing (double?): Space between icon and label
  • style (AbstractButtonStyle?): Button style
  • alignment (AlignmentGeometry?): Content alignment
  • enabled (bool?): Whether enabled for interaction
  • overflow (TextOverflow?): Label overflow behavior
  • marginAlignment (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,
});