Solution: A Basic Provider-Based Application

Review the solution for the basic provider-based application challenge.

We'll cover the following

Problem statement

Create a Flutter application to manage the state through the Provider. Don’t use the stateful widget.

The first challenge is to create a counter where you can increment numbers by pressing the button and changing the state.

The second challenge is to test whether a text message starts with the letter “s” or not.

As a head start, we have already completed for you. You only need to make changes to the controller.dart file.

Solution code

Get hands-on with 1400+ tech skills courses.