mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-27 03:27:55 +00:00
garage wizard
This commit is contained in:
@@ -21,15 +21,14 @@ class GarageWizard extends StatelessWidget {
|
||||
return DefaultScaffold(
|
||||
title: 'Garage Door Opener',
|
||||
child: BlocProvider(
|
||||
create: (context) =>
|
||||
GarageDoorBloc( GDId: device?.uuid ?? '')
|
||||
..add(InitialWizardEvent()),
|
||||
create: (context) => GarageDoorBloc(GDId: device?.uuid ?? '')
|
||||
..add(InitialWizardEvent()),
|
||||
child: BlocBuilder<GarageDoorBloc, GarageDoorSensorState>(
|
||||
builder: (context, state) {
|
||||
bool allSwitchesOn = false;
|
||||
|
||||
if (state is UpdateGroupState) {
|
||||
groupGarageModel = state.oneGangList;
|
||||
groupGarageModel = state.garageList;
|
||||
allSwitchesOn = state.allSwitches;
|
||||
}
|
||||
return state is LoadingInitialState
|
||||
|
||||
Reference in New Issue
Block a user