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
774c7f1b88
commit
9d47b8fd87
@ -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']!;
|
||||||
|
@ -27,11 +27,7 @@ ImageProvider getFullImageProvider(BaseAsset asset, {Size size = const Size(1080
|
|||||||
return provider;
|
return provider;
|
||||||
}
|
}
|
||||||
|
|
||||||
ImageProvider getThumbnailImageProvider({
|
ImageProvider getThumbnailImageProvider({BaseAsset? asset, String? remoteId, Size size = kTimelineThumbnailSize}) {
|
||||||
BaseAsset? asset,
|
|
||||||
String? remoteId,
|
|
||||||
Size size = kTimelineThumbnailSize,
|
|
||||||
}) {
|
|
||||||
assert(asset != null || remoteId != null, 'Either asset or remoteId must be provided');
|
assert(asset != null || remoteId != null, 'Either asset or remoteId must be provided');
|
||||||
|
|
||||||
if (remoteId != null) {
|
if (remoteId != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user