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

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.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

Now comes the part where we add the ability to filter courses. After all, a user will want to see only the courses they are interested in. We've already added a button. We'll begin by creating a filter widget that will hold each filter value for the filter page. Then we'll build out the filter page itself. Next, we'll see how to persist the filter choice to your app storage using a library called SharedPreferences. Finally, we'll use the filter choice that the user has made to filter the list of courses shown on the courses page. In the process of this, you'll understand how we can persist state between widgets. Let's get started.