2024-01-20 23:16:18 +08:00
|
|
|
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
|
|
|
|
|
|
|
|
class CustomImageCacheManager extends CacheManager with ImageCacheManager {
|
2024-01-25 16:37:36 +01:00
|
|
|
CustomImageCacheManager._() : super(Config(key));
|
2024-01-20 23:16:18 +08:00
|
|
|
|
2024-01-25 16:37:36 +01:00
|
|
|
factory CustomImageCacheManager() => _instance;
|
2024-01-20 23:16:18 +08:00
|
|
|
|
2024-01-25 16:37:36 +01:00
|
|
|
static final CustomImageCacheManager _instance = CustomImageCacheManager._();
|
2024-01-20 23:16:18 +08:00
|
|
|
|
2024-01-25 16:37:36 +01:00
|
|
|
static const key = 'appflowy_image_cache';
|
2024-01-20 23:16:18 +08:00
|
|
|
}
|