Skip to content

Commit

Permalink
Fix image loader request header type
Browse files Browse the repository at this point in the history
  • Loading branch information
henry11996 committed Jun 3, 2024
1 parent ee85122 commit a2780cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/widgets/story_image.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class ImageLoader {
}

final fileStream = DefaultCacheManager().getFileStream(this.url,
headers: this.requestHeaders as Map<String, String>?);
headers: requestHeaders
?.map((key, value) => MapEntry(key, value.toString())));

fileStream.listen(
(fileResponse) {
Expand Down

0 comments on commit a2780cf

Please sign in to comment.