banai_tabbar 1.0.31 copy "banai_tabbar: ^1.0.31" to clipboard
banai_tabbar: ^1.0.31 copied to clipboard

This plug-in is designed to solve the problem of jitter in enlarging and reducing the tabbar font of flutter.

banai_tabbar #

This plug-in is designed to solve the problem of jitter in enlarging and reducing the tabbar font of flutter.

1、The fontSize property of labelStyle cannot be set
2、The fontSize property of unselectedLabelStyle must be set
3、The fontSize property of unselectedLabelStyle must be greater than 0
4、labelFontSize replaces the fontSize property of labelStyle

Preview #

https://user-images.githubusercontent.com/21274377/128660549-64f90736-beb6-4ab4-b45e-fd4245765c79.mp4

Getting Started #

Add dependency

dependencies:
  banai_tabbar: ^last version

Super simple to use #

BanaiTabbar(
	controller: _tabConroller,
	isScrollable: true,
	indicator: const BoxDecoration(),
	unselectedLabelColor:Colors.black38,
	labelColor:Colors.pinkAccent,
	unselectedLabelStyle: TextStyle(
		fontSize: 16,
	),
	labelFontSize: 30,
	onChange: (int currentIndex){
		print(currentIndex);
	},
	onAnimatedChange: (double animatedValue,double diff,int currentIndex,int nextInddex){
		print("animateValue:$animateValue  diff:$diff   currentIndex:$currentIndex   nextInddex:$nextInddex");
	},
	tabs: [
		for (var i = 0; i < tablist.length; i++) 
		Text(tablist[i])
	],
),

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

2
likes
130
pub points
33%
popularity

Publisher

verified publisherbanai.com.cn

This plug-in is designed to solve the problem of jitter in enlarging and reducing the tabbar font of flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on banai_tabbar