1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-15 17:59:35 +01:00

fix: refresh scaffold catch error

This commit is contained in:
Rongjian Zhang 2020-01-28 20:59:32 +08:00
parent a021f755f3
commit f5ad1acd25

View File

@ -47,9 +47,9 @@ class _RefreshStatefulScaffoldState<T>
_loading = true;
});
_data = await widget.fetchData();
// } catch (err) {
// _error = err.toString();
// throw err;
} catch (err) {
_error = err.toString();
throw err;
} finally {
if (mounted) {
setState(() {