extended tab bar view include color tabIndicator,linkWithAncestor(scroll ancestor tabbarView when current is over scroll),page cache extent
To use this plugin, add
extended_tabs as a dependency in your pubspec.yaml file.
Show tab indicator with color fill
TabBar( indicator: ColorTabIndicator(Colors.blue), labelColor: Colors.black, tabs: [ Tab(text: "Tab0"), Tab(text: "Tab1"), ], controller: tabController, )
///if linkedParentTabBarView is true and current tabbarview over scroll, ///it will check whether ancestor tabbarView can be scroll ///then scroll ancestor tabbarView final bool linkWithAncestor; ExtendedTabBarView( children: <Widget>[ List("Tab000"), List("Tab001"), List("Tab002"), List("Tab003"), ], controller: tabController2, linkWithAncestor: true, )
/// cache page count /// default is 0. /// if cacheExtent is 1, it has two pages in cache /// null is infinity, it will cache all pages final int cacheExtent; ExtendedTabBarView( children: <Widget>[ List("Tab000"), List("Tab001"), List("Tab002"), List("Tab003"), ], controller: tabController2, linkWithAncestor: true, cacheExtent: 1, )
Please see the example app of this plugin for a full example.
A new Flutter application.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Add this to your package's pubspec.yaml file:
dependencies: extended_tabs: ^0.2.1
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Aug 21, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.