mirror of
https://github.com/immich-app/immich.git
synced 2025-08-11 09:16:31 -04:00
formatting
This commit is contained in:
parent
b7df60762c
commit
58ed5c9258
@ -11,11 +11,7 @@ class AssetMediaRepository {
|
|||||||
const AssetMediaRepository();
|
const AssetMediaRepository();
|
||||||
|
|
||||||
Future<ui.Codec> getLocalThumbnail(String localId, ui.Size size) async {
|
Future<ui.Codec> getLocalThumbnail(String localId, ui.Size size) async {
|
||||||
final info = await thumbnailApi.getThumbnailBuffer(
|
final info = await thumbnailApi.getThumbnailBuffer(localId, width: size.width.toInt(), height: size.height.toInt());
|
||||||
localId,
|
|
||||||
width: size.width.toInt(),
|
|
||||||
height: size.height.toInt(),
|
|
||||||
);
|
|
||||||
|
|
||||||
final pointer = Pointer<Uint8>.fromAddress(info['pointer']!);
|
final pointer = Pointer<Uint8>.fromAddress(info['pointer']!);
|
||||||
final actualWidth = info['width']!;
|
final actualWidth = info['width']!;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user