formatting

This commit is contained in:
mertalev 2025-08-01 19:55:14 -04:00
parent 774c7f1b88
commit 9d47b8fd87
No known key found for this signature in database
GPG Key ID: DF6ABC77AAD98C95
2 changed files with 2 additions and 10 deletions

View File

@ -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']!;

View File

@ -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) {