flutter插件bubble_tab_indicator


一个Flutter库,用于向TabBar添加气泡选项卡指示器。

添加依赖

dependencies:
    bubble_tab_indicator: "^0.1.4"

实例

import 'package:bubble_tab_indicator/bubble_tab_indicator.dart';
new TabBar(
  indicatorSize: TabBarIndicatorSize.tab,
  indicator: new BubbleTabIndicator(
    indicatorHeight: 25.0,
    indicatorColor: Colors.blueAccent,
    tabBarIndicatorSize: TabBarIndicatorSize.tab,
  ),
)