【发布时间】:2019-02-01 08:48:51
【问题描述】:
我使用装饰器为标签栏创建了一个自定义指示器。 我想为标签栏中未选择的标签创建一个未选择的指示器。
我做了一个带有自定义装饰的容器,但当前选定的指示器绘制在容器装饰后面。
new TabBar(
labelColor: Colors.black,
unselectedLabelColor: Colors.grey,
indicator: new CustomTabIndicator(),
tabs: [
new Container(decoration: new CustomTabInactive(),child: Tab(icon: Icon(Icons.person )))])
【问题讨论】:
标签: android tabs flutter tabbar indicator