mirror of
https://gitlab.com/openlp/openlp-mobile-remote.git
synced 2024-12-23 04:12:49 +00:00
35 lines
802 B
Dart
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(),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|