Merge pull request #194 from yaso-meth/QOL--Mzansi-Wallet-search-title

add title search
This commit is contained in:
yaso-meth 2025-06-03 10:33:55 +02:00 committed by GitHub
commit aa13308fd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,6 +54,9 @@ class _MihCardsState extends State<MihCards> {
List<MIHLoyaltyCard> temp = [];
for (var item in listOfCards) {
if (item.shop_name
.toLowerCase()
.contains(cardSearchController.text.toLowerCase()) ||
item.nickname
.toLowerCase()
.contains(cardSearchController.text.toLowerCase())) {
temp.add(item);
@ -295,7 +298,7 @@ class _MihCardsState extends State<MihCards> {
hintColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(),
onPrefixIconTap: () {
print("Search Icon Pressed: ${cardSearchController.text}");
// print("Search Icon Pressed: ${cardSearchController.text}");
},
searchFocusNode: searchFocusNode,
),