Skip to content

Commit

Permalink
Fix getImageInfo in ExtendedImageRect
Browse files Browse the repository at this point in the history
  • Loading branch information
3003h committed Nov 5, 2024
1 parent 1e798d4 commit 1346b30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/widget/image/network_extended_image.dart
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ class _ExtendedImageRectState extends State<ExtendedImageRect> {
imageProvider.resolve(const ImageConfiguration()).addListener(
ImageStreamListener(
(ImageInfo info, bool _) {
completer.complete(info);
if (!completer.isCompleted) {
completer.complete(info);
}
},
),
);
Expand Down

0 comments on commit 1346b30

Please sign in to comment.