Future<void> _chooseNetWork(context) async {
showCupertinoDialog(
context: context,
builder: (context) {
return CupertinoAlertDialog(
title: Text('温馨提示'),
content: Card(
elevation: 0.0,
child: Column(
children: <Widget>[
Text('请输入正确的图片地址哦。'),
CupertinoTextField(
),
],
),
),
actions: <Widget>[
CupertinoDialogAction(
onPressed: () {
Navigator.pop(context);
},
child: Text('取消'),
),
CupertinoDialogAction(
onPressed: () {
Navigator.pop(context);
},
child: Text('确定'),
),
],
);
});
}