Flutter Shopping App With Provider and Hive

Flutter Shopping App With Provider and Hive

    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 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

    1. Navigator.of()
    2. 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

    1. add items cart
    2. remove items from cart
    3. favourite items add in cart
    4. remove favourite items from cart

    Get the complete code and assets from here

    Starter code to follow along

    Courses


    Recent posts