[英]How can I achieve this type of custom Bottom Navigation Bar in Flutter?
你不需要一個包,你可以簡單地使用一個BottomAppBar
作為Scaffold
bottomNavigationBar
,在里面添加一個Row
,並添加這樣的圖標按鈕:
bottomNavigationBar: BottomAppBar(
child: Container(
padding: EdgeInsets.fromLTRB(0, 6, 0, 12),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
// your icon buttons here
],
),
))
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.