google / built_value.dart

Immutable value types, enum classes, and serialization.
https://pub.dev/packages/built_value
BSD 3-Clause "New" or "Revised" License
861 stars 183 forks source link

Flutter use case question? #1073

Closed sitewright closed 3 years ago

sitewright commented 3 years ago

I have the following use case:

Creating a CRM that is built on a MySQL DB and connected to our application via REST Api. We need to perform regular CRUD functions. I set up our data model for Contacts via Built_Value and I am displaying the contacts in a list via FutureBuilder and list view.builder. We are utilizing the Built Value Converter that is provided with our Chopper package we are using for networking. All the serializations work great.

Q: Since we will have users adding, deleting, updating contacts regularly is Built Value and Built Collections the proper solution?

I am relatively new to development and am having a difficult time updating the UI (Built List for contacts) appropriately when a contact is added, deleted, or updated (via a form). Updating the database is not an issue, it is just the UI. I have read everything I can find online about Built_Value and Built_Collection but I can't find one example of someone using these solutions with a similar use case. I have spent quite a bit of time at this point and just want to know if I am barking up the wrong tree or can BV be my solution. And if so, can someone point me to some examples of using BV with traditional CRUD events?

This is my first ever question on GitHub so be gentle....;)

Thanks in advance.

davidmorgan commented 3 years ago

built_value can definitely be used with Flutter. But I don't know a lot about Flutter, so I can't really help you there :) you might have more luck asking on Stack Overflow where there's a more general audience.