1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
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/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<AppState>((ref) => AppState.splash);
final vehicleProvider = StateNotifierProvider<VehicleNotifier, Vehicle>((ref) {
return VehicleNotifier(const Vehicle.initial());
});
final signalsProvider = StateNotifierProvider<SignalNotifier, Signals>((ref) {
return SignalNotifier(const Signals.initial());
});
final unitStateProvider = StateNotifierProvider<UnitsNotifier, Units>((ref) {
return UnitsNotifier(const Units.initial());
});
final audioStateProvider = StateNotifierProvider<AudioNotifier, Audio>((ref) {
return AudioNotifier(const Audio.initial());
});
final usersProvider = StateNotifierProvider<UsersNotifier, Users>((ref) {
return UsersNotifier(Users.initial());
});
final hybridtateProvider = StateNotifierProvider<HybridNotifier, Hybrid>((ref) {
return HybridNotifier(const Hybrid.initial());
});
final currentTimeProvider =
StateNotifierProvider<CurrentTimeNotifier, DateTime>((ref) {
return CurrentTimeNotifier();
});
|