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:
Andrew Kolos
2023-02-21 16:05:12 +00:00
committed by GitHub
parent 7175de4fe6
commit e3db0488ad
6 changed files with 98 additions and 149 deletions

View File

@@ -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'));
});
}