update theme selection

This commit is contained in:
Phuoc Nguyen
2025-12-01 11:31:26 +07:00
parent 4ecb236532
commit 250c453413
18 changed files with 1351 additions and 304 deletions

View File

@@ -51,6 +51,7 @@ import 'package:worker/features/showrooms/presentation/pages/design_request_crea
import 'package:worker/features/showrooms/presentation/pages/design_request_detail_page.dart';
import 'package:worker/features/showrooms/presentation/pages/model_house_detail_page.dart';
import 'package:worker/features/showrooms/presentation/pages/model_houses_page.dart';
import 'package:worker/features/account/presentation/pages/theme_settings_page.dart';
/// Router Provider
///
@@ -484,6 +485,14 @@ final routerProvider = Provider<GoRouter>((ref) {
MaterialPage(key: state.pageKey, child: const ChangePasswordPage()),
),
// Theme Settings Route
GoRoute(
path: RouteNames.themeSettings,
name: RouteNames.themeSettings,
pageBuilder: (context, state) =>
MaterialPage(key: state.pageKey, child: const ThemeSettingsPage()),
),
// Chat List Route
GoRoute(
path: RouteNames.chat,
@@ -631,6 +640,7 @@ class RouteNames {
static const String addresses = '$account/addresses';
static const String addressForm = '$addresses/form';
static const String changePassword = '$account/change-password';
static const String themeSettings = '$account/theme-settings';
static const String settings = '$account/settings';
// Promotions & Notifications Routes