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:
mandreshope 2025-08-05 13:50:02 +03:00
parent 3fce62e3e5
commit 3d5d013763
2 changed files with 5 additions and 2 deletions

View File

@ -22,7 +22,10 @@ class ReceptionSearchPageModel
res.when( res.when(
(data) async { (data) async {
final founds = data final founds = data
.where((e) => e.name?.contains(name) == true) .where(
(e) =>
e.name?.toLowerCase().contains(name.toLowerCase()) == true,
)
.toList(); .toList();
state = AsyncValue.data(founds); state = AsyncValue.data(founds);
}, },

View File

@ -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 # 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 # 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. # 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: environment:
sdk: ^3.8.1 sdk: ^3.8.1