From f656ec81949f1f2c5eef573df32adb4be500d274 Mon Sep 17 00:00:00 2001 From: abdellah-darni Date: Thu, 28 May 2026 16:32:54 +0100 Subject: [PATCH] Bump version to 2.0.24+25 and disable developer features - Update version to 2.0.24+25 in `pubspec.yaml`. - Comment out "Dev" tab and associated routes in `main_shell.dart` and `app_router.dart`. - Remove placeholder notification button from `home_header.dart`. --- .../deepdame/lib/core/routing/app_router.dart | 45 +++++++++---------- .../presentation/widgets/home_header.dart | 6 --- .../lib/shared/widgets/main_shell.dart | 10 ++--- client/deepdame/pubspec.yaml | 2 +- 4 files changed, 27 insertions(+), 36 deletions(-) diff --git a/client/deepdame/lib/core/routing/app_router.dart b/client/deepdame/lib/core/routing/app_router.dart index 94964c7..b1a3ee0 100644 --- a/client/deepdame/lib/core/routing/app_router.dart +++ b/client/deepdame/lib/core/routing/app_router.dart @@ -5,9 +5,7 @@ import 'package:deepdame/features/auth/register_screen.dart'; import 'package:deepdame/features/auth/validate_email.dart'; import 'package:deepdame/features/banned/banned_screen.dart'; import 'package:deepdame/features/chat/chat_screen.dart'; -import 'package:deepdame/features/dev/dev_screen.dart'; import 'package:deepdame/features/dev/test/dev_chat_probe_screen.dart'; -import 'package:deepdame/features/dev/test/dev_swirl_shader_screen.dart'; import 'package:deepdame/features/friends/friends_screen.dart'; import 'package:deepdame/features/game/presentaion/screens/ai_setup_screen.dart'; import 'package:deepdame/features/game/presentaion/screens/game_over_screen.dart'; @@ -22,7 +20,6 @@ import 'package:deepdame/features/profile/profile_screen.dart'; import 'package:deepdame/features/settings/settings_screen.dart'; import 'package:deepdame/features/settings/theme_picker_screen.dart'; import 'package:deepdame/features/splash/splash_screen.dart'; -import 'package:deepdame/features/theme_test/theme_test_screen.dart'; import 'package:deepdame/features/user/presentation/user_screen.dart'; import 'package:deepdame/shared/widgets/main_shell.dart'; import 'package:flutter/material.dart'; @@ -200,27 +197,27 @@ final appRouter = GoRouter( ), ], ), - StatefulShellBranch( - routes: [ - GoRoute( - name: 'dev', - path: '/dev', - builder: (context, state) => const DevScreen(), - routes: [ - GoRoute( - name: 'dev-theme-test', - path: 'theme', - builder: (context, state) => const ThemeTestScreen(), - ), - GoRoute( - name: 'dev-swirl-shader', - path: 'swirl', - builder: (_, _) => const DevSwirlShaderScreen(), - ), - ], - ), - ], - ), + // StatefulShellBranch( + // routes: [ + // GoRoute( + // name: 'dev', + // path: '/dev', + // builder: (context, state) => const DevScreen(), + // routes: [ + // GoRoute( + // name: 'dev-theme-test', + // path: 'theme', + // builder: (context, state) => const ThemeTestScreen(), + // ), + // GoRoute( + // name: 'dev-swirl-shader', + // path: 'swirl', + // builder: (_, _) => const DevSwirlShaderScreen(), + // ), + // ], + // ), + // ], + // ), ], ), ], diff --git a/client/deepdame/lib/features/home/presentation/widgets/home_header.dart b/client/deepdame/lib/features/home/presentation/widgets/home_header.dart index 72f0a11..0108798 100644 --- a/client/deepdame/lib/features/home/presentation/widgets/home_header.dart +++ b/client/deepdame/lib/features/home/presentation/widgets/home_header.dart @@ -92,12 +92,6 @@ class HomeHeader extends ConsumerWidget { ), ), const Spacer(), - _HeaderIconButton( - icon: Icons.notifications_outlined, - onPressed: () => ScaffoldMessenger.of(context).showSnackBar( - const SnackBar(content: Text('Notifications coming soon')), - ), - ), const SizedBox(width: 10), _HeaderIconButton( icon: Icons.settings_outlined, diff --git a/client/deepdame/lib/shared/widgets/main_shell.dart b/client/deepdame/lib/shared/widgets/main_shell.dart index 27c2125..a851f92 100644 --- a/client/deepdame/lib/shared/widgets/main_shell.dart +++ b/client/deepdame/lib/shared/widgets/main_shell.dart @@ -26,11 +26,11 @@ class MainShell extends ConsumerWidget { icon: Icons.person_outline, activeIcon: Icons.person, ), - _TabItem( - label: 'Dev', - icon: Icons.developer_mode_outlined, - activeIcon: Icons.developer_mode, - ), + // _TabItem( + // label: 'Dev', + // icon: Icons.developer_mode_outlined, + // activeIcon: Icons.developer_mode, + // ), ]; @override diff --git a/client/deepdame/pubspec.yaml b/client/deepdame/pubspec.yaml index 0ed5de5..78a2e04 100644 --- a/client/deepdame/pubspec.yaml +++ b/client/deepdame/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 2.0.23+24 +version: 2.0.24+25 environment: sdk: ^3.10.4