4. Make your Phase 5 app

Task

For this task, you will make your mockup less like a mockup and more like an “alpha” version of your application by connecting it to a Firestore backend.

To accomplish this, you will need to do the following:

One issue you will confront is how to deal with the “sample” data you have been using to enable your mockup to exhibit a realistic look and feel. Here’s how I did it.

  1. I created entity classes using Freezed for each data model item.
  2. I created a json file in the assets/initialData folder containing sample data in json format.
  3. I created a function to read the json file and generate entity instances from them. This checked to see that my Freezed definition and my json files were consistent. Almost every one of them initially failed this test!
  4. Once I had json files that could be used to correctly generate my Freezed entities, I used FireFoo to create collections in Firebase and create a set of documents corresponding to those json file.

Now my mockup Firebase database is initialized with data that can be represented locally using my Freezed data entity classes.

An Example: The Phase 5 AGC mockup app

To get a sense for what you’re aiming for, please check out Phase 5 Flutter Mockup of the Agile Garden Club app.

Submission Instructions

By the date and time listed in the Schedule page, please upload the URL to your mockup to Laulima. Also, please indicate what you personally added to the mockup since the last submission.