openlp-mobile-remote/lib/widgets/show_alert_dialog.dart
2019-07-25 15:22:01 -03:00

35 lines
802 B
Dart

import 'package:flutter/material.dart';
class ShowAlertDialog extends StatelessWidget {
@override
Widget build(BuildContext context) {
return AlertDialog(
title: Text('Type your alert'),
actions: <Widget>[
FlatButton(
child: Text('Cancel'),
onPressed: () {
Navigator.of(context).pop();
},
),
FlatButton(
child: Text('Show'),
onPressed: () {
Navigator.of(context).pop();
},
)
],
content: Container(
constraints: BoxConstraints(maxWidth: 500),
child: TextField(
maxLines: 5,
autofocus: true,
decoration: InputDecoration(
border: OutlineInputBorder(),
),
),
),
);
}
}