Skip to content

Commit 54904e4

Browse files
authored
Merge pull request #474 from kevmoo/symlink_readme
2 parents 515cc9e + a63ce08 commit 54904e4

File tree

2 files changed

+5
-110
lines changed

2 files changed

+5
-110
lines changed

README.md

-106
This file was deleted.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flutter_cache_manager/README.md

flutter_cache_manager/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ The more basic usage is explained here. See the complete docs for more info.
2121
The cache manager can be used to get a file on various ways
2222
The easiest way to get a single file is call `.getSingleFile`.
2323

24-
```
25-
var file = await DefaultCacheManager().getSingleFile(url);
24+
```dart
25+
var file = await DefaultCacheManager().getSingleFile(url);
2626
```
2727
`getFileStream(url)` returns a stream with the first result being the cached file and later optionally the downloaded file.
2828

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

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

69-
```
69+
```dart
7070
class CustomCacheManager {
7171
static const key = 'customCacheKey';
7272
static CacheManager instance = CacheManager(

0 commit comments

Comments
 (0)