簡體   English   中英

我想在 flutter 中創建一個曲線底部應用欄?

[英]I want to create a curve bottom appbar in flutter?

enter image description here

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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM