mirror of
https://gitlab.com/openlp/openlp-mobile-remote.git
synced 2024-12-22 20:02:53 +00:00
display options alert dialog
This commit is contained in:
parent
861acd4393
commit
5219e3967b
@ -8,16 +8,16 @@ class _Action {
|
||||
|
||||
class DisplayOptionsDialog extends StatelessWidget {
|
||||
final List<_Action> _actions = [
|
||||
_Action('Blank', () {
|
||||
_Action('Blank screen', () {
|
||||
print('Blank screen');
|
||||
}),
|
||||
_Action('Theme', () {
|
||||
_Action('Theme background', () {
|
||||
print('Theme screen');
|
||||
}),
|
||||
_Action('Desktop', () {
|
||||
print('Desktop screen');
|
||||
}),
|
||||
_Action('Show', () {
|
||||
_Action('Full projection', () {
|
||||
print('Show screen');
|
||||
}),
|
||||
];
|
||||
@ -28,7 +28,8 @@ class DisplayOptionsDialog extends StatelessWidget {
|
||||
contentPadding: EdgeInsets.all(20.0),
|
||||
children: _actions
|
||||
.map((action) => OutlineButton(
|
||||
color: Colors.red,
|
||||
borderSide: BorderSide(color: Theme.of(context).primaryColor),
|
||||
textColor: Theme.of(context).primaryColor,
|
||||
child: Text(action.title),
|
||||
onPressed: () {
|
||||
action.callback();
|
||||
|
Loading…
Reference in New Issue
Block a user