Increase size of img cache

This commit is contained in:
Shawn 2023-02-18 19:20:11 -07:00
parent 567eb38bea
commit 384bf83e35

View File

@ -34,6 +34,7 @@ class AppLogic {
if (PlatformInfo.isDesktop) {
await DesktopWindow.setMinWindowSize($styles.sizes.minAppSize);
}
// Load any bitmaps the views might need
await AppBitmaps.init();
@ -105,3 +106,11 @@ class AppLogic {
SystemChrome.setPreferredOrientations(orientations);
}
}
class AppImageCache extends WidgetsFlutterBinding {
@override
ImageCache createImageCache() {
this.imageCache.maximumSizeBytes = 250 << 20; // 250mb
return super.createImageCache();
}
}