FLUTTER ECOSYSTEM

squadron

Multithreading and worker thread pool for Dart / Flutter, to offload CPU-bound and heavy I/O tasks to Isolate or Web Worker threads.

Latest version
7.4.4
30-day downloads
21.5K
Likes
216
Pub points
160

Package Overview

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

Overview

Squadron is a Dart/Flutter package that enables multithreading through isolate and web worker pools, allowing CPU-intensive and heavy I/O operations to be offloaded from the main thread. It simplifies parallel execution across platforms including Android, iOS, Web, macOS, Windows, and Linux. By leveraging isolates on native platforms and web workers on the web, Squadron improves app responsiveness and performance. The package provides an easy-to-use API for managing worker threads and handling task distribution.

Use cases
  • Offloading CPU-heavy computations
  • Handling large file I/O operations
  • Improving UI responsiveness during intensive tasks
  • Running background data processing
  • Executing long-running algorithms without blocking the main thread
Key features
  • Supports Isolate and Web Worker pools
  • Cross-platform compatibility
  • Simple task submission API
  • Automatic worker management
  • Built-in error handling
  • Thread-safe communication
Suitable for
  • Developers needing high-performance background processing
  • Apps with complex data transformations
  • Media or image processing apps
  • Real-time data analysis tools
  • Applications requiring responsive UIs during heavy workloads
Considerations
  • Requires understanding of isolates and concurrency
  • May increase memory usage with many workers
  • Web support limited by browser capabilities
  • Not suitable for lightweight tasks
  • Needs careful state management across threads
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add squadron

Categories

Dependencies

Dependency list 5 items
  • cancelation_token^1.1.0
  • logger^2.1.0
  • meta^1.11.0
  • using^1.0.0
  • web^1.1.0

Source repository

Related projects

No data available yet.