mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-23 09:27:56 +00:00
fix delay format
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user