@@ -1,4 +1,5 @@
const int THUMBNAIL_SMALL_SIZE = 256;
+const int THUMBNAIL_SMALL_SIZE_QUALITY = 80;
const int THUMBNAIL_LARGE_SIZE = 512;
const String SENTRY_DSN =
"http://96780dc0b00f4c69a16c02e90d379996@3.211.17.56/2";
@@ -90,7 +90,11 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
return;
}
asset
- .thumbDataWithSize(THUMBNAIL_SMALL_SIZE, THUMBNAIL_SMALL_SIZE)
+ .thumbDataWithSize(
+ THUMBNAIL_SMALL_SIZE,
+ quality: THUMBNAIL_SMALL_SIZE_QUALITY,
+ )
.then((data) {
if (data != null && mounted) {
final imageProvider = Image.memory(data).image;
@@ -74,7 +74,11 @@ void preloadLocalFileThumbnail(File file) {
file.getAsset().then((asset) {
ThumbnailLruCache.put(file, THUMBNAIL_SMALL_SIZE, data);
});