Increase size of img cache
This commit is contained in:
parent
567eb38bea
commit
384bf83e35
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user