2025-12-03 13:42:14 +01:00
|
|
|
class AppRoutes {
|
2026-01-15 09:20:45 +01:00
|
|
|
static const splash = '/splash';
|
2025-12-03 13:42:14 +01:00
|
|
|
static const login = '/login';
|
2026-01-27 02:28:52 +03:00
|
|
|
static const scaTreezor = '/sca_treezor';
|
2025-12-03 16:43:24 +01:00
|
|
|
static const signup = '/signup';
|
2025-12-03 13:42:14 +01:00
|
|
|
static const onboarding = '/onboarding';
|
2025-12-09 10:08:36 +01:00
|
|
|
static const linkPhone = '/request_link_phone';
|
|
|
|
|
static const phoneCode = '/verify_link_phone_code';
|
2026-01-20 07:37:29 +01:00
|
|
|
static const deviceSetup = '/device_setup';
|
2025-12-03 13:42:14 +01:00
|
|
|
static const recoverPassword = '/recover_password';
|
|
|
|
|
|
|
|
|
|
static const dashboard = '/dashboard';
|
|
|
|
|
|
|
|
|
|
static const dashboardHome = '$dashboard/home';
|
2026-03-05 12:53:39 +01:00
|
|
|
static const dashboardHomeChildWallet =
|
|
|
|
|
'$dashboardHome/child-wallet/:childWalletId';
|
|
|
|
|
|
|
|
|
|
static String childWallet(String childWalletId) =>
|
|
|
|
|
'$dashboardHome/child-wallet/$childWalletId';
|
|
|
|
|
static String allowance(String childWalletId) =>
|
|
|
|
|
'${childWallet(childWalletId)}/allowance';
|
|
|
|
|
static String deposit(String childWalletId) =>
|
|
|
|
|
'${childWallet(childWalletId)}/deposit';
|
|
|
|
|
static String lockCard(String childWalletId) =>
|
|
|
|
|
'${childWallet(childWalletId)}/lock-card';
|
|
|
|
|
static String limits(String childWalletId) =>
|
|
|
|
|
'${childWallet(childWalletId)}/limits';
|
|
|
|
|
static String goals(String childWalletId) =>
|
|
|
|
|
'${childWallet(childWalletId)}/goals';
|
|
|
|
|
static String extract(String childWalletId) =>
|
|
|
|
|
'${childWallet(childWalletId)}/extract';
|
2026-03-12 22:42:38 +01:00
|
|
|
static String editChildProfile(String childWalletId) =>
|
|
|
|
|
'${childWallet(childWalletId)}/edit';
|
2026-03-24 13:42:09 +01:00
|
|
|
static String setCardPin(String childWalletId) =>
|
|
|
|
|
'${childWallet(childWalletId)}/set-pin';
|
|
|
|
|
static String changeCardPin(String childWalletId) =>
|
|
|
|
|
'${childWallet(childWalletId)}/change-pin';
|
2026-03-24 20:20:54 +01:00
|
|
|
static String renewCard(String childWalletId) =>
|
|
|
|
|
'${childWallet(childWalletId)}/renew-card';
|
2025-12-03 13:42:14 +01:00
|
|
|
static const dashboardActivity = '$dashboard/activity';
|
|
|
|
|
static const dashboardNotifications = '$dashboard/notifications';
|
|
|
|
|
static const dashboardProfile = '$dashboard/profile';
|
2026-02-12 14:32:57 +01:00
|
|
|
static const dashboardProfileSettings = '$dashboardProfile/settings';
|
2026-02-17 20:54:14 +01:00
|
|
|
static const dashboardProfilePayout = '$dashboardProfile/payout';
|
2026-03-12 22:42:38 +01:00
|
|
|
static const dashboardProfileEditPersonalData =
|
|
|
|
|
'$dashboardProfileSettings/edit-personal-data';
|
2026-03-05 12:53:39 +01:00
|
|
|
static const dashboardProfilePaymentMethods =
|
|
|
|
|
'$dashboardProfileSettings/payment-methods';
|
2026-02-12 16:01:57 +01:00
|
|
|
|
|
|
|
|
static const hipayWebView = '/hipay_webview';
|
2026-01-27 12:45:25 +01:00
|
|
|
|
|
|
|
|
static const legacy = '/legacy';
|
2026-03-05 15:42:34 +01:00
|
|
|
static const legacyDashboard = '$legacy/dashboard';
|
|
|
|
|
|
|
|
|
|
static const controlPanel = '$legacyDashboard/control_panel';
|
|
|
|
|
static const customerService = '$controlPanel/customer_service';
|
2026-04-22 20:21:35 +02:00
|
|
|
static const deviceNotifications = '$controlPanel/notifications';
|
2026-01-27 12:45:25 +01:00
|
|
|
|
2026-03-05 15:42:34 +01:00
|
|
|
static const deviceManagement = '$legacyDashboard/device_management';
|
2026-03-09 02:28:31 +01:00
|
|
|
static const legacyLocation = '$legacyDashboard/location';
|
2026-03-16 08:37:52 +01:00
|
|
|
static const scheduledActivities = '$deviceManagement/scheduled_activities';
|
2026-03-05 15:42:34 +01:00
|
|
|
static const contacts = '$deviceManagement/contacts';
|
2026-03-16 08:37:52 +01:00
|
|
|
static const editContact = '$contacts/edit/:contactId';
|
|
|
|
|
|
|
|
|
|
static String editContactPath(String contactId) =>
|
|
|
|
|
'$contacts/edit/$contactId';
|
|
|
|
|
static const health = '$deviceManagement/health';
|
2026-03-05 15:42:34 +01:00
|
|
|
static const remoteConnection = '$deviceManagement/remote_connection';
|
|
|
|
|
static const locateDevice = '$deviceManagement/locate_device';
|
2026-03-10 16:08:33 +01:00
|
|
|
static const rewards = '$deviceManagement/rewards';
|
2026-03-16 08:37:52 +01:00
|
|
|
static const activityMeter = '$deviceManagement/activity_meter';
|
|
|
|
|
static const appsUse = '$deviceManagement/apps_use';
|
2026-04-26 05:13:01 +02:00
|
|
|
static const installedApps = '$deviceManagement/installed_apps';
|
|
|
|
|
static const appUsageSchedules = '$installedApps/schedules';
|
2026-03-22 04:01:09 +01:00
|
|
|
static const volumeControl = '$deviceManagement/volume_control';
|
2026-04-16 13:54:13 +02:00
|
|
|
static const doNotDisturb = '$deviceManagement/do_not_disturb';
|
2026-03-22 05:50:20 +01:00
|
|
|
static const callHistory = '$deviceManagement/call_history';
|
2026-03-24 11:25:45 +01:00
|
|
|
static const backgroundImage = '$deviceManagement/background_image';
|
2026-01-28 17:36:01 +01:00
|
|
|
|
2026-03-06 00:44:12 +01:00
|
|
|
static const legacyLogin = '$legacy/login';
|
|
|
|
|
static const legacySignup = '$legacy/signup';
|
|
|
|
|
static const legacyOnboarding = '$legacy/onboarding';
|
|
|
|
|
static const legacyLinkPhone = '$legacy/request_link_phone';
|
|
|
|
|
static const legacyPhoneCode = '$legacy/verify_link_phone_code';
|
|
|
|
|
static const legacyDeviceSetup = '$legacy/device_setup';
|
|
|
|
|
static const legacyRecoverPassword = '$legacy/recover_password';
|
|
|
|
|
|
2026-03-05 15:42:34 +01:00
|
|
|
static const accountSettings = '$controlPanel/account_settings';
|
2026-02-02 15:14:44 +01:00
|
|
|
static const personalData = '$accountSettings/personal_data';
|
2026-02-23 09:46:41 +01:00
|
|
|
static const changePassword = '$accountSettings/change_password';
|
2026-02-02 15:14:44 +01:00
|
|
|
static const linkedDevices = '$accountSettings/linked_devices';
|
2026-02-03 10:57:57 +01:00
|
|
|
static const appUsers = '$accountSettings/app_users';
|
2026-02-26 17:01:19 +01:00
|
|
|
static const deleteAccount = '$accountSettings/delete_account';
|
2026-03-12 17:40:06 +01:00
|
|
|
|
|
|
|
|
static const settings = '$controlPanel/settings';
|
refactor(legacy): migrate theming to Material 3 + SfColors extension
Replace the ThemePort/ThemeCode abstraction (GetIt-registered adapter)
with a Riverpod-driven Material 3 ColorScheme, an SfColors ThemeExtension
for brand tokens, and a user-facing appearance selector for light/dark/
system modes. Persisted via SharedPreferences, reacts to system
brightness changes. Payments mode keeps the existing ThemePort API.
Highlights
- New legacy_theme package: LegacyAppTheme (light/dark), LegacyColorSchemes,
SfColors ThemeExtension, LegacyThemePreferences, LegacyThemeNotifier,
LegacyThemeSelector. Timeframe-based variants scaffolded but disabled.
- New /legacy/dashboard/control_panel/settings/appearance route + screen.
- MaterialApp.router picks the legacy theme only when isLegacyMode.
- ~90 ThemeCode.* usages migrated to colorScheme.* / context.sfColors.*.
- 25 widgets dropped the 'ThemePort theme' constructor param.
- ~145 hardcoded colors migrated (exact hex 1:1, grey.shade tiers,
destructive red -> colorScheme.error, background whites -> surface).
Content-over-color whites, transparents, and brand semantic reds/
oranges/greens intentionally preserved.
- sf_localizations updated with appearance / appearanceDescription keys
in all six locales.
2026-04-19 04:47:22 +02:00
|
|
|
static const appearance = '$settings/appearance';
|
2026-03-12 17:40:06 +01:00
|
|
|
static const alarm = '$settings/alarm';
|
|
|
|
|
static const appStore = '$settings/app_store';
|
|
|
|
|
static const battery = '$settings/battery';
|
|
|
|
|
static const blockPhone = '$settings/block_phone';
|
|
|
|
|
static const disableFunctions = '$settings/disable_functions';
|
|
|
|
|
static const language = '$settings/language';
|
|
|
|
|
static const remoteManagement = '$settings/remote_management';
|
|
|
|
|
static const remoteOnOff = '$settings/remote_on_off';
|
2026-03-25 05:03:40 +01:00
|
|
|
static const alerts = '$settings/alerts';
|
2026-03-12 17:40:06 +01:00
|
|
|
static const sosContacts = '$settings/sos_agenda';
|
|
|
|
|
static const sound = '$settings/sound';
|
|
|
|
|
static const syncClock = '$settings/sync_clock';
|
|
|
|
|
static const timezone = '$settings/timezone';
|
|
|
|
|
static const wifiSettings = '$settings/wifi_settings';
|
2025-12-03 13:42:14 +01:00
|
|
|
}
|