Courses / Add Stripe Payments to a Flutter App and Deploy to Play Store
Lesson 3 of 8

State Management with Provider

3
▶

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.

Start learning free

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 continue

It takes about fifteen seconds.