mirror of
https://github.com/gskinnerTeam/flutter-wonderous-app.git
synced 2025-08-06 09:39:31 +08:00
Increase size of img cache
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user