AbstractNavigationButton constructor

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

Creates an abstract navigation button.

Parameters:

  • child (Widget, required): Main content (icon)
  • spacing (double?): Icon-label spacing
  • label (Widget?): Label widget
  • style (AbstractButtonStyle?): Button style
  • alignment (AlignmentGeometry?): Content alignment
  • enabled (bool?): Enabled state
  • overflow (NavigationOverflow): Overflow behavior, defaults to marquee
  • marginAlignment (AlignmentGeometry?): Margin alignment

Implementation

const AbstractNavigationButton({
  super.key,
  this.spacing,
  this.label,
  this.style,
  this.alignment,
  this.enabled,
  this.overflow = NavigationOverflow.marquee,
  this.marginAlignment,
  required this.child,
});