finished alert dialog

This commit is contained in:
Daniel Borges 2019-07-25 15:22:01 -03:00
parent c4e2a7977b
commit 861acd4393

View File

@ -4,6 +4,7 @@ class ShowAlertDialog extends StatelessWidget {
@override
Widget build(BuildContext context) {
return AlertDialog(
title: Text('Type your alert'),
actions: <Widget>[
FlatButton(
child: Text('Cancel'),
@ -18,11 +19,14 @@ class ShowAlertDialog extends StatelessWidget {
},
)
],
content: TextField(
maxLines: 5,
autofocus: true,
decoration: InputDecoration(
border: OutlineInputBorder(),
content: Container(
constraints: BoxConstraints(maxWidth: 500),
child: TextField(
maxLines: 5,
autofocus: true,
decoration: InputDecoration(
border: OutlineInputBorder(),
),
),
),
);