a custom tabbar gradient indicator for flutter, and it support ios and android
-
Depend on it by adding this to your pubspec.yaml file:
tabbar_gradient_indicator: ^1.0.1
-
Import it:
import 'package:tabbar_gradient_indicator/tabbar_gradient_indicator.dart'
-
set the indicator property of Tabbar like this:
TabBar(indicator: TabBarGradientIndicator(
gradientColor: [Color(0xff579CFA) , Color(0xff2FDEE7)],
indicatorWidth: 2)
)