diff --git a/lib/widgets/show_alert_dialog.dart b/lib/widgets/show_alert_dialog.dart index ce23201..a4ef0ed 100644 --- a/lib/widgets/show_alert_dialog.dart +++ b/lib/widgets/show_alert_dialog.dart @@ -4,6 +4,7 @@ class ShowAlertDialog extends StatelessWidget { @override Widget build(BuildContext context) { return AlertDialog( + title: Text('Type your alert'), actions: [ 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(), + ), ), ), );