From 12edcd094095dbc43ef0e575fa64205349e99269 Mon Sep 17 00:00:00 2001 From: aitorarana Date: Tue, 27 Jan 2026 12:45:25 +0100 Subject: [PATCH] added legacy and legacy_dashboard_shell modules --- .idea/modules.xml | 5 +- .../mobile_app/lib/navigation/app_router.dart | 23 +- apps/mobile_app/pubspec.yaml | 4 +- melos_sf-app-platform.iml | 9 + .../presentation/onboarding_screen.dart | 4 +- modules/auth/pubspec_overrides.yaml | 28 - modules/legacy/.gitignore | 48 + modules/legacy/.metadata | 10 + modules/legacy/README.md | 11 + modules/legacy/analysis_options.yaml | 4 + modules/legacy/legacy.iml | 14 + modules/legacy/melos_legacy.iml | 26 + .../lib/legacy_dashboard_builder.dart | 1 + modules/legacy/modules/hub/.gitignore | 45 + modules/legacy/modules/hub/.metadata | 45 + modules/legacy/modules/hub/README.md | 16 + .../legacy/modules/hub/analysis_options.yaml | 28 + modules/legacy/modules/hub/lib/hub.dart | 1 + .../datasource/hub_remote_datasource.dart | 0 .../hub_remote_datasource_impl.dart | 0 .../models/get_devices_response_model.dart | 0 .../get_devices_response_model.freezed.dart | 0 .../models/get_devices_response_model.g.dart | 0 .../latest_positions_response_model.dart | 0 ...test_positions_response_model.freezed.dart | 0 .../latest_positions_response_model.g.dart | 0 .../repositories/hub_repository_impl.dart | 0 .../domain/repositories/hub_repository.dart | 0 .../hub_remote_datasource_provier.dart | 0 .../providers/hub_repository_provider.dart | 0 .../hub/domain/entities/device_entity.dart | 0 .../entities/get_devices_request_entity.dart | 0 .../get_devices_request_entity.freezed.dart | 0 .../hub/domain/entities/position_entity.dart | 0 .../hub/domain/get_devices_use_case.dart | 0 .../hub/domain/get_devices_use_case_impl.dart | 0 .../domain/get_latest_positions_use_case.dart | 0 .../get_latest_positions_use_case_impl.dart | 0 .../hub/lib/src/features/hub/hub_builder.dart | 0 .../features/hub/presentation/hub_screen.dart | 6 +- .../get_devices_use_case_provider.dart | 0 ...et_latest_positions_use_case_provider.dart | 0 .../presentation/state/hub_view_model.dart | 0 .../presentation/state/hub_view_state.dart | 0 .../state/hub_view_state.freezed.dart | 0 modules/legacy/modules/hub/pubspec.lock | 1206 +++++++++++++++++ modules/legacy/modules/hub/pubspec.yaml | 114 ++ .../legacy/modules/hub/pubspec_overrides.yaml | 26 + .../modules/legacy_dashboard_shell/.gitignore | 31 + .../modules/legacy_dashboard_shell/.metadata | 10 + .../legacy_dashboard_shell/CHANGELOG.md | 3 + .../modules/legacy_dashboard_shell/LICENSE | 1 + .../modules/legacy_dashboard_shell}/README.md | 0 .../analysis_options.yaml | 4 + .../lib/legacy_dashboard_builder.dart | 18 + .../lib/legacy_dashboard_shell.dart | 2 + .../legacy_main_shell_screen.dart | 61 + .../legacy_main_shell_view_model.dart | 13 + .../legacy_main_shell_view_state.dart | 14 + .../legacy_main_shell_view_state.freezed.dart | 280 ++++ .../legacy_dashboard_shell/pubspec.yaml | 77 ++ .../pubspec_overrides.yaml | 28 + modules/legacy/pubspec.lock | 213 +++ modules/legacy/pubspec.yaml | 87 ++ packages/navigation/lib/app_routes.dart | 7 +- packages/sf_localizations/assets/l10n/en.json | 5 +- packages/sf_localizations/assets/l10n/es.json | 11 +- .../lib/src/generated/i18n.dart | 3 + 68 files changed, 2496 insertions(+), 46 deletions(-) delete mode 100644 modules/auth/pubspec_overrides.yaml create mode 100644 modules/legacy/.gitignore create mode 100644 modules/legacy/.metadata create mode 100644 modules/legacy/README.md create mode 100644 modules/legacy/analysis_options.yaml create mode 100644 modules/legacy/legacy.iml create mode 100644 modules/legacy/melos_legacy.iml create mode 100644 modules/legacy/modules/dashboard_shell/lib/legacy_dashboard_builder.dart create mode 100644 modules/legacy/modules/hub/.gitignore create mode 100644 modules/legacy/modules/hub/.metadata create mode 100644 modules/legacy/modules/hub/README.md create mode 100644 modules/legacy/modules/hub/analysis_options.yaml create mode 100644 modules/legacy/modules/hub/lib/hub.dart rename modules/{ => legacy/modules}/hub/lib/src/core/data/datasource/hub_remote_datasource.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/core/data/datasource/hub_remote_datasource_impl.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/core/data/models/get_devices_response_model.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/core/data/models/get_devices_response_model.freezed.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/core/data/models/get_devices_response_model.g.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/core/data/models/latest_positions_response_model.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/core/data/models/latest_positions_response_model.freezed.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/core/data/models/latest_positions_response_model.g.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/core/data/repositories/hub_repository_impl.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/core/domain/repositories/hub_repository.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/core/providers/hub_remote_datasource_provier.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/core/providers/hub_repository_provider.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/domain/entities/device_entity.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/domain/entities/get_devices_request_entity.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/domain/entities/get_devices_request_entity.freezed.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/domain/entities/position_entity.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/domain/get_devices_use_case.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/domain/get_devices_use_case_impl.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/domain/get_latest_positions_use_case.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/domain/get_latest_positions_use_case_impl.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/hub_builder.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/presentation/hub_screen.dart (97%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/presentation/providers/get_devices_use_case_provider.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/presentation/providers/get_latest_positions_use_case_provider.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/presentation/state/hub_view_model.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/presentation/state/hub_view_state.dart (100%) rename modules/{ => legacy/modules}/hub/lib/src/features/hub/presentation/state/hub_view_state.freezed.dart (100%) create mode 100644 modules/legacy/modules/hub/pubspec.lock create mode 100644 modules/legacy/modules/hub/pubspec.yaml create mode 100644 modules/legacy/modules/hub/pubspec_overrides.yaml create mode 100644 modules/legacy/modules/legacy_dashboard_shell/.gitignore create mode 100644 modules/legacy/modules/legacy_dashboard_shell/.metadata create mode 100644 modules/legacy/modules/legacy_dashboard_shell/CHANGELOG.md create mode 100644 modules/legacy/modules/legacy_dashboard_shell/LICENSE rename modules/{dashboard_shell => legacy/modules/legacy_dashboard_shell}/README.md (100%) create mode 100644 modules/legacy/modules/legacy_dashboard_shell/analysis_options.yaml create mode 100644 modules/legacy/modules/legacy_dashboard_shell/lib/legacy_dashboard_builder.dart create mode 100644 modules/legacy/modules/legacy_dashboard_shell/lib/legacy_dashboard_shell.dart create mode 100644 modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_screen.dart create mode 100644 modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_view_model.dart create mode 100644 modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_view_state.dart create mode 100644 modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_view_state.freezed.dart create mode 100644 modules/legacy/modules/legacy_dashboard_shell/pubspec.yaml create mode 100644 modules/legacy/modules/legacy_dashboard_shell/pubspec_overrides.yaml create mode 100644 modules/legacy/pubspec.lock create mode 100644 modules/legacy/pubspec.yaml diff --git a/.idea/modules.xml b/.idea/modules.xml index 97af5312..cfa0d987 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -7,9 +7,12 @@ - + + + + diff --git a/apps/mobile_app/lib/navigation/app_router.dart b/apps/mobile_app/lib/navigation/app_router.dart index 65b5aed0..485f4469 100644 --- a/apps/mobile_app/lib/navigation/app_router.dart +++ b/apps/mobile_app/lib/navigation/app_router.dart @@ -1,4 +1,5 @@ import 'package:auth/auth.dart'; +import 'package:legacy_dashboard_shell/legacy_dashboard_builder.dart'; import 'package:dashboard_shell/dashboard_builder.dart'; import 'package:flutter/material.dart'; import 'package:get_it/get_it.dart'; @@ -17,7 +18,7 @@ late final GoRouter appRouter; void configureAppRouter() { appRouter = GoRouter( navigatorKey: rootNavigatorKey, - initialLocation: AppRoutes.splash, + initialLocation: AppRoutes.dashboardHub, debugLogDiagnostics: true, routes: [ GoRoute( @@ -25,11 +26,23 @@ void configureAppRouter() { name: 'splash', pageBuilder: SplashBuilder().buildPage, ), - GoRoute( - path: AppRoutes.hub, - name: 'hub', - pageBuilder: HubBuilder().buildPage, + StatefulShellRoute.indexedStack( + builder: (context, state, navShell) { + return LegacyDashboardBuilder().build(context, navShell); + }, + branches: [ + StatefulShellBranch( + routes: [ + GoRoute( + path: AppRoutes.dashboardHub, + name: 'hub', + pageBuilder: const HubBuilder().buildPage, + ), + ], + ), + ], ), + GoRoute( path: AppRoutes.login, name: 'login', diff --git a/apps/mobile_app/pubspec.yaml b/apps/mobile_app/pubspec.yaml index 356c20c0..9fdc39d3 100644 --- a/apps/mobile_app/pubspec.yaml +++ b/apps/mobile_app/pubspec.yaml @@ -42,13 +42,15 @@ dependencies: home: path: ../../modules/home hub: - path: ../../modules/hub + path: ../../modules/legacy/modules/hub profile: path: ../../modules/profile notifications: path: ../../modules/notifications dashboard_shell: path: ../../modules/dashboard_shell + legacy_dashboard_shell: + path: ../../modules/legacy/modules/legacy_dashboard_shell splash: path: ../../modules/splash #packages dependencies go here diff --git a/melos_sf-app-platform.iml b/melos_sf-app-platform.iml index 1ff30704..531e8329 100644 --- a/melos_sf-app-platform.iml +++ b/melos_sf-app-platform.iml @@ -13,6 +13,15 @@ + + + + + + + + + diff --git a/modules/auth/lib/src/features/onboarding/presentation/onboarding_screen.dart b/modules/auth/lib/src/features/onboarding/presentation/onboarding_screen.dart index e50606b3..1ad3fdc1 100644 --- a/modules/auth/lib/src/features/onboarding/presentation/onboarding_screen.dart +++ b/modules/auth/lib/src/features/onboarding/presentation/onboarding_screen.dart @@ -32,7 +32,7 @@ class OnboardingScreen extends ConsumerWidget { void goToNext() { if (isLast) { - navigationContract.goTo(AppRoutes.hub); + navigationContract.goTo(AppRoutes.linkPhone); } else { pageController.nextPage( duration: const Duration(milliseconds: 400), @@ -111,7 +111,7 @@ class OnboardingScreen extends ConsumerWidget { ? const SizedBox.shrink() : TextButton( onPressed: () => - navigationContract.goTo(AppRoutes.hub), + navigationContract.goTo(AppRoutes.linkPhone), child: Text( context.translate(I18n.skip), style: AppFonts.stolzlStyle( diff --git a/modules/auth/pubspec_overrides.yaml b/modules/auth/pubspec_overrides.yaml deleted file mode 100644 index c26aef41..00000000 --- a/modules/auth/pubspec_overrides.yaml +++ /dev/null @@ -1,28 +0,0 @@ -# melos_managed_dependency_overrides: home -# melos_managed_dependency_overrides: home -# melos_managed_dependency_overrides: dashboard_shell,design_system,home,notifications,profile,sf_shared,navigation,utils,sf_localizations,fonts,sf_infrastructure -dependency_overrides: - dashboard_shell: - path: ../dashboard_shell - design_system: - path: ../../packages/design_system - fonts: - path: ../../packages/fonts - home: - path: ..\\home - hub: - path: ../hub - navigation: - path: ../../packages/navigation - notifications: - path: ../notifications - profile: - path: ../profile - sf_infrastructure: - path: ../../packages/sf_infrastructure - sf_localizations: - path: ../../packages/sf_localizations - sf_shared: - path: ../../packages/sf_shared - utils: - path: ../../packages/utils diff --git a/modules/legacy/.gitignore b/modules/legacy/.gitignore new file mode 100644 index 00000000..5d88593f --- /dev/null +++ b/modules/legacy/.gitignore @@ -0,0 +1,48 @@ +.DS_Store +.dart_tool/ + +.pub/ + +.idea/ +.vagrant/ +.sconsign.dblite +.svn/ + +migrate_working_dir/ + +*.swp +profile + +DerivedData/ + +.generated/ + +*.pbxuser +*.mode1v3 +*.mode2v3 +*.perspectivev3 + +!default.pbxuser +!default.mode1v3 +!default.mode2v3 +!default.perspectivev3 + +xcuserdata + +*.moved-aside + +*.pyc +*sync/ +Icon? +.tags* + +build/ +.android/ +.ios/ +.flutter-plugins-dependencies + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json diff --git a/modules/legacy/.metadata b/modules/legacy/.metadata new file mode 100644 index 00000000..0556c982 --- /dev/null +++ b/modules/legacy/.metadata @@ -0,0 +1,10 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: "9f455d2486bcb28cad87b062475f42edc959f636" + channel: "stable" + +project_type: module diff --git a/modules/legacy/README.md b/modules/legacy/README.md new file mode 100644 index 00000000..d2b4e288 --- /dev/null +++ b/modules/legacy/README.md @@ -0,0 +1,11 @@ +# legacy + +A new Flutter project. + +## Getting Started + +For help getting started with Flutter development, view the online +[documentation](https://flutter.dev/). + +For instructions integrating Flutter modules to your existing applications, +see the [add-to-app documentation](https://flutter.dev/to/add-to-app). diff --git a/modules/legacy/analysis_options.yaml b/modules/legacy/analysis_options.yaml new file mode 100644 index 00000000..a5744c1c --- /dev/null +++ b/modules/legacy/analysis_options.yaml @@ -0,0 +1,4 @@ +include: package:flutter_lints/flutter.yaml + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/modules/legacy/legacy.iml b/modules/legacy/legacy.iml new file mode 100644 index 00000000..a461e815 --- /dev/null +++ b/modules/legacy/legacy.iml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/modules/legacy/melos_legacy.iml b/modules/legacy/melos_legacy.iml new file mode 100644 index 00000000..26a45e79 --- /dev/null +++ b/modules/legacy/melos_legacy.iml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/modules/legacy/modules/dashboard_shell/lib/legacy_dashboard_builder.dart b/modules/legacy/modules/dashboard_shell/lib/legacy_dashboard_builder.dart new file mode 100644 index 00000000..b9f78bb0 --- /dev/null +++ b/modules/legacy/modules/dashboard_shell/lib/legacy_dashboard_builder.dart @@ -0,0 +1 @@ +// TODO Implement this library. \ No newline at end of file diff --git a/modules/legacy/modules/hub/.gitignore b/modules/legacy/modules/hub/.gitignore new file mode 100644 index 00000000..3820a95c --- /dev/null +++ b/modules/legacy/modules/hub/.gitignore @@ -0,0 +1,45 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.build/ +.buildlog/ +.history +.svn/ +.swiftpm/ +migrate_working_dir/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins-dependencies +.pub-cache/ +.pub/ +/build/ +/coverage/ + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Android Studio will place build artifacts here +/android/app/debug +/android/app/profile +/android/app/release diff --git a/modules/legacy/modules/hub/.metadata b/modules/legacy/modules/hub/.metadata new file mode 100644 index 00000000..70a7d44a --- /dev/null +++ b/modules/legacy/modules/hub/.metadata @@ -0,0 +1,45 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: "9f455d2486bcb28cad87b062475f42edc959f636" + channel: "stable" + +project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: 9f455d2486bcb28cad87b062475f42edc959f636 + base_revision: 9f455d2486bcb28cad87b062475f42edc959f636 + - platform: android + create_revision: 9f455d2486bcb28cad87b062475f42edc959f636 + base_revision: 9f455d2486bcb28cad87b062475f42edc959f636 + - platform: ios + create_revision: 9f455d2486bcb28cad87b062475f42edc959f636 + base_revision: 9f455d2486bcb28cad87b062475f42edc959f636 + - platform: linux + create_revision: 9f455d2486bcb28cad87b062475f42edc959f636 + base_revision: 9f455d2486bcb28cad87b062475f42edc959f636 + - platform: macos + create_revision: 9f455d2486bcb28cad87b062475f42edc959f636 + base_revision: 9f455d2486bcb28cad87b062475f42edc959f636 + - platform: web + create_revision: 9f455d2486bcb28cad87b062475f42edc959f636 + base_revision: 9f455d2486bcb28cad87b062475f42edc959f636 + - platform: windows + create_revision: 9f455d2486bcb28cad87b062475f42edc959f636 + base_revision: 9f455d2486bcb28cad87b062475f42edc959f636 + + # User provided section + + # List of Local paths (relative to this file) that should be + # ignored by the migrate tool. + # + # Files that are not part of the templates will be ignored by default. + unmanaged_files: + - 'lib/main.dart' + - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/modules/legacy/modules/hub/README.md b/modules/legacy/modules/hub/README.md new file mode 100644 index 00000000..989a876e --- /dev/null +++ b/modules/legacy/modules/hub/README.md @@ -0,0 +1,16 @@ +# home + +A new Flutter project. + +## Getting Started + +This project is a starting point for a Flutter application. + +A few resources to get you started if this is your first Flutter project: + +- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) + +For help getting started with Flutter development, view the +[online documentation](https://docs.flutter.dev/), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/modules/legacy/modules/hub/analysis_options.yaml b/modules/legacy/modules/hub/analysis_options.yaml new file mode 100644 index 00000000..0d290213 --- /dev/null +++ b/modules/legacy/modules/hub/analysis_options.yaml @@ -0,0 +1,28 @@ +# This file configures the analyzer, which statically analyzes Dart code to +# check for errors, warnings, and lints. +# +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be +# invoked from the command line by running `flutter analyze`. + +# The following line activates a set of recommended lints for Flutter apps, +# packages, and plugins designed to encourage good coding practices. +include: package:flutter_lints/flutter.yaml + +linter: + # The lint rules applied to this project can be customized in the + # section below to disable rules from the `package:flutter_lints/flutter.yaml` + # included above or to enable additional rules. A list of all available lints + # and their documentation is published at https://dart.dev/lints. + # + # Instead of disabling a lint rule for the entire project in the + # section below, it can also be suppressed for a single line of code + # or a specific dart file by using the `// ignore: name_of_lint` and + # `// ignore_for_file: name_of_lint` syntax on the line or in the file + # producing the lint. + rules: + # avoid_print: false # Uncomment to disable the `avoid_print` rule + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/modules/legacy/modules/hub/lib/hub.dart b/modules/legacy/modules/hub/lib/hub.dart new file mode 100644 index 00000000..aecabee0 --- /dev/null +++ b/modules/legacy/modules/hub/lib/hub.dart @@ -0,0 +1 @@ +export 'src/features/hub/hub_builder.dart'; \ No newline at end of file diff --git a/modules/hub/lib/src/core/data/datasource/hub_remote_datasource.dart b/modules/legacy/modules/hub/lib/src/core/data/datasource/hub_remote_datasource.dart similarity index 100% rename from modules/hub/lib/src/core/data/datasource/hub_remote_datasource.dart rename to modules/legacy/modules/hub/lib/src/core/data/datasource/hub_remote_datasource.dart diff --git a/modules/hub/lib/src/core/data/datasource/hub_remote_datasource_impl.dart b/modules/legacy/modules/hub/lib/src/core/data/datasource/hub_remote_datasource_impl.dart similarity index 100% rename from modules/hub/lib/src/core/data/datasource/hub_remote_datasource_impl.dart rename to modules/legacy/modules/hub/lib/src/core/data/datasource/hub_remote_datasource_impl.dart diff --git a/modules/hub/lib/src/core/data/models/get_devices_response_model.dart b/modules/legacy/modules/hub/lib/src/core/data/models/get_devices_response_model.dart similarity index 100% rename from modules/hub/lib/src/core/data/models/get_devices_response_model.dart rename to modules/legacy/modules/hub/lib/src/core/data/models/get_devices_response_model.dart diff --git a/modules/hub/lib/src/core/data/models/get_devices_response_model.freezed.dart b/modules/legacy/modules/hub/lib/src/core/data/models/get_devices_response_model.freezed.dart similarity index 100% rename from modules/hub/lib/src/core/data/models/get_devices_response_model.freezed.dart rename to modules/legacy/modules/hub/lib/src/core/data/models/get_devices_response_model.freezed.dart diff --git a/modules/hub/lib/src/core/data/models/get_devices_response_model.g.dart b/modules/legacy/modules/hub/lib/src/core/data/models/get_devices_response_model.g.dart similarity index 100% rename from modules/hub/lib/src/core/data/models/get_devices_response_model.g.dart rename to modules/legacy/modules/hub/lib/src/core/data/models/get_devices_response_model.g.dart diff --git a/modules/hub/lib/src/core/data/models/latest_positions_response_model.dart b/modules/legacy/modules/hub/lib/src/core/data/models/latest_positions_response_model.dart similarity index 100% rename from modules/hub/lib/src/core/data/models/latest_positions_response_model.dart rename to modules/legacy/modules/hub/lib/src/core/data/models/latest_positions_response_model.dart diff --git a/modules/hub/lib/src/core/data/models/latest_positions_response_model.freezed.dart b/modules/legacy/modules/hub/lib/src/core/data/models/latest_positions_response_model.freezed.dart similarity index 100% rename from modules/hub/lib/src/core/data/models/latest_positions_response_model.freezed.dart rename to modules/legacy/modules/hub/lib/src/core/data/models/latest_positions_response_model.freezed.dart diff --git a/modules/hub/lib/src/core/data/models/latest_positions_response_model.g.dart b/modules/legacy/modules/hub/lib/src/core/data/models/latest_positions_response_model.g.dart similarity index 100% rename from modules/hub/lib/src/core/data/models/latest_positions_response_model.g.dart rename to modules/legacy/modules/hub/lib/src/core/data/models/latest_positions_response_model.g.dart diff --git a/modules/hub/lib/src/core/data/repositories/hub_repository_impl.dart b/modules/legacy/modules/hub/lib/src/core/data/repositories/hub_repository_impl.dart similarity index 100% rename from modules/hub/lib/src/core/data/repositories/hub_repository_impl.dart rename to modules/legacy/modules/hub/lib/src/core/data/repositories/hub_repository_impl.dart diff --git a/modules/hub/lib/src/core/domain/repositories/hub_repository.dart b/modules/legacy/modules/hub/lib/src/core/domain/repositories/hub_repository.dart similarity index 100% rename from modules/hub/lib/src/core/domain/repositories/hub_repository.dart rename to modules/legacy/modules/hub/lib/src/core/domain/repositories/hub_repository.dart diff --git a/modules/hub/lib/src/core/providers/hub_remote_datasource_provier.dart b/modules/legacy/modules/hub/lib/src/core/providers/hub_remote_datasource_provier.dart similarity index 100% rename from modules/hub/lib/src/core/providers/hub_remote_datasource_provier.dart rename to modules/legacy/modules/hub/lib/src/core/providers/hub_remote_datasource_provier.dart diff --git a/modules/hub/lib/src/core/providers/hub_repository_provider.dart b/modules/legacy/modules/hub/lib/src/core/providers/hub_repository_provider.dart similarity index 100% rename from modules/hub/lib/src/core/providers/hub_repository_provider.dart rename to modules/legacy/modules/hub/lib/src/core/providers/hub_repository_provider.dart diff --git a/modules/hub/lib/src/features/hub/domain/entities/device_entity.dart b/modules/legacy/modules/hub/lib/src/features/hub/domain/entities/device_entity.dart similarity index 100% rename from modules/hub/lib/src/features/hub/domain/entities/device_entity.dart rename to modules/legacy/modules/hub/lib/src/features/hub/domain/entities/device_entity.dart diff --git a/modules/hub/lib/src/features/hub/domain/entities/get_devices_request_entity.dart b/modules/legacy/modules/hub/lib/src/features/hub/domain/entities/get_devices_request_entity.dart similarity index 100% rename from modules/hub/lib/src/features/hub/domain/entities/get_devices_request_entity.dart rename to modules/legacy/modules/hub/lib/src/features/hub/domain/entities/get_devices_request_entity.dart diff --git a/modules/hub/lib/src/features/hub/domain/entities/get_devices_request_entity.freezed.dart b/modules/legacy/modules/hub/lib/src/features/hub/domain/entities/get_devices_request_entity.freezed.dart similarity index 100% rename from modules/hub/lib/src/features/hub/domain/entities/get_devices_request_entity.freezed.dart rename to modules/legacy/modules/hub/lib/src/features/hub/domain/entities/get_devices_request_entity.freezed.dart diff --git a/modules/hub/lib/src/features/hub/domain/entities/position_entity.dart b/modules/legacy/modules/hub/lib/src/features/hub/domain/entities/position_entity.dart similarity index 100% rename from modules/hub/lib/src/features/hub/domain/entities/position_entity.dart rename to modules/legacy/modules/hub/lib/src/features/hub/domain/entities/position_entity.dart diff --git a/modules/hub/lib/src/features/hub/domain/get_devices_use_case.dart b/modules/legacy/modules/hub/lib/src/features/hub/domain/get_devices_use_case.dart similarity index 100% rename from modules/hub/lib/src/features/hub/domain/get_devices_use_case.dart rename to modules/legacy/modules/hub/lib/src/features/hub/domain/get_devices_use_case.dart diff --git a/modules/hub/lib/src/features/hub/domain/get_devices_use_case_impl.dart b/modules/legacy/modules/hub/lib/src/features/hub/domain/get_devices_use_case_impl.dart similarity index 100% rename from modules/hub/lib/src/features/hub/domain/get_devices_use_case_impl.dart rename to modules/legacy/modules/hub/lib/src/features/hub/domain/get_devices_use_case_impl.dart diff --git a/modules/hub/lib/src/features/hub/domain/get_latest_positions_use_case.dart b/modules/legacy/modules/hub/lib/src/features/hub/domain/get_latest_positions_use_case.dart similarity index 100% rename from modules/hub/lib/src/features/hub/domain/get_latest_positions_use_case.dart rename to modules/legacy/modules/hub/lib/src/features/hub/domain/get_latest_positions_use_case.dart diff --git a/modules/hub/lib/src/features/hub/domain/get_latest_positions_use_case_impl.dart b/modules/legacy/modules/hub/lib/src/features/hub/domain/get_latest_positions_use_case_impl.dart similarity index 100% rename from modules/hub/lib/src/features/hub/domain/get_latest_positions_use_case_impl.dart rename to modules/legacy/modules/hub/lib/src/features/hub/domain/get_latest_positions_use_case_impl.dart diff --git a/modules/hub/lib/src/features/hub/hub_builder.dart b/modules/legacy/modules/hub/lib/src/features/hub/hub_builder.dart similarity index 100% rename from modules/hub/lib/src/features/hub/hub_builder.dart rename to modules/legacy/modules/hub/lib/src/features/hub/hub_builder.dart diff --git a/modules/hub/lib/src/features/hub/presentation/hub_screen.dart b/modules/legacy/modules/hub/lib/src/features/hub/presentation/hub_screen.dart similarity index 97% rename from modules/hub/lib/src/features/hub/presentation/hub_screen.dart rename to modules/legacy/modules/hub/lib/src/features/hub/presentation/hub_screen.dart index 1da55137..47eb7af8 100644 --- a/modules/hub/lib/src/features/hub/presentation/hub_screen.dart +++ b/modules/legacy/modules/hub/lib/src/features/hub/presentation/hub_screen.dart @@ -52,17 +52,17 @@ class HubScreen extends ConsumerWidget { children: [ AppSectionButton( onPressed: (){}, - icon: Icons.support_agent_outlined, + icon: SFIcons.customerService, text: I18n.customerService), SizedBox(height: SizeUtils.getByScreen(small: 8, big: 7)), AppSectionButton( onPressed: (){navigationContract.pushTo(AppRoutes.dashboardHome);}, - icon: Icons.payments_outlined, + icon: SFIcons.payments, text: I18n.sfPay), SizedBox(height: SizeUtils.getByScreen(small: 8, big: 7)), AppSectionButton( onPressed: (){}, - icon: Icons.menu_open_outlined, + icon: SFIcons.functions, text: I18n.functions), SizedBox(height: SizeUtils.getByScreen(small: 8, big: 7)), AppSectionButton( diff --git a/modules/hub/lib/src/features/hub/presentation/providers/get_devices_use_case_provider.dart b/modules/legacy/modules/hub/lib/src/features/hub/presentation/providers/get_devices_use_case_provider.dart similarity index 100% rename from modules/hub/lib/src/features/hub/presentation/providers/get_devices_use_case_provider.dart rename to modules/legacy/modules/hub/lib/src/features/hub/presentation/providers/get_devices_use_case_provider.dart diff --git a/modules/hub/lib/src/features/hub/presentation/providers/get_latest_positions_use_case_provider.dart b/modules/legacy/modules/hub/lib/src/features/hub/presentation/providers/get_latest_positions_use_case_provider.dart similarity index 100% rename from modules/hub/lib/src/features/hub/presentation/providers/get_latest_positions_use_case_provider.dart rename to modules/legacy/modules/hub/lib/src/features/hub/presentation/providers/get_latest_positions_use_case_provider.dart diff --git a/modules/hub/lib/src/features/hub/presentation/state/hub_view_model.dart b/modules/legacy/modules/hub/lib/src/features/hub/presentation/state/hub_view_model.dart similarity index 100% rename from modules/hub/lib/src/features/hub/presentation/state/hub_view_model.dart rename to modules/legacy/modules/hub/lib/src/features/hub/presentation/state/hub_view_model.dart diff --git a/modules/hub/lib/src/features/hub/presentation/state/hub_view_state.dart b/modules/legacy/modules/hub/lib/src/features/hub/presentation/state/hub_view_state.dart similarity index 100% rename from modules/hub/lib/src/features/hub/presentation/state/hub_view_state.dart rename to modules/legacy/modules/hub/lib/src/features/hub/presentation/state/hub_view_state.dart diff --git a/modules/hub/lib/src/features/hub/presentation/state/hub_view_state.freezed.dart b/modules/legacy/modules/hub/lib/src/features/hub/presentation/state/hub_view_state.freezed.dart similarity index 100% rename from modules/hub/lib/src/features/hub/presentation/state/hub_view_state.freezed.dart rename to modules/legacy/modules/hub/lib/src/features/hub/presentation/state/hub_view_state.freezed.dart diff --git a/modules/legacy/modules/hub/pubspec.lock b/modules/legacy/modules/hub/pubspec.lock new file mode 100644 index 00000000..636f3de1 --- /dev/null +++ b/modules/legacy/modules/hub/pubspec.lock @@ -0,0 +1,1206 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: transitive + description: + name: _fe_analyzer_shared + sha256: da0d9209ca76bde579f2da330aeb9df62b6319c834fa7baae052021b0462401f + url: "https://pub.dev" + source: hosted + version: "85.0.0" + analyzer: + dependency: transitive + description: + name: analyzer + sha256: f4ad0fea5f102201015c9aae9d93bc02f75dd9491529a8c21f88d17a8523d44c + url: "https://pub.dev" + source: hosted + version: "7.6.0" + analyzer_buffer: + dependency: transitive + description: + name: analyzer_buffer + sha256: f7833bee67c03c37241c67f8741b17cc501b69d9758df7a5a4a13ed6c947be43 + url: "https://pub.dev" + source: hosted + version: "0.1.10" + analyzer_plugin: + dependency: transitive + description: + name: analyzer_plugin + sha256: a5ab7590c27b779f3d4de67f31c4109dbe13dd7339f86461a6f2a8ab2594d8ce + url: "https://pub.dev" + source: hosted + version: "0.13.4" + args: + dependency: transitive + description: + name: args + sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 + url: "https://pub.dev" + source: hosted + version: "2.7.0" + async: + dependency: transitive + description: + name: async + sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" + url: "https://pub.dev" + source: hosted + version: "2.13.0" + auth: + dependency: "direct overridden" + description: + path: "../../../auth" + relative: true + source: path + version: "0.0.1" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + build: + dependency: transitive + description: + name: build + sha256: ce76b1d48875e3233fde17717c23d1f60a91cc631597e49a400c89b475395b1d + url: "https://pub.dev" + source: hosted + version: "3.1.0" + build_config: + dependency: transitive + description: + name: build_config + sha256: "4f64382b97504dc2fcdf487d5aae33418e08b4703fc21249e4db6d804a4d0187" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + build_daemon: + dependency: transitive + description: + name: build_daemon + sha256: bf05f6e12cfea92d3c09308d7bcdab1906cd8a179b023269eed00c071004b957 + url: "https://pub.dev" + source: hosted + version: "4.1.1" + build_resolvers: + dependency: transitive + description: + name: build_resolvers + sha256: d1d57f7807debd7349b4726a19fd32ec8bc177c71ad0febf91a20f84cd2d4b46 + url: "https://pub.dev" + source: hosted + version: "3.0.3" + build_runner: + dependency: "direct dev" + description: + name: build_runner + sha256: b24597fceb695969d47025c958f3837f9f0122e237c6a22cb082a5ac66c3ca30 + url: "https://pub.dev" + source: hosted + version: "2.7.1" + build_runner_core: + dependency: transitive + description: + name: build_runner_core + sha256: "066dda7f73d8eb48ba630a55acb50c4a84a2e6b453b1cb4567f581729e794f7b" + url: "https://pub.dev" + source: hosted + version: "9.3.1" + built_collection: + dependency: transitive + description: + name: built_collection + sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100" + url: "https://pub.dev" + source: hosted + version: "5.1.1" + built_value: + dependency: transitive + description: + name: built_value + sha256: "7931c90b84bc573fef103548e354258ae4c9d28d140e41961df6843c5d60d4d8" + url: "https://pub.dev" + source: hosted + version: "8.12.3" + characters: + dependency: transitive + description: + name: characters + sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 + url: "https://pub.dev" + source: hosted + version: "1.4.0" + checked_yaml: + dependency: transitive + description: + name: checked_yaml + sha256: "959525d3162f249993882720d52b7e0c833978df229be20702b33d48d91de70f" + url: "https://pub.dev" + source: hosted + version: "2.0.4" + ci: + dependency: transitive + description: + name: ci + sha256: "145d095ce05cddac4d797a158bc4cf3b6016d1fe63d8c3d2fbd7212590adca13" + url: "https://pub.dev" + source: hosted + version: "0.1.0" + cli_config: + dependency: transitive + description: + name: cli_config + sha256: ac20a183a07002b700f0c25e61b7ee46b23c309d76ab7b7640a028f18e4d99ec + url: "https://pub.dev" + source: hosted + version: "0.2.0" + cli_util: + dependency: transitive + description: + name: cli_util + sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c + url: "https://pub.dev" + source: hosted + version: "0.4.2" + clock: + dependency: transitive + description: + name: clock + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b + url: "https://pub.dev" + source: hosted + version: "1.1.2" + code_builder: + dependency: transitive + description: + name: code_builder + sha256: "6a6cab2ba4680d6423f34a9b972a4c9a94ebe1b62ecec4e1a1f2cba91fd1319d" + url: "https://pub.dev" + source: hosted + version: "4.11.1" + collection: + dependency: transitive + description: + name: collection + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" + url: "https://pub.dev" + source: hosted + version: "1.19.1" + convert: + dependency: transitive + description: + name: convert + sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68 + url: "https://pub.dev" + source: hosted + version: "3.1.2" + country_code_picker: + dependency: transitive + description: + name: country_code_picker + sha256: f0411f4833b6f98e8b7215f4fa3813bcc88e50f13925f70a170dbd36e3e447f5 + url: "https://pub.dev" + source: hosted + version: "3.4.1" + coverage: + dependency: transitive + description: + name: coverage + sha256: "5da775aa218eaf2151c721b16c01c7676fbfdd99cebba2bf64e8b807a28ff94d" + url: "https://pub.dev" + source: hosted + version: "1.15.0" + crypto: + dependency: transitive + description: + name: crypto + sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf + url: "https://pub.dev" + source: hosted + version: "3.0.7" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 + url: "https://pub.dev" + source: hosted + version: "1.0.8" + custom_lint: + dependency: transitive + description: + name: custom_lint + sha256: "78085fbe842de7c5bef92de811ca81536968dbcbbcdac5c316711add2d15e796" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + custom_lint_builder: + dependency: transitive + description: + name: custom_lint_builder + sha256: cc5532d5733d4eccfccaaec6070a1926e9f21e613d93ad0927fad020b95c9e52 + url: "https://pub.dev" + source: hosted + version: "0.8.0" + custom_lint_core: + dependency: transitive + description: + name: custom_lint_core + sha256: cc4684d22ca05bf0a4a51127e19a8aea576b42079ed2bc9e956f11aaebe35dd1 + url: "https://pub.dev" + source: hosted + version: "0.8.0" + custom_lint_visitor: + dependency: transitive + description: + name: custom_lint_visitor + sha256: "4a86a0d8415a91fbb8298d6ef03e9034dc8e323a599ddc4120a0e36c433983a2" + url: "https://pub.dev" + source: hosted + version: "1.0.0+7.7.0" + dart_earcut: + dependency: transitive + description: + name: dart_earcut + sha256: e485001bfc05dcbc437d7bfb666316182e3522d4c3f9668048e004d0eb2ce43b + url: "https://pub.dev" + source: hosted + version: "1.2.0" + dart_polylabel2: + dependency: transitive + description: + name: dart_polylabel2 + sha256: "7eeab15ce72894e4bdba6a8765712231fc81be0bd95247de4ad9966abc57adc6" + url: "https://pub.dev" + source: hosted + version: "1.0.0" + dart_style: + dependency: transitive + description: + name: dart_style + sha256: "8a0e5fba27e8ee025d2ffb4ee820b4e6e2cf5e4246a6b1a477eb66866947e0bb" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + dashboard_shell: + dependency: "direct main" + description: + path: "../../../dashboard_shell" + relative: true + source: path + version: "0.0.1" + design_system: + dependency: "direct main" + description: + path: "../../../../packages/design_system" + relative: true + source: path + version: "0.0.1" + diacritic: + dependency: transitive + description: + name: diacritic + sha256: "12981945ec38931748836cd76f2b38773118d0baef3c68404bdfde9566147876" + url: "https://pub.dev" + source: hosted + version: "0.1.6" + dio: + dependency: "direct main" + description: + name: dio + sha256: d90ee57923d1828ac14e492ca49440f65477f4bb1263575900be731a3dac66a9 + url: "https://pub.dev" + source: hosted + version: "5.9.0" + dio_web_adapter: + dependency: transitive + description: + name: dio_web_adapter + sha256: "7586e476d70caecaf1686d21eee7247ea43ef5c345eab9e0cc3583ff13378d78" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + equatable: + dependency: transitive + description: + name: equatable + sha256: "3e0141505477fd8ad55d6eb4e7776d3fe8430be8e497ccb1521370c3f21a3e2b" + url: "https://pub.dev" + source: hosted + version: "2.0.8" + fake_async: + dependency: transitive + description: + name: fake_async + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" + url: "https://pub.dev" + source: hosted + version: "1.3.3" + ffi: + dependency: transitive + description: + name: ffi + sha256: d07d37192dbf97461359c1518788f203b0c9102cfd2c35a716b823741219542c + url: "https://pub.dev" + source: hosted + version: "2.1.5" + file: + dependency: transitive + description: + name: file + sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 + url: "https://pub.dev" + source: hosted + version: "7.0.1" + fixnum: + dependency: transitive + description: + name: fixnum + sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be + url: "https://pub.dev" + source: hosted + version: "1.1.1" + fl_chart: + dependency: transitive + description: + name: fl_chart + sha256: "7ca9a40f4eb85949190e54087be8b4d6ac09dc4c54238d782a34cf1f7c011de9" + url: "https://pub.dev" + source: hosted + version: "1.1.1" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_lints: + dependency: "direct dev" + description: + name: flutter_lints + sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1" + url: "https://pub.dev" + source: hosted + version: "5.0.0" + flutter_map: + dependency: "direct main" + description: + name: flutter_map + sha256: "391e7dc95cc3f5190748210a69d4cfeb5d8f84dcdfa9c3235d0a9d7742ccb3f8" + url: "https://pub.dev" + source: hosted + version: "8.2.2" + flutter_riverpod: + dependency: "direct main" + description: + name: flutter_riverpod + sha256: "9e2d6907f12cc7d23a846847615941bddee8709bf2bfd274acdf5e80bcf22fde" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + flutter_svg: + dependency: "direct main" + description: + name: flutter_svg + sha256: "87fbd7c534435b6c5d9d98b01e1fd527812b82e68ddd8bd35fc45ed0fa8f0a95" + url: "https://pub.dev" + source: hosted + version: "2.2.3" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + fonts: + dependency: "direct main" + description: + path: "../../../../packages/fonts" + relative: true + source: path + version: "0.0.1" + freezed: + dependency: "direct main" + description: + name: freezed + sha256: "13065f10e135263a4f5a4391b79a8efc5fb8106f8dd555a9e49b750b45393d77" + url: "https://pub.dev" + source: hosted + version: "3.2.3" + freezed_annotation: + dependency: "direct main" + description: + name: freezed_annotation + sha256: "7294967ff0a6d98638e7acb774aac3af2550777accd8149c90af5b014e6d44d8" + url: "https://pub.dev" + source: hosted + version: "3.1.0" + frontend_server_client: + dependency: transitive + description: + name: frontend_server_client + sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 + url: "https://pub.dev" + source: hosted + version: "4.0.0" + get_it: + dependency: "direct main" + description: + name: get_it + sha256: "1d648d2dd2047d7f7450d5727ca24ee435f240385753d90b49650e3cdff32e56" + url: "https://pub.dev" + source: hosted + version: "9.2.0" + glob: + dependency: transitive + description: + name: glob + sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de + url: "https://pub.dev" + source: hosted + version: "2.1.3" + go_router: + dependency: "direct main" + description: + name: go_router + sha256: eff94d2a6fc79fa8b811dde79c7549808c2346037ee107a1121b4a644c745f2a + url: "https://pub.dev" + source: hosted + version: "17.0.1" + graphs: + dependency: transitive + description: + name: graphs + sha256: "741bbf84165310a68ff28fe9e727332eef1407342fca52759cb21ad8177bb8d0" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + home: + dependency: "direct overridden" + description: + path: "../../../home" + relative: true + source: path + version: "0.0.1" + hotreloader: + dependency: transitive + description: + name: hotreloader + sha256: bc167a1163807b03bada490bfe2df25b0d744df359227880220a5cbd04e5734b + url: "https://pub.dev" + source: hosted + version: "4.3.0" + http: + dependency: transitive + description: + name: http + sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412" + url: "https://pub.dev" + source: hosted + version: "1.6.0" + http_multi_server: + dependency: transitive + description: + name: http_multi_server + sha256: aa6199f908078bb1c5efb8d8638d4ae191aac11b311132c3ef48ce352fb52ef8 + url: "https://pub.dev" + source: hosted + version: "3.2.2" + http_parser: + dependency: transitive + description: + name: http_parser + sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" + url: "https://pub.dev" + source: hosted + version: "4.1.2" + intl: + dependency: transitive + description: + name: intl + sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" + url: "https://pub.dev" + source: hosted + version: "0.20.2" + io: + dependency: transitive + description: + name: io + sha256: dfd5a80599cf0165756e3181807ed3e77daf6dd4137caaad72d0b7931597650b + url: "https://pub.dev" + source: hosted + version: "1.0.5" + js: + dependency: transitive + description: + name: js + sha256: "53385261521cc4a0c4658fd0ad07a7d14591cf8fc33abbceae306ddb974888dc" + url: "https://pub.dev" + source: hosted + version: "0.7.2" + json_annotation: + dependency: "direct main" + description: + name: json_annotation + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" + url: "https://pub.dev" + source: hosted + version: "4.9.0" + json_serializable: + dependency: "direct main" + description: + name: json_serializable + sha256: c5b2ee75210a0f263c6c7b9eeea80553dbae96ea1bf57f02484e806a3ffdffa3 + url: "https://pub.dev" + source: hosted + version: "6.11.2" + latlong2: + dependency: "direct main" + description: + name: latlong2 + sha256: "98227922caf49e6056f91b6c56945ea1c7b166f28ffcd5fb8e72fc0b453cc8fe" + url: "https://pub.dev" + source: hosted + version: "0.9.1" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" + url: "https://pub.dev" + source: hosted + version: "11.0.2" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" + url: "https://pub.dev" + source: hosted + version: "3.0.10" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + lints: + dependency: transitive + description: + name: lints + sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7 + url: "https://pub.dev" + source: hosted + version: "5.1.1" + lists: + dependency: transitive + description: + name: lists + sha256: "4ca5c19ae4350de036a7e996cdd1ee39c93ac0a2b840f4915459b7d0a7d4ab27" + url: "https://pub.dev" + source: hosted + version: "1.0.1" + logger: + dependency: transitive + description: + name: logger + sha256: a7967e31b703831a893bbc3c3dd11db08126fe5f369b5c648a36f821979f5be3 + url: "https://pub.dev" + source: hosted + version: "2.6.2" + logging: + dependency: transitive + description: + name: logging + sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 + url: "https://pub.dev" + source: hosted + version: "1.3.0" + matcher: + dependency: transitive + description: + name: matcher + sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 + url: "https://pub.dev" + source: hosted + version: "0.12.17" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec + url: "https://pub.dev" + source: hosted + version: "0.11.1" + meta: + dependency: transitive + description: + name: meta + sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c + url: "https://pub.dev" + source: hosted + version: "1.16.0" + mgrs_dart: + dependency: transitive + description: + name: mgrs_dart + sha256: fb89ae62f05fa0bb90f70c31fc870bcbcfd516c843fb554452ab3396f78586f7 + url: "https://pub.dev" + source: hosted + version: "2.0.0" + mime: + dependency: transitive + description: + name: mime + sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6" + url: "https://pub.dev" + source: hosted + version: "2.0.0" + mockito: + dependency: transitive + description: + name: mockito + sha256: "2314cbe9165bcd16106513df9cf3c3224713087f09723b128928dc11a4379f99" + url: "https://pub.dev" + source: hosted + version: "5.5.0" + navigation: + dependency: "direct main" + description: + path: "../../../../packages/navigation" + relative: true + source: path + version: "0.0.1" + node_preamble: + dependency: transitive + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + notifications: + dependency: "direct overridden" + description: + path: "../../../notifications" + relative: true + source: path + version: "0.0.1" + package_config: + dependency: transitive + description: + name: package_config + sha256: f096c55ebb7deb7e384101542bfba8c52696c1b56fca2eb62827989ef2353bbc + url: "https://pub.dev" + source: hosted + version: "2.2.0" + path: + dependency: transitive + description: + name: path + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" + url: "https://pub.dev" + source: hosted + version: "1.9.1" + path_parsing: + dependency: transitive + description: + name: path_parsing + sha256: "883402936929eac138ee0a45da5b0f2c80f89913e6dc3bf77eb65b84b409c6ca" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + path_provider: + dependency: transitive + description: + name: path_provider + sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" + url: "https://pub.dev" + source: hosted + version: "2.1.5" + path_provider_android: + dependency: transitive + description: + name: path_provider_android + sha256: f2c65e21139ce2c3dad46922be8272bb5963516045659e71bb16e151c93b580e + url: "https://pub.dev" + source: hosted + version: "2.2.22" + path_provider_foundation: + dependency: transitive + description: + name: path_provider_foundation + sha256: "6d13aece7b3f5c5a9731eaf553ff9dcbc2eff41087fd2df587fd0fed9a3eb0c4" + url: "https://pub.dev" + source: hosted + version: "2.5.1" + path_provider_linux: + dependency: transitive + description: + name: path_provider_linux + sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 + url: "https://pub.dev" + source: hosted + version: "2.2.1" + path_provider_platform_interface: + dependency: transitive + description: + name: path_provider_platform_interface + sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + path_provider_windows: + dependency: transitive + description: + name: path_provider_windows + sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 + url: "https://pub.dev" + source: hosted + version: "2.3.0" + petitparser: + dependency: transitive + description: + name: petitparser + sha256: "1a97266a94f7350d30ae522c0af07890c70b8e62c71e8e3920d1db4d23c057d1" + url: "https://pub.dev" + source: hosted + version: "7.0.1" + platform: + dependency: transitive + description: + name: platform + sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" + url: "https://pub.dev" + source: hosted + version: "3.1.6" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" + url: "https://pub.dev" + source: hosted + version: "2.1.8" + pool: + dependency: transitive + description: + name: pool + sha256: "978783255c543aa3586a1b3c21f6e9d720eb315376a915872c61ef8b5c20177d" + url: "https://pub.dev" + source: hosted + version: "1.5.2" + profile: + dependency: "direct overridden" + description: + path: "../../../profile" + relative: true + source: path + version: "0.0.1" + proj4dart: + dependency: transitive + description: + name: proj4dart + sha256: c8a659ac9b6864aa47c171e78d41bbe6f5e1d7bd790a5814249e6b68bc44324e + url: "https://pub.dev" + source: hosted + version: "2.1.0" + pub_semver: + dependency: transitive + description: + name: pub_semver + sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585" + url: "https://pub.dev" + source: hosted + version: "2.2.0" + pubspec_parse: + dependency: transitive + description: + name: pubspec_parse + sha256: "0560ba233314abbed0a48a2956f7f022cce7c3e1e73df540277da7544cad4082" + url: "https://pub.dev" + source: hosted + version: "1.5.0" + riverpod: + dependency: transitive + description: + name: riverpod + sha256: c406de02bff19d920b832bddfb8283548bfa05ce41c59afba57ce643e116aa59 + url: "https://pub.dev" + source: hosted + version: "3.0.3" + riverpod_analyzer_utils: + dependency: transitive + description: + name: riverpod_analyzer_utils + sha256: a0f68adb078b790faa3c655110a017f9a7b7b079a57bbd40f540e80dce5fcd29 + url: "https://pub.dev" + source: hosted + version: "1.0.0-dev.7" + riverpod_annotation: + dependency: transitive + description: + name: riverpod_annotation + sha256: "7230014155777fc31ba3351bc2cb5a3b5717b11bfafe52b1553cb47d385f8897" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + riverpod_generator: + dependency: "direct dev" + description: + name: riverpod_generator + sha256: "49894543a42cf7a9954fc4e7366b6d3cb2e6ec0fa07775f660afcdd92d097702" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + riverpod_lint: + dependency: "direct dev" + description: + name: riverpod_lint + sha256: "7ef9c43469e9b5ac4e4c3b24d7c30642e47ce1b12cd7dcdd643534db0a72ed13" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + rxdart: + dependency: transitive + description: + name: rxdart + sha256: "5c3004a4a8dbb94bd4bf5412a4def4acdaa12e12f269737a5751369e12d1a962" + url: "https://pub.dev" + source: hosted + version: "0.28.0" + sf_infrastructure: + dependency: "direct main" + description: + path: "../../../../packages/sf_infrastructure" + relative: true + source: path + version: "0.0.1" + sf_localizations: + dependency: "direct main" + description: + path: "../../../../packages/sf_localizations" + relative: true + source: path + version: "0.0.1" + sf_shared: + dependency: "direct overridden" + description: + path: "../../../../packages/sf_shared" + relative: true + source: path + version: "0.0.1" + shelf: + dependency: transitive + description: + name: shelf + sha256: e7dd780a7ffb623c57850b33f43309312fc863fb6aa3d276a754bb299839ef12 + url: "https://pub.dev" + source: hosted + version: "1.4.2" + shelf_packages_handler: + dependency: transitive + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: transitive + description: + name: shelf_static + sha256: c87c3875f91262785dade62d135760c2c69cb217ac759485334c5857ad89f6e3 + url: "https://pub.dev" + source: hosted + version: "1.1.3" + shelf_web_socket: + dependency: transitive + description: + name: shelf_web_socket + sha256: "3632775c8e90d6c9712f883e633716432a27758216dfb61bd86a8321c0580925" + url: "https://pub.dev" + source: hosted + version: "3.0.0" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + source_gen: + dependency: transitive + description: + name: source_gen + sha256: "7b19d6ba131c6eb98bfcbf8d56c1a7002eba438af2e7ae6f8398b2b0f4f381e3" + url: "https://pub.dev" + source: hosted + version: "3.1.0" + source_helper: + dependency: transitive + description: + name: source_helper + sha256: "6a3c6cc82073a8797f8c4dc4572146114a39652851c157db37e964d9c7038723" + url: "https://pub.dev" + source: hosted + version: "1.3.8" + source_map_stack_trace: + dependency: transitive + description: + name: source_map_stack_trace + sha256: c0713a43e323c3302c2abe2a1cc89aa057a387101ebd280371d6a6c9fa68516b + url: "https://pub.dev" + source: hosted + version: "2.1.2" + source_maps: + dependency: transitive + description: + name: source_maps + sha256: "190222579a448b03896e0ca6eca5998fa810fda630c1d65e2f78b3f638f54812" + url: "https://pub.dev" + source: hosted + version: "0.10.13" + source_span: + dependency: transitive + description: + name: source_span + sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" + url: "https://pub.dev" + source: hosted + version: "1.10.1" + stack_trace: + dependency: transitive + description: + name: stack_trace + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" + url: "https://pub.dev" + source: hosted + version: "1.12.1" + state_notifier: + dependency: transitive + description: + name: state_notifier + sha256: b8677376aa54f2d7c58280d5a007f9e8774f1968d1fb1c096adcb4792fba29bb + url: "https://pub.dev" + source: hosted + version: "1.0.0" + stream_channel: + dependency: transitive + description: + name: stream_channel + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + stream_transform: + dependency: transitive + description: + name: stream_transform + sha256: ad47125e588cfd37a9a7f86c7d6356dde8dfe89d071d293f80ca9e9273a33871 + url: "https://pub.dev" + source: hosted + version: "2.1.1" + string_scanner: + dependency: transitive + description: + name: string_scanner + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" + url: "https://pub.dev" + source: hosted + version: "1.4.1" + term_glyph: + dependency: transitive + description: + name: term_glyph + sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" + url: "https://pub.dev" + source: hosted + version: "1.2.2" + test: + dependency: transitive + description: + name: test + sha256: "65e29d831719be0591f7b3b1a32a3cda258ec98c58c7b25f7b84241bc31215bb" + url: "https://pub.dev" + source: hosted + version: "1.26.2" + test_api: + dependency: transitive + description: + name: test_api + sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00" + url: "https://pub.dev" + source: hosted + version: "0.7.6" + test_core: + dependency: transitive + description: + name: test_core + sha256: "80bf5a02b60af04b09e14f6fe68b921aad119493e26e490deaca5993fef1b05a" + url: "https://pub.dev" + source: hosted + version: "0.6.11" + timing: + dependency: transitive + description: + name: timing + sha256: "62ee18aca144e4a9f29d212f5a4c6a053be252b895ab14b5821996cff4ed90fe" + url: "https://pub.dev" + source: hosted + version: "1.0.2" + typed_data: + dependency: transitive + description: + name: typed_data + sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 + url: "https://pub.dev" + source: hosted + version: "1.4.0" + unicode: + dependency: transitive + description: + name: unicode + sha256: "0f69e46593d65245774d4f17125c6084d2c20b4e473a983f6e21b7d7762218f1" + url: "https://pub.dev" + source: hosted + version: "0.3.1" + utils: + dependency: "direct main" + description: + path: "../../../../packages/utils" + relative: true + source: path + version: "0.0.1" + uuid: + dependency: transitive + description: + name: uuid + sha256: a11b666489b1954e01d992f3d601b1804a33937b5a8fe677bd26b8a9f96f96e8 + url: "https://pub.dev" + source: hosted + version: "4.5.2" + vector_graphics: + dependency: transitive + description: + name: vector_graphics + sha256: a4f059dc26fc8295b5921376600a194c4ec7d55e72f2fe4c7d2831e103d461e6 + url: "https://pub.dev" + source: hosted + version: "1.1.19" + vector_graphics_codec: + dependency: transitive + description: + name: vector_graphics_codec + sha256: "99fd9fbd34d9f9a32efd7b6a6aae14125d8237b10403b422a6a6dfeac2806146" + url: "https://pub.dev" + source: hosted + version: "1.1.13" + vector_graphics_compiler: + dependency: transitive + description: + name: vector_graphics_compiler + sha256: d354a7ec6931e6047785f4db12a1f61ec3d43b207fc0790f863818543f8ff0dc + url: "https://pub.dev" + source: hosted + version: "1.1.19" + vector_math: + dependency: transitive + description: + name: vector_math + sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b + url: "https://pub.dev" + source: hosted + version: "2.2.0" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60" + url: "https://pub.dev" + source: hosted + version: "15.0.2" + watcher: + dependency: transitive + description: + name: watcher + sha256: "1398c9f081a753f9226febe8900fce8f7d0a67163334e1c94a2438339d79d635" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + web: + dependency: transitive + description: + name: web + sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a" + url: "https://pub.dev" + source: hosted + version: "1.1.1" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "34d64019aa8e36bf9842ac014bb5d2f5586ca73df5e4d9bf5c936975cae6982c" + url: "https://pub.dev" + source: hosted + version: "1.0.1" + web_socket_channel: + dependency: transitive + description: + name: web_socket_channel + sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8 + url: "https://pub.dev" + source: hosted + version: "3.0.3" + webkit_inspection_protocol: + dependency: transitive + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + wkt_parser: + dependency: transitive + description: + name: wkt_parser + sha256: "8a555fc60de3116c00aad67891bcab20f81a958e4219cc106e3c037aa3937f13" + url: "https://pub.dev" + source: hosted + version: "2.0.0" + xdg_directories: + dependency: transitive + description: + name: xdg_directories + sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + xml: + dependency: transitive + description: + name: xml + sha256: "971043b3a0d3da28727e40ed3e0b5d18b742fa5a68665cca88e74b7876d5e025" + url: "https://pub.dev" + source: hosted + version: "6.6.1" + yaml: + dependency: transitive + description: + name: yaml + sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce + url: "https://pub.dev" + source: hosted + version: "3.1.3" +sdks: + dart: ">=3.9.2 <4.0.0" + flutter: ">=3.35.0" diff --git a/modules/legacy/modules/hub/pubspec.yaml b/modules/legacy/modules/hub/pubspec.yaml new file mode 100644 index 00000000..44a59922 --- /dev/null +++ b/modules/legacy/modules/hub/pubspec.yaml @@ -0,0 +1,114 @@ +name: hub +description: "A new Flutter project." +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. +# Read more about iOS versioning at +# 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: 1.0.0+1 + +environment: + sdk: ^3.9.2 + flutter: ">=1.17.0" + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + #modules dependencies go here + dashboard_shell: + path: ../../modules/dashboard_shell + #packages dependencies go here + design_system: + path: ../../../../packages/design_system + navigation: + path: ../../../../packages/navigation + sf_localizations: + path: ../../../../packages/sf_localizations + sf_infrastructure: + path: ../../../../packages/sf_infrastructure + utils: + path: ../../../../packages/utils + fonts: + path: ../../../../packages/fonts + #dependencies go here + flutter_svg: ^2.2.1 + get_it: ^9.0.5 + go_router: ^17.0.0 + flutter_riverpod: ^3.0.3 + freezed_annotation: ^3.1.0 + freezed: ^3.2.3 + dio: ^5.9.0 + json_annotation: ^4.9.0 + json_serializable: ^6.11.2 + flutter_map: ^8.2.2 + latlong2: ^0.9.1 + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.8 + +dev_dependencies: + flutter_test: + sdk: flutter + flutter_lints: ^5.0.0 + riverpod_generator: ^3.0.3 + build_runner: ^2.7.1 + riverpod_lint: ^3.0.3 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter packages. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + # To add assets to your application, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/to/resolution-aware-images + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/to/asset-from-package + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/to/font-from-package diff --git a/modules/legacy/modules/hub/pubspec_overrides.yaml b/modules/legacy/modules/hub/pubspec_overrides.yaml new file mode 100644 index 00000000..cf91bc8a --- /dev/null +++ b/modules/legacy/modules/hub/pubspec_overrides.yaml @@ -0,0 +1,26 @@ +# melos_managed_dependency_overrides: design_system,fonts,navigation,sf_infrastructure,sf_localizations,utils,auth,dashboard_shell,home,notifications,sf_shared,profile +dependency_overrides: + auth: + path: ..\\..\\..\\auth + dashboard_shell: + path: ..\\..\\..\\dashboard_shell + design_system: + path: ..\\..\\..\\..\\packages\\design_system + fonts: + path: ..\\..\\..\\..\\packages\\fonts + home: + path: ..\\..\\..\\home + navigation: + path: ..\\..\\..\\..\\packages\\navigation + notifications: + path: ..\\..\\..\\notifications + profile: + path: ..\\..\\..\\profile + sf_infrastructure: + path: ..\\..\\..\\..\\packages\\sf_infrastructure + sf_localizations: + path: ..\\..\\..\\..\\packages\\sf_localizations + sf_shared: + path: ..\\..\\..\\..\\packages\\sf_shared + utils: + path: ..\\..\\..\\..\\packages\\utils diff --git a/modules/legacy/modules/legacy_dashboard_shell/.gitignore b/modules/legacy/modules/legacy_dashboard_shell/.gitignore new file mode 100644 index 00000000..dd5eb989 --- /dev/null +++ b/modules/legacy/modules/legacy_dashboard_shell/.gitignore @@ -0,0 +1,31 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ +migrate_working_dir/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. +/pubspec.lock +**/doc/api/ +.dart_tool/ +.flutter-plugins-dependencies +/build/ +/coverage/ diff --git a/modules/legacy/modules/legacy_dashboard_shell/.metadata b/modules/legacy/modules/legacy_dashboard_shell/.metadata new file mode 100644 index 00000000..d7469f07 --- /dev/null +++ b/modules/legacy/modules/legacy_dashboard_shell/.metadata @@ -0,0 +1,10 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: "adc901062556672b4138e18a4dc62a4be8f4b3c2" + channel: "stable" + +project_type: package diff --git a/modules/legacy/modules/legacy_dashboard_shell/CHANGELOG.md b/modules/legacy/modules/legacy_dashboard_shell/CHANGELOG.md new file mode 100644 index 00000000..41cc7d81 --- /dev/null +++ b/modules/legacy/modules/legacy_dashboard_shell/CHANGELOG.md @@ -0,0 +1,3 @@ +## 0.0.1 + +* TODO: Describe initial release. diff --git a/modules/legacy/modules/legacy_dashboard_shell/LICENSE b/modules/legacy/modules/legacy_dashboard_shell/LICENSE new file mode 100644 index 00000000..ba75c69f --- /dev/null +++ b/modules/legacy/modules/legacy_dashboard_shell/LICENSE @@ -0,0 +1 @@ +TODO: Add your license here. diff --git a/modules/dashboard_shell/README.md b/modules/legacy/modules/legacy_dashboard_shell/README.md similarity index 100% rename from modules/dashboard_shell/README.md rename to modules/legacy/modules/legacy_dashboard_shell/README.md diff --git a/modules/legacy/modules/legacy_dashboard_shell/analysis_options.yaml b/modules/legacy/modules/legacy_dashboard_shell/analysis_options.yaml new file mode 100644 index 00000000..a5744c1c --- /dev/null +++ b/modules/legacy/modules/legacy_dashboard_shell/analysis_options.yaml @@ -0,0 +1,4 @@ +include: package:flutter_lints/flutter.yaml + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/modules/legacy/modules/legacy_dashboard_shell/lib/legacy_dashboard_builder.dart b/modules/legacy/modules/legacy_dashboard_shell/lib/legacy_dashboard_builder.dart new file mode 100644 index 00000000..1f889ef7 --- /dev/null +++ b/modules/legacy/modules/legacy_dashboard_shell/lib/legacy_dashboard_builder.dart @@ -0,0 +1,18 @@ +import 'package:legacy_dashboard_shell/legacy_dashboard_shell.dart'; +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; +import 'package:get_it/get_it.dart'; +import 'package:navigation/navigation.dart'; + +class LegacyDashboardBuilder { + const LegacyDashboardBuilder(); + + Widget build(BuildContext context, StatefulNavigationShell navShell) { + final NavigationContract navigationContract = GetIt.I(); + + return LegacyDashboardScreen( + navigationShell: navShell, + navigationContract: navigationContract, + ); + } +} diff --git a/modules/legacy/modules/legacy_dashboard_shell/lib/legacy_dashboard_shell.dart b/modules/legacy/modules/legacy_dashboard_shell/lib/legacy_dashboard_shell.dart new file mode 100644 index 00000000..5731b0ee --- /dev/null +++ b/modules/legacy/modules/legacy_dashboard_shell/lib/legacy_dashboard_shell.dart @@ -0,0 +1,2 @@ +export 'src/presentation/legacy_main_shell_screen.dart'; +export 'legacy_dashboard_builder.dart'; diff --git a/modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_screen.dart b/modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_screen.dart new file mode 100644 index 00000000..b86d9016 --- /dev/null +++ b/modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_screen.dart @@ -0,0 +1,61 @@ +import 'package:legacy_dashboard_shell/src/presentation/legacy_main_shell_view_model.dart'; +import 'package:design_system/design_system.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:go_router/go_router.dart'; +import 'package:legacy_dashboard_shell/src/presentation/legacy_main_shell_view_state.dart'; +import 'package:navigation/navigation.dart'; +import 'package:sf_localizations/sf_localizations.dart'; + +final mainShellViewModelProvider = + NotifierProvider.autoDispose( + () => LegacyMainShellViewModel(), + ); + +class LegacyDashboardScreen extends ConsumerWidget { + final NavigationContract navigationContract; + final StatefulNavigationShell navigationShell; + + const LegacyDashboardScreen({ + super.key, + required this.navigationContract, + required this.navigationShell, + }); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final theme = ref.watch(themePortProvider); + final viewState = ref.watch(mainShellViewModelProvider); + final viewModel = ref.read(mainShellViewModelProvider.notifier); + + return Scaffold( + body: navigationShell, + bottomNavigationBar: NavigationBar( + backgroundColor: theme.getColorFor(ThemeCode.backgroundPrimary), + selectedIndex: viewState.selectedIndex, + onDestinationSelected: (index) { + viewModel.onTabChanged(index); + navigationShell.goBranch(index); + }, + destinations: [ + NavigationDestination( + icon: Icon(Icons.home_outlined), + label: context.translate(I18n.home), + ), + NavigationDestination( + icon: Icon(SFIcons.functions), + label: context.translate(I18n.functions), + ), + NavigationDestination( + icon: Icon(Icons.location_on_outlined), + label: context.translate(I18n.location), + ), + NavigationDestination( + icon: Icon(Icons.chat_outlined), + label: context.translate(I18n.chat), + ), + ], + ), + ); + } +} diff --git a/modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_view_model.dart b/modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_view_model.dart new file mode 100644 index 00000000..4a92901a --- /dev/null +++ b/modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_view_model.dart @@ -0,0 +1,13 @@ +import 'package:legacy_dashboard_shell/src/presentation/legacy_main_shell_view_state.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; + +class LegacyMainShellViewModel extends Notifier { + @override + LegacyMainShellViewState build() { + return LegacyMainShellViewState(); + } + + void onTabChanged(int index) { + state = state.copyWith(selectedIndex: index); + } +} diff --git a/modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_view_state.dart b/modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_view_state.dart new file mode 100644 index 00000000..c258052d --- /dev/null +++ b/modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_view_state.dart @@ -0,0 +1,14 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; +part 'legacy_main_shell_view_state.freezed.dart'; + +@freezed +abstract class LegacyMainShellViewState with _$LegacyMainShellViewState { + const factory LegacyMainShellViewState({ + @Default(0) int selectedIndex, + @Default(false) bool isLoading, + @Default(false) bool isComplete, + String? error, + }) = _LegacyMainShellViewState; + + +} diff --git a/modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_view_state.freezed.dart b/modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_view_state.freezed.dart new file mode 100644 index 00000000..62c23135 --- /dev/null +++ b/modules/legacy/modules/legacy_dashboard_shell/lib/src/presentation/legacy_main_shell_view_state.freezed.dart @@ -0,0 +1,280 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'legacy_main_shell_view_state.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; +/// @nodoc +mixin _$LegacyMainShellViewState { + + int get selectedIndex; bool get isLoading; bool get isComplete; String? get error; +/// Create a copy of LegacyMainShellViewState +/// with the given fields replaced by the non-null parameter values. +@JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +$LegacyMainShellViewStateCopyWith get copyWith => _$LegacyMainShellViewStateCopyWithImpl(this as LegacyMainShellViewState, _$identity); + + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is LegacyMainShellViewState&&(identical(other.selectedIndex, selectedIndex) || other.selectedIndex == selectedIndex)&&(identical(other.isLoading, isLoading) || other.isLoading == isLoading)&&(identical(other.isComplete, isComplete) || other.isComplete == isComplete)&&(identical(other.error, error) || other.error == error)); +} + + +@override +int get hashCode => Object.hash(runtimeType,selectedIndex,isLoading,isComplete,error); + +@override +String toString() { + return 'LegacyMainShellViewState(selectedIndex: $selectedIndex, isLoading: $isLoading, isComplete: $isComplete, error: $error)'; +} + + +} + +/// @nodoc +abstract mixin class $LegacyMainShellViewStateCopyWith<$Res> { + factory $LegacyMainShellViewStateCopyWith(LegacyMainShellViewState value, $Res Function(LegacyMainShellViewState) _then) = _$LegacyMainShellViewStateCopyWithImpl; +@useResult +$Res call({ + int selectedIndex, bool isLoading, bool isComplete, String? error +}); + + + + +} +/// @nodoc +class _$LegacyMainShellViewStateCopyWithImpl<$Res> + implements $LegacyMainShellViewStateCopyWith<$Res> { + _$LegacyMainShellViewStateCopyWithImpl(this._self, this._then); + + final LegacyMainShellViewState _self; + final $Res Function(LegacyMainShellViewState) _then; + +/// Create a copy of LegacyMainShellViewState +/// with the given fields replaced by the non-null parameter values. +@pragma('vm:prefer-inline') @override $Res call({Object? selectedIndex = null,Object? isLoading = null,Object? isComplete = null,Object? error = freezed,}) { + return _then(_self.copyWith( +selectedIndex: null == selectedIndex ? _self.selectedIndex : selectedIndex // ignore: cast_nullable_to_non_nullable +as int,isLoading: null == isLoading ? _self.isLoading : isLoading // ignore: cast_nullable_to_non_nullable +as bool,isComplete: null == isComplete ? _self.isComplete : isComplete // ignore: cast_nullable_to_non_nullable +as bool,error: freezed == error ? _self.error : error // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + +} + + +/// Adds pattern-matching-related methods to [LegacyMainShellViewState]. +extension LegacyMainShellViewStatePatterns on LegacyMainShellViewState { +/// A variant of `map` that fallback to returning `orElse`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeMap(TResult Function( _LegacyMainShellViewState value)? $default,{required TResult orElse(),}){ +final _that = this; +switch (_that) { +case _LegacyMainShellViewState() when $default != null: +return $default(_that);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// Callbacks receives the raw object, upcasted. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case final Subclass2 value: +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult map(TResult Function( _LegacyMainShellViewState value) $default,){ +final _that = this; +switch (_that) { +case _LegacyMainShellViewState(): +return $default(_that);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `map` that fallback to returning `null`. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case final Subclass value: +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? mapOrNull(TResult? Function( _LegacyMainShellViewState value)? $default,){ +final _that = this; +switch (_that) { +case _LegacyMainShellViewState() when $default != null: +return $default(_that);case _: + return null; + +} +} +/// A variant of `when` that fallback to an `orElse` callback. +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return orElse(); +/// } +/// ``` + +@optionalTypeArgs TResult maybeWhen(TResult Function( int selectedIndex, bool isLoading, bool isComplete, String? error)? $default,{required TResult orElse(),}) {final _that = this; +switch (_that) { +case _LegacyMainShellViewState() when $default != null: +return $default(_that.selectedIndex,_that.isLoading,_that.isComplete,_that.error);case _: + return orElse(); + +} +} +/// A `switch`-like method, using callbacks. +/// +/// As opposed to `map`, this offers destructuring. +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case Subclass2(:final field2): +/// return ...; +/// } +/// ``` + +@optionalTypeArgs TResult when(TResult Function( int selectedIndex, bool isLoading, bool isComplete, String? error) $default,) {final _that = this; +switch (_that) { +case _LegacyMainShellViewState(): +return $default(_that.selectedIndex,_that.isLoading,_that.isComplete,_that.error);case _: + throw StateError('Unexpected subclass'); + +} +} +/// A variant of `when` that fallback to returning `null` +/// +/// It is equivalent to doing: +/// ```dart +/// switch (sealedClass) { +/// case Subclass(:final field): +/// return ...; +/// case _: +/// return null; +/// } +/// ``` + +@optionalTypeArgs TResult? whenOrNull(TResult? Function( int selectedIndex, bool isLoading, bool isComplete, String? error)? $default,) {final _that = this; +switch (_that) { +case _LegacyMainShellViewState() when $default != null: +return $default(_that.selectedIndex,_that.isLoading,_that.isComplete,_that.error);case _: + return null; + +} +} + +} + +/// @nodoc + + +class _LegacyMainShellViewState implements LegacyMainShellViewState { + const _LegacyMainShellViewState({this.selectedIndex = 0, this.isLoading = false, this.isComplete = false, this.error}); + + +@override@JsonKey() final int selectedIndex; +@override@JsonKey() final bool isLoading; +@override@JsonKey() final bool isComplete; +@override final String? error; + +/// Create a copy of LegacyMainShellViewState +/// with the given fields replaced by the non-null parameter values. +@override @JsonKey(includeFromJson: false, includeToJson: false) +@pragma('vm:prefer-inline') +_$LegacyMainShellViewStateCopyWith<_LegacyMainShellViewState> get copyWith => __$LegacyMainShellViewStateCopyWithImpl<_LegacyMainShellViewState>(this, _$identity); + + + +@override +bool operator ==(Object other) { + return identical(this, other) || (other.runtimeType == runtimeType&&other is _LegacyMainShellViewState&&(identical(other.selectedIndex, selectedIndex) || other.selectedIndex == selectedIndex)&&(identical(other.isLoading, isLoading) || other.isLoading == isLoading)&&(identical(other.isComplete, isComplete) || other.isComplete == isComplete)&&(identical(other.error, error) || other.error == error)); +} + + +@override +int get hashCode => Object.hash(runtimeType,selectedIndex,isLoading,isComplete,error); + +@override +String toString() { + return 'LegacyMainShellViewState(selectedIndex: $selectedIndex, isLoading: $isLoading, isComplete: $isComplete, error: $error)'; +} + + +} + +/// @nodoc +abstract mixin class _$LegacyMainShellViewStateCopyWith<$Res> implements $LegacyMainShellViewStateCopyWith<$Res> { + factory _$LegacyMainShellViewStateCopyWith(_LegacyMainShellViewState value, $Res Function(_LegacyMainShellViewState) _then) = __$LegacyMainShellViewStateCopyWithImpl; +@override @useResult +$Res call({ + int selectedIndex, bool isLoading, bool isComplete, String? error +}); + + + + +} +/// @nodoc +class __$LegacyMainShellViewStateCopyWithImpl<$Res> + implements _$LegacyMainShellViewStateCopyWith<$Res> { + __$LegacyMainShellViewStateCopyWithImpl(this._self, this._then); + + final _LegacyMainShellViewState _self; + final $Res Function(_LegacyMainShellViewState) _then; + +/// Create a copy of LegacyMainShellViewState +/// with the given fields replaced by the non-null parameter values. +@override @pragma('vm:prefer-inline') $Res call({Object? selectedIndex = null,Object? isLoading = null,Object? isComplete = null,Object? error = freezed,}) { + return _then(_LegacyMainShellViewState( +selectedIndex: null == selectedIndex ? _self.selectedIndex : selectedIndex // ignore: cast_nullable_to_non_nullable +as int,isLoading: null == isLoading ? _self.isLoading : isLoading // ignore: cast_nullable_to_non_nullable +as bool,isComplete: null == isComplete ? _self.isComplete : isComplete // ignore: cast_nullable_to_non_nullable +as bool,error: freezed == error ? _self.error : error // ignore: cast_nullable_to_non_nullable +as String?, + )); +} + + +} + +// dart format on diff --git a/modules/legacy/modules/legacy_dashboard_shell/pubspec.yaml b/modules/legacy/modules/legacy_dashboard_shell/pubspec.yaml new file mode 100644 index 00000000..f62a16a0 --- /dev/null +++ b/modules/legacy/modules/legacy_dashboard_shell/pubspec.yaml @@ -0,0 +1,77 @@ +name: legacy_dashboard_shell +resoluction: workspace +description: "A new Flutter package project." +publish_to: 'none' # Remove this line if you wish to publish to pub.dev +version: 0.0.1 +homepage: + +environment: + sdk: ^3.9.2 + flutter: ">=1.17.0" + +dependencies: + flutter: + sdk: flutter + + #modules dependencies go here + hub: + path: ../../modules/hub + #packages dependencies go here + design_system: + path: ../../../../packages/design_system + sf_localizations: + path: ../../../../packages/sf_localizations + + #dependencies go here + navigation: ^0.0.1 + get_it: ^9.0.5 + go_router: ^17.0.0 + flutter_riverpod: ^3.0.3 + freezed_annotation: ^3.1.0 + freezed: ^3.2.3 + +dev_dependencies: + flutter_test: + sdk: flutter + flutter_lints: ^5.0.0 + riverpod_generator: ^3.0.3 + build_runner: ^2.7.1 + riverpod_lint: ^3.0.3 + + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter packages. +flutter: + + # To add assets to your package, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + # + # For details regarding assets in packages, see + # https://flutter.dev/to/asset-from-package + # + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/to/resolution-aware-images + + # To add custom fonts to your package, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts in packages, see + # https://flutter.dev/to/font-from-package diff --git a/modules/legacy/modules/legacy_dashboard_shell/pubspec_overrides.yaml b/modules/legacy/modules/legacy_dashboard_shell/pubspec_overrides.yaml new file mode 100644 index 00000000..fef6dac5 --- /dev/null +++ b/modules/legacy/modules/legacy_dashboard_shell/pubspec_overrides.yaml @@ -0,0 +1,28 @@ +# melos_managed_dependency_overrides: auth,design_system,fonts,home,navigation,notifications,sf_infrastructure,sf_localizations,sf_shared,utils,dashboard_shell,hub,profile +dependency_overrides: + auth: + path: ..\\..\\..\\auth + dashboard_shell: + path: ..\\..\\..\\dashboard_shell + design_system: + path: ..\\..\\..\\..\\packages\\design_system + fonts: + path: ..\\..\\..\\..\\packages\\fonts + home: + path: ..\\..\\..\\home + hub: + path: ..\\hub + navigation: + path: ..\\..\\..\\..\\packages\\navigation + notifications: + path: ..\\..\\..\\notifications + profile: + path: ..\\..\\..\\profile + sf_infrastructure: + path: ..\\..\\..\\..\\packages\\sf_infrastructure + sf_localizations: + path: ..\\..\\..\\..\\packages\\sf_localizations + sf_shared: + path: ..\\..\\..\\..\\packages\\sf_shared + utils: + path: ..\\..\\..\\..\\packages\\utils diff --git a/modules/legacy/pubspec.lock b/modules/legacy/pubspec.lock new file mode 100644 index 00000000..c1b51d33 --- /dev/null +++ b/modules/legacy/pubspec.lock @@ -0,0 +1,213 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + async: + dependency: transitive + description: + name: async + sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" + url: "https://pub.dev" + source: hosted + version: "2.13.0" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + characters: + dependency: transitive + description: + name: characters + sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 + url: "https://pub.dev" + source: hosted + version: "1.4.0" + clock: + dependency: transitive + description: + name: clock + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b + url: "https://pub.dev" + source: hosted + version: "1.1.2" + collection: + dependency: transitive + description: + name: collection + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" + url: "https://pub.dev" + source: hosted + version: "1.19.1" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 + url: "https://pub.dev" + source: hosted + version: "1.0.8" + fake_async: + dependency: transitive + description: + name: fake_async + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" + url: "https://pub.dev" + source: hosted + version: "1.3.3" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_lints: + dependency: "direct dev" + description: + name: flutter_lints + sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1" + url: "https://pub.dev" + source: hosted + version: "5.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" + url: "https://pub.dev" + source: hosted + version: "11.0.2" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" + url: "https://pub.dev" + source: hosted + version: "3.0.10" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + lints: + dependency: transitive + description: + name: lints + sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7 + url: "https://pub.dev" + source: hosted + version: "5.1.1" + matcher: + dependency: transitive + description: + name: matcher + sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 + url: "https://pub.dev" + source: hosted + version: "0.12.17" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec + url: "https://pub.dev" + source: hosted + version: "0.11.1" + meta: + dependency: transitive + description: + name: meta + sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c + url: "https://pub.dev" + source: hosted + version: "1.16.0" + path: + dependency: transitive + description: + name: path + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" + url: "https://pub.dev" + source: hosted + version: "1.9.1" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + source_span: + dependency: transitive + description: + name: source_span + sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" + url: "https://pub.dev" + source: hosted + version: "1.10.1" + stack_trace: + dependency: transitive + description: + name: stack_trace + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" + url: "https://pub.dev" + source: hosted + version: "1.12.1" + stream_channel: + dependency: transitive + description: + name: stream_channel + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + string_scanner: + dependency: transitive + description: + name: string_scanner + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" + url: "https://pub.dev" + source: hosted + version: "1.4.1" + term_glyph: + dependency: transitive + description: + name: term_glyph + sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" + url: "https://pub.dev" + source: hosted + version: "1.2.2" + test_api: + dependency: transitive + description: + name: test_api + sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00" + url: "https://pub.dev" + source: hosted + version: "0.7.6" + vector_math: + dependency: transitive + description: + name: vector_math + sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b + url: "https://pub.dev" + source: hosted + version: "2.2.0" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60" + url: "https://pub.dev" + source: hosted + version: "15.0.2" +sdks: + dart: ">=3.9.2 <4.0.0" + flutter: ">=3.18.0-18.0.pre.54" diff --git a/modules/legacy/pubspec.yaml b/modules/legacy/pubspec.yaml new file mode 100644 index 00000000..a65876b9 --- /dev/null +++ b/modules/legacy/pubspec.yaml @@ -0,0 +1,87 @@ +name: legacy +description: "A new Flutter project." + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +# +# This version is used _only_ for the Runner app, which is used if you just do +# a `flutter run`. It has no impact on any other native host app that you embed +# your Flutter project into. +version: 1.0.0+1 + +environment: + sdk: ^3.9.2 + +dependencies: + flutter: + sdk: flutter + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.8 + +dev_dependencies: + flutter_test: + sdk: flutter + flutter_lints: ^5.0.0 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +flutter: + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add Flutter specific assets to your application, add an assets section, + # like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/to/resolution-aware-images + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/to/asset-from-package + + # To add Flutter specific custom fonts to your application, add a fonts + # section here, in this "flutter" section. Each entry in this list should + # have a "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/to/font-from-package + + + # This section identifies your Flutter project as a module meant for + # embedding in a native host app. These identifiers should _not_ ordinarily + # be changed after generation - they are used to ensure that the tooling can + # maintain consistency when adding or modifying assets and plugins. + # They also do not have any bearing on your native host application's + # identifiers, which may be completely independent or the same as these. + module: + androidX: true + androidPackage: com.example.legacy + iosBundleIdentifier: com.example.legacy diff --git a/packages/navigation/lib/app_routes.dart b/packages/navigation/lib/app_routes.dart index 736fc2d3..45ba35c8 100644 --- a/packages/navigation/lib/app_routes.dart +++ b/packages/navigation/lib/app_routes.dart @@ -1,6 +1,5 @@ class AppRoutes { static const splash = '/splash'; - static const hub = '/hub'; static const login = '/login'; static const signup = '/signup'; static const onboarding = '/onboarding'; @@ -15,4 +14,10 @@ class AppRoutes { static const dashboardActivity = '$dashboard/activity'; static const dashboardNotifications = '$dashboard/notifications'; static const dashboardProfile = '$dashboard/profile'; + + static const legacy = '/legacy'; + + static const legacyDashboard = '$legacy/dashboard'; + + static const dashboardHub = '$legacyDashboard/hub'; } diff --git a/packages/sf_localizations/assets/l10n/en.json b/packages/sf_localizations/assets/l10n/en.json index 741e7aac..b58dd5dc 100755 --- a/packages/sf_localizations/assets/l10n/en.json +++ b/packages/sf_localizations/assets/l10n/en.json @@ -136,5 +136,8 @@ "functions": "Functions", "accountSettings": "Account Settings", "deviceSettings": "Device Settings", - "watchesOnMap": "Smartwatch on the map" + "watchesOnMap": "Smartwatch on the map", + "home": "Home", + "location": "Location", + "chat": "Chat" } \ No newline at end of file diff --git a/packages/sf_localizations/assets/l10n/es.json b/packages/sf_localizations/assets/l10n/es.json index b35774fd..c2e75c56 100644 --- a/packages/sf_localizations/assets/l10n/es.json +++ b/packages/sf_localizations/assets/l10n/es.json @@ -131,10 +131,13 @@ "secretCodeStep3Title": "Copia el código generado", "secretCodeStep3Body": "Después de escanear el código QR o introducir la llave en la aplicación de autenticación, copia el código generado de 6 dígitos e introdúcelo en la siguiente pantalla.", "secretCodeConfigure": "Configurar", - "customerService": "Servicio de Atención al Cliente", + "customerService": "Soporte", "sfPay": "SaveFamily Pay", "functions": "Funciones", - "accountSettings": "Ajustes de la cuenta", - "deviceSettings": "Ajustes del dispositivo", - "watchesOnMap": "Relojes en el mapa" + "accountSettings": "Perfil de cuenta", + "deviceSettings": "Ajustes", + "watchesOnMap": "Reloj inteligente en el mapa", + "home": "Inicio", + "location": "Mapa", + "chat": "Chat" } \ No newline at end of file diff --git a/packages/sf_localizations/lib/src/generated/i18n.dart b/packages/sf_localizations/lib/src/generated/i18n.dart index b0a55947..bd01ab75 100755 --- a/packages/sf_localizations/lib/src/generated/i18n.dart +++ b/packages/sf_localizations/lib/src/generated/i18n.dart @@ -167,4 +167,7 @@ class I18n { static const String accountSettings = 'accountSettings'; static const String deviceSettings = 'deviceSettings'; static const String watchesOnMap = 'watchesOnMap'; + static const String home = 'home'; + static const String location = 'location'; + static const String chat = 'chat'; }