From 3d5d01376314535fbaafdaac2310687c9143d0ae Mon Sep 17 00:00:00 2001 From: mandreshope Date: Tue, 5 Aug 2025 13:50:02 +0300 Subject: [PATCH] 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. --- .../operation/reception/reception_search_page_model.dart | 5 ++++- pubspec.yaml.bak | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/pages/operation/reception/reception_search_page_model.dart b/lib/pages/operation/reception/reception_search_page_model.dart index fe0bd51..c930c03 100644 --- a/lib/pages/operation/reception/reception_search_page_model.dart +++ b/lib/pages/operation/reception/reception_search_page_model.dart @@ -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); }, diff --git a/pubspec.yaml.bak b/pubspec.yaml.bak index 517b67a..04cf6f9 100644 --- a/pubspec.yaml.bak +++ b/pubspec.yaml.bak @@ -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