diff --git a/lib/features/app_layout/bloc/home_cubit.dart b/lib/features/app_layout/bloc/home_cubit.dart index 5d87f26..6734c36 100644 --- a/lib/features/app_layout/bloc/home_cubit.dart +++ b/lib/features/app_layout/bloc/home_cubit.dart @@ -349,47 +349,47 @@ class HomeCubit extends Cubit { // ), // onPressed: () {}, // ), - // IconButton( - // icon: const Icon( - // Icons.add, - // size: 32, - // ), - // style: ButtonStyle( - // foregroundColor: WidgetStateProperty.all(ColorsManager.textPrimaryColor), - // ), - // onPressed: () { - // Navigator.pushNamed( - // NavigationService.navigatorKey.currentContext!, - // Routes.sceneTasksRoute, - // arguments: SceneSettingsRouteArguments( - // sceneType: '', - // sceneId: '', - // sceneName: '', - // ), - // ); - // NavigationService.navigatorKey.currentContext! - // .read() - // .add(const ClearTaskListEvent()); - // NavigationService.navigatorKey.currentContext! - // .read() - // .add(const SceneTypeEvent(CreateSceneEnum.none)); - // NavigationService.navigatorKey.currentContext! - // .read() - // .add(const SmartSceneClearEvent()); - // BlocProvider.of(NavigationService.navigatorKey.currentState!.context) - // .add(ResetEffectivePeriod()); - // }, - // ), - // IconButton( - // icon: const Icon( - // Icons.more_vert, - // size: 28, - // ), - // style: ButtonStyle( - // foregroundColor: WidgetStateProperty.all(ColorsManager.textPrimaryColor), - // ), - // onPressed: () {}, - // ), + IconButton( + icon: const Icon( + Icons.add, + size: 32, + ), + style: ButtonStyle( + foregroundColor: WidgetStateProperty.all(ColorsManager.textPrimaryColor), + ), + onPressed: () { + Navigator.pushNamed( + NavigationService.navigatorKey.currentContext!, + Routes.sceneTasksRoute, + arguments: SceneSettingsRouteArguments( + sceneType: '', + sceneId: '', + sceneName: '', + ), + ); + NavigationService.navigatorKey.currentContext! + .read() + .add(const ClearTaskListEvent()); + NavigationService.navigatorKey.currentContext! + .read() + .add(const SceneTypeEvent(CreateSceneEnum.none)); + NavigationService.navigatorKey.currentContext! + .read() + .add(const SmartSceneClearEvent()); + BlocProvider.of(NavigationService.navigatorKey.currentState!.context) + .add(ResetEffectivePeriod()); + }, + ), + IconButton( + icon: const Icon( + Icons.more_vert, + size: 28, + ), + style: ButtonStyle( + foregroundColor: WidgetStateProperty.all(ColorsManager.textPrimaryColor), + ), + onPressed: () {}, + ), ], 'Menu': [ IconButton(