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
/ 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
• Must Know Dart List an...
Learn about Getx and how to use it
www.dbestech.c...
See how to use the category selection in bigger app
• Flutter Payment App | ...
Appreciate my work here
www.paypal.com...
Негізгі бет Flutter Multiple Selection | Filter ListView Category Using Map Where() & Contain() | Getx
Пікірлер: 24