Getting Started with Flutter
Overview
Dependy Flutter extends the core Dependy library with scoping features for the Flutter widget tree. It lets you:
- Scope services to widget lifetimes, automatically disposed when widgets are removed
- Share dependency scopes across the widget tree without prop drilling
- Reactively rebuild widgets when
ChangeNotifierdependencies update - Resolve async dependencies with a clean builder pattern
Installation
Add both packages to your pubspec.yaml:
yaml
dependencies:
dependy: ^1.8.0
dependy_flutter: ^1.8.0Then fetch:
bash
flutter pub getImport
dart
import 'package:dependy/dependy.dart';
import 'package:dependy_flutter/dependy_flutter.dart';Next Steps
- Scoping: Why and when to scope dependencies in Flutter
- API Reference: All widgets, mixins, and functions
- Flutter Examples: Step-by-step Flutter examples
