Closed
Description
Issue by eseidelGoogle
Tuesday Aug 25, 2015 at 18:36 GMT
Originally opened as https://github.com/flutter/engine/issues/804
We don't create a user data when loading the exiting one fails. I hacked around this locally:
void didMount() {
super.didMount();
loadFitnessData().then((UserData data) {
setState(() => _userData = data);
}).catchError((e) {
print("Failed to load data: $e");
setState(() => _userData = new UserDataImpl());
});
}
Metadata
Metadata
Assignees
Labels
No labels