TitleScrollNavigation constructor
TitleScrollNavigation({
- Key? key,
- required List<
String> titles, - required List<
Widget> pages, - int initialPage = 0,
- bool showIdentifier = true,
- NavigationBodyStyle? bodyStyle,
- TitleNavigationBarStyle? barStyle,
- 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);