[UNTESTED] Fixes notifiers and adds some additional methods. Adds tests.

Changes:
// ArcaneEnvironment
breaking: context.read<ArcaneEnvironment>() -> ArcaneEnvironment.of(context)
breaking: context.read<ArcaneEnvironment>().state -> ArcaneEnvironment.of(context).environment;

// Feature flag service
added: reset()

// Logging service
added: registerInterface()
added: unregisterInterfaces()
added: unregisterAllInterfaces()

// ArcaneReactiveTheme
fixed: currentMode, dark, light now actually emit new values when changed
added: getters for lightTheme, darkTheme, and systemTheme
TODO: test systemTheme

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2025-04-04 17:08:06 +02:00
parent b129639f1f
commit ac82e93b9d
16 changed files with 1233 additions and 89 deletions
+5 -3
View File
@@ -12,14 +12,16 @@ environment:
flutter: ">=1.17.0"
dependencies:
arcane_helper_utils: ^1.2.6
collection: ^1.18.0
arcane_helper_utils: ^1.3.2
collection: ^1.19.0
flutter:
sdk: flutter
flutter_bloc: ^9.0.0
flutter_bloc: ^9.1.0
result_monad: ^2.3.2
dev_dependencies:
arcane_analysis: ^1.0.3
build_runner: ^2.4.1
flutter_test:
sdk: flutter
mockito: ^5.4.5