fluttercandies / extended_tabs

A powerful official extension library of Tab/TabBar/TabView, which support to scroll ancestor or child Tabs when current is overscroll, and set scroll direction and cache extent.
https://fluttercandies.github.io/extended_tabs/
MIT License
271 stars 49 forks source link

当Tab过多 可以滚动的时候 ,tab与tab 之间没有间距。 #18

Closed desire0420 closed 2 years ago

desire0420 commented 3 years ago

当Tab过多 可以滚动的时候 ,tab与tab 之间没有间距。请问要怎么解决 image

zmtzawqlp commented 2 years ago

ExtendedTabBar( tabs: List.generate( _controller.length, (int index) => Tab( text: 'Tab$index', )).toList(), controller: _controller, labelPadding: EdgeInsets.symmetric(horizontal: 30), labelColor: Colors.blue, isScrollable: _controller.length > 5, indicatorSize: _tabBarIndicatorSize, mainAxisAlignment: _mainAxisAlignment, indicator: const ExtendedUnderlineTabIndicator( //size: 31, insets: EdgeInsets.symmetric(horizontal: 30), borderSide: BorderSide( color: Colors.red, width: 1, )), )