push ac functions and gang switches functions

This commit is contained in:
ashrafzarkanisala
2024-11-21 00:50:06 +03:00
parent 57b8f6b03e
commit 4441878bdd
27 changed files with 1739 additions and 188 deletions

View File

@ -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(),
);