├── .env.example
├── .github
├── pull_request_template.md
└── workflows
│ └── create-code-visualization-diagram.yml
├── .gitignore
├── .metadata
├── .vscode
├── .code-snippets
├── extensions.json
├── launch.json
├── settings.json
└── tasks.json
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── .project
├── .settings
│ └── org.eclipse.buildship.core.prefs
├── app
│ ├── .classpath
│ ├── .project
│ ├── .settings
│ │ └── org.eclipse.buildship.core.prefs
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── flutter_template
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-hdpi
│ │ │ └── splash.png
│ │ │ ├── drawable-mdpi
│ │ │ └── splash.png
│ │ │ ├── drawable-v21
│ │ │ ├── background.png
│ │ │ └── launch_background.xml
│ │ │ ├── drawable-xhdpi
│ │ │ └── splash.png
│ │ │ ├── drawable-xxhdpi
│ │ │ └── splash.png
│ │ │ ├── drawable-xxxhdpi
│ │ │ └── splash.png
│ │ │ ├── drawable
│ │ │ ├── background.png
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── files
│ ├── countries.json
│ └── currencies.json
├── fonts
│ ├── Roboto-Black.ttf
│ ├── Roboto-BlackItalic.ttf
│ ├── Roboto-Bold.ttf
│ ├── Roboto-BoldItalic.ttf
│ ├── Roboto-Italic.ttf
│ ├── Roboto-Light.ttf
│ ├── Roboto-LightItalic.ttf
│ ├── Roboto-Medium.ttf
│ ├── Roboto-MediumItalic.ttf
│ ├── Roboto-Regular.ttf
│ ├── Roboto-Thin.ttf
│ └── Roboto-ThinItalic.ttf
├── icons
│ └── core
│ │ └── splash.png
└── translations
│ ├── app_en.arb
│ └── app_es.arb
├── dev_commands.sh
├── diagram.svg
├── flutter_launcher_icons.yaml
├── flutter_native_splash.yaml
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ ├── LaunchBackground.imageset
│ │ ├── Contents.json
│ │ └── background.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── l10n.yaml
├── lib
├── application
│ ├── auth
│ │ ├── auth_bloc.dart
│ │ ├── auth_bloc.freezed.dart
│ │ ├── auth_event.dart
│ │ └── auth_state.dart
│ ├── local_auth
│ │ ├── local_auth_bloc.dart
│ │ ├── local_auth_bloc.freezed.dart
│ │ ├── local_auth_event.dart
│ │ └── local_auth_state.dart
│ └── settings
│ │ ├── settings_bloc.dart
│ │ ├── settings_bloc.freezed.dart
│ │ ├── settings_event.dart
│ │ └── settings_state.dart
├── domain
│ ├── auth
│ │ ├── auth_failure.dart
│ │ ├── auth_failure.freezed.dart
│ │ └── i_auth_facade.dart
│ └── core
│ │ ├── constants
│ │ ├── analytics_constants.dart
│ │ ├── api_constants.dart
│ │ ├── app_constants.dart
│ │ ├── constants.dart
│ │ ├── storage_constants.dart
│ │ └── text_max_lengths.dart
│ │ ├── enums.dart
│ │ ├── environment
│ │ ├── base_config.dart
│ │ ├── environment.dart
│ │ └── environment_configs.dart
│ │ ├── extensions
│ │ ├── date_extensions.dart
│ │ ├── extensions.dart
│ │ ├── numeric_extensions.dart
│ │ └── string_extensions.dart
│ │ ├── generated
│ │ ├── assets.gen.dart
│ │ └── fonts.gen.dart
│ │ ├── helpers
│ │ ├── countries_helper.dart
│ │ ├── currencies_helper.dart
│ │ ├── decimal_text_input_formatter.dart
│ │ ├── secure_storage.dart
│ │ ├── utility.dart
│ │ └── validators.dart
│ │ ├── l10n
│ │ ├── app_localizations.dart
│ │ ├── app_localizations_en.dart
│ │ ├── app_localizations_es.dart
│ │ └── untranslated_strings.arb
│ │ └── models
│ │ ├── country.dart
│ │ ├── currency.dart
│ │ ├── model_factory.dart
│ │ └── user.dart
├── infrastructure
│ ├── auth
│ │ └── auth_facade.dart
│ └── core
│ │ ├── dev
│ │ └── logging_service.dart
│ │ ├── getters.dart
│ │ ├── network
│ │ ├── firebase
│ │ │ ├── firebase_helpers.dart
│ │ │ └── firebase_injectable_modules.dart
│ │ ├── graphql
│ │ │ ├── graphql_mutations.dart
│ │ │ ├── graphql_queries.dart
│ │ │ └── graphql_service.dart
│ │ └── rest-api
│ │ │ ├── api_error_interceptors.dart
│ │ │ └── api_service.dart
│ │ └── system
│ │ ├── camera_service.dart
│ │ ├── device_info_service.dart
│ │ ├── file_picker_service.dart
│ │ ├── permissions_service.dart
│ │ └── storage_service.dart
├── injection.config.dart
├── injection.dart
├── main.dart
└── presentation
│ ├── authentication
│ └── pages
│ │ ├── forgot_password_page.dart
│ │ ├── signin_page.dart
│ │ └── signup_page.dart
│ ├── base
│ ├── base_page.dart
│ ├── home
│ │ └── home_page.dart
│ └── profile
│ │ └── profile_page.dart
│ ├── core
│ ├── app_widget.dart
│ ├── pages
│ │ ├── landing_page.dart
│ │ ├── onboarding_page.dart
│ │ ├── splash_page.dart
│ │ └── update_app_page.dart
│ ├── shimmer
│ │ ├── custom_shimmer.dart
│ │ ├── shimmer_card.dart
│ │ ├── shimmer_list.dart
│ │ ├── shimmer_list_tile.dart
│ │ ├── shimmer_section.dart
│ │ ├── shimmer_skeleton_bar.dart
│ │ └── shimmer_skeleton_circle.dart
│ ├── styles
│ │ ├── app_colors.dart
│ │ ├── app_text_theme.dart
│ │ ├── app_theme.dart
│ │ ├── styles.dart
│ │ └── text_styles.dart
│ └── widgets
│ │ ├── buttons
│ │ ├── buttons.dart
│ │ ├── link_text.dart
│ │ ├── rounded_filled_button.dart
│ │ └── rounded_outline_button.dart
│ │ ├── dialogs
│ │ ├── app_dialog.dart
│ │ ├── app_toast.dart
│ │ ├── dialogs.dart
│ │ └── snackbars.dart
│ │ ├── inputs
│ │ ├── custom_choice_chip.dart
│ │ ├── custom_date_picker.dart
│ │ ├── custom_dropdown.dart
│ │ ├── custom_pin_field.dart
│ │ ├── custom_switch_tile.dart
│ │ ├── custom_text_field.dart
│ │ └── inputs.dart
│ │ ├── layout
│ │ ├── app_scaffold.dart
│ │ ├── custom_app_bar.dart
│ │ ├── layout.dart
│ │ └── logo_widget.dart
│ │ └── utility
│ │ ├── dots_indicator.dart
│ │ ├── life_cycle_watcher.dart
│ │ └── navigation_observer.dart
│ ├── onboarding
│ ├── onboarding_page.dart
│ └── pages
│ │ └── welcome_page.dart
│ └── routes
│ ├── router.dart
│ └── router.gr.dart
├── linux
├── .gitignore
├── CMakeLists.txt
├── flutter
│ ├── CMakeLists.txt
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugin_registrant.h
│ └── generated_plugins.cmake
├── main.cc
├── my_application.cc
└── my_application.h
├── macos
├── .gitignore
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── app_icon_1024.png
│ │ ├── app_icon_128.png
│ │ ├── app_icon_16.png
│ │ ├── app_icon_256.png
│ │ ├── app_icon_32.png
│ │ ├── app_icon_512.png
│ │ └── app_icon_64.png
│ ├── Base.lproj
│ └── MainMenu.xib
│ ├── Configs
│ ├── AppInfo.xcconfig
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── Warnings.xcconfig
│ ├── DebugProfile.entitlements
│ ├── Info.plist
│ ├── MainFlutterWindow.swift
│ └── Release.entitlements
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
├── index.html
├── manifest.json
└── splash
│ ├── img
│ ├── dark-1x.png
│ ├── dark-2x.png
│ ├── dark-3x.png
│ ├── light-1x.png
│ ├── light-2x.png
│ └── light-3x.png
│ └── style.css
└── windows
├── .gitignore
├── CMakeLists.txt
├── flutter
├── CMakeLists.txt
├── generated_plugin_registrant.cc
├── generated_plugin_registrant.h
└── generated_plugins.cmake
└── runner
├── CMakeLists.txt
├── Runner.rc
├── flutter_window.cpp
├── flutter_window.h
├── main.cpp
├── resource.h
├── resources
└── app_icon.ico
├── run_loop.cpp
├── run_loop.h
├── runner.exe.manifest
├── utils.cpp
├── utils.h
├── win32_window.cpp
└── win32_window.h
/.env.example:
--------------------------------------------------------------------------------
1 | DEV_API_BASE_URL=localhost:5000
2 | STAGING_API_BASE_URL=http://localhost
3 | PROD_API_BASE_URL=http://localhost
4 |
5 |
--------------------------------------------------------------------------------
/.github/pull_request_template.md:
--------------------------------------------------------------------------------
1 | ## What does this PR do?
2 |
3 |
4 |
5 | Fixes # (issue)
6 |
7 |
10 |
11 | **Environment**: Staging(main branch) / Production
12 |
13 | ## Type of change
14 |
15 |
16 |
17 | - [ ] Bug fix (non-breaking change which fixes an issue)
18 | - [ ] New feature (non-breaking change which adds functionality)
19 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
20 | - [ ] This change requires a documentation update
21 |
22 | ## How should this be tested?
23 |
24 |
25 |
26 | - [ ] Test A
27 | - [ ] Test B
28 |
29 | ## Checklist
30 |
31 |
32 |
33 | - My code doesn't follow the style guidelines of this project
34 | - I haven't performed a self-review of my own code and corrected any misspellings
35 | - I haven't commented my code, particularly in hard-to-understand areas
36 | - I haven't checked if my PR needs changes to the documentation
37 | - I haven't checked if my changes generate no new warnings
38 | - I haven't added tests that prove my fix is effective or that my feature works
39 | - I haven't checked if new and existing unit tests pass locally with my changes
40 |
--------------------------------------------------------------------------------
/.github/workflows/create-code-visualization-diagram.yml:
--------------------------------------------------------------------------------
1 | name: Create code visualization diagram
2 | on:
3 | workflow_dispatch: {}
4 | push:
5 | branches:
6 | - main
7 | - firebase
8 | jobs:
9 | get_data:
10 | runs-on: ubuntu-latest
11 | steps:
12 | - name: Checkout code
13 | uses: actions/checkout@master
14 | - name: Update diagram
15 | uses: githubocto/repo-visualizer@main
16 | with:
17 | excluded_paths: "ignore,.github,.vscode"
18 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.lock
4 | *.log
5 | *.pyc
6 | *.swp
7 | .DS_Store
8 | .atom/
9 | .buildlog/
10 | .history
11 | .svn/
12 | *.env
13 |
14 | # IntelliJ related
15 | *.iml
16 | *.ipr
17 | *.iws
18 | .idea/
19 |
20 | # Visual Studio Code related
21 | .classpath
22 | .project
23 | .settings/
24 | # .vscode/
25 |
26 | # Firebase related
27 | **/google-services.json
28 |
29 | # Flutter repo-specific
30 | /bin/cache/
31 | /bin/internal/bootstrap.bat
32 | /bin/internal/bootstrap.sh
33 | /bin/mingit/
34 | /dev/benchmarks/mega_gallery/
35 | /dev/bots/.recipe_deps
36 | /dev/bots/android_tools/
37 | /dev/devicelab/ABresults*.json
38 | /dev/docs/doc/
39 | /dev/docs/flutter.docs.zip
40 | /dev/docs/lib/
41 | /dev/docs/pubspec.yaml
42 | /dev/integration_tests/**/xcuserdata
43 | /dev/integration_tests/**/Pods
44 | /packages/flutter/coverage/
45 | version
46 | analysis_benchmark.json
47 |
48 | # packages file containing multi-root paths
49 | .packages.generated
50 |
51 | # Flutter/Dart/Pub related
52 | **/doc/api/
53 | .dart_tool/
54 | .flutter-plugins
55 | .flutter-plugins-dependencies
56 | **/generated_plugin_registrant.dart
57 | .packages
58 | .pub-cache/
59 | .pub/
60 | build/
61 | flutter_*.png
62 | linked_*.ds
63 | unlinked.ds
64 | unlinked_spec.ds
65 |
66 | # Android related
67 | **/android/**/gradle-wrapper.jar
68 | .gradle/
69 | **/android/captures/
70 | **/android/gradlew
71 | **/android/gradlew.bat
72 | **/android/local.properties
73 | **/android/**/GeneratedPluginRegistrant.java
74 | **/android/key.properties
75 | *.jks
76 |
77 | # iOS/XCode related
78 | **/ios/**/*.mode1v3
79 | **/ios/**/*.mode2v3
80 | **/ios/**/*.moved-aside
81 | **/ios/**/*.pbxuser
82 | **/ios/**/*.perspectivev3
83 | **/ios/**/*sync/
84 | **/ios/**/.sconsign.dblite
85 | **/ios/**/.tags*
86 | **/ios/**/.vagrant/
87 | **/ios/**/DerivedData/
88 | **/ios/**/Icon?
89 | **/ios/**/Pods/
90 | **/ios/**/.symlinks/
91 | **/ios/**/profile
92 | **/ios/**/xcuserdata
93 | **/ios/.generated/
94 | **/ios/Flutter/.last_build_id
95 | **/ios/Flutter/App.framework
96 | **/ios/Flutter/Flutter.framework
97 | **/ios/Flutter/Flutter.podspec
98 | **/ios/Flutter/Generated.xcconfig
99 | **/ios/Flutter/ephemeral
100 | **/ios/Flutter/app.flx
101 | **/ios/Flutter/app.zip
102 | **/ios/Flutter/flutter_assets/
103 | **/ios/Flutter/flutter_export_environment.sh
104 | **/ios/ServiceDefinitions.json
105 | **/ios/Runner/GeneratedPluginRegistrant.*
106 |
107 | # macOS
108 | **/Flutter/ephemeral/
109 | **/Pods/
110 | **/macos/Flutter/GeneratedPluginRegistrant.swift
111 | **/macos/Flutter/ephemeral
112 | **/xcuserdata/
113 |
114 | # Windows
115 | **/windows/flutter/generated_plugin_registrant.cc
116 | **/windows/flutter/generated_plugin_registrant.h
117 |
118 | # Linux
119 | **/linux/flutter/generated_plugin_registrant.cc
120 | **/linux/flutter/generated_plugin_registrant.h
121 |
122 | # Coverage
123 | coverage/
124 |
125 | # Symbols
126 | app.*.symbols
127 |
128 | # Exceptions to above rules.
129 | !**/ios/**/default.mode1v3
130 | !**/ios/**/default.mode2v3
131 | !**/ios/**/default.pbxuser
132 | !**/ios/**/default.perspectivev3
133 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
134 | !/dev/ci/**/Gemfile.lock
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled.
5 |
6 | version:
7 | revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
8 | channel: stable
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
17 | base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
18 | - platform: android
19 | create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
20 | base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
21 | - platform: ios
22 | create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
23 | base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
24 | - platform: linux
25 | create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
26 | base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
27 | - platform: macos
28 | create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
29 | base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
30 | - platform: web
31 | create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
32 | base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
33 | - platform: windows
34 | create_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
35 | base_revision: 52b3dc25f6471c27b2144594abb11c741cb88f57
36 |
37 | # User provided section
38 |
39 | # List of Local paths (relative to this file) that should be
40 | # ignored by the migrate tool.
41 | #
42 | # Files that are not part of the templates will be ignored by default.
43 | unmanaged_files:
44 | - 'lib/main.dart'
45 | - 'ios/Runner.xcodeproj/project.pbxproj'
46 |
--------------------------------------------------------------------------------
/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "nash.awesome-flutter-snippets",
4 | "felixangelov.bloc",
5 | "dart-code.dart-code",
6 | "dotup.dart-data-class-generator",
7 | "dart-code.flutter",
8 | "gruntfuggly.todo-tree"
9 | ]
10 | }
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/.vscode/launch.json
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.formatOnSave": true,
3 | "files.exclude": {
4 | "**/.git": true,
5 | "**/.svn": true,
6 | "**/.hg": true,
7 | "**/CVS": true,
8 | "**/.DS_Store": true,
9 | "**/Thumbs.db": true,
10 | "build": true,
11 | ".flutter-plugins": true,
12 | ".flutter-plugins-dependencies": true,
13 | ".metadata": true,
14 | "linux/": true,
15 | "macos/": true,
16 | "windows/": true,
17 | "web/": true,
18 | },
19 | "[dart]": {
20 | "editor.formatOnSave": true,
21 | "editor.formatOnType": true,
22 | "editor.defaultFormatter": "Dart-Code.dart-code",
23 | "editor.rulers": [
24 | 80
25 | ],
26 | "editor.selectionHighlight": false,
27 | "editor.suggest.snippetsPreventQuickSuggestions": false,
28 | "editor.suggestSelection": "first",
29 | "editor.tabCompletion": "onlySnippets",
30 | "editor.wordBasedSuggestions": false
31 | },
32 | "files.autoSave": "afterDelay",
33 | "editor.guides.bracketPairs": true,
34 | "dart.showTodos": true,
35 | "dart.renameFilesWithClasses": "prompt",
36 | "dart.flutterHotReloadOnSave": "allIfDirty",
37 | "dart_data_class_generator.useEquatable": true,
38 | }
--------------------------------------------------------------------------------
/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "2.0.0",
3 | }
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | linter:
4 | rules:
5 | - sort_pub_dependencies
6 |
7 | analyzer:
8 | plugins:
9 | - dart_code_metrics
10 | exclude:
11 | - "build/**"
12 | - "lib/injection.config.dart"
13 | - "**/*.g.dart"
14 | - "**/*.gen.dart"
15 | - "**/*.gr.dart"
16 | - "**/*.freezed.dart"
17 | errors:
18 | missing_return: error
19 |
20 | dart_code_metrics:
21 | anti-patterns:
22 | - long-method
23 | - long-parameter-list
24 | metrics:
25 | cyclomatic-complexity: 20
26 | maximum-nesting-level: 5
27 | number-of-parameters: 4
28 | source-lines-of-code: 50
29 | technical-debt:
30 | metrics-exclude:
31 | - test/**
32 | rules:
33 | - newline-before-return
34 | - no-boolean-literal-compare
35 | - no-empty-block
36 | - prefer-trailing-comma
37 | - prefer-conditional-expressions
38 | - no-equal-then-else
39 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/android/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | android
4 | Project android created by Buildship.
5 |
6 |
7 |
8 |
9 | org.eclipse.buildship.core.gradleprojectbuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.buildship.core.gradleprojectnature
16 |
17 |
18 |
19 | 1624424677406
20 |
21 | 30
22 |
23 | org.eclipse.core.resources.regexFilterMatcher
24 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/android/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | arguments=
2 | auto.sync=false
3 | build.scans.enabled=false
4 | connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
5 | connection.project.dir=
6 | eclipse.preferences.version=1
7 | gradle.user.home=
8 | java.home=C\:/Program Files/OpenJDK/jdk-11.0.8.10-hotspot
9 | jvm.arguments=
10 | offline.mode=false
11 | override.workspace.settings=true
12 | show.console.view=true
13 | show.executions.view=true
14 |
--------------------------------------------------------------------------------
/android/app/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/android/app/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | app
4 | Project app created by Buildship.
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.buildship.core.gradleprojectbuilder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.buildship.core.gradleprojectnature
22 |
23 |
24 |
25 | 1624424677410
26 |
27 | 30
28 |
29 | org.eclipse.core.resources.regexFilterMatcher
30 | node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/android/app/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | connection.project.dir=..
2 | eclipse.preferences.version=1
3 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply plugin: 'com.google.gms.google-services'
27 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
28 |
29 | android {
30 | compileSdkVersion 33
31 |
32 | compileOptions {
33 | sourceCompatibility JavaVersion.VERSION_1_8
34 | targetCompatibility JavaVersion.VERSION_1_8
35 | }
36 |
37 | kotlinOptions {
38 | jvmTarget = '1.8'
39 | }
40 |
41 | sourceSets {
42 | main.java.srcDirs += 'src/main/kotlin'
43 | }
44 |
45 | lintOptions {
46 | disable 'InvalidPackage'
47 | checkReleaseBuilds false
48 | }
49 |
50 | defaultConfig {
51 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
52 | applicationId "com.example.flutter_template"
53 | minSdkVersion 24
54 | targetSdkVersion 31
55 | versionCode flutterVersionCode.toInteger()
56 | versionName flutterVersionName
57 | multiDexEnabled true
58 | }
59 |
60 | buildTypes {
61 | release {
62 | // TODO: Add your own signing config for the release build.
63 | // Signing with the debug keys for now, so `flutter run --release` works.
64 | signingConfig signingConfigs.debug
65 | }
66 | }
67 | }
68 |
69 | flutter {
70 | source '../..'
71 | }
72 |
73 | dependencies {
74 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
75 | implementation platform('com.google.firebase:firebase-bom:31.1.0')
76 | implementation 'com.google.firebase:firebase-analytics'
77 | }
78 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/flutter_template/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.flutter_template
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-hdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/android/app/src/main/res/drawable-hdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/android/app/src/main/res/drawable-mdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/android/app/src/main/res/drawable-v21/background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 | -
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xhdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/android/app/src/main/res/drawable-xhdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxhdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/android/app/src/main/res/drawable-xxhdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxxhdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/android/app/src/main/res/drawable-xxxhdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/android/app/src/main/res/drawable/background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 | -
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
16 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
16 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | classpath 'com.google.gms:google-services:4.3.13'
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | google()
18 | jcenter()
19 | }
20 | }
21 |
22 | rootProject.buildDir = '../build'
23 | subprojects {
24 | project.buildDir = "${rootProject.buildDir}/${project.name}"
25 | project.evaluationDependsOn(':app')
26 | }
27 |
28 | task clean(type: Delete) {
29 | delete rootProject.buildDir
30 | }
31 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/assets/fonts/Roboto-Black.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/assets/fonts/Roboto-Black.ttf
--------------------------------------------------------------------------------
/assets/fonts/Roboto-BlackItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/assets/fonts/Roboto-BlackItalic.ttf
--------------------------------------------------------------------------------
/assets/fonts/Roboto-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/assets/fonts/Roboto-Bold.ttf
--------------------------------------------------------------------------------
/assets/fonts/Roboto-BoldItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/assets/fonts/Roboto-BoldItalic.ttf
--------------------------------------------------------------------------------
/assets/fonts/Roboto-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/assets/fonts/Roboto-Italic.ttf
--------------------------------------------------------------------------------
/assets/fonts/Roboto-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/assets/fonts/Roboto-Light.ttf
--------------------------------------------------------------------------------
/assets/fonts/Roboto-LightItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/assets/fonts/Roboto-LightItalic.ttf
--------------------------------------------------------------------------------
/assets/fonts/Roboto-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/assets/fonts/Roboto-Medium.ttf
--------------------------------------------------------------------------------
/assets/fonts/Roboto-MediumItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/assets/fonts/Roboto-MediumItalic.ttf
--------------------------------------------------------------------------------
/assets/fonts/Roboto-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/assets/fonts/Roboto-Regular.ttf
--------------------------------------------------------------------------------
/assets/fonts/Roboto-Thin.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/assets/fonts/Roboto-Thin.ttf
--------------------------------------------------------------------------------
/assets/fonts/Roboto-ThinItalic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/assets/fonts/Roboto-ThinItalic.ttf
--------------------------------------------------------------------------------
/assets/icons/core/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/assets/icons/core/splash.png
--------------------------------------------------------------------------------
/assets/translations/app_en.arb:
--------------------------------------------------------------------------------
1 | {
2 | "@____VALIDATION_MESSAGES____": {},
3 | "thisFieldIsRequired": "This field is required",
4 | "pleaseEnterAnEmailAddress": "Please enter an email address",
5 | "pleaseEnterAValidEmailAddress": "Please enter a valid email address",
6 | "thisFieldCannotExceed100characters": "This field cannot exceed 100 characters",
7 | "pleaseEnterAPhoneNumber": "Please enter a phone number",
8 | "pleaseEnterAValidPhoneNumber": "Please enter a valid phone number",
9 | "pleaseEnterAPassword": "Please enter a password",
10 | "passwordTooShort": "Password too short. Please enter a password of atleast 6 length",
11 | "dontForgetYourName": "Don’t forget your name!",
12 | "invalidName": "Invalid Name. Only alphabets allowed.",
13 | "pleaseEnterAnAmount": "Please enter an amount",
14 | "pleaseEnterValidAmount": "Please enter a valid amount",
15 | "pleaseEnterValidDecimal": "Please enter a valid decimal value",
16 | "maximumAmountCannotExceed": "Maximum amount cannot exceed 100,000",
17 | "validIntegerValue": "Please enter a valid integer value",
18 | "validTaxRate": "Please enter a valid rate",
19 | "rateShouldBeInRange": "The rate should be in range 0-100",
20 | "enterAValidPostalCode": "Please enter a valid postal code",
21 | "@____END_VALIDATION_MESSAGES____": {}
22 | }
--------------------------------------------------------------------------------
/assets/translations/app_es.arb:
--------------------------------------------------------------------------------
1 | {
2 | "@____VALIDATION_MESSAGES____": {},
3 | "thisFieldIsRequired": "Este espacio es requerido",
4 | "pleaseEnterAnEmailAddress": "Por favor, ingresa tu correo electrónico",
5 | "pleaseEnterAValidEmailAddress": "Por favor, ingresa un correo electrónico valido",
6 | "thisFieldCannotExceed100characters": "Este espacio no puede exceder los 100 carácteres",
7 | "pleaseEnterAPhoneNumber": "Por favor, ingresa tu número de teléfono",
8 | "pleaseEnterAValidPhoneNumber": "Por favor, ingresa un número de teléfono valido",
9 | "pleaseEnterAPassword": "Por favor, ingresa una contraseña",
10 | "passwordTooShort": "Contraseña muy corta. Por favor, ingresa una contraseña con al menos 6 carácteres",
11 | "dontForgetYourName": "¡No te olvides de tu nombre!",
12 | "invalidName": "Nombre invalido. Solo se permiten letras.",
13 | "pleaseEnterAnAmount": "Por favor, ingresa un monto",
14 | "pleaseEnterValidAmount": "Por favor, ingresa un monto valido",
15 | "pleaseEnterValidDecimal": "Introduce un número decimal valido",
16 | "maximumAmountCannotExceed": "El monto máximo no puede ser mayor a 100,000",
17 | "validIntegerValue": "Introduce un valor entero valido",
18 | "validTaxRate": "Por favor, ingresa una tarifa valida",
19 | "rateShouldBeInRange": "La tarifa debe estar en un rango de 0-100",
20 | "enterAValidPostalCode": "Introduce un código postal valido",
21 | "@____END_VALIDATION_MESSAGES____": {}
22 | }
--------------------------------------------------------------------------------
/dev_commands.sh:
--------------------------------------------------------------------------------
1 | # Format all the files
2 | dart format .
3 | # Fix dart language warnings which can be automatically fixed
4 | dart fix --apply
5 | # Run if the build runner command fails
6 | flutter packages pub get
7 | # Updates the launcher icons
8 | flutter pub run flutter_launcher_icons
9 | # Generates freezed files, assets paths
10 | flutter pub run build_runner build --delete-conflicting-outputs
11 | # Run to change the app package name
12 | flutter pub run change_app_package_name:main com.new.package.name
13 | # Generates the splash screen from
14 | flutter pub run flutter_native_splash:create
--------------------------------------------------------------------------------
/flutter_launcher_icons.yaml:
--------------------------------------------------------------------------------
1 | flutter_icons:
2 | android: true
3 | ios: true
4 | image_path: "assets/icons/core/logo.png"
5 | web:
6 | generate: true
7 | windows:
8 | generate: true
9 | macos:
10 | generate: true
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "background.png",
5 | "idiom" : "universal",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "author" : "xcode",
19 | "version" : 1
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "LaunchImage.png",
5 | "idiom" : "universal",
6 | "scale" : "1x"
7 | },
8 | {
9 | "filename" : "LaunchImage@2x.png",
10 | "idiom" : "universal",
11 | "scale" : "2x"
12 | },
13 | {
14 | "filename" : "LaunchImage@3x.png",
15 | "idiom" : "universal",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "author" : "xcode",
21 | "version" : 1
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KKshitiz/flutter-DDD-template/f1e86a1fd707a23282ce0a418205f44f94791313/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | flutter_template
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 | UIStatusBarHidden
45 |
46 |
47 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/l10n.yaml:
--------------------------------------------------------------------------------
1 | arb-dir: assets/translations
2 |
3 | template-arb-file: app_en.arb
4 |
5 | output-localization-file: app_localizations.dart
6 |
7 | output-class: AppLocalizations
8 |
9 | nullable-getter: false
10 |
11 | synthetic-package: false
12 |
13 | output-dir: lib/domain/core/l10n
14 |
15 | untranslated-messages-file: lib/domain/core/l10n/untranslated_strings.arb
--------------------------------------------------------------------------------
/lib/application/auth/auth_event.dart:
--------------------------------------------------------------------------------
1 | part of 'auth_bloc.dart';
2 |
3 | @freezed
4 | class AuthEvent with _$AuthEvent {
5 | const factory AuthEvent.registerWithEmailAndPassword({
6 | required String email,
7 | required String password,
8 | }) = _RegisterWithEmailAndPassword;
9 |
10 | const factory AuthEvent.signInWithEmailAndPassword({
11 | required String email,
12 | required String password,
13 | }) = _SignInWithEmailAndPassword;
14 |
15 | const factory AuthEvent.signOut() = SignOut;
16 |
17 | const factory AuthEvent.checkAuthState() = CheckAuthState;
18 |
19 | const factory AuthEvent.sendEmailConfirmation({required String email}) =
20 | _SendEmailConfirmation;
21 |
22 | const factory AuthEvent.deleteAcccount() = _DeleteAccount;
23 | const factory AuthEvent.updateEmailAddress(String updatedEmail) =
24 | _UpdateEmailAddress;
25 | const factory AuthEvent.updateConnectivityStatus(ConnectivityResult status) =
26 | _UpdateConnectivityStatus;
27 | const factory AuthEvent.checkConnectivityStatus() = _CheckConnectivityStatus;
28 | }
29 |
--------------------------------------------------------------------------------
/lib/application/auth/auth_state.dart:
--------------------------------------------------------------------------------
1 | part of 'auth_bloc.dart';
2 |
3 | @freezed
4 | class AuthState with _$AuthState {
5 | const factory AuthState({
6 | required bool isLoading,
7 | required bool isUserSignedin,
8 | required Option> authFailureOrSuccessOption,
9 | required Option>
10 | deleteAccountFailureOrSuccessOption,
11 | required Option> emailSendFailureOrSuccessOption,
12 | required Option>
13 | updateEmailFailureOrSuccessOption,
14 | required bool isNetworkAvailable,
15 | }) = _AuthState;
16 |
17 | factory AuthState.initial() => AuthState(
18 | isLoading: false,
19 | isUserSignedin: false,
20 | deleteAccountFailureOrSuccessOption: none(),
21 | emailSendFailureOrSuccessOption: none(),
22 | authFailureOrSuccessOption: none(),
23 | updateEmailFailureOrSuccessOption: none(),
24 | isNetworkAvailable: true,
25 | );
26 | }
27 |
--------------------------------------------------------------------------------
/lib/application/local_auth/local_auth_bloc.dart:
--------------------------------------------------------------------------------
1 | import 'package:bloc/bloc.dart';
2 | import 'package:freezed_annotation/freezed_annotation.dart';
3 |
4 | part 'local_auth_event.dart';
5 | part 'local_auth_state.dart';
6 | part 'local_auth_bloc.freezed.dart';
7 |
8 | class LocalAuthBloc extends Bloc {
9 | LocalAuthBloc() : super(_Initial()) {
10 | on((event, emit) {
11 | // TODO: implement event handler
12 | });
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/lib/application/local_auth/local_auth_event.dart:
--------------------------------------------------------------------------------
1 | part of 'local_auth_bloc.dart';
2 |
3 | @freezed
4 | class LocalAuthEvent with _$LocalAuthEvent {
5 | const factory LocalAuthEvent.started() = _Started;
6 | }
--------------------------------------------------------------------------------
/lib/application/local_auth/local_auth_state.dart:
--------------------------------------------------------------------------------
1 | part of 'local_auth_bloc.dart';
2 |
3 | @freezed
4 | class LocalAuthState with _$LocalAuthState {
5 | const factory LocalAuthState.initial() = _Initial;
6 | }
7 |
--------------------------------------------------------------------------------
/lib/application/settings/settings_bloc.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 | import 'package:freezed_annotation/freezed_annotation.dart';
4 | import 'package:injectable/injectable.dart';
5 |
6 | part 'settings_bloc.freezed.dart';
7 | part 'settings_event.dart';
8 | part 'settings_state.dart';
9 |
10 | @injectable
11 | class SettingsBloc extends Bloc {
12 | SettingsBloc() : super(SettingsState.initial());
13 | }
14 |
--------------------------------------------------------------------------------
/lib/application/settings/settings_event.dart:
--------------------------------------------------------------------------------
1 | part of 'settings_bloc.dart';
2 |
3 | @freezed
4 | class SettingsEvent with _$SettingsEvent {
5 | const factory SettingsEvent.changeAppThemeMode(ThemeMode themeMode) =
6 | _ChangeAppTheme;
7 | }
8 |
--------------------------------------------------------------------------------
/lib/application/settings/settings_state.dart:
--------------------------------------------------------------------------------
1 | part of 'settings_bloc.dart';
2 |
3 | @freezed
4 | class SettingsState with _$SettingsState {
5 | const factory SettingsState({
6 | required ThemeMode appThemeMode,
7 | required int fontSize,
8 | }) = _SettingsState;
9 | factory SettingsState.initial() => const SettingsState(
10 | appThemeMode: ThemeMode.system,
11 | fontSize: 12,
12 | );
13 | }
14 |
--------------------------------------------------------------------------------
/lib/domain/auth/auth_failure.dart:
--------------------------------------------------------------------------------
1 | import 'package:freezed_annotation/freezed_annotation.dart';
2 |
3 | part 'auth_failure.freezed.dart';
4 |
5 | @freezed
6 | class AuthFailure with _$AuthFailure {
7 | const factory AuthFailure.cancelledByUser() = CancelledByUser;
8 | const factory AuthFailure.serverError(String error) = ServerError;
9 | const factory AuthFailure.emailAlreadyInUse() = EmailAlreadyInUse;
10 | const factory AuthFailure.userNotFound() = UserNotFound;
11 | const factory AuthFailure.requiresRecentLogin(String message) =
12 | RequiredRecentLogin;
13 | const factory AuthFailure.deleteAccountFailure() = DeleteAccountFailure;
14 | const factory AuthFailure.invalidEmailAndPasswordCombination() =
15 | InvalidEmailAndPasswordCombination;
16 | }
17 |
--------------------------------------------------------------------------------
/lib/domain/auth/i_auth_facade.dart:
--------------------------------------------------------------------------------
1 | import 'package:dartz/dartz.dart';
2 | import 'package:flutter_template/domain/auth/auth_failure.dart';
3 |
4 | abstract class IAuthFacade {
5 | Future> registerWithEmailAndPassword({
6 | required String emailAddress,
7 | required String password,
8 | });
9 | Future> signInWithEmailAndPassword({
10 | required String emailAddress,
11 | required String password,
12 | });
13 | Future signOut();
14 | Future checkAuthState();
15 |
16 | Future> deleteAccount();
17 | Future> updateEmailAddress({
18 | required String updatedEmail,
19 | });
20 |
21 | Future> resetPassword({
22 | required String emailAddress,
23 | });
24 | }
25 |
--------------------------------------------------------------------------------
/lib/domain/core/constants/analytics_constants.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_dotenv/flutter_dotenv.dart';
2 |
3 | class AnalyticsConstants {
4 | static String token = dotenv.env['MIXPANEL_API_KEY']!;
5 | static const String appDownloaded = "app_downloaded";
6 | static const String registrationFinished = "registration_finished";
7 | }
8 |
--------------------------------------------------------------------------------
/lib/domain/core/constants/api_constants.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_dotenv/flutter_dotenv.dart';
2 |
3 | class ApiConstants {
4 | static String baseUrl = dotenv.env['API_BASE_URL']!;
5 | static String assetBaseUrl = dotenv.env['ASSET_BASE_URL']!;
6 | }
7 |
--------------------------------------------------------------------------------
/lib/domain/core/constants/app_constants.dart:
--------------------------------------------------------------------------------
1 | class AppConstants {
2 | static const String appName = "App-Name-Here";
3 | static const String playStoreLink = "";
4 | static const String mailTo = "skilite007@gmail.com";
5 | static const String mailSubject = "This is the subject";
6 | static const String mailBody = "This is the mail body";
7 | static const String inviteText =
8 | "Hey! Download $appName I'm using it and It's a fast, simple and secure app. Get it at $playStoreLink";
9 |
10 | //Social Media Links
11 | static const String websiteUrl = "";
12 | static const String githubUrl = "";
13 | static const String instagramUrl = "";
14 | static const String twitterUrl = "";
15 | }
16 |
--------------------------------------------------------------------------------
/lib/domain/core/constants/constants.dart:
--------------------------------------------------------------------------------
1 | export 'analytics_constants.dart';
2 | export 'api_constants.dart';
3 | export 'app_constants.dart';
4 | export 'storage_constants.dart';
5 | export 'text_max_lengths.dart';
6 |
--------------------------------------------------------------------------------
/lib/domain/core/constants/storage_constants.dart:
--------------------------------------------------------------------------------
1 | class StorageConstants {
2 | static const String themeMode = 'themeMode';
3 | static const String userToken = 'userToken';
4 | static const String lockEnabled = 'lockEnabled';
5 | }
6 |
--------------------------------------------------------------------------------
/lib/domain/core/constants/text_max_lengths.dart:
--------------------------------------------------------------------------------
1 | class TextMaxLengths {
2 | static const int basic = 25;
3 | static const int name = 50;
4 | static const int email = 40;
5 | static const int address = 30;
6 | static const int postalCode = 20;
7 | static const int businessNumber = 34;
8 | static const int notes = 250;
9 | }
10 |
--------------------------------------------------------------------------------
/lib/domain/core/enums.dart:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/lib/domain/core/environment/base_config.dart:
--------------------------------------------------------------------------------
1 | abstract class BaseConfig {
2 | String get apiHost;
3 | bool get useHttpsScheme;
4 | bool get trackEvents;
5 | bool get reportErrors;
6 | }
7 |
--------------------------------------------------------------------------------
/lib/domain/core/environment/environment.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_template/domain/core/environment/base_config.dart';
2 | import 'package:flutter_template/domain/core/environment/environment_configs.dart';
3 |
4 | class Environment {
5 | factory Environment() {
6 | return _singleton;
7 | }
8 |
9 | Environment._internal();
10 | static final Environment _singleton = Environment._internal();
11 |
12 | static const String dev = 'dev';
13 | static const String staging = 'staging';
14 | static const String prod = 'prod';
15 |
16 | late BaseConfig config;
17 |
18 | void initConfig(String environment) {
19 | config = _getConfig(environment);
20 | }
21 |
22 | BaseConfig _getConfig(String environment) {
23 | switch (environment) {
24 | case Environment.prod:
25 | return ProdConfig();
26 | case Environment.staging:
27 | return StagingConfig();
28 | default:
29 | return DevConfig();
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/lib/domain/core/environment/environment_configs.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_dotenv/flutter_dotenv.dart';
2 | import 'package:flutter_template/domain/core/environment/base_config.dart';
3 |
4 | class DevConfig implements BaseConfig {
5 | @override
6 | String get apiHost => dotenv.get("DEV_API_BASE_URL");
7 | @override
8 | bool get reportErrors => false;
9 | @override
10 | bool get trackEvents => false;
11 | @override
12 | bool get useHttpsScheme => false;
13 | }
14 |
15 | class StagingConfig implements BaseConfig {
16 | @override
17 | String get apiHost => dotenv.get("STAGING_API_BASE_URL");
18 | @override
19 | bool get reportErrors => true;
20 | @override
21 | bool get trackEvents => false;
22 | @override
23 | bool get useHttpsScheme => true;
24 | }
25 |
26 | class ProdConfig implements BaseConfig {
27 | @override
28 | String get apiHost => dotenv.get("PROD_API_BASE_URL");
29 | @override
30 | bool get reportErrors => true;
31 | @override
32 | bool get trackEvents => true;
33 | @override
34 | bool get useHttpsScheme => true;
35 | }
36 |
--------------------------------------------------------------------------------
/lib/domain/core/extensions/date_extensions.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_template/domain/core/extensions/numeric_extensions.dart';
2 |
3 | extension DateX on DateTime {
4 | String toDateTimeString({
5 | bool isDDMMYYYY = false,
6 | }) {
7 | final String month = this.month < 10 ? "0${this.month}" : "${this.month}";
8 | final String day = this.day < 10 ? "0${this.day}" : "${this.day}";
9 | if (isDDMMYYYY) return "$day-$month-$year";
10 |
11 | return "$year-$month-$day";
12 | }
13 |
14 | String toHumanReadableString() {
15 | return "$day ${month.monthNumberToMonth(short: true)} $year";
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/lib/domain/core/extensions/extensions.dart:
--------------------------------------------------------------------------------
1 | export 'date_extensions.dart';
2 | export 'numeric_extensions.dart';
3 | export 'string_extensions.dart';
4 |
--------------------------------------------------------------------------------
/lib/domain/core/extensions/numeric_extensions.dart:
--------------------------------------------------------------------------------
1 | extension Money on num {
2 | String toMoneyString() {
3 | final String moneyString = formatNumber().replaceAll("-", "");
4 |
5 | return "€$moneyString";
6 | }
7 |
8 | String toPercentage() {
9 | return "${(this * 100).toStringAsFixed(0)}%";
10 | }
11 |
12 | String formatNumber() {
13 | bool isNegative = false;
14 | if (this < 0) {
15 | isNegative = true;
16 | }
17 | final fixedString = toStringAsFixed(2).replaceAll("-", "").split(".");
18 | final String decimalPart = fixedString[1];
19 | final String wholePart = fixedString[0];
20 | String formattedNumber = "";
21 | for (int i = 0; i < wholePart.length; i++) {
22 | final int indexFromBack = wholePart.length - i - 1;
23 | if (i % 3 == 0 && i != 0) {
24 | formattedNumber = ",$formattedNumber";
25 | }
26 | formattedNumber = wholePart[indexFromBack] + formattedNumber;
27 | }
28 |
29 | return "${isNegative ? "-" : ""}$formattedNumber.$decimalPart";
30 | }
31 | }
32 |
33 | extension IntX on int {
34 | String monthNumberToMonth({bool short = false}) {
35 | String month;
36 | switch (this) {
37 | case 1:
38 | month = "January";
39 | break;
40 | case 2:
41 | month = "February";
42 | break;
43 | case 3:
44 | month = "March";
45 | break;
46 | case 4:
47 | month = "April";
48 | break;
49 | case 5:
50 | month = "May";
51 | break;
52 | case 6:
53 | month = "June";
54 | break;
55 | case 7:
56 | month = "July";
57 | break;
58 | case 8:
59 | month = "August";
60 | break;
61 | case 9:
62 | month = "September";
63 | break;
64 | case 10:
65 | month = "October";
66 | break;
67 | case 11:
68 | month = "November";
69 | break;
70 | case 12:
71 | month = "December";
72 | break;
73 | default:
74 | throw (Exception("Invalid month number"));
75 | }
76 | return short ? month.substring(0, 3) : month;
77 | }
78 |
79 | int monthNumberToDays({
80 | required int year,
81 | }) {
82 | List days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
83 | if (year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)) {
84 | days[1] = 29;
85 | }
86 | if (this > 12 || this < 1) {
87 | throw Exception("Invalid month number");
88 | }
89 | return days[this - 1];
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/lib/domain/core/extensions/string_extensions.dart:
--------------------------------------------------------------------------------
1 | import 'dart:developer';
2 |
3 | import 'package:flutter_template/domain/core/extensions/numeric_extensions.dart';
4 |
5 |
6 | extension StringX on String {
7 | String formatCategory() {
8 | final String formattedCategory =
9 | "${this[0].toUpperCase()}${substring(1)}".replaceAll("_", " ");
10 |
11 | return formattedCategory;
12 | }
13 |
14 | String toFormattedName() {
15 | final String formattedName =
16 | "${this[0].toUpperCase()}${substring(1).toLowerCase()}";
17 |
18 | return formattedName;
19 | }
20 |
21 | String nameInitials() {
22 | final List nameComponents = trim().split(" ");
23 |
24 | return nameComponents.length == 1
25 | ? nameComponents[0][0]
26 | : nameComponents[0][0] + nameComponents[1][0];
27 | }
28 |
29 | String mask({String maskingCharacter = "•"}) {
30 | final String maskedString =
31 | "${maskingCharacter * 6} ${substring(length - 4)}";
32 |
33 | return maskedString;
34 | }
35 | }
36 |
37 | extension StringDateExtensions on String {
38 | String toHumanDateTime() {
39 | try {
40 | final DateTime dateTime = DateTime.parse(this);
41 |
42 | return "${dateTime.day} ${dateTime.month.monthNumberToMonth(short: true)} ${dateTime.year}";
43 | } catch (e) {
44 | log(e.toString());
45 | final String reversedDateTime = reverseDateFormat();
46 | final DateTime dateTime = DateTime.parse(reversedDateTime);
47 |
48 | return "${dateTime.day} ${dateTime.month.monthNumberToMonth(short: true)} ${dateTime.year}";
49 | }
50 | }
51 |
52 | DateTime toDateTime() {
53 | if (isEmpty) return DateTime.now();
54 | try {
55 | final DateTime dateTime = DateTime.parse(this);
56 |
57 | return dateTime;
58 | } catch (e) {
59 | log(e.toString());
60 | final String reversedDateTime = reverseDateFormat();
61 | final DateTime dateTime = DateTime.parse(reversedDateTime);
62 |
63 | return dateTime;
64 | }
65 | }
66 |
67 | String reverseDateFormat() {
68 | final String reversedDateTime = split("-").reversed.toList().join("-");
69 |
70 | return reversedDateTime;
71 | }
72 | }
73 |
74 | extension StringCasingExtensions on String {
75 | //TODO: Add methods for kebab, pascal, snake cases
76 | String toCapitalized() {
77 | return length > 0
78 | ? '${this[0].toUpperCase()}${substring(1).toLowerCase()}'
79 | : '';
80 | }
81 |
82 | String toSentenceCase() => toCapitalized();
83 |
84 | String toTitleCase() {
85 | return replaceAll(RegExp(' +'), ' ')
86 | .split(' ')
87 | .map((str) => str.toCapitalized())
88 | .join(' ');
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/lib/domain/core/generated/assets.gen.dart:
--------------------------------------------------------------------------------
1 | /// GENERATED CODE - DO NOT MODIFY BY HAND
2 | /// *****************************************************
3 | /// FlutterGen
4 | /// *****************************************************
5 |
6 | // coverage:ignore-file
7 | // ignore_for_file: type=lint
8 | // ignore_for_file: directives_ordering,unnecessary_import,implicit_dynamic_list_literal
9 |
10 | import 'package:flutter/widgets.dart';
11 |
12 | class $AssetsFilesGen {
13 | const $AssetsFilesGen();
14 |
15 | /// File path: assets/files/countries.json
16 | String get countries => 'assets/files/countries.json';
17 |
18 | /// File path: assets/files/currencies.json
19 | String get currencies => 'assets/files/currencies.json';
20 |
21 | /// List of all assets
22 | List get values => [countries, currencies];
23 | }
24 |
25 | class Assets {
26 | Assets._();
27 |
28 | static const $AssetsFilesGen files = $AssetsFilesGen();
29 | }
30 |
31 | class AssetGenImage {
32 | const AssetGenImage(this._assetName);
33 |
34 | final String _assetName;
35 |
36 | Image image({
37 | Key? key,
38 | AssetBundle? bundle,
39 | ImageFrameBuilder? frameBuilder,
40 | ImageErrorWidgetBuilder? errorBuilder,
41 | String? semanticLabel,
42 | bool excludeFromSemantics = false,
43 | double? scale,
44 | double? width,
45 | double? height,
46 | Color? color,
47 | Animation? opacity,
48 | BlendMode? colorBlendMode,
49 | BoxFit? fit,
50 | AlignmentGeometry alignment = Alignment.center,
51 | ImageRepeat repeat = ImageRepeat.noRepeat,
52 | Rect? centerSlice,
53 | bool matchTextDirection = false,
54 | bool gaplessPlayback = false,
55 | bool isAntiAlias = false,
56 | String? package,
57 | FilterQuality filterQuality = FilterQuality.low,
58 | int? cacheWidth,
59 | int? cacheHeight,
60 | }) {
61 | return Image.asset(
62 | _assetName,
63 | key: key,
64 | bundle: bundle,
65 | frameBuilder: frameBuilder,
66 | errorBuilder: errorBuilder,
67 | semanticLabel: semanticLabel,
68 | excludeFromSemantics: excludeFromSemantics,
69 | scale: scale,
70 | width: width,
71 | height: height,
72 | color: color,
73 | opacity: opacity,
74 | colorBlendMode: colorBlendMode,
75 | fit: fit,
76 | alignment: alignment,
77 | repeat: repeat,
78 | centerSlice: centerSlice,
79 | matchTextDirection: matchTextDirection,
80 | gaplessPlayback: gaplessPlayback,
81 | isAntiAlias: isAntiAlias,
82 | package: package,
83 | filterQuality: filterQuality,
84 | cacheWidth: cacheWidth,
85 | cacheHeight: cacheHeight,
86 | );
87 | }
88 |
89 | ImageProvider provider() => AssetImage(_assetName);
90 |
91 | String get path => _assetName;
92 |
93 | String get keyName => _assetName;
94 | }
95 |
--------------------------------------------------------------------------------
/lib/domain/core/generated/fonts.gen.dart:
--------------------------------------------------------------------------------
1 | /// GENERATED CODE - DO NOT MODIFY BY HAND
2 | /// *****************************************************
3 | /// FlutterGen
4 | /// *****************************************************
5 |
6 | // coverage:ignore-file
7 | // ignore_for_file: type=lint
8 | // ignore_for_file: directives_ordering,unnecessary_import,implicit_dynamic_list_literal
9 |
10 | class FontFamily {
11 | FontFamily._();
12 |
13 | /// Font family: Roboto
14 | static const String roboto = 'Roboto';
15 | }
16 |
--------------------------------------------------------------------------------
/lib/domain/core/helpers/countries_helper.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:flutter/services.dart';
4 | import 'package:flutter_template/domain/core/generated/assets.gen.dart';
5 | import 'package:flutter_template/domain/core/models/country.dart';
6 |
7 | class CountriesHelper {
8 | static late List _countries;
9 |
10 | static List get countries => _countries;
11 |
12 | static Future loadCountriesFromFile() async {
13 | final fileString = await rootBundle.loadString(Assets.files.countries);
14 | final List countriesMapList = json.decode(fileString);
15 |
16 | _countries = countriesMapList
17 | .map((countryMap) => Country.fromMap(countryMap))
18 | .toList();
19 | }
20 |
21 | static Country getCountryFromCode(String countryCode) {
22 | return _countries.firstWhere(
23 | (country) => country.code == countryCode,
24 | orElse: () => getCountryFromName(countryCode),
25 | );
26 | }
27 |
28 | static Country getCountryFromName(String countryName) {
29 | return _countries.firstWhere(
30 | (country) => country.name == countryName,
31 | );
32 | }
33 |
34 | static Country? tryGetCountryFromCode(String countryCode) {
35 | final int indexOfCountry = _countries.indexWhere(
36 | (country) => country.code.toLowerCase() == countryCode.toLowerCase(),
37 | );
38 | if (indexOfCountry == -1) return null;
39 |
40 | return _countries[indexOfCountry];
41 | }
42 |
43 | static Country? tryGetCountryFromName(String countryName) {
44 | final int indexOfCountry = _countries.indexWhere(
45 | (country) => country.name.toLowerCase() == countryName.toLowerCase(),
46 | );
47 | if (indexOfCountry == -1) return null;
48 |
49 | return _countries[indexOfCountry];
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/lib/domain/core/helpers/currencies_helper.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:flutter/services.dart';
4 | import 'package:flutter_template/domain/core/generated/assets.gen.dart';
5 | import 'package:flutter_template/domain/core/models/currency.dart';
6 |
7 | class CurrenciesHelper {
8 | static late List _currencies;
9 |
10 | static List get currencies => _currencies;
11 |
12 | static Future loadCurrenciesFromFile() async {
13 | final fileString = await rootBundle.loadString(Assets.files.currencies);
14 | final List currenciesMapList = json.decode(fileString);
15 |
16 | _currencies = currenciesMapList
17 | .map((currencyMap) => Currency.fromMap(currencyMap))
18 | .toList();
19 | }
20 |
21 | static Currency getCurrencyFromCode(String currencyCode) {
22 | return _currencies.firstWhere(
23 | (currency) => currency.code == currencyCode,
24 | );
25 | }
26 |
27 | static String getCurrencySymbolFromCode(String currencyCode) {
28 | return _currencies
29 | .firstWhere(
30 | (currency) => currency.code == currencyCode,
31 | )
32 | .symbol;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/lib/domain/core/helpers/decimal_text_input_formatter.dart:
--------------------------------------------------------------------------------
1 | import 'dart:math' as math;
2 |
3 | import 'package:flutter/services.dart';
4 |
5 | class DecimalTextInputFormatter extends TextInputFormatter {
6 | DecimalTextInputFormatter({this.decimalRange})
7 | : assert(decimalRange == null || decimalRange > 0);
8 |
9 | final int? decimalRange;
10 |
11 | @override
12 | TextEditingValue formatEditUpdate(
13 | TextEditingValue oldValue, // unused.
14 | TextEditingValue newValue,
15 | ) {
16 | TextSelection newSelection = newValue.selection;
17 | String truncated = newValue.text;
18 |
19 | if (decimalRange != null) {
20 | String value = newValue.text;
21 |
22 | if (value.contains(".") &&
23 | value.substring(value.indexOf(".") + 1).length > decimalRange!) {
24 | truncated = oldValue.text;
25 | newSelection = oldValue.selection;
26 | } else if (value == ".") {
27 | truncated = "0.";
28 |
29 | newSelection = newValue.selection.copyWith(
30 | baseOffset: math.min(truncated.length, truncated.length + 1),
31 | extentOffset: math.min(truncated.length, truncated.length + 1),
32 | );
33 | }
34 |
35 | return TextEditingValue(
36 | text: truncated,
37 | selection: newSelection,
38 | composing: TextRange.empty,
39 | );
40 | }
41 |
42 | return newValue;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/lib/domain/core/helpers/secure_storage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_secure_storage/flutter_secure_storage.dart';
2 |
3 | class Storage {
4 | static final Storage _instance = Storage._internal();
5 |
6 | factory Storage() => _instance;
7 |
8 | Storage._internal();
9 |
10 | FlutterSecureStorage secureStorage = const FlutterSecureStorage();
11 | String token = '';
12 | }
13 |
--------------------------------------------------------------------------------
/lib/domain/core/helpers/utility.dart:
--------------------------------------------------------------------------------
1 | import 'dart:developer';
2 |
3 | import 'package:flutter_template/domain/core/constants/constants.dart';
4 | import 'package:url_launcher/url_launcher_string.dart';
5 |
6 | class Utility {
7 | static launchURL(String url) async {
8 | if (await canLaunchUrlString(url)) {
9 | log("Launching url: $url");
10 | await launchUrlString(url);
11 | } else {
12 | log('Could not launch $url');
13 | }
14 | }
15 |
16 | static Future sendSupportEmail() async {
17 | final Uri params = Uri(
18 | scheme: 'mailto',
19 | path: AppConstants.mailTo,
20 | query:
21 | 'subject=${AppConstants.mailSubject}&body=${AppConstants.mailBody}',
22 | );
23 |
24 | final String url = params.toString();
25 | launchURL(url);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/lib/domain/core/l10n/app_localizations_en.dart:
--------------------------------------------------------------------------------
1 | import 'app_localizations.dart';
2 |
3 | /// The translations for English (`en`).
4 | class AppLocalizationsEn extends AppLocalizations {
5 | AppLocalizationsEn([String locale = 'en']) : super(locale);
6 |
7 | @override
8 | String get thisFieldIsRequired => 'This field is required';
9 |
10 | @override
11 | String get pleaseEnterAnEmailAddress => 'Please enter an email address';
12 |
13 | @override
14 | String get pleaseEnterAValidEmailAddress => 'Please enter a valid email address';
15 |
16 | @override
17 | String get thisFieldCannotExceed100characters => 'This field cannot exceed 100 characters';
18 |
19 | @override
20 | String get pleaseEnterAPhoneNumber => 'Please enter a phone number';
21 |
22 | @override
23 | String get pleaseEnterAValidPhoneNumber => 'Please enter a valid phone number';
24 |
25 | @override
26 | String get pleaseEnterAPassword => 'Please enter a password';
27 |
28 | @override
29 | String get passwordTooShort => 'Password too short. Please enter a password of atleast 6 length';
30 |
31 | @override
32 | String get dontForgetYourName => 'Don’t forget your name!';
33 |
34 | @override
35 | String get invalidName => 'Invalid Name. Only alphabets allowed.';
36 |
37 | @override
38 | String get pleaseEnterAnAmount => 'Please enter an amount';
39 |
40 | @override
41 | String get pleaseEnterValidAmount => 'Please enter a valid amount';
42 |
43 | @override
44 | String get pleaseEnterValidDecimal => 'Please enter a valid decimal value';
45 |
46 | @override
47 | String get maximumAmountCannotExceed => 'Maximum amount cannot exceed 100,000';
48 |
49 | @override
50 | String get validIntegerValue => 'Please enter a valid integer value';
51 |
52 | @override
53 | String get validTaxRate => 'Please enter a valid rate';
54 |
55 | @override
56 | String get rateShouldBeInRange => 'The rate should be in range 0-100';
57 |
58 | @override
59 | String get enterAValidPostalCode => 'Please enter a valid postal code';
60 | }
61 |
--------------------------------------------------------------------------------
/lib/domain/core/l10n/app_localizations_es.dart:
--------------------------------------------------------------------------------
1 | import 'app_localizations.dart';
2 |
3 | /// The translations for Spanish Castilian (`es`).
4 | class AppLocalizationsEs extends AppLocalizations {
5 | AppLocalizationsEs([String locale = 'es']) : super(locale);
6 |
7 | @override
8 | String get thisFieldIsRequired => 'Este espacio es requerido';
9 |
10 | @override
11 | String get pleaseEnterAnEmailAddress => 'Por favor, ingresa tu correo electrónico';
12 |
13 | @override
14 | String get pleaseEnterAValidEmailAddress => 'Por favor, ingresa un correo electrónico valido';
15 |
16 | @override
17 | String get thisFieldCannotExceed100characters => 'Este espacio no puede exceder los 100 carácteres';
18 |
19 | @override
20 | String get pleaseEnterAPhoneNumber => 'Por favor, ingresa tu número de teléfono';
21 |
22 | @override
23 | String get pleaseEnterAValidPhoneNumber => 'Por favor, ingresa un número de teléfono valido';
24 |
25 | @override
26 | String get pleaseEnterAPassword => 'Por favor, ingresa una contraseña';
27 |
28 | @override
29 | String get passwordTooShort => 'Contraseña muy corta. Por favor, ingresa una contraseña con al menos 6 carácteres';
30 |
31 | @override
32 | String get dontForgetYourName => '¡No te olvides de tu nombre!';
33 |
34 | @override
35 | String get invalidName => 'Nombre invalido. Solo se permiten letras.';
36 |
37 | @override
38 | String get pleaseEnterAnAmount => 'Por favor, ingresa un monto';
39 |
40 | @override
41 | String get pleaseEnterValidAmount => 'Por favor, ingresa un monto valido';
42 |
43 | @override
44 | String get pleaseEnterValidDecimal => 'Introduce un número decimal valido';
45 |
46 | @override
47 | String get maximumAmountCannotExceed => 'El monto máximo no puede ser mayor a 100,000';
48 |
49 | @override
50 | String get validIntegerValue => 'Introduce un valor entero valido';
51 |
52 | @override
53 | String get validTaxRate => 'Por favor, ingresa una tarifa valida';
54 |
55 | @override
56 | String get rateShouldBeInRange => 'La tarifa debe estar en un rango de 0-100';
57 |
58 | @override
59 | String get enterAValidPostalCode => 'Introduce un código postal valido';
60 | }
61 |
--------------------------------------------------------------------------------
/lib/domain/core/l10n/untranslated_strings.arb:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/lib/domain/core/models/country.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:equatable/equatable.dart';
4 |
5 | class Country extends Equatable {
6 | final String name;
7 | final String dialCode;
8 | final String code;
9 | const Country({
10 | required this.name,
11 | required this.dialCode,
12 | required this.code,
13 | });
14 |
15 | Country copyWith({
16 | String? name,
17 | String? dialCode,
18 | String? code,
19 | }) {
20 | return Country(
21 | name: name ?? this.name,
22 | dialCode: dialCode ?? this.dialCode,
23 | code: code ?? this.code,
24 | );
25 | }
26 |
27 | Map toMap() {
28 | return {
29 | 'name': name,
30 | 'dialCode': dialCode,
31 | 'code': code,
32 | };
33 | }
34 |
35 | factory Country.fromMap(Map map) {
36 | return Country(
37 | name: map['name'] ?? '',
38 | dialCode: map['dial_code'] ?? '',
39 | code: map['code'] ?? '',
40 | );
41 | }
42 |
43 | String toJson() => json.encode(toMap());
44 |
45 | factory Country.fromJson(String source) =>
46 | Country.fromMap(json.decode(source));
47 |
48 | @override
49 | String toString() => 'Country(name: $name, dialCode: $dialCode, code: $code)';
50 |
51 | @override
52 | List