display options alert dialog

This commit is contained in:
Daniel Borges 2019-07-25 15:41:14 -03:00
parent 861acd4393
commit 5219e3967b
1 changed files with 5 additions and 4 deletions

View File

@ -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();