FLUTTER ECOSYSTEM

scoped_deps

A simple Dart library for managing scoped dependencies built on top of Zones from dart:async.

Latest version
0.2.1
30-day downloads
61.6K
Likes
9
Pub points
160

Package Overview

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

Overview

Scoped_deps is a lightweight Dart library for managing scoped dependencies using Zones from dart:async. It enables developers to create isolated dependency contexts within specific parts of an app, ensuring that dependencies are only accessible where intended. This promotes cleaner code organization and better testability by avoiding global state. The library integrates seamlessly with Flutter apps across all platforms, offering a simple API for dependency registration and retrieval within scoped zones.

Use cases

  • Managing UI-specific dependencies
  • Testing components in isolation
  • Avoiding global state pollution
  • Creating modular application sections
  • Simplifying dependency injection in large apps

Key features

  • Zone-based dependency scoping
  • Minimal API surface
  • Cross-platform support
  • Easy integration with Flutter
  • No runtime overhead

Suitable for

  • Flutter developers seeking lightweight DI
  • Apps with modular architecture
  • Teams needing clean dependency boundaries
  • Test-driven development workflows
  • Projects avoiding heavy frameworks

Considerations

  • Not suitable for complex dependency graphs
  • Requires understanding of Zones
  • Limited documentation compared to mature libraries
  • Best for small to medium-sized apps
  • May require refactoring existing dependency patterns
Supported platformsAndroidiOSLinuxmacOSWebWindows

Install package

flutter pub add scoped_deps

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.

Rankings