FLUTTER ECOSYSTEM

brotli

Pure Dart Brotli decoder.

Latest version
0.6.0
30-day downloads
68.3K
Likes
21
Pub points
140

Package Overview

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

Overview

A pure Dart implementation of the Brotli decoder, enabling decompression of Brotli-compressed data directly within Dart applications. Designed for use across multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, it allows developers to handle Brotli-encoded content without relying on native code. Ideal for scenarios involving compressed assets, API responses, or data storage where Brotli is used for efficient compression. The package is lightweight and self-contained, making it suitable for apps requiring cross-platform compatibility and minimal dependencies.

Use cases
  • Decompressing Brotli-compressed HTTP responses
  • Processing compressed assets in Flutter apps
  • Handling Brotli-encoded data from APIs
  • Integrating with file formats using Brotli compression
  • Supporting offline data with compressed storage
Key features
  • Pure Dart implementation
  • Cross-platform support
  • No native dependencies
  • Efficient decompression
  • Lightweight and easy to integrate
Suitable for
  • Flutter apps needing Brotli support
  • Developers avoiding platform-specific code
  • Applications processing compressed network data
  • Tools handling Brotli-encoded files
  • Projects requiring portable compression utilities
Considerations
  • Performance may be slower than native implementations
  • Not optimized for very large files
  • Limited to decoding (no encoding)
  • Best suited for moderate-sized data
  • Requires careful memory management for large inputs
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add brotli

Categories

Source repository

Related projects