Speed up first asset load by using the binary-formatted asset manifest for image resolution (#118782)
* add asset manifest bin loading and asset manifest api * use new api for image resolution * remove upfront smc data casting * fix typecasting issue * remove unused import * fix tests * lints * lints * fix import * fix outdated type name * restore AssetManifest docstrings * update test * update other test * make error message for invalid keys more useful
This commit is contained in:
@@ -14,6 +14,6 @@ void main() {
|
||||
|
||||
// If this asset couldn't be loaded, the exception message would be
|
||||
// "asset failed to load"
|
||||
expect(tester.takeException().toString(), contains('Invalid image data'));
|
||||
expect(tester.takeException().toString(), contains('The key was not found in the asset manifest'));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user