Skip to content
Snippets Groups Projects
Commit de55ba83 authored by Markin Igor's avatar Markin Igor
Browse files

Fix mode reset.

parent 222a16e6
No related branches found
No related tags found
1 merge request!1Mobile app initial implementation.
......@@ -49,6 +49,10 @@ class _HomeState extends State<Home> {
FlutterAppAuthWrapper.eventStream().listen((data) {
var token = json.decode(data.toString())["access_token"];
_showAlert(token);
widget.setMode("");
}, onError: (error) {
log("Err $error");
widget.setMode("");
});
}
......@@ -63,7 +67,6 @@ class _HomeState extends State<Home> {
child: Text('Go back'),
onPressed: () async {
Navigator.of(context).pop();
widget.setMode("");
log("Open ${widget.invokerURL}");
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment