mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-16 01:56:24 +00:00
push ac functions and gang switches functions
This commit is contained in:
@ -14,10 +14,10 @@ class ScenesAndAutomations extends StatelessWidget {
|
||||
return BlocProvider(
|
||||
create: (context) => RoutineBloc()
|
||||
..add(
|
||||
LoadScenes(spaceId),
|
||||
const LoadScenes(spaceId),
|
||||
)
|
||||
..add(
|
||||
LoadAutomation(spaceId),
|
||||
const LoadAutomation(spaceId),
|
||||
),
|
||||
child: BlocBuilder<RoutineBloc, RoutineState>(
|
||||
builder: (context, state) {
|
||||
@ -27,11 +27,10 @@ class ScenesAndAutomations extends StatelessWidget {
|
||||
spacing: 10,
|
||||
runSpacing: 10,
|
||||
children: scenes.asMap().entries.map((entry) {
|
||||
final index = entry.key;
|
||||
final scene = entry.value;
|
||||
return DraggableCard(
|
||||
imagePath: Assets.logo,
|
||||
title: scene.name ?? '',
|
||||
title: scene.name,
|
||||
);
|
||||
}).toList(),
|
||||
);
|
||||
|
Reference in New Issue
Block a user