flutter_simple_tabbar 0.0.2

Flutter Android iOS web

simple tabbar without TabController, just one widget

flutter_simple_tabbar #

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

    ValueNotifier changeIndex = new ValueNotifier(2);
    this.changeIndex.value = 0; //切换tab,直接设置ValueNotifier的值
    
    SimpleTabBar(
     tabs: tabs,
     changeIndex:changeIndex, //如果需要代码切换tab,可以使用这个属性
     onTabChange:(index) {
       print('onTabChange');
       print(index);
     },
     tabContents: tabs
          .map((Tab tab) =>
          Container(child: Center(child: Text(tab.text),),))
          .toList(),
    ),
  );
    

效果图如下:<br/> image image

Getting Started #

2
likes
80
pub points
23%
popularity

simple tabbar without TabController, just one widget

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

g18559863603@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

cupertino_icons, flutter

More

Packages that depend on flutter_simple_tabbar