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.
- Foreign Function Interface for interoperability with the C programming language. [...]
- HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
- Utility methods to efficiently manipulate typed JSInterop objects in cases where the name to call is not known at runtime. You should only use these methods when the same effect cannot be achieved with @JS annotations. These methods would be extension methods on JSObject if Dart supported extension methods.