Skip to content

refactor: Update image asset loading to use AssetManifest#846

Merged
fbernaly merged 2 commits intoflutter-ml:developfrom
bensonarafat:assetManifest
Feb 26, 2026
Merged

refactor: Update image asset loading to use AssetManifest#846
fbernaly merged 2 commits intoflutter-ml:developfrom
bensonarafat:assetManifest

Conversation

@bensonarafat
Copy link
Collaborator

Removal of AssetManifest.json
Built Flutter apps will no longer include an AssetManifest.json asset file.
https://docs.flutter.dev/release/breaking-changes/asset-manifest-dot-json

@bensonarafat bensonarafat marked this pull request as ready for review February 26, 2026 07:43
@fbernaly fbernaly requested a review from Copilot February 26, 2026 17:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the example app’s asset image discovery logic to use Flutter’s AssetManifest API rather than reading AssetManifest.json, aligning with Flutter’s breaking change that removes the JSON manifest from built apps.

Changes:

  • Replaced rootBundle.loadString('AssetManifest.json') + JSON parsing with AssetManifest.loadFromAssetBundle(rootBundle).
  • Removed the now-unneeded dart:convert import.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fbernaly
Copy link
Collaborator

@bensonarafat :

This branch is out-of-date with the base branch
Merge the latest changes from develop into this branch. This merge commit will be associated with fbernaly.

@fbernaly fbernaly merged commit 91ea5a6 into flutter-ml:develop Feb 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants