* fix(mobile): handle transient loading states for map timelines * fix(mobile): handle transient loading states for map timelines * Add support for new method * Rewrote map options notifier to be more Riverpody
25 lines
754 B
Dart
25 lines
754 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
import 'package:immich_mobile/domain/models/time_range.model.dart';
|
|
import 'package:maplibre_gl/maplibre_gl.dart';
|
|
|
|
part 'map.model.freezed.dart';
|
|
|
|
@freezed
|
|
abstract class Marker with _$Marker {
|
|
const factory Marker({required LatLng location, required String assetId}) = _Marker;
|
|
}
|
|
|
|
@Freezed(fromJson: false, toJson: false)
|
|
abstract class TimelineMapOptions with _$TimelineMapOptions {
|
|
const factory TimelineMapOptions({
|
|
required LatLngBounds bounds,
|
|
|
|
@Default(false) bool onlyFavorites,
|
|
@Default(false) bool includeArchived,
|
|
@Default(false) bool withPartners,
|
|
@Default(0) int relativeDays,
|
|
|
|
@Default(TimeRange()) TimeRange timeRange,
|
|
}) = _TimelineMapOptions;
|
|
}
|