• Andrew Kolos's avatar
    Add API for discovering assets (#118410) · 2b8f2d05
    Andrew Kolos authored
    * 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
    
    * revert image resolution changes
    
    * Update image_resolution_test.dart
    
    * Update decode_and_parse_asset_manifest.dart
    
    * make targetDevicePixelRatio optional
    
    * Update packages/flutter/lib/src/services/asset_manifest.dart
    Co-authored-by: 's avatarJonah Williams <jonahwilliams@google.com>
    
    * Update packages/flutter/lib/src/services/asset_manifest.dart
    Co-authored-by: 's avatarJonah Williams <jonahwilliams@google.com>
    
    * fix immutable not being imported
    
    * return List in AssetManifest methods, fix annotation import
    
    * simplify onError callback
    
    * make AssetManifest methods abstract instead of throwing UnimplementedError
    
    * simplify AssetVariant.key docstring
    
    * tweak _AssetManifestBin docstring
    
    * make AssetManifest and AssetVariant doc strings more specific
    
    * use List.of instead of List.from for type-safety
    
    * adjust import
    
    * change _AssetManifestBin comment from doc comment to normal comment
    
    * revert to callback function for onError in loadStructuredBinaryData
    
    * add more to the docstring of AssetManifest.listAssets and AssetVariant.key
    
    * add tests for CachingAssetBundle caching behavior
    
    * add simple test to ensure loadStructuredBinaryData correctly calls load
    
    * Update asset_manifest.dart
    
    * update docstring for AssetManifest.getAssetVariants
    
    * rename getAssetVariants, have it include main asset
    
    * rename isMainAsset field of AssetMetadata to main
    
    * (slightly) shorten name of describeAssetAndVariants
    
    * rename describeAssetVariants back to getAssetVariants
    
    * add tests for TestAssetBundle
    
    * nits
    
    * fix typo in docstring
    
    * remove no longer necessary non-null asserts
    Co-authored-by: 's avatarJonah Williams <jonahwilliams@google.com>
    2b8f2d05
Name
Last commit
Last update
.github Loading commit data...
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.ci.yaml Loading commit data...
.cirrus.yml Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CODEOWNERS Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
PATENT_GRANT Loading commit data...
README.md Loading commit data...
TESTOWNERS Loading commit data...
analysis_options.yaml Loading commit data...
dartdoc_options.yaml Loading commit data...
flutter_console.bat Loading commit data...