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 { ThemeNotifier() : super(ThemeMode.light); /// Loads the theme mode from storage and updates the value. Future 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; } }