我做了一个 TabBar 但它增加了 3.8 像素,如果我切换高度就不一样了。我也删除了填充 那个高度是多少,我怎么知道它的大小
TabBar(
controller: taby,
unselectedLabelColor:Colors.purple,
unselectedLabelStyle: TextStyle(color: Colors.red),
labelColor: Colors.white,
indicatorColor: Colors.white,
labelPadding: EdgeInsets.all(0),
isScrollable: true,
tabs: [
...teamy.map((item) {
return InkWell(
onTap: () {
taby.index=teamy.indexOf(item);
print(taby.index);
},
child: Container(
width: s.width/6,
height: s.teamListHeight,//(height/12)
child: DecoratedBox(
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.green,
image: DecorationImage(
image: NetworkImage(item.image),
),
),
),
),
);
}),
Container(width: s.width/6,color: Colors.white,child: Icon(Icons.add_circle_outline,size:s.width/7,),),
]
),