[英]How can i add image in system_alert_window flutter
I am using system_alert_window flutter package and want to add user image in body but not able to achieve this.我正在使用 system_alert_window flutter 包并想在正文中添加用户图像但无法实现这一点。 please help.
请帮忙。
You can use Dialog instead of alert window, in Dialog you can customise as your need.您可以使用 Dialog 而不是警报窗口,在 Dialog 中您可以根据需要进行自定义。
Dialog customDialog = Dialog(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12.0)),
child: Container(
height: 300.0,
width: 300.0,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
//Cutomise your widget with Image and Text
],
),
),
);
To show the Dialog显示对话框
showDialog(context: context, builder: (BuildContext context) => customDialog);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.