Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fitness app crashes attempting to add first entry #142

Closed
@FlutterIssues

Description

@FlutterIssues

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());
    });
  }

@collinjackson

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions