This commit is contained in:
jantunesmesias 2024-08-22 11:14:03 -03:00
parent 55dfa5fc94
commit f53aa7cd01
2 changed files with 6 additions and 5 deletions

View File

@ -52,7 +52,7 @@ class _HomePageWidgetState extends State<HomePageWidget> {
AppState().provisional = value.jsonBody['provisional'];
} else {
await DialogUtil.warningDefault(context)
.whenComplete(() => safeSetState(() {}));
.then((value) => log('Erro ao buscar dados'));
}
});
}();

View File

@ -19,7 +19,8 @@ class DialogUtil {
context,
FFLocalizations.of(context).getVariableText(
ptText: "Atenção, algo deu errado. Tente novamente mais tarde.",
enText: "Warning, something went wrong. Try again later."));
enText: "Warning, something went wrong. Try again later."))
.then((value) => value);
}
static Future<dynamic> error(BuildContext context, String message) async {