Flutter E-commerce App Tutorial With Restful API | Provider (preview)
Learn how to build a online shop app using provider state management.
This is a Flutter Shopping app with Provider and Hive local storage for android and iOS. We will build a beautiful online store app for iOS and Android. It covers beautiful animation and scrolling. This is a flutter shopping cart with Provider with interactive ui design.
This tutorial covers awesome animation ui design with local storage. By the end of this tutorial you will master, how to use provider and hive.
Provider would be for state management and Hive would be local storage.
Navigation
For routing we have used flutter native navigation. We have extensively used the following
Navigator.of()
Navigator.push()
Provider
Providers Since this is a online shopping store app, we will use ChangeNotifierProvider with three classes to maintain our app state. These three classes would be wrapped in MultiProvider. So you will master how to add, remove and save data using ChangeNotifierProvider.
Since we have many providers, we used MultiProviders to inject them at the root of our widget tree.
Hive
Since this tutorial focuses on local storage using Hive, we have used Hive for the following features
add items cart
remove items from cart
favourite items add in cart
remove favorite items from cart
Get the complete code and assets from here
https://www.dbestech.com/tutorials/flutter-online-shopping-store-with-cart-provider-state-management