1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-30 15:06:06 +00:00
This commit is contained in:
Yan Maniez 2020-02-27 23:30:22 +01:00
parent f33715da6d
commit 4f8a37a6b9
3 changed files with 11 additions and 2 deletions

View file

@ -67,6 +67,9 @@ Future<Item> loadChildrenItems(Item item, List<Filter> filters) async {
if(filter.selectedValues.isNotEmpty) {
whereFilter = " AND (${filter.name} LIKE '%" + filter.selectedValues.join("%' OR ${filter.name} LIKE '%") + "%')";
}
if(filter.rangeValues != null && (filter.rangeValues.start > 0 || filter.rangeValues.end < filter.values.length - 1) ) {
whereFilter = " AND ([${filter.name}] BETWEEN '${filter.values[filter.rangeValues.start.round()]}' AND '${filter.values[filter.rangeValues.end.round()]}')";
}
});
}
print(whereFilter);