Your Second Flutter App

Nov 30 2021 · Dart 2.13, Flutter 2.2.3, Visual Studio Code

Part 4: Filter Results

24. Introduction

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 23. Conclusion Next episode: 25. Create a Filter Widget

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Transcript: 24. Introduction

Now comes the part where we add the ability to filter courses. After all, users will want to see only the courses that they are interested in. We’ve already added a button

We’ll begin by creating a FilterWidget that will hold each filter value for the FilterPage.

Then we’ll build out the FilterPage itself.

Next we’ll see how to persist the filter choice to your app’s storage using a library called SharedPreferences.

Finally, we’ll use the filter choice the user has made to filter the list of courses shown on the CoursesPage.

In the process of this, you’ll understand how we can persist state between widgets. Let get started.