fix delay format

This commit is contained in:
ashrafzarkanisala
2024-07-01 20:16:00 +03:00
parent 16a336ab09
commit 4b6d82812d
3 changed files with 3 additions and 5 deletions
@@ -95,7 +95,7 @@ class CustomBottomSheetWidget extends StatelessWidget {
deviceName: 'Delay The Action',
icon: '',
operationName: 'Delay The Action',
code: 'delay',
code: '',
functionValue: 0,
operationalValues: [
SceneOperationalValue(icon: '', value: 0),
@@ -1,9 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:syncrow_app/features/app_layout/bloc/home_cubit.dart';
import 'package:syncrow_app/features/scene/bloc/create_scene/create_scene_bloc.dart';
import 'package:syncrow_app/features/scene/bloc/scene_bloc/scene_bloc.dart';
import 'package:syncrow_app/features/scene/bloc/scene_bloc/scene_event.dart';
import 'package:syncrow_app/features/scene/helper/scene_logic_helper.dart';
import 'package:syncrow_app/features/shared_widgets/default_button.dart';
import 'package:syncrow_app/features/shared_widgets/text_widgets/body_large.dart';
@@ -33,7 +33,8 @@ class ThenAddedTasksContainer extends StatelessWidget
@override
Widget build(BuildContext context) {
String operationValue = '';
if (taskItem.code.contains('countdown')) {
if (taskItem.code.contains('countdown') ||
taskItem.deviceId.contains('delay')) {
final functionValue =
taskItem.functionValue ?? taskItem.operationalValues.first.value;
final duration =