是的,我的问题是这个。我怎么能这样做?
我做了一个 BottomNavigationBar 但它看起来像这样。
我的代码是这样的:
bottomNavigationBar: BottomNavigationBar(
items: <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: Icon(Icons.home),
title: Text("Home"),
),
BottomNavigationBarItem(
icon: Icon(Icons.markunread),
title: Text("Chat"),
),
BottomNavigationBarItem(
icon: Icon(Icons.location_on),
title: Text("Your Country"),
),
],
fixedColor: Colors.blue,
onTap: clickedBottomBtn,
),
Run Code Online (Sandbox Code Playgroud)
ohh*_*hho 15
设置showSelectedLabels
和showUnselectedLabels
为`false:
bottomNavigationBar: BottomNavigationBar(
currentIndex: 0,
type: BottomNavigationBarType.fixed,
items: // ...
showSelectedLabels: false,
showUnselectedLabels: false,
),
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
4394 次 |
最近记录: |