set loading when waiting for token exchange
This commit is contained in:
parent
2afd5ae258
commit
bd185824f9
1 changed files with 23 additions and 18 deletions
|
|
@ -60,7 +60,9 @@ class SelectServerPage extends HookConsumerWidget {
|
|||
AppLinks().uriLinkStream.listen((encodedUri) async {
|
||||
final state = encodedUri.queryParameters["state"];
|
||||
if (state != codeResponse.state) return;
|
||||
isLoading.value = true;
|
||||
|
||||
try {
|
||||
final code = encodedUri.queryParameters["code"];
|
||||
|
||||
if (code != null) {
|
||||
|
|
@ -82,6 +84,9 @@ class SelectServerPage extends HookConsumerWidget {
|
|||
)
|
||||
.onError(showError);
|
||||
}
|
||||
} finally {
|
||||
isLoading.value = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue