From baca45e8318c1eebcf6fdf2d03bc0c4e469b9804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicola=CC=81s=20Lantean?= Date: Tue, 16 Apr 2024 15:42:37 -0300 Subject: [PATCH 1/3] refactor: change catalog package and gallery app names --- .fvm/fvm_config.json | 4 - .fvm/release | 1 + .fvm/version | 1 + .fvm/versions/3.13.9 | 1 + .fvmrc | 4 + .gitignore | 4 +- .../contents.xcworkspacedata | 7 - .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../contents.xcworkspacedata | 10 - .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../gallery/lib/main/catalog_main_screen.dart | 91 -------- .../gallery/lib/router/catalog_router.dart | 33 --- .../gallery/lib/router/catalog_router.gr.dart | 199 ------------------ {catalog => design_system}/.gitignore | 0 {catalog => design_system}/.metadata | 0 {catalog => design_system}/README.md | 8 +- .../analysis_options.yaml | 0 .../design_system_gallery}/.gitignore | 0 .../design_system_gallery}/.metadata | 0 .../design_system_gallery}/README.md | 4 +- .../analysis_options.yaml | 0 .../design_system_gallery}/android/.gitignore | 0 .../design_system_gallery}/android/Gemfile | 0 .../android/Gemfile.lock | 0 .../android/app/build.gradle | 4 +- .../android/app/src/debug/AndroidManifest.xml | 0 .../android/app/src/main/AndroidManifest.xml | 2 +- .../com/example/gallery/MainActivity.kt | 2 +- .../drawable-hdpi-v31/android12branding.png | Bin .../res/drawable-hdpi/android12splash.png | Bin .../drawable-hdpi/ic_launcher_foreground.png | Bin .../app/src/main/res/drawable-hdpi/splash.png | Bin .../drawable-mdpi-v31/android12branding.png | Bin .../res/drawable-mdpi/android12splash.png | Bin .../drawable-mdpi/ic_launcher_foreground.png | Bin .../app/src/main/res/drawable-mdpi/splash.png | Bin .../android12branding.png | Bin .../drawable-night-hdpi/android12splash.png | Bin .../android12branding.png | Bin .../drawable-night-mdpi/android12splash.png | Bin .../android12branding.png | Bin .../drawable-night-xhdpi/android12splash.png | Bin .../android12branding.png | Bin .../drawable-night-xxhdpi/android12splash.png | Bin .../android12branding.png | Bin .../android12splash.png | Bin .../src/main/res/drawable-v21/background.png | Bin .../res/drawable-v21/launch_background.xml | 0 .../drawable-xhdpi-v31/android12branding.png | Bin .../res/drawable-xhdpi/android12splash.png | Bin .../drawable-xhdpi/ic_launcher_foreground.png | Bin .../src/main/res/drawable-xhdpi/splash.png | Bin .../drawable-xxhdpi-v31/android12branding.png | Bin .../res/drawable-xxhdpi/android12splash.png | Bin .../ic_launcher_foreground.png | Bin .../src/main/res/drawable-xxhdpi/splash.png | Bin .../android12branding.png | Bin .../res/drawable-xxxhdpi/android12splash.png | Bin .../ic_launcher_foreground.png | Bin .../src/main/res/drawable-xxxhdpi/splash.png | Bin .../app/src/main/res/drawable/background.png | Bin .../main/res/drawable/launch_background.xml | 0 .../res/mipmap-anydpi-v26/ic_launcher.xml | 0 .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin .../src/main/res/values-night-v31/styles.xml | 0 .../app/src/main/res/values-night/styles.xml | 0 .../app/src/main/res/values-v31/styles.xml | 0 .../app/src/main/res/values/colors.xml | 0 .../app/src/main/res/values/styles.xml | 0 .../app/src/profile/AndroidManifest.xml | 0 .../android/build.gradle | 0 .../android/fastlane/Appfile | 2 +- .../android/fastlane/Fastfile | 0 .../android/gradle.properties | 0 .../gradle/wrapper/gradle-wrapper.properties | 0 .../android/settings.gradle | 0 .../icons/ic_launcher.png | Bin .../icons/ic_launcher_foreground.png | Bin .../icons/ic_launcher_ios.png | Bin .../icons/splash_branding.png | Bin .../icons/splash_logo.png | Bin .../icons/splash_logo_android_12.png | Bin .../design_system_gallery}/ios/.gitignore | 0 .../ios/Flutter/AppFrameworkInfo.plist | 0 .../ios/Flutter/Debug.xcconfig | 0 .../ios/Flutter/Release.xcconfig | 0 .../design_system_gallery}/ios/Podfile | 0 .../design_system_gallery}/ios/Podfile.lock | 0 .../ios/Runner.xcodeproj/project.pbxproj | 8 +- .../xcshareddata/WorkspaceSettings.xcsettings | 0 .../xcshareddata/xcschemes/Runner.xcscheme | 0 .../xcshareddata/WorkspaceSettings.xcsettings | 0 .../ios/Runner/AppDelegate.swift | 0 .../AppIcon.appiconset/Contents.json | 0 .../Icon-App-1024x1024@1x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@1x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@2x.png | Bin .../AppIcon.appiconset/Icon-App-20x20@3x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@1x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@2x.png | Bin .../AppIcon.appiconset/Icon-App-29x29@3x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@1x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@2x.png | Bin .../AppIcon.appiconset/Icon-App-40x40@3x.png | Bin .../AppIcon.appiconset/Icon-App-50x50@1x.png | Bin .../AppIcon.appiconset/Icon-App-50x50@2x.png | Bin .../AppIcon.appiconset/Icon-App-57x57@1x.png | Bin .../AppIcon.appiconset/Icon-App-57x57@2x.png | Bin .../AppIcon.appiconset/Icon-App-60x60@2x.png | Bin .../AppIcon.appiconset/Icon-App-60x60@3x.png | Bin .../AppIcon.appiconset/Icon-App-72x72@1x.png | Bin .../AppIcon.appiconset/Icon-App-72x72@2x.png | Bin .../AppIcon.appiconset/Icon-App-76x76@1x.png | Bin .../AppIcon.appiconset/Icon-App-76x76@2x.png | Bin .../Icon-App-83.5x83.5@2x.png | Bin .../LaunchBackground.imageset/Contents.json | 0 .../LaunchBackground.imageset/background.png | Bin .../LaunchImage.imageset/Contents.json | 0 .../LaunchImage.imageset/LaunchImage.png | Bin .../LaunchImage.imageset/LaunchImage@2x.png | Bin .../LaunchImage.imageset/LaunchImage@3x.png | Bin .../LaunchImage.imageset/README.md | 0 .../Runner/Base.lproj/LaunchScreen.storyboard | 0 .../ios/Runner/Base.lproj/Main.storyboard | 0 .../ios/Runner/Info.plist | 4 +- .../ios/Runner/Runner-Bridging-Header.h | 0 .../ios/RunnerTests/RunnerTests.swift | 0 .../gallery/gallery_app_button_screen.dart | 18 +- .../lib/gallery/gallery_app_checkbox.dart | 10 +- .../gallery/gallery_app_colors_screen.dart | 32 +-- .../lib/gallery/gallery_app_dialog.dart | 10 +- .../gallery/gallery_app_dropdown_screen.dart | 10 +- .../lib/gallery/gallery_app_radio_button.dart | 10 +- .../gallery_app_text_fields_screen.dart | 20 +- .../gallery_app_typography_screen.dart | 48 ++--- .../lib/gallery/gallery_scaffold_screen.dart | 8 +- .../design_system_gallery}/lib/main.dart | 16 +- .../lib/main/gallery_main_screen.dart | 91 ++++++++ .../lib/router/gallery_router.dart | 32 +++ .../lib/router/gallery_router.gr.dart | 199 ++++++++++++++++++ .../design_system_gallery}/pubspec.lock | 14 +- .../design_system_gallery}/pubspec.yaml | 4 +- .../test/widget_test.dart | 6 +- .../design_system_gallery}/web/favicon.png | Bin .../web/icons/Icon-192.png | Bin .../web/icons/Icon-512.png | Bin .../web/icons/Icon-maskable-192.png | Bin .../web/icons/Icon-maskable-512.png | Bin .../design_system_gallery}/web/index.html | 4 +- .../design_system_gallery}/web/manifest.json | 4 +- .../web/splash/img/dark-1x.png | Bin .../web/splash/img/dark-2x.png | Bin .../web/splash/img/dark-3x.png | Bin .../web/splash/img/dark-4x.png | Bin .../web/splash/img/light-1x.png | Bin .../web/splash/img/light-2x.png | Bin .../web/splash/img/light-3x.png | Bin .../web/splash/img/light-4x.png | Bin .../lib/common/helper.dart | 2 +- .../lib/design_system.dart | 2 +- .../lib/extensions/color_extensions.dart | 0 .../lib/extensions/context_extensions.dart | 0 .../lib/theme/app_buttons.dart | 8 +- .../lib/theme/app_color_scheme.dart | 0 .../lib/theme/app_dimensions.dart | 0 .../lib/theme/app_text_styles.dart | 0 .../lib/theme/app_theme.dart | 12 +- .../lib/theme/custom_colors.dart | 0 .../lib/theme/custom_text_styles.dart | 4 +- .../lib/widgets/app_checkbox.dart | 0 .../lib/widgets/app_dialog.dart | 4 +- .../lib/widgets/app_dropdown.dart | 4 +- .../lib/widgets/app_radio_button.dart | 4 +- .../lib/widgets/app_text_fields.dart | 4 +- {catalog => design_system}/pubspec.yaml | 2 +- .../test/catalog_test.dart | 0 fastlane/Fastfile | 8 +- lib/ui/main/main_screen.dart | 4 +- lib/ui/welcome/welcome_screen.dart | 2 +- pubspec.lock | 14 +- pubspec.yaml | 4 +- scripts/checks.sh | 8 +- 186 files changed, 498 insertions(+), 529 deletions(-) delete mode 100644 .fvm/fvm_config.json create mode 100644 .fvm/release create mode 100644 .fvm/version create mode 120000 .fvm/versions/3.13.9 create mode 100644 .fvmrc delete mode 100644 catalog/gallery/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 catalog/gallery/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 catalog/gallery/ios/Runner.xcworkspace/contents.xcworkspacedata delete mode 100644 catalog/gallery/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 catalog/gallery/lib/main/catalog_main_screen.dart delete mode 100644 catalog/gallery/lib/router/catalog_router.dart delete mode 100644 catalog/gallery/lib/router/catalog_router.gr.dart rename {catalog => design_system}/.gitignore (100%) rename {catalog => design_system}/.metadata (100%) rename {catalog => design_system}/README.md (86%) rename {catalog => design_system}/analysis_options.yaml (100%) rename {catalog/gallery => design_system/design_system_gallery}/.gitignore (100%) rename {catalog/gallery => design_system/design_system_gallery}/.metadata (100%) rename {catalog/gallery => design_system/design_system_gallery}/README.md (87%) rename {catalog/gallery => design_system/design_system_gallery}/analysis_options.yaml (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/.gitignore (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/Gemfile (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/Gemfile.lock (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/build.gradle (94%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/debug/AndroidManifest.xml (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/AndroidManifest.xml (97%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/kotlin/com/example/gallery/MainActivity.kt (69%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-hdpi-v31/android12branding.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-hdpi/android12splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-hdpi/splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-mdpi-v31/android12branding.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-mdpi/android12splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-mdpi/splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-night-hdpi-v31/android12branding.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-night-hdpi/android12splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-night-mdpi-v31/android12branding.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-night-mdpi/android12splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-night-xhdpi-v31/android12branding.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-night-xhdpi/android12splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-night-xxhdpi-v31/android12branding.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-night-xxhdpi/android12splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-night-xxxhdpi-v31/android12branding.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-night-xxxhdpi/android12splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-v21/background.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-v21/launch_background.xml (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-xhdpi-v31/android12branding.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-xhdpi/android12splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-xhdpi/splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-xxhdpi-v31/android12branding.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-xxhdpi/android12splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-xxhdpi/splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-xxxhdpi-v31/android12branding.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-xxxhdpi/android12splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable-xxxhdpi/splash.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable/background.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/drawable/launch_background.xml (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/mipmap-hdpi/ic_launcher.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/mipmap-mdpi/ic_launcher.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/values-night-v31/styles.xml (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/values-night/styles.xml (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/values-v31/styles.xml (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/values/colors.xml (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/main/res/values/styles.xml (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/app/src/profile/AndroidManifest.xml (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/build.gradle (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/fastlane/Appfile (68%) rename {catalog/gallery => design_system/design_system_gallery}/android/fastlane/Fastfile (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/gradle.properties (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/gradle/wrapper/gradle-wrapper.properties (100%) rename {catalog/gallery => design_system/design_system_gallery}/android/settings.gradle (100%) rename {catalog/gallery => design_system/design_system_gallery}/icons/ic_launcher.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/icons/ic_launcher_foreground.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/icons/ic_launcher_ios.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/icons/splash_branding.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/icons/splash_logo.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/icons/splash_logo_android_12.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/.gitignore (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Flutter/AppFrameworkInfo.plist (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Flutter/Debug.xcconfig (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Flutter/Release.xcconfig (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Podfile (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Podfile.lock (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner.xcodeproj/project.pbxproj (99%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/AppDelegate.swift (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Base.lproj/LaunchScreen.storyboard (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Base.lproj/Main.storyboard (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Info.plist (95%) rename {catalog/gallery => design_system/design_system_gallery}/ios/Runner/Runner-Bridging-Header.h (100%) rename {catalog/gallery => design_system/design_system_gallery}/ios/RunnerTests/RunnerTests.swift (100%) rename catalog/gallery/lib/catalog/catalog_app_button_screen.dart => design_system/design_system_gallery/lib/gallery/gallery_app_button_screen.dart (77%) rename catalog/gallery/lib/catalog/catalog_app_checkbox.dart => design_system/design_system_gallery/lib/gallery/gallery_app_checkbox.dart (70%) rename catalog/gallery/lib/catalog/catalog_app_colors_screen.dart => design_system/design_system_gallery/lib/gallery/gallery_app_colors_screen.dart (65%) rename catalog/gallery/lib/catalog/catalog_app_dialog.dart => design_system/design_system_gallery/lib/gallery/gallery_app_dialog.dart (69%) rename catalog/gallery/lib/catalog/catalog_app_dropdown_screen.dart => design_system/design_system_gallery/lib/gallery/gallery_app_dropdown_screen.dart (73%) rename catalog/gallery/lib/catalog/catalog_app_radio_button.dart => design_system/design_system_gallery/lib/gallery/gallery_app_radio_button.dart (64%) rename catalog/gallery/lib/catalog/catalog_app_text_fields_screen.dart => design_system/design_system_gallery/lib/gallery/gallery_app_text_fields_screen.dart (75%) rename catalog/gallery/lib/catalog/catalog_app_typography_screen.dart => design_system/design_system_gallery/lib/gallery/gallery_app_typography_screen.dart (63%) rename catalog/gallery/lib/catalog/catalog_scaffold_screen.dart => design_system/design_system_gallery/lib/gallery/gallery_scaffold_screen.dart (83%) rename {catalog/gallery => design_system/design_system_gallery}/lib/main.dart (60%) create mode 100644 design_system/design_system_gallery/lib/main/gallery_main_screen.dart create mode 100644 design_system/design_system_gallery/lib/router/gallery_router.dart create mode 100644 design_system/design_system_gallery/lib/router/gallery_router.gr.dart rename {catalog/gallery => design_system/design_system_gallery}/pubspec.lock (99%) rename {catalog/gallery => design_system/design_system_gallery}/pubspec.yaml (97%) rename {catalog/gallery => design_system/design_system_gallery}/test/widget_test.dart (85%) rename {catalog/gallery => design_system/design_system_gallery}/web/favicon.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/web/icons/Icon-192.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/web/icons/Icon-512.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/web/icons/Icon-maskable-192.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/web/icons/Icon-maskable-512.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/web/index.html (96%) rename {catalog/gallery => design_system/design_system_gallery}/web/manifest.json (91%) rename {catalog/gallery => design_system/design_system_gallery}/web/splash/img/dark-1x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/web/splash/img/dark-2x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/web/splash/img/dark-3x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/web/splash/img/dark-4x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/web/splash/img/light-1x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/web/splash/img/light-2x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/web/splash/img/light-3x.png (100%) rename {catalog/gallery => design_system/design_system_gallery}/web/splash/img/light-4x.png (100%) rename {catalog => design_system}/lib/common/helper.dart (95%) rename catalog/lib/catalog.dart => design_system/lib/design_system.dart (88%) rename {catalog => design_system}/lib/extensions/color_extensions.dart (100%) rename {catalog => design_system}/lib/extensions/context_extensions.dart (100%) rename {catalog => design_system}/lib/theme/app_buttons.dart (92%) rename {catalog => design_system}/lib/theme/app_color_scheme.dart (100%) rename {catalog => design_system}/lib/theme/app_dimensions.dart (100%) rename {catalog => design_system}/lib/theme/app_text_styles.dart (100%) rename {catalog => design_system}/lib/theme/app_theme.dart (94%) rename {catalog => design_system}/lib/theme/custom_colors.dart (100%) rename {catalog => design_system}/lib/theme/custom_text_styles.dart (96%) rename {catalog => design_system}/lib/widgets/app_checkbox.dart (100%) rename {catalog => design_system}/lib/widgets/app_dialog.dart (96%) rename {catalog => design_system}/lib/widgets/app_dropdown.dart (93%) rename {catalog => design_system}/lib/widgets/app_radio_button.dart (93%) rename {catalog => design_system}/lib/widgets/app_text_fields.dart (95%) rename {catalog => design_system}/pubspec.yaml (95%) rename {catalog => design_system}/test/catalog_test.dart (100%) diff --git a/.fvm/fvm_config.json b/.fvm/fvm_config.json deleted file mode 100644 index d8abe1b9..00000000 --- a/.fvm/fvm_config.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "flutterSdkVersion": "3.13.9", - "flavors": {} -} \ No newline at end of file diff --git a/.fvm/release b/.fvm/release new file mode 100644 index 00000000..4fd0f831 --- /dev/null +++ b/.fvm/release @@ -0,0 +1 @@ +3.13.9 \ No newline at end of file diff --git a/.fvm/version b/.fvm/version new file mode 100644 index 00000000..afb05355 --- /dev/null +++ b/.fvm/version @@ -0,0 +1 @@ +3.16.4 \ No newline at end of file diff --git a/.fvm/versions/3.13.9 b/.fvm/versions/3.13.9 new file mode 120000 index 00000000..0d87e571 --- /dev/null +++ b/.fvm/versions/3.13.9 @@ -0,0 +1 @@ +/Users/nicolantean/fvm/versions/3.13.9 \ No newline at end of file diff --git a/.fvmrc b/.fvmrc new file mode 100644 index 00000000..6108f14a --- /dev/null +++ b/.fvmrc @@ -0,0 +1,4 @@ +{ + "flutter": "3.13.9", + "flavors": {} +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 16d80ab4..2bc6cea4 100644 --- a/.gitignore +++ b/.gitignore @@ -22,7 +22,7 @@ mason-lock.json # 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/ +.vscode/settings.json # Flutter/Dart/Pub related **/doc/api/ @@ -54,7 +54,7 @@ app.*.map.json *.env.default # Fvm -.fvm/flutter_sdk +.fvm/ # fastlane specific **/fastlane/report.xml diff --git a/catalog/gallery/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/catalog/gallery/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a6..00000000 --- a/catalog/gallery/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/catalog/gallery/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/catalog/gallery/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d98100..00000000 --- a/catalog/gallery/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/catalog/gallery/ios/Runner.xcworkspace/contents.xcworkspacedata b/catalog/gallery/ios/Runner.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 21a3cc14..00000000 --- a/catalog/gallery/ios/Runner.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/catalog/gallery/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/catalog/gallery/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d98100..00000000 --- a/catalog/gallery/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/catalog/gallery/lib/main/catalog_main_screen.dart b/catalog/gallery/lib/main/catalog_main_screen.dart deleted file mode 100644 index 60f41c55..00000000 --- a/catalog/gallery/lib/main/catalog_main_screen.dart +++ /dev/null @@ -1,91 +0,0 @@ -import 'package:auto_route/auto_route.dart'; -import 'package:catalog/catalog.dart'; -import 'package:flutter/material.dart'; -import 'package:gallery/catalog/catalog_scaffold_screen.dart'; -import 'package:gallery/router/catalog_router.dart'; - -@RoutePage() -class CatalogMainScreen extends StatelessWidget { - const CatalogMainScreen({super.key}); - - @override - Widget build(BuildContext context) => CatalogScaffold( - title: 'WIDGET CATALOG', - showBack: false, - child: ListView.separated( - shrinkWrap: true, - separatorBuilder: (BuildContext context, int index) => Divider( - color: context.theme.colorScheme.primary, - ), - itemCount: _CatalogScreen.values.length, - itemBuilder: (BuildContext context, int index) { - final element = _CatalogScreen.values[index]; - return Row( - children: [ - Expanded( - child: TextButton( - child: Text(element.title.toUpperCase()), - onPressed: () => context.router.push(element.route), - ), - ), - ], - ); - }, - ), - ); -} - -enum _CatalogScreen { - buttons, - textFields, - colors, - typography, - dropdown, - dialog, - radioButtons, - checkbox, -} - -extension _CatalogScreenExtensions on _CatalogScreen { - String get title { - switch (this) { - case _CatalogScreen.buttons: - return 'Buttons'; - case _CatalogScreen.textFields: - return 'Text Fields'; - case _CatalogScreen.colors: - return 'Colors'; - case _CatalogScreen.typography: - return 'Typography'; - case _CatalogScreen.dropdown: - return 'Dropdown'; - case _CatalogScreen.dialog: - return 'Dialog'; - case _CatalogScreen.radioButtons: - return 'Radio Buttons'; - case _CatalogScreen.checkbox: - return 'Checkbox'; - } - } - - PageRouteInfo get route { - switch (this) { - case _CatalogScreen.buttons: - return const CatalogAppButtonRoute(); - case _CatalogScreen.textFields: - return const CatalogTextFieldsRoute(); - case _CatalogScreen.colors: - return const CatalogAppColorsRoute(); - case _CatalogScreen.typography: - return const CatalogAppTypographyRoute(); - case _CatalogScreen.dropdown: - return const CatalogDropdownRoute(); - case _CatalogScreen.dialog: - return const CatalogDialogRoute(); - case _CatalogScreen.radioButtons: - return const CatalogAppRadioButtonRoute(); - case _CatalogScreen.checkbox: - return const CatalogAppCheckboxRoute(); - } - } -} diff --git a/catalog/gallery/lib/router/catalog_router.dart b/catalog/gallery/lib/router/catalog_router.dart deleted file mode 100644 index 146a988c..00000000 --- a/catalog/gallery/lib/router/catalog_router.dart +++ /dev/null @@ -1,33 +0,0 @@ -import 'package:auto_route/auto_route.dart'; -import 'package:gallery/catalog/catalog_app_button_screen.dart'; -import 'package:gallery/catalog/catalog_app_colors_screen.dart'; -import 'package:gallery/catalog/catalog_app_radio_button.dart'; -import 'package:gallery/catalog/catalog_app_typography_screen.dart'; -import 'package:gallery/catalog/catalog_app_checkbox.dart'; -import 'package:gallery/catalog/catalog_app_dropdown_screen.dart'; -import 'package:gallery/catalog/catalog_app_text_fields_screen.dart'; -import 'package:gallery/catalog/catalog_app_dialog.dart'; -import 'package:gallery/main/catalog_main_screen.dart'; - -part 'catalog_router.gr.dart'; - -@AutoRouterConfig( - replaceInRouteName: 'Page|Screen|Router,Route', -) -class CatalogRouter extends _$CatalogRouter { - @override - final List routes; - - CatalogRouter() - : routes = [ - AutoRoute(page: CatalogAppButtonRoute.page), - AutoRoute(initial: true, page: CatalogMainRoute.page), - AutoRoute(page: CatalogTextFieldsRoute.page), - AutoRoute(page: CatalogAppColorsRoute.page), - AutoRoute(page: CatalogAppTypographyRoute.page), - AutoRoute(page: CatalogDropdownRoute.page), - AutoRoute(page: CatalogDialogRoute.page), - AutoRoute(page: CatalogAppRadioButtonRoute.page), - AutoRoute(page: CatalogAppCheckboxRoute.page), - ]; -} diff --git a/catalog/gallery/lib/router/catalog_router.gr.dart b/catalog/gallery/lib/router/catalog_router.gr.dart deleted file mode 100644 index aecaf11e..00000000 --- a/catalog/gallery/lib/router/catalog_router.gr.dart +++ /dev/null @@ -1,199 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -// ************************************************************************** -// AutoRouterGenerator -// ************************************************************************** - -// ignore_for_file: type=lint -// coverage:ignore-file - -part of 'catalog_router.dart'; - -abstract class _$CatalogRouter extends RootStackRouter { - // ignore: unused_element - _$CatalogRouter({super.navigatorKey}); - - @override - final Map pagesMap = { - CatalogAppButtonRoute.name: (routeData) { - return AutoRoutePage( - routeData: routeData, - child: const CatalogAppButtonScreen(), - ); - }, - CatalogAppCheckboxRoute.name: (routeData) { - return AutoRoutePage( - routeData: routeData, - child: const CatalogAppCheckboxScreen(), - ); - }, - CatalogAppColorsRoute.name: (routeData) { - return AutoRoutePage( - routeData: routeData, - child: const CatalogAppColorsScreen(), - ); - }, - CatalogAppRadioButtonRoute.name: (routeData) { - return AutoRoutePage( - routeData: routeData, - child: const CatalogAppRadioButtonScreen(), - ); - }, - CatalogAppTypographyRoute.name: (routeData) { - return AutoRoutePage( - routeData: routeData, - child: const CatalogAppTypographyScreen(), - ); - }, - CatalogDialogRoute.name: (routeData) { - return AutoRoutePage( - routeData: routeData, - child: const CatalogDialogScreen(), - ); - }, - CatalogDropdownRoute.name: (routeData) { - return AutoRoutePage( - routeData: routeData, - child: const CatalogDropdownScreen(), - ); - }, - CatalogMainRoute.name: (routeData) { - return AutoRoutePage( - routeData: routeData, - child: const CatalogMainScreen(), - ); - }, - CatalogTextFieldsRoute.name: (routeData) { - return AutoRoutePage( - routeData: routeData, - child: const CatalogTextFieldsScreen(), - ); - }, - }; -} - -/// generated route for -/// [CatalogAppButtonScreen] -class CatalogAppButtonRoute extends PageRouteInfo { - const CatalogAppButtonRoute({List? children}) - : super( - CatalogAppButtonRoute.name, - initialChildren: children, - ); - - static const String name = 'CatalogAppButtonRoute'; - - static const PageInfo page = PageInfo(name); -} - -/// generated route for -/// [CatalogAppCheckboxScreen] -class CatalogAppCheckboxRoute extends PageRouteInfo { - const CatalogAppCheckboxRoute({List? children}) - : super( - CatalogAppCheckboxRoute.name, - initialChildren: children, - ); - - static const String name = 'CatalogAppCheckboxRoute'; - - static const PageInfo page = PageInfo(name); -} - -/// generated route for -/// [CatalogAppColorsScreen] -class CatalogAppColorsRoute extends PageRouteInfo { - const CatalogAppColorsRoute({List? children}) - : super( - CatalogAppColorsRoute.name, - initialChildren: children, - ); - - static const String name = 'CatalogAppColorsRoute'; - - static const PageInfo page = PageInfo(name); -} - -/// generated route for -/// [CatalogAppRadioButtonScreen] -class CatalogAppRadioButtonRoute extends PageRouteInfo { - const CatalogAppRadioButtonRoute({List? children}) - : super( - CatalogAppRadioButtonRoute.name, - initialChildren: children, - ); - - static const String name = 'CatalogAppRadioButtonRoute'; - - static const PageInfo page = PageInfo(name); -} - -/// generated route for -/// [CatalogAppTypographyScreen] -class CatalogAppTypographyRoute extends PageRouteInfo { - const CatalogAppTypographyRoute({List? children}) - : super( - CatalogAppTypographyRoute.name, - initialChildren: children, - ); - - static const String name = 'CatalogAppTypographyRoute'; - - static const PageInfo page = PageInfo(name); -} - -/// generated route for -/// [CatalogDialogScreen] -class CatalogDialogRoute extends PageRouteInfo { - const CatalogDialogRoute({List? children}) - : super( - CatalogDialogRoute.name, - initialChildren: children, - ); - - static const String name = 'CatalogDialogRoute'; - - static const PageInfo page = PageInfo(name); -} - -/// generated route for -/// [CatalogDropdownScreen] -class CatalogDropdownRoute extends PageRouteInfo { - const CatalogDropdownRoute({List? children}) - : super( - CatalogDropdownRoute.name, - initialChildren: children, - ); - - static const String name = 'CatalogDropdownRoute'; - - static const PageInfo page = PageInfo(name); -} - -/// generated route for -/// [CatalogMainScreen] -class CatalogMainRoute extends PageRouteInfo { - const CatalogMainRoute({List? children}) - : super( - CatalogMainRoute.name, - initialChildren: children, - ); - - static const String name = 'CatalogMainRoute'; - - static const PageInfo page = PageInfo(name); -} - -/// generated route for -/// [CatalogTextFieldsScreen] -class CatalogTextFieldsRoute extends PageRouteInfo { - const CatalogTextFieldsRoute({List? children}) - : super( - CatalogTextFieldsRoute.name, - initialChildren: children, - ); - - static const String name = 'CatalogTextFieldsRoute'; - - static const PageInfo page = PageInfo(name); -} diff --git a/catalog/.gitignore b/design_system/.gitignore similarity index 100% rename from catalog/.gitignore rename to design_system/.gitignore diff --git a/catalog/.metadata b/design_system/.metadata similarity index 100% rename from catalog/.metadata rename to design_system/.metadata diff --git a/catalog/README.md b/design_system/README.md similarity index 86% rename from catalog/README.md rename to design_system/README.md index 648185fc..df83f408 100644 --- a/catalog/README.md +++ b/design_system/README.md @@ -1,6 +1,6 @@ -# Catalog' Flutter template +# Design system' Flutter template -Catalog is a Flutter package that provides a base implementation for UX/UI components based on the [design template of Xmartlabs][figma]. +Design system is a Flutter package that provides a base implementation for UX/UI components based on the [design template of Xmartlabs][figma]. It aims to simplify and expedite the development process for Flutter projects, ensuring a consistent and visually appealing user interface. ## Features @@ -16,13 +16,13 @@ Integrate the package in your project, adding the following line to your `pubspe ```yaml dependencies flutter: - catalog: + design_system: path: ../ ``` ## Arch Overview -The catalog project is organized into a singular folder named 'Theme.' +The design system project is organized into a singular folder named 'Theme.' Within the [theme folder][theme], various files contribute to the overall theme definition: - App Theme: diff --git a/catalog/analysis_options.yaml b/design_system/analysis_options.yaml similarity index 100% rename from catalog/analysis_options.yaml rename to design_system/analysis_options.yaml diff --git a/catalog/gallery/.gitignore b/design_system/design_system_gallery/.gitignore similarity index 100% rename from catalog/gallery/.gitignore rename to design_system/design_system_gallery/.gitignore diff --git a/catalog/gallery/.metadata b/design_system/design_system_gallery/.metadata similarity index 100% rename from catalog/gallery/.metadata rename to design_system/design_system_gallery/.metadata diff --git a/catalog/gallery/README.md b/design_system/design_system_gallery/README.md similarity index 87% rename from catalog/gallery/README.md rename to design_system/design_system_gallery/README.md index 9c7f8871..ea45578e 100644 --- a/catalog/gallery/README.md +++ b/design_system/design_system_gallery/README.md @@ -1,6 +1,6 @@ -# Gallery App +# Design System Gallery App -Gallery is a Flutter app designed to showcase and share the design system of our project. +Design System Gallery is a Flutter app designed to showcase and share the design system of our project. This app serves as a visual reference for developers and provides a streamlined process for the design team to approve the correct implementation of components. ## Features diff --git a/catalog/gallery/analysis_options.yaml b/design_system/design_system_gallery/analysis_options.yaml similarity index 100% rename from catalog/gallery/analysis_options.yaml rename to design_system/design_system_gallery/analysis_options.yaml diff --git a/catalog/gallery/android/.gitignore b/design_system/design_system_gallery/android/.gitignore similarity index 100% rename from catalog/gallery/android/.gitignore rename to design_system/design_system_gallery/android/.gitignore diff --git a/catalog/gallery/android/Gemfile b/design_system/design_system_gallery/android/Gemfile similarity index 100% rename from catalog/gallery/android/Gemfile rename to design_system/design_system_gallery/android/Gemfile diff --git a/catalog/gallery/android/Gemfile.lock b/design_system/design_system_gallery/android/Gemfile.lock similarity index 100% rename from catalog/gallery/android/Gemfile.lock rename to design_system/design_system_gallery/android/Gemfile.lock diff --git a/catalog/gallery/android/app/build.gradle b/design_system/design_system_gallery/android/app/build.gradle similarity index 94% rename from catalog/gallery/android/app/build.gradle rename to design_system/design_system_gallery/android/app/build.gradle index 82fb0393..5be6caa3 100644 --- a/catalog/gallery/android/app/build.gradle +++ b/design_system/design_system_gallery/android/app/build.gradle @@ -23,7 +23,7 @@ if (flutterVersionName == null) { } android { - namespace "com.example.gallery" + namespace "com.example.design_system_gallery" compileSdkVersion flutter.compileSdkVersion ndkVersion flutter.ndkVersion @@ -42,7 +42,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.gallery" + applicationId "com.example.design_system_gallery" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. minSdkVersion flutter.minSdkVersion diff --git a/catalog/gallery/android/app/src/debug/AndroidManifest.xml b/design_system/design_system_gallery/android/app/src/debug/AndroidManifest.xml similarity index 100% rename from catalog/gallery/android/app/src/debug/AndroidManifest.xml rename to design_system/design_system_gallery/android/app/src/debug/AndroidManifest.xml diff --git a/catalog/gallery/android/app/src/main/AndroidManifest.xml b/design_system/design_system_gallery/android/app/src/main/AndroidManifest.xml similarity index 97% rename from catalog/gallery/android/app/src/main/AndroidManifest.xml rename to design_system/design_system_gallery/android/app/src/main/AndroidManifest.xml index edbeb145..15dd1de6 100644 --- a/catalog/gallery/android/app/src/main/AndroidManifest.xml +++ b/design_system/design_system_gallery/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName - Gallery + Design System Gallery CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier @@ -13,7 +13,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - gallery + design_system_gallery CFBundlePackageType APPL CFBundleShortVersionString diff --git a/catalog/gallery/ios/Runner/Runner-Bridging-Header.h b/design_system/design_system_gallery/ios/Runner/Runner-Bridging-Header.h similarity index 100% rename from catalog/gallery/ios/Runner/Runner-Bridging-Header.h rename to design_system/design_system_gallery/ios/Runner/Runner-Bridging-Header.h diff --git a/catalog/gallery/ios/RunnerTests/RunnerTests.swift b/design_system/design_system_gallery/ios/RunnerTests/RunnerTests.swift similarity index 100% rename from catalog/gallery/ios/RunnerTests/RunnerTests.swift rename to design_system/design_system_gallery/ios/RunnerTests/RunnerTests.swift diff --git a/catalog/gallery/lib/catalog/catalog_app_button_screen.dart b/design_system/design_system_gallery/lib/gallery/gallery_app_button_screen.dart similarity index 77% rename from catalog/gallery/lib/catalog/catalog_app_button_screen.dart rename to design_system/design_system_gallery/lib/gallery/gallery_app_button_screen.dart index 6d028e99..33c18e1a 100644 --- a/catalog/gallery/lib/catalog/catalog_app_button_screen.dart +++ b/design_system/design_system_gallery/lib/gallery/gallery_app_button_screen.dart @@ -1,16 +1,16 @@ import 'package:auto_route/auto_route.dart'; -import 'package:catalog/catalog.dart'; -import 'package:catalog/theme/app_buttons.dart'; +import 'package:design_system/design_system.dart'; +import 'package:design_system/theme/app_buttons.dart'; +import 'package:design_system_gallery/gallery/gallery_scaffold_screen.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; -import 'package:gallery/catalog/catalog_scaffold_screen.dart'; @RoutePage() -class CatalogAppButtonScreen extends StatelessWidget { - const CatalogAppButtonScreen({super.key}); +class GalleryAppButtonScreen extends StatelessWidget { + const GalleryAppButtonScreen({super.key}); @override - Widget build(BuildContext context) => CatalogScaffold( + Widget build(BuildContext context) => GalleryScaffold( title: 'BUTTONS', child: SingleChildScrollView( child: Column( @@ -33,19 +33,19 @@ class CatalogAppButtonScreen extends StatelessWidget { SizedBox(height: 10.h), FilledButton( style: context.theme.buttonsStyle.secondaryFilledButton, - onPressed: (){}, + onPressed: () {}, child: const Text('SECONDARY FILLED BUTTON'), ), SizedBox(height: 10.h), StrokeButton( style: context.theme.buttonsStyle.secondaryOutlineButton, - onPressed: (){}, + onPressed: () {}, child: const Text('SECONDARY STROKE BUTTON'), ), SizedBox(height: 10.h), GhostButton( style: context.theme.buttonsStyle.secondaryTextButton, - onPressed: (){}, + onPressed: () {}, child: const Text('SECONDARY GHOST BUTTON'), ), ], diff --git a/catalog/gallery/lib/catalog/catalog_app_checkbox.dart b/design_system/design_system_gallery/lib/gallery/gallery_app_checkbox.dart similarity index 70% rename from catalog/gallery/lib/catalog/catalog_app_checkbox.dart rename to design_system/design_system_gallery/lib/gallery/gallery_app_checkbox.dart index 54fd83af..f037c9a5 100644 --- a/catalog/gallery/lib/catalog/catalog_app_checkbox.dart +++ b/design_system/design_system_gallery/lib/gallery/gallery_app_checkbox.dart @@ -1,14 +1,14 @@ import 'package:auto_route/auto_route.dart'; -import 'package:catalog/widgets/app_checkbox.dart'; +import 'package:design_system/widgets/app_checkbox.dart'; +import 'package:design_system_gallery/gallery/gallery_scaffold_screen.dart'; import 'package:flutter/material.dart'; -import 'package:gallery/catalog/catalog_scaffold_screen.dart'; @RoutePage() -class CatalogAppCheckboxScreen extends StatelessWidget { - const CatalogAppCheckboxScreen({super.key}); +class GalleryAppCheckboxScreen extends StatelessWidget { + const GalleryAppCheckboxScreen({super.key}); @override - Widget build(BuildContext context) => CatalogScaffold( + Widget build(BuildContext context) => GalleryScaffold( title: 'APP CHECKBOX', child: AppCheckbox( shrinkWrap: true, diff --git a/catalog/gallery/lib/catalog/catalog_app_colors_screen.dart b/design_system/design_system_gallery/lib/gallery/gallery_app_colors_screen.dart similarity index 65% rename from catalog/gallery/lib/catalog/catalog_app_colors_screen.dart rename to design_system/design_system_gallery/lib/gallery/gallery_app_colors_screen.dart index a6bb9256..e2326273 100644 --- a/catalog/gallery/lib/catalog/catalog_app_colors_screen.dart +++ b/design_system/design_system_gallery/lib/gallery/gallery_app_colors_screen.dart @@ -1,21 +1,21 @@ import 'package:auto_route/auto_route.dart'; -import 'package:catalog/catalog.dart'; +import 'package:design_system/design_system.dart'; +import 'package:design_system_gallery/gallery/gallery_scaffold_screen.dart'; import 'package:flutter/material.dart'; -import 'package:gallery/catalog/catalog_scaffold_screen.dart'; @RoutePage() -class CatalogAppColorsScreen extends StatelessWidget { - const CatalogAppColorsScreen({super.key}); +class GalleryAppColorsScreen extends StatelessWidget { + const GalleryAppColorsScreen({super.key}); @override - Widget build(BuildContext context) => CatalogScaffold( + Widget build(BuildContext context) => GalleryScaffold( title: 'COLORS', child: ListView.separated( separatorBuilder: (BuildContext context, int index) => const Divider(), - itemCount: _CatalogColors.values.length, + itemCount: _GalleryColors.values.length, itemBuilder: (BuildContext context, int index) { - final element = _CatalogColors.values[index]; + final element = _GalleryColors.values[index]; return Row( children: [ Expanded( @@ -37,7 +37,7 @@ class CatalogAppColorsScreen extends StatelessWidget { ); } -enum _CatalogColors { +enum _GalleryColors { primary, secondary, success, @@ -47,22 +47,22 @@ enum _CatalogColors { text, } -extension _CatalogScreenExtensions on _CatalogColors { +extension _GalleryScreenExtensions on _GalleryColors { Color color(BuildContext context) { switch (this) { - case _CatalogColors.primary: + case _GalleryColors.primary: return context.theme.colorScheme.primary; - case _CatalogColors.secondary: + case _GalleryColors.secondary: return context.theme.colorScheme.secondary; - case _CatalogColors.success: + case _GalleryColors.success: return context.theme.customColors.success!; - case _CatalogColors.info: + case _GalleryColors.info: return context.theme.customColors.info!; - case _CatalogColors.warning: + case _GalleryColors.warning: return context.theme.customColors.warning!; - case _CatalogColors.danger: + case _GalleryColors.danger: return context.theme.customColors.danger!; - case _CatalogColors.text: + case _GalleryColors.text: return context.theme.customColors.textColor!; } } diff --git a/catalog/gallery/lib/catalog/catalog_app_dialog.dart b/design_system/design_system_gallery/lib/gallery/gallery_app_dialog.dart similarity index 69% rename from catalog/gallery/lib/catalog/catalog_app_dialog.dart rename to design_system/design_system_gallery/lib/gallery/gallery_app_dialog.dart index c0b366fe..798bef4f 100644 --- a/catalog/gallery/lib/catalog/catalog_app_dialog.dart +++ b/design_system/design_system_gallery/lib/gallery/gallery_app_dialog.dart @@ -1,14 +1,14 @@ import 'package:auto_route/auto_route.dart'; -import 'package:catalog/widgets/app_dialog.dart'; +import 'package:design_system/widgets/app_dialog.dart'; +import 'package:design_system_gallery/gallery/gallery_scaffold_screen.dart'; import 'package:flutter/material.dart'; -import 'package:gallery/catalog/catalog_scaffold_screen.dart'; @RoutePage() -class CatalogDialogScreen extends StatelessWidget { - const CatalogDialogScreen({super.key}); +class GalleryDialogScreen extends StatelessWidget { + const GalleryDialogScreen({super.key}); @override - Widget build(BuildContext context) => const CatalogScaffold( + Widget build(BuildContext context) => const GalleryScaffold( title: 'DIALOG', child: AppDialog( title: 'Modal title', diff --git a/catalog/gallery/lib/catalog/catalog_app_dropdown_screen.dart b/design_system/design_system_gallery/lib/gallery/gallery_app_dropdown_screen.dart similarity index 73% rename from catalog/gallery/lib/catalog/catalog_app_dropdown_screen.dart rename to design_system/design_system_gallery/lib/gallery/gallery_app_dropdown_screen.dart index 41694268..59d18266 100644 --- a/catalog/gallery/lib/catalog/catalog_app_dropdown_screen.dart +++ b/design_system/design_system_gallery/lib/gallery/gallery_app_dropdown_screen.dart @@ -1,14 +1,14 @@ import 'package:auto_route/auto_route.dart'; -import 'package:catalog/widgets/app_dropdown.dart'; +import 'package:design_system/widgets/app_dropdown.dart'; +import 'package:design_system_gallery/gallery/gallery_scaffold_screen.dart'; import 'package:flutter/material.dart'; -import 'package:gallery/catalog/catalog_scaffold_screen.dart'; @RoutePage() -class CatalogDropdownScreen extends StatelessWidget { - const CatalogDropdownScreen({super.key}); +class GalleryDropdownScreen extends StatelessWidget { + const GalleryDropdownScreen({super.key}); @override - Widget build(BuildContext context) => CatalogScaffold( + Widget build(BuildContext context) => GalleryScaffold( title: 'DROPDOWN', child: Container( margin: const EdgeInsets.all(20), diff --git a/catalog/gallery/lib/catalog/catalog_app_radio_button.dart b/design_system/design_system_gallery/lib/gallery/gallery_app_radio_button.dart similarity index 64% rename from catalog/gallery/lib/catalog/catalog_app_radio_button.dart rename to design_system/design_system_gallery/lib/gallery/gallery_app_radio_button.dart index e8a647f8..4e863bde 100644 --- a/catalog/gallery/lib/catalog/catalog_app_radio_button.dart +++ b/design_system/design_system_gallery/lib/gallery/gallery_app_radio_button.dart @@ -1,14 +1,14 @@ import 'package:auto_route/auto_route.dart'; -import 'package:catalog/widgets/app_radio_button.dart'; +import 'package:design_system/widgets/app_radio_button.dart'; +import 'package:design_system_gallery/gallery/gallery_scaffold_screen.dart'; import 'package:flutter/material.dart'; -import 'package:gallery/catalog/catalog_scaffold_screen.dart'; @RoutePage() -class CatalogAppRadioButtonScreen extends StatelessWidget { - const CatalogAppRadioButtonScreen({super.key}); +class GalleryAppRadioButtonScreen extends StatelessWidget { + const GalleryAppRadioButtonScreen({super.key}); @override - Widget build(BuildContext context) => CatalogScaffold( + Widget build(BuildContext context) => GalleryScaffold( title: 'APP RADIO BUTTON', child: AppRadioButton( initialValue: 1, diff --git a/catalog/gallery/lib/catalog/catalog_app_text_fields_screen.dart b/design_system/design_system_gallery/lib/gallery/gallery_app_text_fields_screen.dart similarity index 75% rename from catalog/gallery/lib/catalog/catalog_app_text_fields_screen.dart rename to design_system/design_system_gallery/lib/gallery/gallery_app_text_fields_screen.dart index d1f0153f..7bdce4a9 100644 --- a/catalog/gallery/lib/catalog/catalog_app_text_fields_screen.dart +++ b/design_system/design_system_gallery/lib/gallery/gallery_app_text_fields_screen.dart @@ -1,27 +1,27 @@ import 'package:auto_route/auto_route.dart'; -import 'package:catalog/catalog.dart'; -import 'package:catalog/extensions/color_extensions.dart'; -import 'package:catalog/widgets/app_text_fields.dart'; +import 'package:design_system/design_system.dart'; +import 'package:design_system/extensions/color_extensions.dart'; +import 'package:design_system/widgets/app_text_fields.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; -import 'package:gallery/catalog/catalog_scaffold_screen.dart'; +import 'package:design_system_gallery/gallery/gallery_scaffold_screen.dart'; @RoutePage() -class CatalogTextFieldsScreen extends StatefulWidget { - const CatalogTextFieldsScreen({super.key}); +class GalleryTextFieldsScreen extends StatefulWidget { + const GalleryTextFieldsScreen({super.key}); @override - State createState() => - _CatalogTextFieldsScreenState(); + State createState() => + _GalleryTextFieldsScreenState(); } -class _CatalogTextFieldsScreenState extends State { +class _GalleryTextFieldsScreenState extends State { int _characterCount = 0; final labelTextController = TextEditingController(); final textAreaTextController = TextEditingController(); @override - Widget build(BuildContext context) => CatalogScaffold( + Widget build(BuildContext context) => GalleryScaffold( title: 'TEXT FIELDS', child: Container( margin: const EdgeInsets.all(20), diff --git a/catalog/gallery/lib/catalog/catalog_app_typography_screen.dart b/design_system/design_system_gallery/lib/gallery/gallery_app_typography_screen.dart similarity index 63% rename from catalog/gallery/lib/catalog/catalog_app_typography_screen.dart rename to design_system/design_system_gallery/lib/gallery/gallery_app_typography_screen.dart index 62be858b..26e58c8a 100644 --- a/catalog/gallery/lib/catalog/catalog_app_typography_screen.dart +++ b/design_system/design_system_gallery/lib/gallery/gallery_app_typography_screen.dart @@ -1,22 +1,22 @@ import 'package:auto_route/auto_route.dart'; -import 'package:catalog/catalog.dart'; +import 'package:design_system/design_system.dart'; import 'package:flutter/material.dart'; -import 'package:gallery/catalog/catalog_scaffold_screen.dart'; +import 'package:design_system_gallery/gallery/gallery_scaffold_screen.dart'; @RoutePage() -class CatalogAppTypographyScreen extends StatelessWidget { - const CatalogAppTypographyScreen({super.key}); +class GalleryAppTypographyScreen extends StatelessWidget { + const GalleryAppTypographyScreen({super.key}); @override - Widget build(BuildContext context) => CatalogScaffold( + Widget build(BuildContext context) => GalleryScaffold( title: 'TYPOGRAPHY', child: ListView.separated( shrinkWrap: true, separatorBuilder: (BuildContext context, int index) => const Divider(), - itemCount: _CatalogTypography.values.length, + itemCount: _GalleryTypography.values.length, itemBuilder: (BuildContext context, int index) { - final element = _CatalogTypography.values[index]; + final element = _GalleryTypography.values[index]; return Row( children: [ Expanded( @@ -36,7 +36,7 @@ class CatalogAppTypographyScreen extends StatelessWidget { ); } -enum _CatalogTypography { +enum _GalleryTypography { headingLarge, headingMedium, headingSmall, @@ -54,38 +54,38 @@ enum _CatalogTypography { buttonXSmall, } -extension _CatalogScreenExtensions on _CatalogTypography { +extension _GalleryScreenExtensions on _GalleryTypography { TextStyle textStyle(BuildContext context) { switch (this) { - case _CatalogTypography.headingLarge: + case _GalleryTypography.headingLarge: return context.theme.textStyles.headlineLarge!; - case _CatalogTypography.headingMedium: + case _GalleryTypography.headingMedium: return context.theme.textStyles.headlineMedium!; - case _CatalogTypography.headingSmall: + case _GalleryTypography.headingSmall: return context.theme.textStyles.headlineSmall!; - case _CatalogTypography.labelLarge: + case _GalleryTypography.labelLarge: return context.theme.textStyles.labelLarge!; - case _CatalogTypography.labelMedium: + case _GalleryTypography.labelMedium: return context.theme.textStyles.labelMedium!; - case _CatalogTypography.labelSmall: + case _GalleryTypography.labelSmall: return context.theme.textStyles.labelSmall!; - case _CatalogTypography.bodyLarge: + case _GalleryTypography.bodyLarge: return context.theme.textStyles.bodyLarge!; - case _CatalogTypography.bodyMedium: + case _GalleryTypography.bodyMedium: return context.theme.textStyles.bodyMedium!; - case _CatalogTypography.bodySmall: + case _GalleryTypography.bodySmall: return context.theme.textStyles.bodySmall!; - case _CatalogTypography.bodyXSmall: + case _GalleryTypography.bodyXSmall: return context.theme.customTextStyles.bodyXSmall; - case _CatalogTypography.buttonXSmall: + case _GalleryTypography.buttonXSmall: return context.theme.customTextStyles.buttonXSmall; - case _CatalogTypography.buttonLarge: + case _GalleryTypography.buttonLarge: return context.theme.customTextStyles.buttonLarge; - case _CatalogTypography.buttonMedium: + case _GalleryTypography.buttonMedium: return context.theme.customTextStyles.buttonMedium; - case _CatalogTypography.buttonSmall: + case _GalleryTypography.buttonSmall: return context.theme.customTextStyles.buttonSmall; - case _CatalogTypography.buttonXLarge: + case _GalleryTypography.buttonXLarge: return context.theme.customTextStyles.buttonXLarge; } } diff --git a/catalog/gallery/lib/catalog/catalog_scaffold_screen.dart b/design_system/design_system_gallery/lib/gallery/gallery_scaffold_screen.dart similarity index 83% rename from catalog/gallery/lib/catalog/catalog_scaffold_screen.dart rename to design_system/design_system_gallery/lib/gallery/gallery_scaffold_screen.dart index 0e6252d2..fcaba350 100644 --- a/catalog/gallery/lib/catalog/catalog_scaffold_screen.dart +++ b/design_system/design_system_gallery/lib/gallery/gallery_scaffold_screen.dart @@ -1,14 +1,14 @@ import 'package:auto_route/auto_route.dart'; -import 'package:catalog/extensions/color_extensions.dart'; +import 'package:design_system/extensions/color_extensions.dart'; import 'package:flutter/material.dart'; -import 'package:catalog/catalog.dart'; +import 'package:design_system/design_system.dart'; -class CatalogScaffold extends StatelessWidget { +class GalleryScaffold extends StatelessWidget { final Widget child; final String title; final bool? showBack; - const CatalogScaffold({ + const GalleryScaffold({ required this.child, required this.title, this.showBack = true, diff --git a/catalog/gallery/lib/main.dart b/design_system/design_system_gallery/lib/main.dart similarity index 60% rename from catalog/gallery/lib/main.dart rename to design_system/design_system_gallery/lib/main.dart index 758071e7..0b3d44f7 100644 --- a/catalog/gallery/lib/main.dart +++ b/design_system/design_system_gallery/lib/main.dart @@ -1,14 +1,14 @@ -import 'package:catalog/catalog.dart'; +import 'package:design_system/design_system.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; -import 'package:gallery/router/catalog_router.dart'; +import 'package:design_system_gallery/router/gallery_router.dart'; void main() { - runApp(MyApp(CatalogRouter())); + runApp(MyApp(GalleryRouter())); } class MyApp extends StatelessWidget { - final CatalogRouter _router; + final GalleryRouter _router; const MyApp(this._router, {super.key}); @@ -17,14 +17,14 @@ class MyApp extends StatelessWidget { designSize: const Size(375, 812), minTextAdapt: false, splitScreenMode: true, - builder: (_, __) => _CatalogAppContentScreen(_router), + builder: (_, __) => _GalleryAppContentScreen(_router), ); } -class _CatalogAppContentScreen extends StatelessWidget { - final CatalogRouter _router; +class _GalleryAppContentScreen extends StatelessWidget { + final GalleryRouter _router; - const _CatalogAppContentScreen(this._router, {super.key}); + const _GalleryAppContentScreen(this._router, {super.key}); @override Widget build(BuildContext context) => MaterialApp.router( diff --git a/design_system/design_system_gallery/lib/main/gallery_main_screen.dart b/design_system/design_system_gallery/lib/main/gallery_main_screen.dart new file mode 100644 index 00000000..c3c7d09d --- /dev/null +++ b/design_system/design_system_gallery/lib/main/gallery_main_screen.dart @@ -0,0 +1,91 @@ +import 'package:auto_route/auto_route.dart'; +import 'package:design_system/design_system.dart'; +import 'package:flutter/material.dart'; +import 'package:design_system_gallery/gallery/gallery_scaffold_screen.dart'; +import 'package:design_system_gallery/router/gallery_router.dart'; + +@RoutePage() +class GalleryMainScreen extends StatelessWidget { + const GalleryMainScreen({super.key}); + + @override + Widget build(BuildContext context) => GalleryScaffold( + title: 'WIDGET CATALOG', + showBack: false, + child: ListView.separated( + shrinkWrap: true, + separatorBuilder: (BuildContext context, int index) => Divider( + color: context.theme.colorScheme.primary, + ), + itemCount: _GalleryScreen.values.length, + itemBuilder: (BuildContext context, int index) { + final element = _GalleryScreen.values[index]; + return Row( + children: [ + Expanded( + child: TextButton( + child: Text(element.title.toUpperCase()), + onPressed: () => context.router.push(element.route), + ), + ), + ], + ); + }, + ), + ); +} + +enum _GalleryScreen { + buttons, + textFields, + colors, + typography, + dropdown, + dialog, + radioButtons, + checkbox, +} + +extension _GalleryScreenExtensions on _GalleryScreen { + String get title { + switch (this) { + case _GalleryScreen.buttons: + return 'Buttons'; + case _GalleryScreen.textFields: + return 'Text Fields'; + case _GalleryScreen.colors: + return 'Colors'; + case _GalleryScreen.typography: + return 'Typography'; + case _GalleryScreen.dropdown: + return 'Dropdown'; + case _GalleryScreen.dialog: + return 'Dialog'; + case _GalleryScreen.radioButtons: + return 'Radio Buttons'; + case _GalleryScreen.checkbox: + return 'Checkbox'; + } + } + + PageRouteInfo get route { + switch (this) { + case _GalleryScreen.buttons: + return const GalleryAppButtonRoute(); + case _GalleryScreen.textFields: + return const GalleryTextFieldsRoute(); + case _GalleryScreen.colors: + return const GalleryAppColorsRoute(); + case _GalleryScreen.typography: + return const GalleryAppTypographyRoute(); + case _GalleryScreen.dropdown: + return const GalleryDropdownRoute(); + case _GalleryScreen.dialog: + return const GalleryDialogRoute(); + case _GalleryScreen.radioButtons: + return const GalleryAppRadioButtonRoute(); + case _GalleryScreen.checkbox: + return const GalleryAppCheckboxRoute(); + } + } +} diff --git a/design_system/design_system_gallery/lib/router/gallery_router.dart b/design_system/design_system_gallery/lib/router/gallery_router.dart new file mode 100644 index 00000000..7f6f862f --- /dev/null +++ b/design_system/design_system_gallery/lib/router/gallery_router.dart @@ -0,0 +1,32 @@ +import 'package:auto_route/auto_route.dart'; +import 'package:design_system_gallery/gallery/gallery_app_colors_screen.dart'; +import 'package:design_system_gallery/gallery/gallery_app_radio_button.dart'; +import 'package:design_system_gallery/gallery/gallery_app_typography_screen.dart'; +import 'package:design_system_gallery/gallery/gallery_app_checkbox.dart'; +import 'package:design_system_gallery/gallery/gallery_app_dropdown_screen.dart'; +import 'package:design_system_gallery/gallery/gallery_app_text_fields_screen.dart'; +import 'package:design_system_gallery/gallery/gallery_app_dialog.dart'; +import 'package:design_system_gallery/main/gallery_main_screen.dart'; + +part 'gallery_router.gr.dart'; + +@AutoRouterConfig( + replaceInRouteName: 'Page|Screen|Router,Route', +) +class GalleryRouter extends _$GalleryRouter { + @override + final List routes; + + GalleryRouter() + : routes = [ + AutoRoute(page: GalleryAppButtonRoute.page), + AutoRoute(initial: true, page: GalleryMainRoute.page), + AutoRoute(page: GalleryTextFieldsRoute.page), + AutoRoute(page: GalleryAppColorsRoute.page), + AutoRoute(page: GalleryAppTypographyRoute.page), + AutoRoute(page: GalleryDropdownRoute.page), + AutoRoute(page: GalleryDialogRoute.page), + AutoRoute(page: GalleryAppRadioButtonRoute.page), + AutoRoute(page: GalleryAppCheckboxRoute.page), + ]; +} diff --git a/design_system/design_system_gallery/lib/router/gallery_router.gr.dart b/design_system/design_system_gallery/lib/router/gallery_router.gr.dart new file mode 100644 index 00000000..78c7966c --- /dev/null +++ b/design_system/design_system_gallery/lib/router/gallery_router.gr.dart @@ -0,0 +1,199 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ************************************************************************** +// AutoRouterGenerator +// ************************************************************************** + +// ignore_for_file: type=lint +// coverage:ignore-file + +part of 'gallery_router.dart'; + +abstract class _$GalleryRouter extends RootStackRouter { + // ignore: unused_element + _$GalleryRouter({super.navigatorKey}); + + @override + final Map pagesMap = { + GalleryAppButtonRoute.name: (routeData) { + return AutoRoutePage( + routeData: routeData, + child: const GalleryAppButtonScreen(), + ); + }, + GalleryAppCheckboxRoute.name: (routeData) { + return AutoRoutePage( + routeData: routeData, + child: const GalleryAppCheckboxScreen(), + ); + }, + GalleryAppColorsRoute.name: (routeData) { + return AutoRoutePage( + routeData: routeData, + child: const GalleryAppColorsScreen(), + ); + }, + GalleryAppRadioButtonRoute.name: (routeData) { + return AutoRoutePage( + routeData: routeData, + child: const GalleryAppRadioButtonScreen(), + ); + }, + GalleryAppTypographyRoute.name: (routeData) { + return AutoRoutePage( + routeData: routeData, + child: const GalleryAppTypographyScreen(), + ); + }, + GalleryDialogRoute.name: (routeData) { + return AutoRoutePage( + routeData: routeData, + child: const GalleryDialogScreen(), + ); + }, + GalleryDropdownRoute.name: (routeData) { + return AutoRoutePage( + routeData: routeData, + child: const GalleryDropdownScreen(), + ); + }, + GalleryMainRoute.name: (routeData) { + return AutoRoutePage( + routeData: routeData, + child: const GalleryMainScreen(), + ); + }, + GalleryTextFieldsRoute.name: (routeData) { + return AutoRoutePage( + routeData: routeData, + child: const GalleryTextFieldsScreen(), + ); + }, + }; +} + +/// generated route for +/// [GalleryAppButtonScreen] +class GalleryAppButtonRoute extends PageRouteInfo { + const GalleryAppButtonRoute({List? children}) + : super( + GalleryAppButtonRoute.name, + initialChildren: children, + ); + + static const String name = 'GalleryAppButtonRoute'; + + static const PageInfo page = PageInfo(name); +} + +/// generated route for +/// [GalleryAppCheckboxScreen] +class GalleryAppCheckboxRoute extends PageRouteInfo { + const GalleryAppCheckboxRoute({List? children}) + : super( + GalleryAppCheckboxRoute.name, + initialChildren: children, + ); + + static const String name = 'GalleryAppCheckboxRoute'; + + static const PageInfo page = PageInfo(name); +} + +/// generated route for +/// [GalleryAppColorsScreen] +class GalleryAppColorsRoute extends PageRouteInfo { + const GalleryAppColorsRoute({List? children}) + : super( + GalleryAppColorsRoute.name, + initialChildren: children, + ); + + static const String name = 'GalleryAppColorsRoute'; + + static const PageInfo page = PageInfo(name); +} + +/// generated route for +/// [GalleryAppRadioButtonScreen] +class GalleryAppRadioButtonRoute extends PageRouteInfo { + const GalleryAppRadioButtonRoute({List? children}) + : super( + GalleryAppRadioButtonRoute.name, + initialChildren: children, + ); + + static const String name = 'GalleryAppRadioButtonRoute'; + + static const PageInfo page = PageInfo(name); +} + +/// generated route for +/// [GalleryAppTypographyScreen] +class GalleryAppTypographyRoute extends PageRouteInfo { + const GalleryAppTypographyRoute({List? children}) + : super( + GalleryAppTypographyRoute.name, + initialChildren: children, + ); + + static const String name = 'GalleryAppTypographyRoute'; + + static const PageInfo page = PageInfo(name); +} + +/// generated route for +/// [GalleryDialogScreen] +class GalleryDialogRoute extends PageRouteInfo { + const GalleryDialogRoute({List? children}) + : super( + GalleryDialogRoute.name, + initialChildren: children, + ); + + static const String name = 'GalleryDialogRoute'; + + static const PageInfo page = PageInfo(name); +} + +/// generated route for +/// [GalleryDropdownScreen] +class GalleryDropdownRoute extends PageRouteInfo { + const GalleryDropdownRoute({List? children}) + : super( + GalleryDropdownRoute.name, + initialChildren: children, + ); + + static const String name = 'GalleryDropdownRoute'; + + static const PageInfo page = PageInfo(name); +} + +/// generated route for +/// [GalleryMainScreen] +class GalleryMainRoute extends PageRouteInfo { + const GalleryMainRoute({List? children}) + : super( + GalleryMainRoute.name, + initialChildren: children, + ); + + static const String name = 'GalleryMainRoute'; + + static const PageInfo page = PageInfo(name); +} + +/// generated route for +/// [GalleryTextFieldsScreen] +class GalleryTextFieldsRoute extends PageRouteInfo { + const GalleryTextFieldsRoute({List? children}) + : super( + GalleryTextFieldsRoute.name, + initialChildren: children, + ); + + static const String name = 'GalleryTextFieldsRoute'; + + static const PageInfo page = PageInfo(name); +} diff --git a/catalog/gallery/pubspec.lock b/design_system/design_system_gallery/pubspec.lock similarity index 99% rename from catalog/gallery/pubspec.lock rename to design_system/design_system_gallery/pubspec.lock index 159ea37e..12c9700c 100644 --- a/catalog/gallery/pubspec.lock +++ b/design_system/design_system_gallery/pubspec.lock @@ -129,13 +129,6 @@ packages: url: "https://pub.dev" source: hosted version: "8.7.0" - catalog: - dependency: "direct main" - description: - path: ".." - relative: true - source: path - version: "0.0.1" characters: dependency: transitive description: @@ -232,6 +225,13 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.0" + design_system: + dependency: "direct main" + description: + path: ".." + relative: true + source: path + version: "0.0.1" fake_async: dependency: transitive description: diff --git a/catalog/gallery/pubspec.yaml b/design_system/design_system_gallery/pubspec.yaml similarity index 97% rename from catalog/gallery/pubspec.yaml rename to design_system/design_system_gallery/pubspec.yaml index ba533454..dc5c1344 100644 --- a/catalog/gallery/pubspec.yaml +++ b/design_system/design_system_gallery/pubspec.yaml @@ -1,4 +1,4 @@ -name: gallery +name: design_system_gallery description: A new Flutter project. publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 @@ -16,7 +16,7 @@ environment: dependencies: flutter: sdk: flutter - catalog: + design_system: path: ../ auto_route: 7.8.3 diff --git a/catalog/gallery/test/widget_test.dart b/design_system/design_system_gallery/test/widget_test.dart similarity index 85% rename from catalog/gallery/test/widget_test.dart rename to design_system/design_system_gallery/test/widget_test.dart index fc60b1df..faffa33f 100644 --- a/catalog/gallery/test/widget_test.dart +++ b/design_system/design_system_gallery/test/widget_test.dart @@ -8,13 +8,13 @@ import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:gallery/main.dart'; -import 'package:gallery/router/catalog_router.dart'; +import 'package:design_system_gallery/main.dart'; +import 'package:design_system_gallery/router/gallery_router.dart'; void main() { testWidgets('Counter increments smoke test', (WidgetTester tester) async { // Build our app and trigger a frame. - await tester.pumpWidget(MyApp(CatalogRouter())); + await tester.pumpWidget(MyApp(GalleryRouter())); // Verify that our counter starts at 0. expect(find.text('0'), findsOneWidget); diff --git a/catalog/gallery/web/favicon.png b/design_system/design_system_gallery/web/favicon.png similarity index 100% rename from catalog/gallery/web/favicon.png rename to design_system/design_system_gallery/web/favicon.png diff --git a/catalog/gallery/web/icons/Icon-192.png b/design_system/design_system_gallery/web/icons/Icon-192.png similarity index 100% rename from catalog/gallery/web/icons/Icon-192.png rename to design_system/design_system_gallery/web/icons/Icon-192.png diff --git a/catalog/gallery/web/icons/Icon-512.png b/design_system/design_system_gallery/web/icons/Icon-512.png similarity index 100% rename from catalog/gallery/web/icons/Icon-512.png rename to design_system/design_system_gallery/web/icons/Icon-512.png diff --git a/catalog/gallery/web/icons/Icon-maskable-192.png b/design_system/design_system_gallery/web/icons/Icon-maskable-192.png similarity index 100% rename from catalog/gallery/web/icons/Icon-maskable-192.png rename to design_system/design_system_gallery/web/icons/Icon-maskable-192.png diff --git a/catalog/gallery/web/icons/Icon-maskable-512.png b/design_system/design_system_gallery/web/icons/Icon-maskable-512.png similarity index 100% rename from catalog/gallery/web/icons/Icon-maskable-512.png rename to design_system/design_system_gallery/web/icons/Icon-maskable-512.png diff --git a/catalog/gallery/web/index.html b/design_system/design_system_gallery/web/index.html similarity index 96% rename from catalog/gallery/web/index.html rename to design_system/design_system_gallery/web/index.html index 742d79c4..d50793dd 100644 --- a/catalog/gallery/web/index.html +++ b/design_system/design_system_gallery/web/index.html @@ -21,13 +21,13 @@ - + - gallery + design_system_gallery