mirror of
https://github.com/immich-app/immich.git
synced 2026-04-16 15:41:54 -04:00
* feat: mobile editing fix: openapi patch this sucks :pepehands: chore: migrate some changes from the filtering PR chore: color tweak fix: hide edit button on server versions chore: translation * chore: code review changes chore: code review * sealed class * const constant * enum * concurrent queries * chore: major cleanup to use riverpod provider * fix: aspect ratio selection * chore: typesafe websocket event parsing * fix: wrong disable state for save button * chore: remove isCancelled shim * chore: cleanup postframe callback usage * chore: clean import --------- Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
26 lines
533 B
Dart
26 lines
533 B
Dart
import "package:openapi/api.dart" show CropParameters, RotateParameters, MirrorParameters;
|
|
|
|
enum AssetEditAction { rotate, crop, mirror, other }
|
|
|
|
sealed class AssetEdit {
|
|
const AssetEdit();
|
|
}
|
|
|
|
class CropEdit extends AssetEdit {
|
|
final CropParameters parameters;
|
|
|
|
const CropEdit(this.parameters);
|
|
}
|
|
|
|
class RotateEdit extends AssetEdit {
|
|
final RotateParameters parameters;
|
|
|
|
const RotateEdit(this.parameters);
|
|
}
|
|
|
|
class MirrorEdit extends AssetEdit {
|
|
final MirrorParameters parameters;
|
|
|
|
const MirrorEdit(this.parameters);
|
|
}
|