Resolves #523 Change device name for integration

This commit is contained in:
Yegor Vialov
2020-05-03 13:36:40 +00:00
parent a87943da27
commit 536cbf9445
4 changed files with 130 additions and 113 deletions

View File

@ -23,6 +23,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
StreamSubscription _fullReloadSubscription;
StreamSubscription _showPageSubscription;
BottomInfoBarController _bottomInfoBarController;
bool _popupShown = false;
int _previousViewCount;
bool _showLoginButton = false;
bool _preventAppRefresh = false;
@ -183,7 +184,12 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
}
if (_showPopupSubscription == null) {
_showPopupSubscription = eventBus.on<ShowPopupEvent>().listen((event){
event.popup.show(context);
if (!_popupShown) {
_popupShown = true;
event.popup.show(context).then((_){
_popupShown = false;
});
}
});
}
if (_serviceCallSubscription == null) {