Repository: flutter
Issue: [Web][Canvaskit] APNG does not play on Flutter 3.27+
Labels: c: regression,engine,platform-web,a: images,e: web_canvaskit,has reproducible steps,team-web,found in release: 3.27,found in release: 3.28

### Steps to reproduce

The animation does not play when using CachedNetworkImage to display APNG, as shown in the following sample code.

### Expected results

APNG images play when displaying them with CachedNetworkImage.

### Actual results

Cannot play APNG on Web, in Flutter 3.27.2.

As far as I have researched, it plays in these condition:

- Using Image.network instead of CachedNetworkImage.
- on platforms other than the web (e.g., MacOS).
- build with --web-renderer html.
- on a previous Flutter SDK version (3.24.5).

### Code sample

<details open><summary>Code sample</summary>

```dart
...
CachedNetworkImage(
                  imageUrl: 'some_apng_url.png'
)
...
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.27.2, on macOS 15.1.1 24B91 darwin-arm64, locale ja-JP)
    • Flutter version 3.27.2 on channel stable at /Users/harukaoki/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 68415ad1d9 (3 days ago), 2025-01-13 10:22:03 -0800
    • Engine revision e672b006cb
    • Dart version 3.6.1
    • DevTools version 2.40.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/harukaoki/Library/Android/sdk
    • Platform android-35, build-tools 33.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)

[✓] VS Code (version 1.96.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.102.0

[✓] Connected device (4 available)
    • iPhone (8) (mobile)             • 00008020-001124CE3CE9002E • ios            • iOS 18.1.1 22B91
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 15.1.1 24B91 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 15.1.1 24B91 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 132.0.6834.83

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>