File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## [ 3.3.2] - 2024-04-10
2
+ * Change how errors are reported by ImageLoader. Emitting errors as streams instead of re-throwing.
3
+
1
4
## [ 3.3.1] - 2023-12-31
2
5
* Adding an errorListener prevents automatic reporting to global error handler.
3
6
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ class BasicContent extends StatelessWidget {
142
142
aspectRatio: 1.6 ,
143
143
child: BlurHash (hash: 'LEHV6nWB2yk8pyo0adR*.7kCMdnj' ),
144
144
),
145
- imageUrl: 'https://blurha.sh/assets/images/img1 .jpg' ,
145
+ imageUrl: 'https://blurha.sh/12c2aca29ea896a628be .jpg' ,
146
146
fit: BoxFit .cover,
147
147
),
148
148
);
Original file line number Diff line number Diff line change @@ -125,14 +125,14 @@ class ImageLoader implements platform.ImageLoader {
125
125
yield decoded;
126
126
}
127
127
}
128
- } on Object {
128
+ } on Object catch (error, stackTrace) {
129
129
// Depending on where the exception was thrown, the image cache may not
130
130
// have had a chance to track the key in the cache at all.
131
131
// Schedule a microtask to give the cache a chance to add the key.
132
132
scheduleMicrotask (() {
133
133
evictImage ();
134
134
});
135
- rethrow ;
135
+ yield * Stream . error (error, stackTrace) ;
136
136
} finally {
137
137
await chunkEvents.close ();
138
138
}
Original file line number Diff line number Diff line change 6
6
- cache
7
7
- image
8
8
- network-image
9
- version : 3.3.1
9
+ version : 3.3.2
10
10
environment :
11
11
sdk : ^3.0.0
12
12
flutter : ' >=3.10.0'
You can’t perform that action at this time.
0 commit comments