Challenge: A Riverpod-Based Application

Test yourself and implement what you have learned so far in this challenge.

Problem statement

This challenge is entirely state management and Riverpod based.

Build a stateful app with the help of StateProvider, where you will create two Providers that expose a state of the same type. You will decide to use either the String or Integer.

You will only complete the code for the controller files. The rest have already been completed for you.

Before you check the solution, please try it on your own.

Expected output

The following image is a sample output. Your app’s output can be completely different based on your approach, but it should satisfy the entire problem statement.

Get hands-on with 1400+ tech skills courses.