Challenge: A Basic Provider-Based Application
Test yourself and implement what you have learned so far in this 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 the model class for you. You only need to make changes to the controller.dart
file.
Expected output
The following image is a sample output. Your app’s output can be slightly different based on your approach, but it should satisfy the entire problem statement.
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy