AppFlowy/frontend/appflowy_flutter/lib/shared/custom_image_cache_manager.dart
Zack 0a0f2adf76
feat: support uploading image to cloud storage (#4413)
* feat: add object ext

* feat: integrate upload image api

* feat: support uploading local file to cloud

* feat: abstact the CachedNetworkImage as FlowyNetworkImage

* ci: fix tauri ci

* fix: integration test

---------

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
Co-authored-by: nathan <nathan@appflowy.io>
2024-01-20 23:16:18 +08:00

14 lines
390 B
Dart

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));
}