flutter_simple_tabbar 0.0.1 copy "flutter_simple_tabbar: ^0.0.1" to clipboard
flutter_simple_tabbar: ^0.0.1 copied to clipboard

outdated

simple tabbar without TabController, just one widget

flutter_simple_tabbar #

simple tabbar without TabController, just one widget
支持监听页面切换,支持切换tab位置 使用方法:

    ValueNotifier selectIndex = new ValueNotifier(2);
    this.selectIndex.value = 0; //切换tab,直接设置ValueNotifier的值
    
    SimpleTabBar(
     tabs: tabs,
     selectIndex:selectIndex,
     onTabChange:(index) {
       print('onTabChange');
       print(index);
     },
     tabContents: tabs
          .map((Tab tab) =>
          Container(child: Center(child: Text(tab.text),),))
          .toList(),
    ),
  );

效果图如下:
image image

Getting Started #

2
likes
20
pub points
0%
popularity

Publisher

unverified uploader

simple tabbar without TabController, just one widget

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

cupertino_icons, flutter

More

Packages that depend on flutter_simple_tabbar