fix bugs!

This commit is contained in:
fhkhd
2024-01-02 21:15:50 +03:30
parent d0eb9cd185
commit ec905fa4b7
5 changed files with 125 additions and 50 deletions
+18 -1
View File
@@ -247,7 +247,24 @@ class PackageProvider extends ChangeNotifier {
items = [];
searchBoxValue = value;
originalItems!.forEach((result) {
if (result.id.toString().contains(searchBoxValue)) {
if (
result.id
.toString()
.toLowerCase()
.contains(searchBoxValue.toLowerCase()) ||
result.id
.toString()
.toUpperCase()
.contains(searchBoxValue.toUpperCase()) ||
result.id
.toString()
.toLowerCase()
.contains(searchBoxValue.toUpperCase()) ||
result.id
.toString()
.toUpperCase()
.contains(searchBoxValue.toLowerCase())
) {
items!.add(result);
}
});