fix: validacao do processLocals no localization_service

This commit is contained in:
jantunesmessias 2024-10-17 10:12:26 -03:00
parent a63a9d3f30
commit 34eae9a536
2 changed files with 11 additions and 3 deletions

7
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"editor.quickSuggestions": {
"comments": "off",
"strings": "off",
"other": "off"
}
}

View File

@ -62,7 +62,6 @@ class LocalizationService {
final bool isError = response.jsonBody['error'];
final String content = response.jsonBody['error_msg'];
if(isError) StorageUtil().isLogged = false;
if(isError) context.go('/welcomePage');
@ -135,8 +134,9 @@ class LocalizationService {
log('() => else');
return await selectLocal(context);
}
} catch (e) {
log('() => catch: $e');
} catch (e, s) {
log('() => stack: $s');
log('() => catch: $e', stackTrace: s);
return await selectLocal(context);
}
return false;
@ -174,6 +174,7 @@ class LocalizationService {
return false;
} catch (e, s) {
log('() => stack: $s');
log('() => error: $e', stackTrace: s);
DialogUtil.warningDefault(context).whenComplete(() => selectLocal(context));
return false;