AppFlowy/frontend/appflowy_flutter/lib/shared/custom_image_cache_manager.dart

14 lines
390 B
Dart
Raw Normal View History

import 'package:flutter_cache_manager/flutter_cache_manager.dart';
class CustomImageCacheManager extends CacheManager with ImageCacheManager {
static const key = 'appflowy_image_cache';
static final CustomImageCacheManager _instance = CustomImageCacheManager._();
factory CustomImageCacheManager() {
return _instance;
}
CustomImageCacheManager._() : super(Config(key));
}