mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 13:47:55 +00:00
push put api
This commit is contained in:
@@ -46,7 +46,9 @@ class DeviceFunctionsView extends StatelessWidget
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
context.read<CreateSceneBloc>().add(AddTaskEvent());
|
||||
context
|
||||
.read<CreateSceneBloc>()
|
||||
.add(const AddTaskEvent(updateTaskListFromTemp: true));
|
||||
Navigator.popUntil(context, (route) {
|
||||
return route.settings.name == Routes.sceneTasksRoute;
|
||||
});
|
||||
|
||||
@@ -64,7 +64,10 @@ class SceneTasksView extends StatelessWidget {
|
||||
left: 40,
|
||||
child: SizedBox(
|
||||
width: context.width * 0.8,
|
||||
child: const CreateSceneSaveButton(),
|
||||
child: CreateSceneSaveButton(
|
||||
sceneName: sceneSettings.sceneName,
|
||||
sceneId: sceneSettings.sceneId,
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
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/widgets/scene_view_widget/scene_grid_view.dart';
|
||||
|
||||
Reference in New Issue
Block a user