corrected the checkbox selection issue
This commit is contained in:
parent
9feb9d1b4b
commit
a6da579f07
@ -234,13 +234,15 @@ class _DirectoryFilterBottomSheetState
|
||||
itemCount: filteredList.length,
|
||||
itemBuilder: (context, index) {
|
||||
final item = filteredList[index];
|
||||
|
||||
return Obx(() {
|
||||
final isSelected = selectedItems.contains(item.id);
|
||||
|
||||
return GestureDetector(
|
||||
onTap: () => onToggle(item.id),
|
||||
child: Container(
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 4, vertical: 6),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 4, vertical: 6),
|
||||
child: Row(
|
||||
children: [
|
||||
Container(
|
||||
@ -266,6 +268,7 @@ class _DirectoryFilterBottomSheetState
|
||||
),
|
||||
),
|
||||
);
|
||||
});
|
||||
},
|
||||
),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user