FLUTTER ECOSYSTEM

asset_cache

Load and cache binary asset of any type given a decoder. Built in support for byte data, images, json and text.

Latest version
2.2.0
30-day downloads
917
Likes
42
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

AssetCache is a Flutter/Dart package designed to efficiently load and cache binary assets of any type using a customizable decoder. It provides built-in support for common asset types such as byte data, images, JSON, and text, reducing redundant network or file I/O operations. By caching assets after first load, it improves app performance and reduces latency. The package is platform-agnostic, supporting Android, iOS, Web, macOS, Windows, and Linux, making it ideal for cross-platform applications that rely on local asset management.

Use cases
  • Caching images from assets
  • Storing parsed JSON data locally
  • Loading text files efficiently
  • Reducing repeated asset loading
  • Improving app startup time
  • Managing binary data in offline mode
Key features
  • Customizable decoders
  • Built-in support for multiple asset types
  • Cross-platform compatibility
  • Efficient caching mechanism
  • Simple API for asset retrieval
  • Supports offline asset access
Suitable for
  • Apps with frequent asset loading
  • Offline-first applications
  • Media-heavy apps
  • Performance-critical apps
  • Developers needing flexible asset handling
  • Projects requiring consistent asset caching
Considerations
  • Requires proper decoder implementation
  • Memory usage depends on cached asset size
  • Not intended for large dynamic data
  • Needs careful management in long-running apps
  • Limited to static asset sources
  • May require additional setup for complex decoding logic
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add asset_cache

Categories

Dependencies

Dependency list 1 items

Source repository

Related projects