Bottom info bar as standalone component

This commit is contained in:
Yegor Vialov 2020-04-15 18:13:03 +00:00
parent 2a828a1289
commit b65c885467

View File

@ -110,8 +110,7 @@ class _BottomInfoBarState extends State<BottomInfoBar> {
actions.add(FlatButton( actions.add(FlatButton(
child: Text("${action.title}", style: textStyle), child: Text("${action.title}", style: textStyle),
onPressed: () { onPressed: () {
Logger.d('FULL_RELOAD action'); eventBus.fire(FullReloadEvent());
EventBus().fire(FullReloadEvent());
}, },
)); ));
break; break;
@ -121,7 +120,7 @@ class _BottomInfoBarState extends State<BottomInfoBar> {
actions.add(FlatButton( actions.add(FlatButton(
child: Text("${action.title}", style: textStyle), child: Text("${action.title}", style: textStyle),
onPressed: () { onPressed: () {
EventBus().fire(ReloadUIEvent()); eventBus.fire(ReloadUIEvent());
}, },
)); ));
break; break;
@ -131,7 +130,7 @@ class _BottomInfoBarState extends State<BottomInfoBar> {
actions.add(FlatButton( actions.add(FlatButton(
child: Text("${action.title}", style: textStyle), child: Text("${action.title}", style: textStyle),
onPressed: () { onPressed: () {
ConnectionManager().logout().then((_) => EventBus().fire(FullReloadEvent())); ConnectionManager().logout().then((_) => eventBus.fire(FullReloadEvent()));
}, },
)); ));
break; break;