Flutter Multiple Selection | Filter ListView Category Using Map Where() & Contain() | Getx
In this tutorial you will learn how to create flutter category selection for multiple selection. This is also filtering category list. We will use Getx for ListView. We will create object instances inside map. In the controller we will create the the map and we will also use Map's where() where and Contain methods.
First we will create a model and then controller. Controller will be used inside View to create category objects as children.
@dbestech twitter account
https://www.facebook.com/dbestech for facebook
Time stamp
0:00:45 Introduce the idea and logic
0:03:20 Describes when you need a stateful widget and when you use getx
0:05:10 Create a model
0:05:27 Create a getx controller
0:05:52 Create a map
0:08:24 Create a stateful map
0:08:45 Create a view
0:09:25: Passing parameters to another class
0:12:32 Dependency Injection or Create a controller instance getx
0:13:52 ListView.builder
0:15:01 Dart gettter and get fields
0:15:50 Dart map and list convert
0:20:25 CheckBoxListTile constructor
0:21:07 CheckBoxListTile onChanged value introduce
0:24:45 Toggle checkbox value
0:30:00 Introduce dart map where() method and condition and it's value
0:33:30 Introduce dart map contains() method
0:35:30 Introduce Obx() for getx
0:36:30 Filter the category based on selection
Check out the List and Map example
https://youtu.be/Uz0FgKxXt2o
Learn about Getx and how to use it
https://www.dbestech.com/tutorials/flutter-getx-app-tutorial
See how to use the category selection in bigger app
https://youtu.be/5rENfaExzeQ
Appreciate my work here
https://www.paypal.com/paypalme/dbestech