mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-18 22:46:57 +00:00

* 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>
14 lines
390 B
Dart
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));
|
|
}
|