enhance: Improves search by ignoring case
Updates the reception name search to be case-insensitive. This enhances usability by ensuring search results are found regardless of the capitalization used in the query. Also increments the application version.
This commit is contained in:
parent
3fce62e3e5
commit
3d5d013763
@ -22,7 +22,10 @@ class ReceptionSearchPageModel
|
||||
res.when(
|
||||
(data) async {
|
||||
final founds = data
|
||||
.where((e) => e.name?.contains(name) == true)
|
||||
.where(
|
||||
(e) =>
|
||||
e.name?.toLowerCase().contains(name.toLowerCase()) == true,
|
||||
)
|
||||
.toList();
|
||||
state = AsyncValue.data(founds);
|
||||
},
|
||||
|
@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
# In Windows, build-name is used as the major, minor, and patch parts
|
||||
# of the product and file versions while build-number is used as the build suffix.
|
||||
version: 0.2.3+8
|
||||
version: 0.3.0+9
|
||||
|
||||
environment:
|
||||
sdk: ^3.8.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user