display options alert dialog

This commit is contained in:
Daniel Borges 2019-07-25 15:41:14 -03:00
parent 861acd4393
commit 5219e3967b

View File

@ -8,16 +8,16 @@ class _Action {
class DisplayOptionsDialog extends StatelessWidget { class DisplayOptionsDialog extends StatelessWidget {
final List<_Action> _actions = [ final List<_Action> _actions = [
_Action('Blank', () { _Action('Blank screen', () {
print('Blank screen'); print('Blank screen');
}), }),
_Action('Theme', () { _Action('Theme background', () {
print('Theme screen'); print('Theme screen');
}), }),
_Action('Desktop', () { _Action('Desktop', () {
print('Desktop screen'); print('Desktop screen');
}), }),
_Action('Show', () { _Action('Full projection', () {
print('Show screen'); print('Show screen');
}), }),
]; ];
@ -28,7 +28,8 @@ class DisplayOptionsDialog extends StatelessWidget {
contentPadding: EdgeInsets.all(20.0), contentPadding: EdgeInsets.all(20.0),
children: _actions children: _actions
.map((action) => OutlineButton( .map((action) => OutlineButton(
color: Colors.red, borderSide: BorderSide(color: Theme.of(context).primaryColor),
textColor: Theme.of(context).primaryColor,
child: Text(action.title), child: Text(action.title),
onPressed: () { onPressed: () {
action.callback(); action.callback();