File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ class CollectionPane extends ConsumerWidget {
93
93
style: Theme .of (context).textTheme.bodyMedium,
94
94
hintText: "Filter by name or URL" ,
95
95
onChanged: (value) {
96
- ref.read (searchQueryProvider.notifier).state = value;
96
+ ref.read (searchQueryProvider.notifier).state =
97
+ value.toLowerCase ();
97
98
},
98
99
),
99
100
),
@@ -177,7 +178,24 @@ class _RequestListState extends ConsumerState<RequestList> {
177
178
);
178
179
},
179
180
)
180
- : SizedBox (),
181
+ : ListView (
182
+ padding: kPe8,
183
+ controller: controller,
184
+ children: requestSequence.map ((id) {
185
+ var item = requestItems[id]! ;
186
+ if (item.url.toLowerCase ().contains (filterQuery) ||
187
+ item.name.toLowerCase ().contains (filterQuery)) {
188
+ return Padding (
189
+ padding: kP1,
190
+ child: RequestItem (
191
+ id: id,
192
+ requestModel: item,
193
+ ),
194
+ );
195
+ }
196
+ return const SizedBox ();
197
+ }).toList (),
198
+ ),
181
199
);
182
200
}
183
201
}
You can’t perform that action at this time.
0 commit comments