|
|
@ -32,15 +32,15 @@ class _LoginPageState extends State<LoginPage> { |
|
|
|
_loginBloc.setServerURL(widget.serverURL); |
|
|
|
_loginBloc.setServerURL(widget.serverURL); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_loginBloc.loginFlowInit.listen((final init) { |
|
|
|
WidgetsBinding.instance.addPostFrameCallback((final _) { |
|
|
|
if (init != null && !Provider.of<NeonPlatform>(context, listen: false).canUseWebView) { |
|
|
|
_loginBloc.loginFlowInit.listen((final init) async { |
|
|
|
WidgetsBinding.instance.addPostFrameCallback((final _) async { |
|
|
|
if (init != null && !Provider.of<NeonPlatform>(context, listen: false).canUseWebView) { |
|
|
|
await launchUrlString( |
|
|
|
await launchUrlString( |
|
|
|
init.login, |
|
|
|
init.login, |
|
|
|
mode: LaunchMode.externalApplication, |
|
|
|
mode: LaunchMode.externalApplication, |
|
|
|
); |
|
|
|
); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
_loginBloc.loginFlowResult.listen((final result) async { |
|
|
|
_loginBloc.loginFlowResult.listen((final result) async { |
|
|
|