Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
Yom3n committed Dec 12, 2019
1 parent 13634d9 commit 9fa179a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions lib/s3_cache_image.dart
Original file line number Diff line number Diff line change
Expand Up @@ -402,19 +402,6 @@ class S3CachedNetworkImageProvider
return new SynchronousFuture<S3CachedNetworkImageProvider>(this);
}

@override
ImageStreamCompleter load(S3CachedNetworkImageProvider key) {
return MultiFrameImageStreamCompleter(
codec: _loadAsync(key),
scale: key.scale,
// informationCollector: (StringBuffer information) {
// information
// ..writeln('Image provider: $this')
// ..write('Image key: $key');
// }
);
}

Future<ui.Codec> _loadAsync(S3CachedNetworkImageProvider key) async {
if (url.isNotEmpty && cacheId.isNotEmpty && remoteId.isNotEmpty) {
var cacheManager = S3CacheManager();
Expand Down Expand Up @@ -458,4 +445,17 @@ class S3CachedNetworkImageProvider

@override
String toString() => '$runtimeType(id: $cacheId, url: $url scale: $scale)';

@override
ImageStreamCompleter load(S3CachedNetworkImageProvider key, decode) {
return MultiFrameImageStreamCompleter(
codec: _loadAsync(key),
scale: key.scale,
// informationCollector: (StringBuffer information) {
// information
// ..writeln('Image provider: $this')
// ..write('Image key: $key');
// }
);
}
}

0 comments on commit 9fa179a

Please sign in to comment.