Data flow algorithm using dio and riverpod in Flutter [closed]

I already wrote a Flutter program through research and study. My system architecture is SQL Server for the database, Node JS for the API data access layer, and Flutter for my client-side application. TL;DR To make this short, I was able to construct a data model using the freezed package. I am also able to write a method to retrieve and pass data over the API. I was using dio package to pass data and using a combination of riverpod and freezed for disseminating retrieved data from the API. The problem is, what will be the concept if my use case is to implement an auto-save draft? It does not matter how I handle data validation; the most important thing for me is the concept of state management, where if I can retrieve the data, then how can I overwrite a specific value without introducing unnecessary data processing (e.g., if other information is not modified, then it shouldn't be updated every time there are changes in other information)? I am dealing with confusion about how I can create a module with the given ideas. Edit: Sample data My sample data are: product name list of specifications (e.g., key-name or using Map) list of images (i.e., multiple images which represent a single product) prices full descriptions and so forth... I am not a certified software engineer, and I was hoping that someone here could help me.

Feb 5, 2025 - 12:03
 0
Data flow algorithm using dio and riverpod in Flutter [closed]

I already wrote a Flutter program through research and study.

My system architecture is SQL Server for the database, Node JS for the API data access layer, and Flutter for my client-side application.

TL;DR

To make this short, I was able to construct a data model using the freezed package. I am also able to write a method to retrieve and pass data over the API.

I was using dio package to pass data and using a combination of riverpod and freezed for disseminating retrieved data from the API. The problem is, what will be the concept if my use case is to implement an auto-save draft? It does not matter how I handle data validation; the most important thing for me is the concept of state management, where if I can retrieve the data, then how can I overwrite a specific value without introducing unnecessary data processing (e.g., if other information is not modified, then it shouldn't be updated every time there are changes in other information)?

I am dealing with confusion about how I can create a module with the given ideas.

Edit: Sample data

My sample data are:

  • product name
  • list of specifications (e.g., key-name or using Map)
  • list of images (i.e., multiple images which represent a single product)
  • prices
  • full descriptions

    and so forth...

I am not a certified software engineer, and I was hoping that someone here could help me.