openlp-mobile-remote/lib/widgets/show_alert_dialog.dart

35 lines
802 B
Dart
Raw Normal View History

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