fix(mobile): use cached thumbnail in full size image provider (#20637)

This commit is contained in:
Mert
2025-08-05 10:20:25 -04:00
committed by GitHub
parent 9680f1290d
commit 9e6fee4064
10 changed files with 166 additions and 76 deletions

View File

@@ -0,0 +1,10 @@
import 'dart:ui';
import 'package:flutter/painting.dart';
extension CodecImageInfoExtension on Codec {
Future<ImageInfo> getImageInfo({double scale = 1.0}) async {
final frame = await getNextFrame();
return ImageInfo(image: frame.image, scale: scale);
}
}