create routine dialog flow

This commit is contained in:
mohammad
2025-03-24 13:57:53 +03:00
parent 7e1c2ba712
commit 7e06dd76cf
17 changed files with 863 additions and 239 deletions

View File

@ -109,7 +109,7 @@ class _FetchRoutineScenesState extends State<FetchRoutineScenesAutomation>
);
}),
),
const SizedBox(height: 15),
const SizedBox(height: 10),
Text(
"Automations",
style: Theme.of(context).textTheme.titleLarge?.copyWith(
@ -117,7 +117,7 @@ class _FetchRoutineScenesState extends State<FetchRoutineScenesAutomation>
fontWeight: FontWeight.bold,
),
),
const SizedBox(height: 10),
const SizedBox(height: 5),
if (state.automations.isEmpty)
Expanded(
child: Text(
@ -130,7 +130,7 @@ class _FetchRoutineScenesState extends State<FetchRoutineScenesAutomation>
if (state.automations.isNotEmpty)
ConstrainedBox(
constraints: BoxConstraints(
maxHeight: isSmallScreenSize(context) ? 190 : 200,
maxHeight: isSmallScreenSize(context) ? 185 : 192,
maxWidth: MediaQuery.sizeOf(context).width * 0.7),
child: ListView.builder(
scrollDirection: Axis.horizontal,
@ -149,16 +149,17 @@ class _FetchRoutineScenesState extends State<FetchRoutineScenesAutomation>
// BlocProvider.of<RoutineBloc>(context)
context.read<RoutineBloc>().add(
UpdateAutomationStatus(
automationId:
state.automations[index].id,
automationStatusUpdate:
AutomationStatusUpdate(
spaceUuid: state
.automations[index]
.spaceId,
isEnable: v),
communityId:
'aff21a57-2f91-4e5c-b99b-0182c3ab65a9'),
automationId:
state.automations[index].id,
automationStatusUpdate:
AutomationStatusUpdate(
spaceUuid: state
.automations[index]
.spaceId,
isEnable: v),
communityId: state
.automations[index].communityId,
),
);
},
status: state.automations[index].status,