|
|
@ -29,6 +29,18 @@ class ASTabBar extends StatefulWidget implements PreferredSizeWidget {
|
|
|
|
: tabItems = null,
|
|
|
|
: tabItems = null,
|
|
|
|
super(key: key);
|
|
|
|
super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// ## TabBar with tag
|
|
|
|
|
|
|
|
///```dart
|
|
|
|
|
|
|
|
/// ASTabBar.tag(
|
|
|
|
|
|
|
|
/// isScrollable: true,
|
|
|
|
|
|
|
|
/// tabItems: [
|
|
|
|
|
|
|
|
/// ASTabBarItem(title:'Tab1',tag:'12'),
|
|
|
|
|
|
|
|
/// ASTabBarItem(title:'Tab2'),
|
|
|
|
|
|
|
|
/// ],
|
|
|
|
|
|
|
|
/// controller: _tabController4,
|
|
|
|
|
|
|
|
/// )
|
|
|
|
|
|
|
|
///```
|
|
|
|
|
|
|
|
///
|
|
|
|
ASTabBar.tag(
|
|
|
|
ASTabBar.tag(
|
|
|
|
{Key key,
|
|
|
|
{Key key,
|
|
|
|
@required this.tabItems,
|
|
|
|
@required this.tabItems,
|
|
|
|