I am using flutter_provider for state management. I want to load some items on page(statefulwidget) load from Api. I am showing a loader on page start and want to show the items
When using a Provider you don’t need to use a StatefulWidget (as of a tutorial by the Flutter team State management
StatefulWidget
You may use the following tutorial to see how to fetch data with a provider and a StatelessWidget: Flutter StateManagement with Provider