mirror of
https://github.com/immich-app/immich.git
synced 2026-07-30 15:40:36 -07:00
feat(mobile): custom date range for map (#26205)
* feat(mobile): custom date range for map * refactor: rename timerange & remove isvalid * refactor: rename customtimerange variables * refactor: add back setRelativeTime * refactor: implement suggestions * refactor: suggestions * fix: ifPresent * fix: context.locale * chore: restrict selection * refactor: move options to mapconfig * refactor: move model to domain * chore: locale toLanguageTag * add map codec tests * rebase --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
@@ -25,6 +25,8 @@ class _FrozenBucketService implements TimelineService {
|
||||
}
|
||||
|
||||
class _EmptyBucketService implements TimelineService {
|
||||
const _EmptyBucketService();
|
||||
|
||||
@override
|
||||
Stream<List<Bucket>> Function() get watchBuckets =>
|
||||
() => Stream.value(const []);
|
||||
@@ -109,7 +111,7 @@ void main() {
|
||||
await tester.pumpWidget(
|
||||
ProviderScope(
|
||||
overrides: [
|
||||
timelineServiceProvider.overrideWithValue(_EmptyBucketService()),
|
||||
timelineServiceProvider.overrideWithValue(const _EmptyBucketService()),
|
||||
appConfigProvider.overrideWithValue(const AppConfig()),
|
||||
],
|
||||
child: MaterialApp(
|
||||
|
||||
Reference in New Issue
Block a user