Migrate athentication from webview to deep linking

This commit is contained in:
Yegor Vialov
2019-10-20 16:45:44 +00:00
parent 085aead36b
commit 520fd6bc38
7 changed files with 41 additions and 40 deletions

View File

@ -75,8 +75,6 @@ class _MainPageState extends ReceiveShareState<MainPage> with WidgetsBindingObse
});
_fullLoad();
}
@override void receiveShare(Share shared) {
@ -254,7 +252,6 @@ class _MainPageState extends ReceiveShareState<MainPage> with WidgetsBindingObse
_showOAuth();
} else {
_preventAppRefresh = false;
Navigator.of(context).pop();
}
});
}
@ -268,7 +265,9 @@ class _MainPageState extends ReceiveShareState<MainPage> with WidgetsBindingObse
void _showOAuth() {
_preventAppRefresh = true;
Navigator.of(context).pushNamed('/login');
Launcher.launchURLInCustomTab(
url: ConnectionManager().oauthUrl
);
}
_setErrorState(HAError e) {