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

Symlink readme file #474

Merged
merged 2 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 0 additions & 106 deletions README.md

This file was deleted.

1 change: 1 addition & 0 deletions README.md
8 changes: 4 additions & 4 deletions flutter_cache_manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ The more basic usage is explained here. See the complete docs for more info.
The cache manager can be used to get a file on various ways
The easiest way to get a single file is call `.getSingleFile`.

```
var file = await DefaultCacheManager().getSingleFile(url);
```dart
var file = await DefaultCacheManager().getSingleFile(url);
```
`getFileStream(url)` returns a stream with the first result being the cached file and later optionally the downloaded file.

Expand All @@ -43,7 +43,7 @@ The easiest way to get a single file is call `.getSingleFile`.
If you use the ImageCacheManager mixin on the CacheManager (which is already done on the DefaultCacheManager) you
get the following `getImageFile` method for free:

```
```dart
Stream<FileResponse> getImageFile(String url, {
String key,
Map<String, String> headers,
Expand All @@ -66,7 +66,7 @@ The cache manager is customizable by creating a new CacheManager. It is very imp
Below is an example with other settings for the maximum age of files, maximum number of objects
and a custom FileService. The key parameter in the constructor is mandatory, all other variables are optional.

```
```dart
class CustomCacheManager {
static const key = 'customCacheKey';
static CacheManager instance = CacheManager(
Expand Down
Loading