Skip to content

Commit 08ff061

Browse files
authored
Further remove web-only considerations that are no longer necessary (#158143)
... to mention because without HTML they work the same as the native renderer! Yay! Post-submit follow-up cleanups to flutter/flutter#158035 (review) (flutter/flutter#157547).
1 parent 33f7137 commit 08ff061

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

packages/flutter/lib/src/painting/image_provider.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,10 +1411,6 @@ class ResizeImage extends ImageProvider<ResizeImageKey> {
14111411
///
14121412
/// The image will be cached regardless of cache headers from the server.
14131413
///
1414-
/// When a network image is used on the Web platform, the `getTargetSize`
1415-
/// parameter of the [ImageDecoderCallback] is only supported when the
1416-
/// application is running with the CanvasKit renderer.
1417-
///
14181414
/// See also:
14191415
///
14201416
/// * [Image.network] for a shorthand of an [Image] widget backed by [NetworkImage].

packages/flutter/lib/src/widgets/image.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,6 @@ typedef ImageErrorWidgetBuilder = Widget Function(
306306
/// using the `cacheWidth` and `cacheHeight` parameters, a 100-fold reduction in
307307
/// memory usage.
308308
///
309-
/// ### Web considerations
310-
///
311-
/// In the case where a network image is used on the Web platform, the
312-
/// `cacheWidth` and `cacheHeight` parameters are only supported when the
313-
/// application is running with the CanvasKit renderer.
314-
///
315309
/// ## Custom image providers
316310
///
317311
/// {@tool dartpad}

0 commit comments

Comments
 (0)