Skip to content

Commit

Permalink
Merge pull request #474 from kevmoo/symlink_readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanbeusekom authored Nov 16, 2024
2 parents 515cc9e + a63ce08 commit 54904e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 110 deletions.
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

0 comments on commit 54904e4

Please sign in to comment.