add title search
This commit is contained in:
parent
6db505c5b7
commit
6d8f1cd7ab
1 changed files with 6 additions and 3 deletions
|
|
@ -54,8 +54,11 @@ class _MihCardsState extends State<MihCards> {
|
||||||
List<MIHLoyaltyCard> temp = [];
|
List<MIHLoyaltyCard> temp = [];
|
||||||
for (var item in listOfCards) {
|
for (var item in listOfCards) {
|
||||||
if (item.shop_name
|
if (item.shop_name
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.contains(cardSearchController.text.toLowerCase())) {
|
.contains(cardSearchController.text.toLowerCase()) ||
|
||||||
|
item.nickname
|
||||||
|
.toLowerCase()
|
||||||
|
.contains(cardSearchController.text.toLowerCase())) {
|
||||||
temp.add(item);
|
temp.add(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -295,7 +298,7 @@ class _MihCardsState extends State<MihCards> {
|
||||||
hintColor:
|
hintColor:
|
||||||
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
onPrefixIconTap: () {
|
onPrefixIconTap: () {
|
||||||
print("Search Icon Pressed: ${cardSearchController.text}");
|
// print("Search Icon Pressed: ${cardSearchController.text}");
|
||||||
},
|
},
|
||||||
searchFocusNode: searchFocusNode,
|
searchFocusNode: searchFocusNode,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue