mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 19:47:54 +00:00
Initialized Auth pages for future work
Implemented Login functionality
This commit is contained in:
@@ -9,10 +9,10 @@ class LightsCubit extends Cubit<LightsState> {
|
||||
static LightsCubit get(context) => BlocProvider.of(context);
|
||||
|
||||
Map<int, LightMode> lightModes = {
|
||||
0: LightMode.Doze,
|
||||
1: LightMode.Relax,
|
||||
2: LightMode.Reading,
|
||||
3: LightMode.Energizing,
|
||||
0: LightMode.doze,
|
||||
1: LightMode.relax,
|
||||
2: LightMode.reading,
|
||||
3: LightMode.energizing,
|
||||
};
|
||||
|
||||
setLightingMode(LightModel light, LightMode mode) {
|
||||
@@ -55,8 +55,8 @@ class LightsCubit extends Cubit<LightsState> {
|
||||
}
|
||||
|
||||
enum LightMode {
|
||||
Doze,
|
||||
Relax,
|
||||
Reading,
|
||||
Energizing,
|
||||
doze,
|
||||
relax,
|
||||
reading,
|
||||
energizing,
|
||||
}
|
||||
|
||||
@@ -12,10 +12,11 @@ class CategoriesView extends StatelessWidget {
|
||||
create: (context) => DevicesCubit(),
|
||||
child: BlocBuilder<DevicesCubit, DevicesState>(
|
||||
builder: (context, state) => Container(
|
||||
padding: const EdgeInsets.all(8),
|
||||
width: MediaQuery.sizeOf(context).width,
|
||||
height: MediaQuery.sizeOf(context).height,
|
||||
child: const DevicesViewBody()),
|
||||
padding: const EdgeInsets.all(8),
|
||||
width: MediaQuery.sizeOf(context).width,
|
||||
height: MediaQuery.sizeOf(context).height,
|
||||
child: const DevicesViewBody(),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user