[英]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.