How to change background color and elevation of Alertdialog
发布时间:2022-07-20浏览次数:0
支持注册ChatGPT Plus的OneKey虚拟卡
绑定Apple Pay、Google Pay、支付宝和微信支付进行日常消费
注册和了解更多 ->
silver
AlertDialog( title: Text('Welcome'), content: Text('Do you wanna learn flutter?'), actions: [ TextButton( onPressed: () { Navigator.of(context).pop(); }, child: Text('YES', style: TextStyle(color: Colors.black),), ), TextButton( onPressed: () { Navigator.of(context).pop(); }, child: Text('NO', style: TextStyle(color: Colors.black),), ), ], elevation: 10, backgroundColor: Colors.green, ),
扫描二维码查看更多内容