import 'package:flutter_ics_homescreen/data/data_providers/hybrid_notifier.dart'; import 'package:flutter_ics_homescreen/data/data_providers/signal_notifier.dart'; import 'package:flutter_ics_homescreen/data/data_providers/time_notifier.dart'; import 'package:flutter_ics_homescreen/data/data_providers/units_notifier.dart'; import 'package:flutter_ics_homescreen/data/data_providers/audio_notifier.dart'; import 'package:flutter_ics_homescreen/data/data_providers/users_notifier.dart'; import 'package:flutter_ics_homescreen/data/data_providers/val_client.dart'; import 'package:flutter_ics_homescreen/export.dart'; import '../models/users.dart'; import 'vehicle_notifier.dart'; enum AppState { home, dashboard, hvac, apps, mediaPlayer, settings, splash, dateTime, bluetooth, wifi, wired, audioSettings, profiles, newProfile, units, versionInfo, weather, distanceUnit, tempUnit, clock, date, time, year } final appProvider = StateProvider((ref) => AppState.splash); final valClientProvider = Provider((ref) { KuksaConfig config = ref.watch(appConfigProvider).kuksaConfig; return ValClient(config: config, ref: ref); }); final vehicleProvider = NotifierProvider(VehicleNotifier.new); final signalsProvider = StateNotifierProvider((ref) { return SignalNotifier(const Signals.initial()); }); final unitStateProvider = StateNotifierProvider((ref) { return UnitsNotifier(const Units.initial()); }); final audioStateProvider = NotifierProvider(AudioNotifier.new); final usersProvider = StateNotifierProvider((ref) { return UsersNotifier(Users.initial()); }); final hybridStateProvider = StateNotifierProvider((ref) { return HybridNotifier(const Hybrid.initial()); }); final currentTimeProvider = StateNotifierProvider((ref) { return CurrentTimeNotifier(); });