In this challenge, you’ll save data locally using Hive.

Goal

The goals of this challenge include:

  • Learn to use official documentation to implement a package.
  • Use the Hive package to persist cart items locally in your mobile app.

Specs

When the user adds an item to the cart, it’s added successfully and is persisted on app restart.

Starter code

Before you begin the challenge, look at the starter code below.

Note: Run the app after adding the necessary packages.

Get hands-on with 1400+ tech skills courses.