asset_cache 0.1.2 copy "asset_cache: ^0.1.2" to clipboard
asset_cache: ^0.1.2 copied to clipboard

outdated

generic asset cache with implementations for image, json and strings

asset_cache #

A library for loading and cache assets, in memory, of generic types.

Inherit from AssetCache and give it a decoder, or inherit from GenericCache and overload the loadAsset method.

The library comes with ready to use asset cache implementations as singletons for loading images, strings and json files: ImageAssets, ImageAsUint8List, StringAssets and JsonAssets.

Set basePath to avoid entering full path for assets.

Remember to add assets in pubspec.yaml like so:

  assets:
     - assets/images/
     - assets/json/

See test and example.

Based on CachingAssetBundle.

39
likes
0
pub points
87%
popularity

Publisher

verified publisherapptakk.com

generic asset cache with implementations for image, json and strings

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on asset_cache