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