1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-16 07:24:40 +02:00

feat(mobile): sync local asset width & height from platform (#18994)

* add width and height to sqlite entities

* sync width & height from platform

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong
2025-06-09 08:20:54 +05:30
committed by GitHub
parent e376366b7b
commit 75c24f0023
12 changed files with 267 additions and 12 deletions

View File

@ -37,6 +37,8 @@ class PlatformAsset {
required this.type,
this.createdAt,
this.updatedAt,
this.width,
this.height,
required this.durationInSeconds,
});
@ -50,6 +52,10 @@ class PlatformAsset {
int? updatedAt;
int? width;
int? height;
int durationInSeconds;
List<Object?> _toList() {
@ -59,6 +65,8 @@ class PlatformAsset {
type,
createdAt,
updatedAt,
width,
height,
durationInSeconds,
];
}
@ -75,7 +83,9 @@ class PlatformAsset {
type: result[2]! as int,
createdAt: result[3] as int?,
updatedAt: result[4] as int?,
durationInSeconds: result[5]! as int,
width: result[5] as int?,
height: result[6] as int?,
durationInSeconds: result[7]! as int,
);
}