mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
Add support for new method
This commit is contained in:
parent
c1c4d6be35
commit
758259cfd6
1 changed files with 2 additions and 0 deletions
|
|
@ -74,6 +74,7 @@ class MapStateNotifier extends Notifier<MapState> {
|
|||
|
||||
final StreamController<TimelineMapOptions> _optionsController = StreamController.broadcast();
|
||||
|
||||
// ignore: avoid-public-notifier-properties
|
||||
Stream<TimelineMapOptions> get optionsStream => _optionsController.stream;
|
||||
|
||||
bool setBounds(LatLngBounds bounds) {
|
||||
|
|
@ -124,6 +125,7 @@ class MapStateNotifier extends Notifier<MapState> {
|
|||
unawaited(ref.read(settingsProvider).write(.mapCustomFrom, range.from));
|
||||
unawaited(ref.read(settingsProvider).write(.mapCustomTo, range.to));
|
||||
state = state.copyWith(timeRange: range);
|
||||
_optionsController.add(state.toOptions());
|
||||
EventStream.shared.emit(const MapMarkerReloadEvent());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue