簡體   English   中英

如何在 flutter 中制作這樣的按鈕

[英]How do I made a button like this in flutter

我想制作一個像這張圖片一樣的登錄按鈕按鈕。但我不知道該怎么做。 任何人請幫幫我。

圖片

ElevatedButton(
  onPressed: (){},
  child: const Text('Login'),
  style: ButtonStyle(
    backgroundColor: MaterialStateProperty.all(Colors.blue),
    padding: MaterialStateProperty.all(EdgeInsets.symmetric(horizontal: 80, vertical: 25)),
    shape: MaterialStateProperty.all(
      RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(35.0),
      ),
    ),
  ),
);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

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