iOS风格的底部选项卡。 通常和CupertinoTabScaffold一起使用
CupertinoTabBar({
Key key,
@required this.items,
this.onTap,
this.currentIndex = 0,
this.backgroundColor,
this.activeColor,
this.inactiveColor = _kDefaultTabBarInactiveColor,
this.iconSize = 30.0,
this.border = const Border(
top: BorderSide(
color: _kDefaultTabBarBorderColor,
width: 0.0, // One physical pixel.
style: BorderStyle.solid,
),
),
})
onTap:() {},
currentIndex: 0,
backgroundColor: Color(0xFFfafcff),
activeColor:Colors.blue,
inactiveColor:Colors.black12,
iconSize:30.0,
border:const Border(),