Video by Flutter Mapp on YouTube · 10 min. We did not make this video and we do not host it — watching it here still counts as a view for the creator.
Provider is lightweight and fits a beginner project. Watch a tutorial that shows creating a ChangeNotifier for the cart, exposing it with ChangeNotifierProvider, and consuming it via Consumer. A common mistake is forgetting to wrap MaterialApp with the provider, leading to ProviderNotFoundException.
With Provider you can add/remove items from the cart from any screen, and the UI will update automatically. This prepares the app for the payment step where the total amount is needed.
Sign in with your email, Google or GitHub. No password to remember. The same account carries your progress, your certificates and anything else you do with Nexgino later.
Sign in to continueIt takes about fifteen seconds.