缺口很重要,這個缺口怎么做。我也已經完成了底部的 Appbar 加上這個 FAB 按鈕,但是 notch 還沒有完成。我怎樣才能做出這種缺口我已經知道缺口的構建。但我需要這種缺口。
uj5u.com熱心網友回復:
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
floatingActionButton: FloatingActionButton(
backgroundColor: Colors.white,
onPressed: () {},
child: Icon(
Icons.add,
color: Colors.black,
),
elevation: 0.0,
),
bottomNavigationBar: BottomAppBar(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 18.0),
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Icon(Icons.home),
Icon(Icons.search),
Padding(
padding: const EdgeInsets.only(top: 28.0),
child: Text('USE CARD'),
),
Icon(Icons.favorite_border),
Icon(Icons.person_outline)
],
),
),
color: Colors.white,
),
uj5u.com熱心網友回復:
使用影片底部導航欄:^0.3.2
這是鏈接 https://pub.dev/packages/animated_bottom_navigation_bar/example
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/405208.html
標籤:
上一篇:獲取長號的某個地方的號碼
