In this session, we will implement stores, storage and model for our application.
Following are the component implemented for our application.
1. JsonStore - A store, which stores and retrieves JSON objects. In our application, we are using flat file system to save our data. JSON store helps to hold the JSON objects in memory and save to the file storage once the data is ready to be written. In addition to that, JsonStore provide support to read or load records from the file system.
2. FileStorage - This implements the flat file system. We mainly support read, write and remove, just the three basic functions. FileStorage provide implementation to open a file, read the content and write it back to the file system.
3. InventoryModel - A model, which is inherited from Model. This one holds the schema for the inventory in our application.
4. ModelFactory - This provides supports for creation of model, implements generators which helps in creating model dynamically at runtime.
We follow proper SOLID principles through out our application.
If you haven't checked-out our previous sessions, you can do so from the links below.
Chapter 2:
Part1-Session1: • Flutter Course|C2|P1|S1:MVC Framework|Home...
Introduction : • Flutter Course|C2|Intro-Creating MVC frame...
Chapter 1:
Session 2 - • Flutter - Using Scaffold ( C1-P3-S2 )
Session 1 - • Flutter - Using Scaffold ( C1-P3-S1 )
Introduction to Flutter course - • Flutter- Introduction to the online course.
A detailed explanation on Flutter framework - • Flutter - C1:P1 - Understanding flutter fr...
Learn Scaffold in 5 minutes - • Flutter- C1:P2 - Introduction to Scaffold ...
Need help in installing flutter in Windows, checkout our complete guide - • Setting up flutter in windows for Android ...
Code for the course can be found at https://github.com/iMeshAcademy/flu-tur