NavPages constructor

const NavPages({
  1. Key? key,
  2. List<Widget> children = const [],
  3. NavPagesDirection direction = NavPagesDirection.vertical,
  4. NavPagesRailPosition navrailPosition = NavPagesRailPosition.left,
  5. List<NrButtonWidget> buttons = const [],
  6. List<NrButtonWidget> actions = const [],
  7. bool expandable = false,
  8. bool expanded = true,
  9. double expandableButtonHeight = 40,
  10. double navrailMinWidth = 0,
  11. double navrailMaxWidth = 0,
  12. double navrailMinHeight = 0,
  13. double navrailMaxHeight = 0,
  14. bool navrailVerticleScrolling = false,
  15. Widget? navrailLeading,
  16. Widget? navrailSmallLeading,
  17. Widget? header,
  18. bool useFullHeader = false,
  19. Widget? footer,
  20. bool useFullFooter = false,
  21. bool navrailLeadingOnTop = false,
  22. bool fullscreen = false,
  23. bool showActionSelectedIndex = true,
  24. bool showSecondaryActionSelectedIndex = true,
})

Creates a NavPages widget.

The children parameter is required and should contain the pages to be displayed. The buttons parameter should contain navigation buttons corresponding to each page.

Implementation

const NavPages({
  super.key,
  this.children = const [],
  this.direction = NavPagesDirection.vertical,
  this.navrailPosition = NavPagesRailPosition.left,
  this.buttons = const [],
  this.actions = const [],
  this.expandable = false,
  this.expanded = true,
  this.expandableButtonHeight = 40,
  this.navrailMinWidth = 0,
  this.navrailMaxWidth = 0,
  this.navrailMinHeight = 0,
  this.navrailMaxHeight = 0,
  this.navrailVerticleScrolling = false,
  this.navrailLeading,
  this.navrailSmallLeading,
  this.header,
  this.useFullHeader = false,
  this.footer,
  this.useFullFooter = false,
  this.navrailLeadingOnTop = false,
  this.fullscreen = false,
  this.showActionSelectedIndex = true,
  this.showSecondaryActionSelectedIndex = true,
});