mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-17 02:25:16 +00:00
hide SceneSettings
This commit is contained in:
@ -460,45 +460,43 @@ class HomeCubit extends Cubit<HomeState> {
|
|||||||
// ),
|
// ),
|
||||||
// onPressed: () {},
|
// onPressed: () {},
|
||||||
// ),
|
// ),
|
||||||
// HomeCubit.permissionModel!.scene!.visible == true
|
manageScene? IconButton(
|
||||||
// ?
|
icon: const Icon(
|
||||||
IconButton(
|
Icons.add,
|
||||||
icon: const Icon(
|
size: 32,
|
||||||
Icons.add,
|
),
|
||||||
size: 32,
|
style: ButtonStyle(
|
||||||
),
|
foregroundColor:
|
||||||
style: ButtonStyle(
|
WidgetStateProperty.all(ColorsManager.textPrimaryColor),
|
||||||
foregroundColor:
|
),
|
||||||
WidgetStateProperty.all(ColorsManager.textPrimaryColor),
|
onPressed: () {
|
||||||
),
|
Navigator.pushNamed(
|
||||||
onPressed: () {
|
NavigationService.navigatorKey.currentContext!,
|
||||||
Navigator.pushNamed(
|
Routes.sceneTasksRoute,
|
||||||
NavigationService.navigatorKey.currentContext!,
|
arguments: SceneSettingsRouteArguments(
|
||||||
Routes.sceneTasksRoute,
|
sceneType: '',
|
||||||
arguments: SceneSettingsRouteArguments(
|
sceneId: '',
|
||||||
sceneType: '',
|
sceneName: '',
|
||||||
sceneId: '',
|
),
|
||||||
sceneName: '',
|
);
|
||||||
),
|
NavigationService.navigatorKey.currentContext!
|
||||||
);
|
.read<CreateSceneBloc>()
|
||||||
NavigationService.navigatorKey.currentContext!
|
.add(const ClearTaskListEvent());
|
||||||
.read<CreateSceneBloc>()
|
NavigationService.navigatorKey.currentContext!
|
||||||
.add(const ClearTaskListEvent());
|
.read<CreateSceneBloc>()
|
||||||
NavigationService.navigatorKey.currentContext!
|
.add(const SceneTypeEvent(CreateSceneEnum.none));
|
||||||
.read<CreateSceneBloc>()
|
NavigationService.navigatorKey.currentContext!
|
||||||
.add(const SceneTypeEvent(CreateSceneEnum.none));
|
.read<SmartSceneSelectBloc>()
|
||||||
NavigationService.navigatorKey.currentContext!
|
.add(const SmartSceneClearEvent());
|
||||||
.read<SmartSceneSelectBloc>()
|
BlocProvider.of<EffectPeriodBloc>(
|
||||||
.add(const SmartSceneClearEvent());
|
NavigationService.navigatorKey.currentState!.context)
|
||||||
BlocProvider.of<EffectPeriodBloc>(
|
.add(ResetEffectivePeriod());
|
||||||
NavigationService.navigatorKey.currentState!.context)
|
NavigationService.navigatorKey.currentContext!
|
||||||
.add(ResetEffectivePeriod());
|
.read<CreateSceneBloc>()
|
||||||
NavigationService.navigatorKey.currentContext!
|
.add(const ClearTabToRunSetting());
|
||||||
.read<CreateSceneBloc>()
|
},
|
||||||
.add(const ClearTabToRunSetting());
|
)
|
||||||
},
|
: const SizedBox(),
|
||||||
)
|
|
||||||
// : const SizedBox(),
|
|
||||||
// IconButton(
|
// IconButton(
|
||||||
// icon: const Icon(
|
// icon: const Icon(
|
||||||
// Icons.more_vert,
|
// Icons.more_vert,
|
||||||
|
Reference in New Issue
Block a user