Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should export the file_system #365

Closed
yk3372 opened this issue Mar 17, 2022 · 5 comments
Closed

should export the file_system #365

yk3372 opened this issue Mar 17, 2022 · 5 comments

Comments

@yk3372
Copy link

yk3372 commented Mar 17, 2022

export 'src/storage/file_system/file_system.dart';
export 'src/storage/file_system/file_system_io.dart';
export 'src/storage/file_system/file_system_web.dart';

The IOFileSystem can't import for below code.

CacheManager(
    Config(
      key,
      stalePeriod: const Duration(days: 7),
      maxNrOfCacheObjects: 20,
      repo: JsonCacheInfoRepository(databaseName: key),
      fileSystem: IOFileSystem(key),
      fileService: HttpFileService(),
    ),
  )
@yk3372
Copy link
Author

yk3372 commented Mar 17, 2022

@renefloor please fix it, thanks

@yk3372
Copy link
Author

yk3372 commented Mar 18, 2022

@montyr75
Copy link

montyr75 commented Jun 9, 2022

In order to access the FileSystem interface to do a custom cache, we have to import this file: import 'package:flutter_cache_manager/src/storage/file_system/file_system.dart'; This is a problem for the linter (info: Don't import implementation files from another package.) Please add either this interface or, even better, your implementation of IOFileSystem to the list of exports in flutter_cache_manager.dart.

@Technorocker
Copy link

@montyr75 Hello, I tried adding that import but didnt work for me. Has anyone figured this out yet? I'm trying to use this instead of cached video player plugin but cant figure out what to import to get the IOFileSystem referenced properly.

@shen601020
Copy link

@montyr75您好,我尝试添加该导入,但对我不起作用。有人已经弄清楚了吗?我正在尝试使用它而不是缓存视频播放器插件,但无法弄清楚要导入什么才能正确引用 IOFileSystem。

试试:import 'package:flutter_cache_manager/src/storage/file_system/file_system_io.dart';

@wyyadd wyyadd mentioned this issue Oct 9, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants