I am getting the following error on Flutter 3.38+:
Unhandled Exception: Unable to load asset: "AssetManifest.json".
It appears to be caused by this code, which always tries to load the JSON manifest:
bundle.loadString('AssetManifest.json');
According to the Flutter documentation, AssetManifest.json is planned for removal and will no longer be generated in future releases (starting from the fourth stable release after Flutter 3.19).
Reference: https://docs.flutter.dev/development/ui/assets-and-images#assetmanifestjson-file-creation-policy