Merge pull request #437 from ente-io/bug_fix_search
FIx range error in HolidaySearch Result
This commit is contained in:
commit
c0f0ae5d5d
|
@ -176,16 +176,17 @@ class SearchService {
|
||||||
|
|
||||||
for (var holiday in allHolidays) {
|
for (var holiday in allHolidays) {
|
||||||
if (holiday.name.contains(nonCaseSensitiveRegexForQuery)) {
|
if (holiday.name.contains(nonCaseSensitiveRegexForQuery)) {
|
||||||
holidaySearchResults.add(
|
final matchedFiles =
|
||||||
HolidaySearchResult(
|
|
||||||
holiday.name,
|
|
||||||
await FilesDB.instance.getFilesCreatedWithinDurations(
|
await FilesDB.instance.getFilesCreatedWithinDurations(
|
||||||
_getDurationsOfHolidayInEveryYear(holiday.day, holiday.month),
|
_getDurationsOfHolidayInEveryYear(holiday.day, holiday.month),
|
||||||
null,
|
null,
|
||||||
order: 'DESC',
|
order: 'DESC',
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
|
if (matchedFiles.isNotEmpty) {
|
||||||
|
holidaySearchResults.add(
|
||||||
|
HolidaySearchResult(holiday.name, matchedFiles),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return holidaySearchResults;
|
return holidaySearchResults;
|
||||||
|
|
|
@ -43,7 +43,7 @@ class NoResultWidget extends StatelessWidget {
|
||||||
child: Text(
|
child: Text(
|
||||||
"You can try searching for a different query.",
|
"You can try searching for a different query.",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 14,
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
.defaultTextColor
|
.defaultTextColor
|
||||||
|
@ -60,7 +60,7 @@ class NoResultWidget extends StatelessWidget {
|
||||||
\u2022 Holidays (e.g. "Christmas")
|
\u2022 Holidays (e.g. "Christmas")
|
||||||
\u2022 Album names (e.g. "Recents")''',
|
\u2022 Album names (e.g. "Recents")''',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16,
|
fontSize: 14,
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
.defaultTextColor
|
.defaultTextColor
|
||||||
|
|
|
@ -11,7 +11,7 @@ description: ente photos application
|
||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# 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
|
||||||
version: 0.6.24+354
|
version: 0.6.25+355
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.10.0 <3.0.0"
|
sdk: ">=2.10.0 <3.0.0"
|
||||||
|
|
Loading…
Reference in a new issue