Added example project

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2024-09-18 10:39:46 +02:00
parent af6194608d
commit e6b2442eea
15 changed files with 536 additions and 2 deletions
@@ -38,6 +38,7 @@ class ArcaneReactiveTheme extends ArcaneService {
/// Returns the current light theme `ThemeData`.
ThemeData get light => _lightTheme;
/// A listenable that notifies listeners when the syste theme mode changes.
ValueListenable<ThemeMode> get systemTheme =>
ValueNotifier<ThemeMode>(_isDark ? ThemeMode.dark : ThemeMode.light);