├── .gitattributes
├── .github
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── ISSUE_TEMPLATE
│ ├── CLIMA_BUG_REPORT.yaml
│ ├── CLIMA_FEATURE_REQUEST.yml
│ └── config.yml
└── SECURITY.md
├── .gitignore
├── .metadata
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── clima
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-hdpi
│ │ │ └── app_icon.png
│ │ │ ├── drawable-mdpi
│ │ │ └── app_icon.png
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable-xhdpi
│ │ │ └── app_icon.png
│ │ │ ├── drawable-xxhdpi
│ │ │ └── app_icon.png
│ │ │ ├── drawable-xxxhdpi
│ │ │ └── app_icon.png
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ └── ic_launcher.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_background.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_monochrome.png
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_background.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_monochrome.png
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_background.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_monochrome.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_background.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_monochrome.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_background.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_monochrome.png
│ │ │ ├── raw
│ │ │ ├── bubble.wav
│ │ │ └── keep.xml
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── fonts
│ └── manrope
│ │ ├── Manrope-Bold.ttf
│ │ ├── Manrope-Light.ttf
│ │ ├── Manrope-Medium.ttf
│ │ └── Manrope-Regular.ttf
├── images
│ ├── Cover.png
│ ├── Thumbnail.png
│ ├── logo.png
│ ├── preview.mp4
│ └── weather
│ │ ├── Day Clouds.webp
│ │ ├── Day Rain.webp
│ │ ├── Day Snow.webp
│ │ ├── Day Storm.webp
│ │ ├── Day Sun.webp
│ │ ├── Day Wind.webp
│ │ ├── Night Clouds.webp
│ │ ├── Night Moon.webp
│ │ ├── Night Rain.webp
│ │ ├── Night Snow.webp
│ │ ├── Night Storm.webp
│ │ ├── Night Wind.webp
│ │ ├── day_blured.svg
│ │ ├── humidity.svg
│ │ ├── night_blured.svg
│ │ ├── rain.svg
│ │ ├── snow.svg
│ │ ├── sun.svg
│ │ ├── sunny.svg
│ │ └── wind.svg
├── lottie
│ ├── day_cloudy.json
│ ├── day_rain.json
│ ├── day_snow.json
│ ├── faliure.json
│ ├── loading_weather.json
│ ├── location.json
│ ├── location_not_found.json
│ ├── location_service.json
│ ├── night.json
│ ├── night_cloudy.json
│ ├── night_rain.json
│ ├── night_snow.json
│ ├── no_internet.json
│ ├── storm.json
│ ├── sun.json
│ └── wind.json
└── map
│ └── map_dark_theme.json
├── 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
│ │ │ ├── AppIcon-20@2x.png
│ │ │ ├── AppIcon-20@2x~ipad.png
│ │ │ ├── AppIcon-20@3x.png
│ │ │ ├── AppIcon-20~ipad.png
│ │ │ ├── AppIcon-29.png
│ │ │ ├── AppIcon-29@2x.png
│ │ │ ├── AppIcon-29@2x~ipad.png
│ │ │ ├── AppIcon-29@3x.png
│ │ │ ├── AppIcon-29~ipad.png
│ │ │ ├── AppIcon-40@2x.png
│ │ │ ├── AppIcon-40@2x~ipad.png
│ │ │ ├── AppIcon-40@3x.png
│ │ │ ├── AppIcon-40~ipad.png
│ │ │ ├── AppIcon-60@2x~car.png
│ │ │ ├── AppIcon-60@3x~car.png
│ │ │ ├── AppIcon-83.5@2x~ipad.png
│ │ │ ├── AppIcon@2x.png
│ │ │ ├── AppIcon@2x~ipad.png
│ │ │ ├── AppIcon@3x.png
│ │ │ ├── AppIcon~ios-marketing.png
│ │ │ ├── AppIcon~ipad.png
│ │ │ └── Contents.json
│ │ └── 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
└── RunnerTests
│ └── RunnerTests.swift
├── lib
├── app
│ ├── app.dart
│ ├── bloc
│ │ ├── bloc.dart
│ │ ├── location
│ │ │ ├── location_bloc.dart
│ │ │ ├── location_event.dart
│ │ │ └── location_state.dart
│ │ └── theme
│ │ │ ├── theme_cubit.dart
│ │ │ └── theme_state.dart
│ └── widgets
│ │ ├── location_service_disabled.dart
│ │ ├── permission_denied_widget.dart
│ │ ├── waiting_permission_widget.dart
│ │ └── widgets.dart
├── core
│ ├── animations
│ │ ├── button_animation.dart
│ │ ├── fade_slide_animation.dart
│ │ └── play_lottie.dart
│ ├── common
│ │ ├── common.dart
│ │ ├── failure_widget.dart
│ │ ├── loading_widget.dart
│ │ ├── primary_button.dart
│ │ ├── temperature_text.dart
│ │ └── weather_image.dart
│ ├── enum
│ │ └── weather_state.dart
│ ├── extensions
│ │ ├── map_weather_code_extensions.dart
│ │ └── weather_message_extension.dart
│ ├── helper
│ │ ├── date_helper.dart
│ │ ├── env_helper.dart
│ │ ├── functions.dart
│ │ ├── location_helper.dart
│ │ └── lotte_cach_helper.dart
│ ├── managers
│ │ ├── dependency_manager.dart
│ │ ├── managers.dart
│ │ └── notification_manager.dart
│ ├── navigation
│ │ ├── app_routes.dart
│ │ ├── navigation.dart
│ │ └── navigation_helper.dart
│ ├── network
│ │ ├── endpoints.dart
│ │ ├── error_handling.dart
│ │ ├── network.dart
│ │ ├── network_helper.dart
│ │ └── response
│ │ │ ├── code.dart
│ │ │ ├── extension.dart
│ │ │ ├── failure.dart
│ │ │ ├── message.dart
│ │ │ └── type.dart
│ └── utils
│ │ ├── app_colors.dart
│ │ ├── app_decoration.dart
│ │ ├── app_dimn.dart
│ │ ├── app_images.dart
│ │ ├── app_themes.dart
│ │ ├── app_typography.dart
│ │ └── utils.dart
├── features
│ ├── daily_forecast
│ │ ├── cubit
│ │ │ ├── daily_forecast_cubit.dart
│ │ │ └── daily_forecast_state.dart
│ │ ├── data
│ │ │ ├── models
│ │ │ │ ├── daily_weather_model.dart
│ │ │ │ └── open_meteo_daily_response.dart
│ │ │ └── repo
│ │ │ │ ├── daily_forecast_repo.dart
│ │ │ │ └── daily_forecast_repo_impl.dart
│ │ └── screens
│ │ │ ├── daily_forecast_screen.dart
│ │ │ └── widgets
│ │ │ ├── daily_forecast_widget.dart
│ │ │ ├── daily_widget.dart
│ │ │ ├── date_widget.dart
│ │ │ └── widgets.dart
│ ├── home
│ │ ├── cubit
│ │ │ ├── home_cubit.dart
│ │ │ └── home_state.dart
│ │ ├── data
│ │ │ ├── model
│ │ │ │ ├── weather.dart
│ │ │ │ ├── weather_model.dart
│ │ │ │ └── weather_theme.dart
│ │ │ └── repo
│ │ │ │ ├── home_repo.dart
│ │ │ │ └── home_repo_impl.dart
│ │ └── screens
│ │ │ ├── home_screen.dart
│ │ │ └── widgets
│ │ │ ├── home_widget.dart
│ │ │ ├── time_and_location.dart
│ │ │ ├── weather_status.dart
│ │ │ └── widgets.dart
│ ├── hourly_forecast
│ │ ├── cubit
│ │ │ ├── hourly_forecast_cubit.dart
│ │ │ └── hourly_forecast_state.dart
│ │ ├── data
│ │ │ ├── models
│ │ │ │ ├── forecast_info_model.dart
│ │ │ │ ├── open_meteo_hourly_response_model.dart
│ │ │ │ ├── weather_daily_model.dart
│ │ │ │ ├── weather_hourly_model.dart
│ │ │ │ └── weather_news_model.dart
│ │ │ └── repo
│ │ │ │ ├── hourly_forecast_repo.dart
│ │ │ │ └── hourly_forecast_repo_impl.dart
│ │ └── screens
│ │ │ ├── hourly_forecast_screen.dart
│ │ │ └── widgets
│ │ │ ├── custom_app_bar.dart
│ │ │ ├── day_and_night_widget.dart
│ │ │ ├── forecast_info_widget.dart
│ │ │ ├── hourly_forecast_details.dart
│ │ │ ├── hourly_forecast_widget.dart
│ │ │ ├── news.dart
│ │ │ ├── news_widget.dart
│ │ │ └── widgets.dart
│ ├── landing_page
│ │ ├── bloc
│ │ │ └── nav_bar
│ │ │ │ ├── nav_bar_bloc.dart
│ │ │ │ ├── nav_bar_event.dart
│ │ │ │ └── nav_bar_state.dart
│ │ ├── landing_screen.dart
│ │ └── widgets
│ │ │ ├── bottom_nav_bar_list.dart
│ │ │ └── screens.dart
│ └── map
│ │ └── screens
│ │ └── map_screen.dart
└── main.dart
├── 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
└── 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
├── runner.exe.manifest
├── utils.cpp
├── utils.h
├── win32_window.cpp
└── win32_window.h
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/CLIMA_BUG_REPORT.yaml:
--------------------------------------------------------------------------------
1 | name: 🐞 Bug Report
2 | description: Issue something wrong
3 | title: "[BUG]:
"
4 | labels: ["bug", "triage"]
5 | assignees: ["moha-b"]
6 | body:
7 | - type: textarea
8 | id: bug-description
9 | attributes:
10 | label: Description of the bug
11 | description: Give us a brief description of what happened and what should have happened.
12 | placeholder: |
13 | Tell us what you see!
14 | validations:
15 | required: true
16 |
17 | - type: textarea
18 | id: steps-to-reproduce
19 | attributes:
20 | label: Steps To Reproduce
21 | description: Steps to reproduce the behavior.
22 | placeholder: |
23 | 1. Go to '...'
24 | 2. Click on '...'
25 | 3. Scroll down to '...'
26 | 4. See error
27 | validations:
28 | required: true
29 |
30 | - type: textarea
31 | id: additional-information
32 | attributes:
33 | label: Additional Information
34 | description: |
35 | Provide any additional information such as logs, screenshots, likes, scenarios in which the bug occurs so that it facilitates resolving the issue.
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/CLIMA_FEATURE_REQUEST.yml:
--------------------------------------------------------------------------------
1 | name: 🌟 Feature Request
2 | description: Submit a feature request
3 | title: "[FEATURE]: "
4 | labels: ["feature", "triage"]
5 | assignees: ["moha-b"]
6 | body:
7 | - type: markdown
8 | attributes:
9 | value: |
10 | Thanks for taking the time to submit this feature request!
11 | - type: dropdown
12 | attributes:
13 | multiple: false
14 | label: Type of Feature
15 | description: Select the type of feature request.
16 | options:
17 | - "✨ New Feature"
18 | - "📝 Documentation"
19 | - "🎨 Style and UI"
20 | - "🔨 Code Refactor"
21 | - "⚡ Performance Improvements"
22 | - "✅ New Test"
23 | validations:
24 | required: true
25 | - type: textarea
26 | id: description
27 | attributes:
28 | label: Description
29 | description: Describe the new feature in detail.
30 | placeholder: Provide a comprehensive overview of the proposed feature.
31 | validations:
32 | required: true
33 | - type: textarea
34 | id: benefits
35 | attributes:
36 | label: Benefits
37 | description: Explain the benefits of implementing this feature.
38 | placeholder: Describe how users and the project would benefit from this addition.
39 | validations:
40 | required: true
41 | - type: textarea
42 | id: use-cases
43 | attributes:
44 | label: Use Cases
45 | description: Outline the use cases or scenarios where this feature would be beneficial.
46 | placeholder: Describe specific situations where the feature would be valuable.
47 | validations:
48 | required: false
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/config.yml:
--------------------------------------------------------------------------------
1 | blank_issues_enabled: false
2 |
--------------------------------------------------------------------------------
/.github/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Supported Versions
4 |
5 | Use this section to tell people about which versions of your project are
6 | currently being supported with security updates.
7 |
8 | | Version | Supported |
9 | | ------- | ------------------ |
10 | | 5.1.x | :white_check_mark: |
11 | | 5.0.x | :x: |
12 | | 4.0.x | :white_check_mark: |
13 | | < 4.0 | :x: |
14 |
15 | ## Reporting a Vulnerability
16 |
17 | Use this section to tell people how to report a vulnerability.
18 |
19 | Tell them where to go, how often they can expect to get an update on a
20 | reported vulnerability, what to expect if the vulnerability is accepted or
21 | declined, etc.
22 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Symbolication related
36 | app.*.symbols
37 |
38 | # Obfuscation related
39 | app.*.map.json
40 |
41 | # Android Studio will place build artifacts here
42 | /android/app/debug
43 | /android/app/profile
44 | /android/app/release
45 | /lib/core/api/keys.dart
46 | /assets/env/
47 |
--------------------------------------------------------------------------------
/.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 and should not be manually edited.
5 |
6 | version:
7 | revision: "ead455963c12b453cdb2358cad34969c76daf180"
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: ead455963c12b453cdb2358cad34969c76daf180
17 | base_revision: ead455963c12b453cdb2358cad34969c76daf180
18 | - platform: android
19 | create_revision: ead455963c12b453cdb2358cad34969c76daf180
20 | base_revision: ead455963c12b453cdb2358cad34969c76daf180
21 | - platform: ios
22 | create_revision: ead455963c12b453cdb2358cad34969c76daf180
23 | base_revision: ead455963c12b453cdb2358cad34969c76daf180
24 | - platform: web
25 | create_revision: ead455963c12b453cdb2358cad34969c76daf180
26 | base_revision: ead455963c12b453cdb2358cad34969c76daf180
27 | - platform: windows
28 | create_revision: ead455963c12b453cdb2358cad34969c76daf180
29 | base_revision: ead455963c12b453cdb2358cad34969c76daf180
30 |
31 | # User provided section
32 |
33 | # List of Local paths (relative to this file) that should be
34 | # ignored by the migrate tool.
35 | #
36 | # Files that are not part of the templates will be ignored by default.
37 | unmanaged_files:
38 | - 'lib/main.dart'
39 | - 'ios/Runner.xcodeproj/project.pbxproj'
40 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 hab
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at https://dart.dev/lints.
17 | #
18 | # Instead of disabling a lint rule for the entire project in the
19 | # section below, it can also be suppressed for a single line of code
20 | # or a specific dart file by using the `// ignore: name_of_lint` and
21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
22 | # producing the lint.
23 | rules:
24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26 |
27 | # Additional information about this file can be found at
28 | # https://dart.dev/guides/language/analysis-options
29 |
--------------------------------------------------------------------------------
/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 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id "com.android.application"
3 | id "kotlin-android"
4 | id "dev.flutter.flutter-gradle-plugin"
5 | }
6 |
7 | def localProperties = new Properties()
8 | def localPropertiesFile = rootProject.file('local.properties')
9 | if (localPropertiesFile.exists()) {
10 | localPropertiesFile.withReader('UTF-8') { reader ->
11 | localProperties.load(reader)
12 | }
13 | }
14 |
15 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
16 | if (flutterVersionCode == null) {
17 | flutterVersionCode = '1'
18 | }
19 |
20 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
21 | if (flutterVersionName == null) {
22 | flutterVersionName = '1.0'
23 | }
24 |
25 | def dartEnv = [
26 | GOOGLE_MAPS_API: '',
27 | NEWS_API_KEY: ''
28 | ];
29 | if (project.hasProperty('dart-defines')) {
30 | dartEnv = dartEnv + project.property('dart-defines')
31 | .split(',')
32 | .collectEntries { entry ->
33 | def pair = new String(entry.decodeBase64(), 'UTF-8').split('=')
34 | [(pair.first()): pair.last()]
35 | }
36 | }
37 |
38 |
39 | android {
40 | namespace "com.example.clima"
41 | compileSdkVersion 34
42 | ndkVersion flutter.ndkVersion
43 |
44 | compileOptions {
45 | coreLibraryDesugaringEnabled true
46 | sourceCompatibility JavaVersion.VERSION_1_8
47 | targetCompatibility JavaVersion.VERSION_1_8
48 | }
49 |
50 | kotlinOptions {
51 | jvmTarget = '1.8'
52 | }
53 |
54 | sourceSets {
55 | main.java.srcDirs += 'src/main/kotlin'
56 | }
57 |
58 | defaultConfig {
59 | multiDexEnabled true
60 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
61 | applicationId "com.example.clima"
62 | // You can update the following values to match your application needs.
63 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
64 | minSdkVersion 21
65 | targetSdkVersion flutter.targetSdkVersion
66 | versionCode flutterVersionCode.toInteger()
67 | versionName flutterVersionName
68 | }
69 |
70 | buildTypes {
71 | release {
72 | // TODO: Add your own signing config for the release build.
73 | // Signing with the debug keys for now, so `flutter run --release` works.
74 | signingConfig signingConfigs.debug
75 | }
76 | }
77 | }
78 |
79 | flutter {
80 | source '../..'
81 | }
82 |
83 | dependencies {
84 | implementation 'com.google.android.gms:play-services-maps:18.2.0'
85 | coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2'
86 | }
87 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
14 |
25 |
29 |
33 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
52 |
54 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/clima/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.clima
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-hdpi/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/drawable-hdpi/app_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/drawable-mdpi/app_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xhdpi/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/drawable-xhdpi/app_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxhdpi/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/drawable-xxhdpi/app_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxxhdpi/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/drawable-xxxhdpi/app_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png
--------------------------------------------------------------------------------
/android/app/src/main/res/raw/bubble.wav:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/android/app/src/main/res/raw/bubble.wav
--------------------------------------------------------------------------------
/android/app/src/main/res/raw/keep.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 |
2 | allprojects {
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 | }
8 |
9 | rootProject.buildDir = '../build'
10 | subprojects {
11 | project.buildDir = "${rootProject.buildDir}/${project.name}"
12 | }
13 | subprojects {
14 | project.evaluationDependsOn(':app')
15 | }
16 |
17 | tasks.register("clean", Delete) {
18 | delete rootProject.buildDir
19 | }
20 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
6 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | def flutterSdkPath = {
3 | def properties = new Properties()
4 | file("local.properties").withInputStream { properties.load(it) }
5 | def flutterSdkPath = properties.getProperty("flutter.sdk")
6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7 | return flutterSdkPath
8 | }()
9 |
10 | includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
11 |
12 | repositories {
13 | google()
14 | mavenCentral()
15 | gradlePluginPortal()
16 | }
17 | }
18 |
19 | plugins {
20 | id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21 | id "com.android.application" version "7.3.0" apply false
22 | id "org.jetbrains.kotlin.android" version "1.9.0" apply false
23 | }
24 |
25 | include ":app"
26 |
--------------------------------------------------------------------------------
/assets/fonts/manrope/Manrope-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/fonts/manrope/Manrope-Bold.ttf
--------------------------------------------------------------------------------
/assets/fonts/manrope/Manrope-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/fonts/manrope/Manrope-Light.ttf
--------------------------------------------------------------------------------
/assets/fonts/manrope/Manrope-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/fonts/manrope/Manrope-Medium.ttf
--------------------------------------------------------------------------------
/assets/fonts/manrope/Manrope-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/fonts/manrope/Manrope-Regular.ttf
--------------------------------------------------------------------------------
/assets/images/Cover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/Cover.png
--------------------------------------------------------------------------------
/assets/images/Thumbnail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/Thumbnail.png
--------------------------------------------------------------------------------
/assets/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/logo.png
--------------------------------------------------------------------------------
/assets/images/preview.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/preview.mp4
--------------------------------------------------------------------------------
/assets/images/weather/Day Clouds.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/weather/Day Clouds.webp
--------------------------------------------------------------------------------
/assets/images/weather/Day Rain.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/weather/Day Rain.webp
--------------------------------------------------------------------------------
/assets/images/weather/Day Snow.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/weather/Day Snow.webp
--------------------------------------------------------------------------------
/assets/images/weather/Day Storm.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/weather/Day Storm.webp
--------------------------------------------------------------------------------
/assets/images/weather/Day Sun.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/weather/Day Sun.webp
--------------------------------------------------------------------------------
/assets/images/weather/Day Wind.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/weather/Day Wind.webp
--------------------------------------------------------------------------------
/assets/images/weather/Night Clouds.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/weather/Night Clouds.webp
--------------------------------------------------------------------------------
/assets/images/weather/Night Moon.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/weather/Night Moon.webp
--------------------------------------------------------------------------------
/assets/images/weather/Night Rain.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/weather/Night Rain.webp
--------------------------------------------------------------------------------
/assets/images/weather/Night Snow.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/weather/Night Snow.webp
--------------------------------------------------------------------------------
/assets/images/weather/Night Storm.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/weather/Night Storm.webp
--------------------------------------------------------------------------------
/assets/images/weather/Night Wind.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/assets/images/weather/Night Wind.webp
--------------------------------------------------------------------------------
/assets/images/weather/day_blured.svg:
--------------------------------------------------------------------------------
1 |
17 |
--------------------------------------------------------------------------------
/assets/images/weather/humidity.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/assets/images/weather/night_blured.svg:
--------------------------------------------------------------------------------
1 |
17 |
--------------------------------------------------------------------------------
/assets/images/weather/rain.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/assets/images/weather/sun.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/assets/images/weather/sunny.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/assets/images/weather/wind.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/assets/map/map_dark_theme.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "elementType": "geometry",
4 | "stylers": [
5 | {
6 | "color": "#242f3e"
7 | }
8 | ]
9 | },
10 | {
11 | "elementType": "labels.text.fill",
12 | "stylers": [
13 | {
14 | "color": "#746855"
15 | }
16 | ]
17 | },
18 | {
19 | "elementType": "labels.text.stroke",
20 | "stylers": [
21 | {
22 | "color": "#242f3e"
23 | }
24 | ]
25 | },
26 | {
27 | "featureType": "administrative.locality",
28 | "elementType": "labels.text.fill",
29 | "stylers": [
30 | {
31 | "color": "#d59563"
32 | }
33 | ]
34 | },
35 | {
36 | "featureType": "poi",
37 | "elementType": "labels.text.fill",
38 | "stylers": [
39 | {
40 | "color": "#d59563"
41 | }
42 | ]
43 | },
44 | {
45 | "featureType": "poi.park",
46 | "elementType": "geometry",
47 | "stylers": [
48 | {
49 | "color": "#263c3f"
50 | }
51 | ]
52 | },
53 | {
54 | "featureType": "poi.park",
55 | "elementType": "labels.text.fill",
56 | "stylers": [
57 | {
58 | "color": "#6b9a76"
59 | }
60 | ]
61 | },
62 | {
63 | "featureType": "road",
64 | "elementType": "geometry",
65 | "stylers": [
66 | {
67 | "color": "#38414e"
68 | }
69 | ]
70 | },
71 | {
72 | "featureType": "road",
73 | "elementType": "geometry.stroke",
74 | "stylers": [
75 | {
76 | "color": "#212a37"
77 | }
78 | ]
79 | },
80 | {
81 | "featureType": "road",
82 | "elementType": "labels.text.fill",
83 | "stylers": [
84 | {
85 | "color": "#9ca5b3"
86 | }
87 | ]
88 | },
89 | {
90 | "featureType": "road.highway",
91 | "elementType": "geometry",
92 | "stylers": [
93 | {
94 | "color": "#746855"
95 | }
96 | ]
97 | },
98 | {
99 | "featureType": "road.highway",
100 | "elementType": "geometry.stroke",
101 | "stylers": [
102 | {
103 | "color": "#1f2835"
104 | }
105 | ]
106 | },
107 | {
108 | "featureType": "road.highway",
109 | "elementType": "labels.text.fill",
110 | "stylers": [
111 | {
112 | "color": "#f3d19c"
113 | }
114 | ]
115 | },
116 | {
117 | "featureType": "transit",
118 | "elementType": "geometry",
119 | "stylers": [
120 | {
121 | "color": "#2f3948"
122 | }
123 | ]
124 | },
125 | {
126 | "featureType": "transit.station",
127 | "elementType": "labels.text.fill",
128 | "stylers": [
129 | {
130 | "color": "#d59563"
131 | }
132 | ]
133 | },
134 | {
135 | "featureType": "water",
136 | "elementType": "geometry",
137 | "stylers": [
138 | {
139 | "color": "#17263c"
140 | }
141 | ]
142 | },
143 | {
144 | "featureType": "water",
145 | "elementType": "labels.text.fill",
146 | "stylers": [
147 | {
148 | "color": "#515c6d"
149 | }
150 | ]
151 | },
152 | {
153 | "featureType": "water",
154 | "elementType": "labels.text.stroke",
155 | "stylers": [
156 | {
157 | "color": "#17263c"
158 | }
159 | ]
160 | }
161 | ]
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/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 | 11.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 | import GoogleMaps
4 |
5 | @UIApplicationMain
6 | @objc class AppDelegate: FlutterAppDelegate {
7 | override func application(
8 | _ application: UIApplication,
9 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
10 | ) -> Bool {
11 | GMSServices.provideAPIKey("AIzaSyB--blUyx_UMbgfkRczDQ-cLU4SDe6C8r4")
12 | GeneratedPluginRegistrant.register(with: self)
13 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
14 | }
15 | }
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-20@2x~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-20@2x~ipad.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-20~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-20~ipad.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-29.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-29@2x~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-29@2x~ipad.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-29~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-29~ipad.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-40@2x~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-40@2x~ipad.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-40~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-40~ipad.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-60@2x~car.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-60@2x~car.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-60@3x~car.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-60@3x~car.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5@2x~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5@2x~ipad.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon@2x~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon@2x~ipad.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon~ios-marketing.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon~ios-marketing.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon~ipad.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/AppIcon.appiconset/AppIcon~ipad.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {
4 | "filename": "AppIcon@2x.png",
5 | "idiom": "iphone",
6 | "scale": "2x",
7 | "size": "60x60"
8 | },
9 | {
10 | "filename": "AppIcon@3x.png",
11 | "idiom": "iphone",
12 | "scale": "3x",
13 | "size": "60x60"
14 | },
15 | {
16 | "filename": "AppIcon~ipad.png",
17 | "idiom": "ipad",
18 | "scale": "1x",
19 | "size": "76x76"
20 | },
21 | {
22 | "filename": "AppIcon@2x~ipad.png",
23 | "idiom": "ipad",
24 | "scale": "2x",
25 | "size": "76x76"
26 | },
27 | {
28 | "filename": "AppIcon-83.5@2x~ipad.png",
29 | "idiom": "ipad",
30 | "scale": "2x",
31 | "size": "83.5x83.5"
32 | },
33 | {
34 | "filename": "AppIcon-40@2x.png",
35 | "idiom": "iphone",
36 | "scale": "2x",
37 | "size": "40x40"
38 | },
39 | {
40 | "filename": "AppIcon-40@3x.png",
41 | "idiom": "iphone",
42 | "scale": "3x",
43 | "size": "40x40"
44 | },
45 | {
46 | "filename": "AppIcon-40~ipad.png",
47 | "idiom": "ipad",
48 | "scale": "1x",
49 | "size": "40x40"
50 | },
51 | {
52 | "filename": "AppIcon-40@2x~ipad.png",
53 | "idiom": "ipad",
54 | "scale": "2x",
55 | "size": "40x40"
56 | },
57 | {
58 | "filename": "AppIcon-20@2x.png",
59 | "idiom": "iphone",
60 | "scale": "2x",
61 | "size": "20x20"
62 | },
63 | {
64 | "filename": "AppIcon-20@3x.png",
65 | "idiom": "iphone",
66 | "scale": "3x",
67 | "size": "20x20"
68 | },
69 | {
70 | "filename": "AppIcon-20~ipad.png",
71 | "idiom": "ipad",
72 | "scale": "1x",
73 | "size": "20x20"
74 | },
75 | {
76 | "filename": "AppIcon-20@2x~ipad.png",
77 | "idiom": "ipad",
78 | "scale": "2x",
79 | "size": "20x20"
80 | },
81 | {
82 | "filename": "AppIcon-29.png",
83 | "idiom": "iphone",
84 | "scale": "1x",
85 | "size": "29x29"
86 | },
87 | {
88 | "filename": "AppIcon-29@2x.png",
89 | "idiom": "iphone",
90 | "scale": "2x",
91 | "size": "29x29"
92 | },
93 | {
94 | "filename": "AppIcon-29@3x.png",
95 | "idiom": "iphone",
96 | "scale": "3x",
97 | "size": "29x29"
98 | },
99 | {
100 | "filename": "AppIcon-29~ipad.png",
101 | "idiom": "ipad",
102 | "scale": "1x",
103 | "size": "29x29"
104 | },
105 | {
106 | "filename": "AppIcon-29@2x~ipad.png",
107 | "idiom": "ipad",
108 | "scale": "2x",
109 | "size": "29x29"
110 | },
111 | {
112 | "filename": "AppIcon-60@2x~car.png",
113 | "idiom": "car",
114 | "scale": "2x",
115 | "size": "60x60"
116 | },
117 | {
118 | "filename": "AppIcon-60@3x~car.png",
119 | "idiom": "car",
120 | "scale": "3x",
121 | "size": "60x60"
122 | },
123 | {
124 | "filename": "AppIcon~ios-marketing.png",
125 | "idiom": "ios-marketing",
126 | "scale": "1x",
127 | "size": "1024x1024"
128 | }
129 | ],
130 | "info": {
131 | "author": "iconkitchen",
132 | "version": 1
133 | }
134 | }
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/moha-b/Clima/1777f178b13f3ecf4f7f8ef9212b4823759ba9d8/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/LaunchScreen.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 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/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 | CFBundleDisplayName
8 | Clima
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | clima
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | CADisableMinimumFrameDurationOnPhone
45 |
46 | UIApplicationSupportsIndirectInputEvents
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/ios/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/lib/app/app.dart:
--------------------------------------------------------------------------------
1 | import 'package:clima/app/bloc/bloc.dart';
2 | import 'package:clima/app/widgets/widgets.dart';
3 | import 'package:clima/core/navigation/navigation.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:flutter_bloc/flutter_bloc.dart';
6 |
7 | import '../features/landing_page/landing_screen.dart';
8 |
9 | class MyApp extends StatelessWidget {
10 | const MyApp({super.key});
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | return MultiBlocProvider(
15 | providers: [
16 | BlocProvider(
17 | create: (context) => LocationBloc()..add(GetLocationEvent()),
18 | ),
19 | BlocProvider(
20 | create: (context) => ThemeCubit(),
21 | ),
22 | ],
23 | child: BlocBuilder(
24 | builder: (context, theme) {
25 | return MaterialApp(
26 | title: "Clima",
27 | theme: theme,
28 | debugShowCheckedModeBanner: false,
29 | navigatorKey: NavigationHelper.navigatorKey,
30 | onGenerateRoute: NavigationHelper.generateRoute,
31 | navigatorObservers: [NavigationHelper.routeObserver],
32 | home: BlocBuilder(
33 | builder: (BuildContext context, LocationState state) {
34 | if (state is AskForLocationPermissionState) {
35 | return const WaitingPermissionWidget();
36 | } else if (state is LocationPermissionDeniedState) {
37 | return const PermissionDeniedWidget();
38 | } else if (state is LocationServiceDisabledState) {
39 | return const LocationServiceDisabledWidget();
40 | } else if (state is FetchCurrentLocationState) {
41 | return const LandingScreen();
42 | } else {
43 | return const Scaffold(
44 | body: Center(
45 | child: Text("Unexpected Error"),
46 | ),
47 | );
48 | }
49 | },
50 | ),
51 | );
52 | },
53 | ),
54 | );
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/lib/app/bloc/bloc.dart:
--------------------------------------------------------------------------------
1 | export 'location/location_bloc.dart';
2 | export 'theme/theme_cubit.dart';
3 |
--------------------------------------------------------------------------------
/lib/app/bloc/location/location_bloc.dart:
--------------------------------------------------------------------------------
1 | import 'package:clima/core/helper/location_helper.dart';
2 | import 'package:equatable/equatable.dart';
3 | import 'package:flutter_bloc/flutter_bloc.dart';
4 |
5 | part 'location_event.dart';
6 | part 'location_state.dart';
7 |
8 | class LocationBloc extends Bloc {
9 | LocationBloc() : super(AskForLocationPermissionState()) {
10 | // get current location
11 | on(_getLocation);
12 | // re-request permission
13 | on(_reRequestPermission);
14 | // enable location service
15 | on(_enableLocationService);
16 | }
17 | _getLocation(GetLocationEvent event, Emitter emit) async {
18 | var locationHelper = LocationHelper.instance;
19 | bool locationService = await locationHelper.isLocationServiceEnabled();
20 | if (locationService) {
21 | bool locationPermission = await locationHelper.checkPermission();
22 | if (locationPermission) {
23 | var position = await locationHelper.getLatLong();
24 | await locationHelper.getPositionDetails(currentPosition: position);
25 | emit(FetchCurrentLocationState());
26 | } else {
27 | emit(LocationPermissionDeniedState());
28 | }
29 | } else {
30 | emit(LocationServiceDisabledState());
31 | }
32 | }
33 |
34 | _reRequestPermission(
35 | RetryPermissionEvent event, Emitter emit) async {
36 | await LocationHelper.instance.openAppSettings();
37 | bool isAppSettingsOpened =
38 | await LocationHelper.instance.isAppSettingsOpens();
39 | if (isAppSettingsOpened) {
40 | await _getLocation(GetLocationEvent(), emit);
41 | } else {
42 | emit(LocationPermissionDeniedState());
43 | }
44 | }
45 |
46 | _enableLocationService(
47 | EnableLocationServiceEvent event, Emitter emit) async {
48 | await LocationHelper.instance.openLocationSettings();
49 | bool isSettingsOpened =
50 | await LocationHelper.instance.isLocationSettingsOpens();
51 | if (isSettingsOpened) {
52 | await _getLocation(GetLocationEvent(), emit);
53 | } else {
54 | emit(LocationServiceDisabledState());
55 | }
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/lib/app/bloc/location/location_event.dart:
--------------------------------------------------------------------------------
1 | part of 'location_bloc.dart';
2 |
3 | abstract class LocationEvent extends Equatable {
4 | const LocationEvent();
5 | List