You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
591 B

import 'package:flutter/material.dart';
/// Global notifier for theme mode changes.
/// This allows the app to react to dark mode setting changes.
class ThemeNotifier extends ValueNotifier<ThemeMode> {
ThemeNotifier() : super(ThemeMode.light);
/// Loads the theme mode from storage and updates the value.
Future<void> loadThemeMode() async {
// This will be called from MyApp to load the initial theme
// The actual loading is done in RelayManagementScreen
}
/// Sets the theme mode and notifies listeners.
void setThemeMode(ThemeMode mode) {
value = mode;
}
}

Powered by TurnKey Linux.