flutter colorful tabbar
a colorful tabbar flutter library with color animating indicator where each tab has a color. (inspired by smartnews app)
getting started
add this to your package’s pubspec.yaml file:
dependencies:
flutter_colorful_tab: "^0.1.0"
import the library in your file:
import 'package:flutter_colorful_tab/flutter_colorful_tab.dart';
use the flutter_colorful_tab like this:
colorfultabbar(
tabs: [
tabitem(color: colors.red, title: text('home')),
tabitem(color: colors.green, title: text('favorite')),
tabitem(color: colors.orange, title: text('search')),
tabitem(color: colors.green, title: text('settings')),
],
controller: _tabcontroller,
)
Comments are closed.