WIP
This commit is contained in:
parent
55dfa5fc94
commit
f53aa7cd01
|
@ -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'));
|
||||
}
|
||||
});
|
||||
}();
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue