* feat(mobile): add smooth timeline scrubbing setting * refactor: read smooth scrubbing setting where the scrubber is built (cherry picked from commit 222d9276d31e890d3d9beb6dae5d96a6f6ab52f0)
16 lines
508 B
Dart
16 lines
508 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
import 'package:immich_mobile/domain/models/timeline.model.dart';
|
|
|
|
part 'timeline_config.freezed.dart';
|
|
|
|
@freezed
|
|
abstract class TimelineConfig with _$TimelineConfig {
|
|
const factory TimelineConfig({
|
|
@Default(4) int tilesPerRow,
|
|
@Default(GroupAssetsBy.day) GroupAssetsBy groupAssetsBy,
|
|
@Default(true) bool storageIndicator,
|
|
@Default(false) bool smoothScrubbing,
|
|
}) = _TimelineConfig;
|
|
}
|