I have a use case in a widget where I load some initial data thru http and present that data on the widget and then I interact with the widget which causes the data to be updated. I guess this is a very common scenario in many apps
How should this be accomplished, do I load the initial data using FutureBuilder (I am doing this in another widget and it is working fine) and then do the updates using ChangeNotifier and notifying (with notifyListeners()) the widget that the data has been updated
How are these used together in the same widget ? Or is there some other pattern to use ? What is the best practice ?
Not sure without seeing your code. But with the Provider we can handle it like following:
Your Widget
Model class with change notifier