[英]I want to create a curve bottom appbar in flutter?
return Scaffold(backgroundColor: Colors.white, bottomNavigationBar: BottomAppBar(child: Container(height: 155, child: Center(child: Text('Powered By')), color: Colors.green, )));
您可以使用以下代碼創建一個彎曲的底部應用欄。
return Scaffold(
backgroundColor: Colors.white,
bottomNavigationBar: BottomAppBar(
child: Container(
height: 155,
child: Center(
child: Container(
margin: const EdgeInsets.only(top: 50),
height: 100,
width: 150,
decoration: const BoxDecoration(
borderRadius: BorderRadius.only(topLeft: Radius.circular(75), topRight: Radius.circular(75)),
color: Colors.grey,
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
Text("Powered By"),
Text("Logo Here"),
],
),
),
),
color: Colors.green,
),
),
);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.