Releases
v0.3.0
Compare
Sorry, something went wrong.
No results found
v0.3.0 — Zero External State Management
Changed
Removed flutter_bloc dependency — replaced FaceDetectionBloc with FaceDetectionController (extends ChangeNotifier). No external state management dependency required.
Removed bloc_test dev dependency — tests now use standard test() with stream collection instead of blocTest<>.
Removed event pattern — replaced add(Event) dispatch with direct methods: initializeCamera(), pause(), resume(), close().
Renamed FaceDetectionBlocProvider → FaceDetectionProvider — a lightweight InheritedWidget for dependency injection.
Renamed isBlocInitializeAbove → isControllerProvidedAbove.
Widget internals — BlocConsumer replaced with ListenableBuilder.
State file is now a standalone import (no longer a part file).
Migration (from 0.2.x)
Replace FaceDetectionBloc with FaceDetectionController.
Replace FaceDetectionBlocProvider(bloc: ...) with FaceDetectionProvider(controller: ...).
Replace bloc.add(const InitializeCam()) with controller.initializeCamera().
Replace bloc.add(const PauseDetection()) with controller.pause().
Replace bloc.add(const ResumeDetection()) with controller.resume().
Replace isBlocInitializeAbove with isControllerProvidedAbove.
Remove flutter_bloc from your app's pubspec.yaml.
You can’t perform that action at this time.