Skip to content

Commit

Permalink
Merge pull request #911 from muhib349/develop
Browse files Browse the repository at this point in the history
Fixed: Deprecated API usage
  • Loading branch information
mvanbeusekom committed Apr 29, 2024
2 parents 08599c6 + 2f7fbfb commit 9f3cd25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cached_network_image_web/lib/cached_network_image_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ library cached_network_image_web;
import 'dart:async';
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'dart:ui_web';

import 'package:cached_network_image_platform_interface'
'/cached_network_image_platform_interface.dart' as platform
Expand Down Expand Up @@ -155,7 +156,7 @@ class ImageLoader implements platform.ImageLoader {
) {
final resolved = Uri.base.resolve(url);
// ignore: undefined_function
return ui.webOnlyInstantiateImageCodecFromUrl(
return createImageCodecFromUrl(
resolved,
chunkCallback: (int bytes, int total) {
chunkEvents.add(
Expand All @@ -165,7 +166,7 @@ class ImageLoader implements platform.ImageLoader {
),
);
},
) as Future<ui.Codec>;
);
}
}

Expand Down

0 comments on commit 9f3cd25

Please sign in to comment.