1. 02 Feb, 2023 1 commit
    • Andrew Kolos's avatar
      Reland "Add API for discovering assets" (#119277) · fd76ef0f
      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
      
      * update gallery and google_fonts versions
      
      ---------
      Co-authored-by: 's avatarJonah Williams <jonahwilliams@google.com>
      fd76ef0f
  2. 01 Feb, 2023 2 commits
  3. 31 Jan, 2023 4 commits
  4. 30 Jan, 2023 3 commits
  5. 27 Jan, 2023 2 commits
  6. 26 Jan, 2023 3 commits
    • Christopher Fujino's avatar
      Revert "Add API for discovering assets (#118410)" (#119273) · a04ab712
      Christopher Fujino authored
      This reverts commit 2b8f2d05.
      a04ab712
    • 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
    • Todd Volkert's avatar
      Add more flexible image API (#118966) · b319938e
      Todd Volkert authored
      This updates the framework to provide higher level wrappers around ui.instantiateImageCodecWithSize(). Functionally, this doesn't change anything (other than deprecating the older loadBuffer() method in favor of loadImage()), but it sets the stage for a simpler change that will allow us to provide a more flexible way to load sized images.
      
      #118543
      b319938e
  7. 25 Jan, 2023 1 commit
  8. 24 Jan, 2023 3 commits
  9. 23 Jan, 2023 1 commit
  10. 21 Jan, 2023 3 commits
  11. 20 Jan, 2023 5 commits
  12. 19 Jan, 2023 7 commits
  13. 18 Jan, 2023 3 commits
  14. 17 Jan, 2023 2 commits
    • Ricardo Amador's avatar
      Devicelab android emulator (#113472) · f989d551
      Ricardo Amador authored
      * Testing whether emulator is possible.
      
      * Adding changes to see if emulator can be used from recipe.
      
      * adding emulator support.
      
      * Add the emulator flag for testing.
      
      * Using string for boolean since it cannot be parsed in properties
      
      * Checking to see if these changes are being used.
      
      * Updated bool back to string
      
      * Remove trailing whitespace from file.
      f989d551
    • Darren Austin's avatar
      Updated tokens to v0.152 (#118594) · 6fafbc33
      Darren Austin authored
      6fafbc33