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

12 lines
376 B
Dart
Raw Normal View History

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