TitleScrollNavigation constructor

TitleScrollNavigation({
  1. Key? key,
  2. required List<String> titles,
  3. required List<Widget> pages,
  4. int initialPage = 0,
  5. bool showIdentifier = true,
  6. NavigationBodyStyle? bodyStyle,
  7. TitleNavigationBarStyle? barStyle,
  8. NavigationIdentiferStyle? identiferStyle,
})

It is a navigation that will only show texts titles. You can move with gestures or pressing any title.

Also, the identifier will be adjusted to the text width and will have a color interpolation between titles.

Implementation

TitleScrollNavigation({
  Key? key,
  required this.titles,
  required this.pages,
  this.initialPage = 0,
  this.showIdentifier = true,
  NavigationBodyStyle? bodyStyle,
  TitleNavigationBarStyle? barStyle,
  NavigationIdentiferStyle? identiferStyle,
})  : assert(titles.length == pages.length),
      this.barStyle = barStyle ?? TitleNavigationBarStyle(),
      this.bodyStyle = bodyStyle ?? NavigationBodyStyle(),
      this.identiferStyle = identiferStyle ?? NavigationIdentiferStyle(),
      super(key: key);