force_inject_provider 0.1.0
force_inject_provider: ^0.1.0 copied to clipboard
Provider integration for ForceInject — a lightweight dependency injection container for Dart and Flutter.
📱 minimal_provider_di #
This example demonstrates how to use force_inject_provider with Flutter's provider
package.
🔍 What it shows #
- Creating a scoped
ServiceScope
withProviderScope
- Injecting a
ChangeNotifier
-based ViewModel - Using
ProviderNotifierBuilder
to react to state changes - Automatically disposing scoped instances
📂 Where to find it #
👉 View example/minimal_provider_di
▶️ Run it #
cd example/minimal_provider_di
flutter pub get
flutter run