Your Second Flutter App

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

Part 4: Filter Results

29. Filter Courses

Episode complete

Play next episode

About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 28. Use Shared Preferences Next episode: 30. Conclusion

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.

FilterPage is now working, but we’ve not done anything yet to actually filter courses. We’ll get that working in this episode. However, we’ll also notice a deficiency in our approach, and that will lead us into the next part of the course, on lifting state up in the app.

class _CoursesPageState extends State<CoursesPage> {
  int _filterValue = Constants.allFilter;
import 'package:shared_preferences/shared_preferences.dart';
future: _controller.fetchCourses(_filterValue),