1601448272(1).png class _AlertDialogPageState extends State<AlertDialogPage> {
AlertDialog _dialog;
_createAlertDialog() {
return AlertDialog(
title: Text(
'我是标题',
textAlign: ,
),
titlePadding: EdgeInsets.all(10),
titleTextStyle: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
color: Colors.blue,
),
content: SingleChildScrollView(
child: Container(
child: Column(
children: [
Text('内容1'),
Text('内容2'),
]
,
),
),
),
contentTextStyle: TextStyle(
fontSize: 14,
fontWeight: al,
color: Colors.black,
),
actions: [
RaisedButton(
onPressed: () {
Navigator.of(context).pop();
},
textstylechild: Text('取消'),
),
RaisedButton(
onPressed: () {
Navigator.of(context).pop();
},
child: Text('确定'),
),
]
,
actionsPadding: EdgeInsets.all(10),
actionsOverflowButtonSpacing: 10,
backgroundColor: Colors.white,
elevation: 10,
clipBehavior: Clip.antiAlias,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(5),
),
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('AlertDialog'),
),
body: ListView(

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。