mirror of
https://github.com/immich-app/immich.git
synced 2025-08-07 09:04:09 -04:00
formatting
This commit is contained in:
parent
774c7f1b88
commit
9d47b8fd87
@ -11,11 +11,7 @@ class AssetMediaRepository {
|
||||
const AssetMediaRepository();
|
||||
|
||||
Future<ui.Codec> getLocalThumbnail(String localId, ui.Size size) async {
|
||||
final info = await thumbnailApi.getThumbnailBuffer(
|
||||
localId,
|
||||
width: size.width.toInt(),
|
||||
height: size.height.toInt(),
|
||||
);
|
||||
final info = await thumbnailApi.getThumbnailBuffer(localId, width: size.width.toInt(), height: size.height.toInt());
|
||||
|
||||
final pointer = Pointer<Uint8>.fromAddress(info['pointer']!);
|
||||
final actualWidth = info['width']!;
|
||||
|
@ -27,11 +27,7 @@ ImageProvider getFullImageProvider(BaseAsset asset, {Size size = const Size(1080
|
||||
return provider;
|
||||
}
|
||||
|
||||
ImageProvider getThumbnailImageProvider({
|
||||
BaseAsset? asset,
|
||||
String? remoteId,
|
||||
Size size = kTimelineThumbnailSize,
|
||||
}) {
|
||||
ImageProvider getThumbnailImageProvider({BaseAsset? asset, String? remoteId, Size size = kTimelineThumbnailSize}) {
|
||||
assert(asset != null || remoteId != null, 'Either asset or remoteId must be provided');
|
||||
|
||||
if (remoteId != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user