├── .gitignore
├── .metadata
├── LICENSE
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── codebrek
│ │ │ │ └── covid19app
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── 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
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── fonts
├── Myicons.ttf
└── Soshal.ttf
├── imgs
├── all.jpg
├── care.png
├── cou.png
├── covid.png
├── death.jpg
├── eay.png
├── good.png
├── hand.png
├── mansick.png
├── map.png
├── my.jpg
├── prod.png
└── rec.jpg
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ └── contents.xcworkspacedata
└── 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
│ └── 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
├── lib
├── api
│ ├── all.dart
│ ├── flags.dart
│ └── getby.dart
├── icons
│ ├── myiconsfile.dart
│ └── soshal_icons.dart
├── main.dart
├── pages
│ ├── Latest_statistics.dart
│ ├── casesby.dart
│ ├── home.dart
│ ├── instructions.dart
│ ├── search.dart
│ ├── setting.dart
│ └── single.dart
└── style
│ └── style.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── widget_test.dart
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | .dart_tool/
26 | .flutter-plugins
27 | .flutter-plugins-dependencies
28 | .packages
29 | .pub-cache/
30 | .pub/
31 | /build/
32 |
33 | # Web related
34 | lib/generated_plugin_registrant.dart
35 |
36 | # Exceptions to above rules.
37 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
38 |
--------------------------------------------------------------------------------
/.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: 0b8abb4724aa590dd0f429683339b1e045a1594d
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # covid19 App
2 |
3 | Covid-19 Open source App
4 |
5 |
6 |
7 | 
8 |
9 | 
10 |
11 | 
12 |
13 | 
14 |
15 | 
16 |
17 | 
18 |
19 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
--------------------------------------------------------------------------------
/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 from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 28
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.codebrek.covid19app"
42 | minSdkVersion 16
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
47 | }
48 |
49 | buildTypes {
50 | release {
51 | // TODO: Add your own signing config for the release build.
52 | // Signing with the debug keys for now, so `flutter run --release` works.
53 | signingConfig signingConfigs.debug
54 | }
55 | }
56 | }
57 |
58 | flutter {
59 | source '../..'
60 | }
61 |
62 | dependencies {
63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64 | testImplementation 'junit:junit:4.12'
65 | androidTestImplementation 'androidx.test:runner:1.1.1'
66 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
67 | }
68 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
8 |
12 |
19 |
20 |
21 |
22 |
23 |
24 |
26 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/codebrek/covid19app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.codebrek.covid19app
2 |
3 | import androidx.annotation.NonNull;
4 | import io.flutter.embedding.android.FlutterActivity
5 | import io.flutter.embedding.engine.FlutterEngine
6 | import io.flutter.plugins.GeneratedPluginRegistrant
7 |
8 | class MainActivity: FlutterActivity() {
9 | override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
10 | GeneratedPluginRegistrant.registerWith(flutterEngine);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.5.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.enableR8=true
3 | android.useAndroidX=true
4 | android.enableJetifier=true
5 |
--------------------------------------------------------------------------------
/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-5.6.2-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/fonts/Myicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/fonts/Myicons.ttf
--------------------------------------------------------------------------------
/fonts/Soshal.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/fonts/Soshal.ttf
--------------------------------------------------------------------------------
/imgs/all.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/imgs/all.jpg
--------------------------------------------------------------------------------
/imgs/care.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/imgs/care.png
--------------------------------------------------------------------------------
/imgs/cou.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/imgs/cou.png
--------------------------------------------------------------------------------
/imgs/covid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/imgs/covid.png
--------------------------------------------------------------------------------
/imgs/death.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/imgs/death.jpg
--------------------------------------------------------------------------------
/imgs/eay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/imgs/eay.png
--------------------------------------------------------------------------------
/imgs/good.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/imgs/good.png
--------------------------------------------------------------------------------
/imgs/hand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/imgs/hand.png
--------------------------------------------------------------------------------
/imgs/mansick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/imgs/mansick.png
--------------------------------------------------------------------------------
/imgs/map.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/imgs/map.png
--------------------------------------------------------------------------------
/imgs/my.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/imgs/my.jpg
--------------------------------------------------------------------------------
/imgs/prod.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/imgs/prod.png
--------------------------------------------------------------------------------
/imgs/rec.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/imgs/rec.jpg
--------------------------------------------------------------------------------
/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 | $(DEVELOPMENT_LANGUAGE)
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 "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def parse_KV_file(file, separator='=')
14 | file_abs_path = File.expand_path(file)
15 | if !File.exists? file_abs_path
16 | return [];
17 | end
18 | generated_key_values = {}
19 | skip_line_start_symbols = ["#", "/"]
20 | File.foreach(file_abs_path) do |line|
21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
22 | plugin = line.split(pattern=separator)
23 | if plugin.length == 2
24 | podname = plugin[0].strip()
25 | path = plugin[1].strip()
26 | podpath = File.expand_path("#{path}", file_abs_path)
27 | generated_key_values[podname] = podpath
28 | else
29 | puts "Invalid plugin specification: #{line}"
30 | end
31 | end
32 | generated_key_values
33 | end
34 |
35 | target 'Runner' do
36 | use_frameworks!
37 | use_modular_headers!
38 |
39 | # Flutter Pod
40 |
41 | copied_flutter_dir = File.join(__dir__, 'Flutter')
42 | copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
43 | copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
44 | unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)
45 | # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
46 | # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
47 | # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
48 |
49 | generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
50 | unless File.exist?(generated_xcode_build_settings_path)
51 | raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
52 | end
53 | generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
54 | cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];
55 |
56 | unless File.exist?(copied_framework_path)
57 | FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
58 | end
59 | unless File.exist?(copied_podspec_path)
60 | FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
61 | end
62 | end
63 |
64 | # Keep pod path relative so it can be checked into Podfile.lock.
65 | pod 'Flutter', :path => 'Flutter'
66 |
67 | # Plugin Pods
68 |
69 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
70 | # referring to absolute paths on developers' machines.
71 | system('rm -rf .symlinks')
72 | system('mkdir -p .symlinks/plugins')
73 | plugin_pods = parse_KV_file('../.flutter-plugins')
74 | plugin_pods.each do |name, path|
75 | symlink = File.join('.symlinks', 'plugins', name)
76 | File.symlink(path, symlink)
77 | pod name, :path => File.join(symlink, 'ios')
78 | end
79 | end
80 |
81 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
82 | install! 'cocoapods', :disable_input_output_paths => true
83 |
84 | post_install do |installer|
85 | installer.pods_project.targets.each do |target|
86 | target.build_configurations.each do |config|
87 | config.build_settings['ENABLE_BITCODE'] = 'NO'
88 | end
89 | end
90 | end
91 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - share (0.5.2):
4 | - Flutter
5 | - url_launcher (0.0.1):
6 | - Flutter
7 | - url_launcher_macos (0.0.1):
8 | - Flutter
9 | - url_launcher_web (0.0.1):
10 | - Flutter
11 |
12 | DEPENDENCIES:
13 | - Flutter (from `Flutter`)
14 | - share (from `.symlinks/plugins/share/ios`)
15 | - url_launcher (from `.symlinks/plugins/url_launcher/ios`)
16 | - url_launcher_macos (from `.symlinks/plugins/url_launcher_macos/ios`)
17 | - url_launcher_web (from `.symlinks/plugins/url_launcher_web/ios`)
18 |
19 | EXTERNAL SOURCES:
20 | Flutter:
21 | :path: Flutter
22 | share:
23 | :path: ".symlinks/plugins/share/ios"
24 | url_launcher:
25 | :path: ".symlinks/plugins/url_launcher/ios"
26 | url_launcher_macos:
27 | :path: ".symlinks/plugins/url_launcher_macos/ios"
28 | url_launcher_web:
29 | :path: ".symlinks/plugins/url_launcher_web/ios"
30 |
31 | SPEC CHECKSUMS:
32 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
33 | share: bae0a282aab4483288913fc4dc0b935d4b491f2e
34 | url_launcher: a1c0cc845906122c4784c542523d8cacbded5626
35 | url_launcher_macos: fd7894421cd39320dce5f292fc99ea9270b2a313
36 | url_launcher_web: e5527357f037c87560776e36436bf2b0288b965c
37 |
38 | PODFILE CHECKSUM: 1b66dae606f75376c5f2135a8290850eeb09ae83
39 |
40 | COCOAPODS: 1.9.0
41 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 161146B9F0BA1D1D663A3F25 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6B8BB2CA777C27A8F8A3B2DC /* Pods_Runner.framework */; };
12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
15 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
16 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
17 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
18 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
19 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
20 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
21 | /* End PBXBuildFile section */
22 |
23 | /* Begin PBXCopyFilesBuildPhase section */
24 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
25 | isa = PBXCopyFilesBuildPhase;
26 | buildActionMask = 2147483647;
27 | dstPath = "";
28 | dstSubfolderSpec = 10;
29 | files = (
30 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
31 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
32 | );
33 | name = "Embed Frameworks";
34 | runOnlyForDeploymentPostprocessing = 0;
35 | };
36 | /* End PBXCopyFilesBuildPhase section */
37 |
38 | /* Begin PBXFileReference section */
39 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
40 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
41 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
42 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
43 | 44AA982C4CB717F8AFBDAD95 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
44 | 57026D81E524748224F2FA9C /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
45 | 6B8BB2CA777C27A8F8A3B2DC /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
46 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
47 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
48 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
49 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
50 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
51 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
52 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
53 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
54 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
55 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
56 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
57 | FFB7A6154707C6F15D9EB797 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
58 | /* End PBXFileReference section */
59 |
60 | /* Begin PBXFrameworksBuildPhase section */
61 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
62 | isa = PBXFrameworksBuildPhase;
63 | buildActionMask = 2147483647;
64 | files = (
65 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
66 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
67 | 161146B9F0BA1D1D663A3F25 /* Pods_Runner.framework in Frameworks */,
68 | );
69 | runOnlyForDeploymentPostprocessing = 0;
70 | };
71 | /* End PBXFrameworksBuildPhase section */
72 |
73 | /* Begin PBXGroup section */
74 | 8A642C4494C864C9E673CF0B /* Pods */ = {
75 | isa = PBXGroup;
76 | children = (
77 | 57026D81E524748224F2FA9C /* Pods-Runner.debug.xcconfig */,
78 | 44AA982C4CB717F8AFBDAD95 /* Pods-Runner.release.xcconfig */,
79 | FFB7A6154707C6F15D9EB797 /* Pods-Runner.profile.xcconfig */,
80 | );
81 | name = Pods;
82 | path = Pods;
83 | sourceTree = "";
84 | };
85 | 8D3650D8E37DA7CAB154AB2C /* Frameworks */ = {
86 | isa = PBXGroup;
87 | children = (
88 | 6B8BB2CA777C27A8F8A3B2DC /* Pods_Runner.framework */,
89 | );
90 | name = Frameworks;
91 | sourceTree = "";
92 | };
93 | 9740EEB11CF90186004384FC /* Flutter */ = {
94 | isa = PBXGroup;
95 | children = (
96 | 3B80C3931E831B6300D905FE /* App.framework */,
97 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
98 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
99 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
100 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
101 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
102 | );
103 | name = Flutter;
104 | sourceTree = "";
105 | };
106 | 97C146E51CF9000F007C117D = {
107 | isa = PBXGroup;
108 | children = (
109 | 9740EEB11CF90186004384FC /* Flutter */,
110 | 97C146F01CF9000F007C117D /* Runner */,
111 | 97C146EF1CF9000F007C117D /* Products */,
112 | 8A642C4494C864C9E673CF0B /* Pods */,
113 | 8D3650D8E37DA7CAB154AB2C /* Frameworks */,
114 | );
115 | sourceTree = "";
116 | };
117 | 97C146EF1CF9000F007C117D /* Products */ = {
118 | isa = PBXGroup;
119 | children = (
120 | 97C146EE1CF9000F007C117D /* Runner.app */,
121 | );
122 | name = Products;
123 | sourceTree = "";
124 | };
125 | 97C146F01CF9000F007C117D /* Runner */ = {
126 | isa = PBXGroup;
127 | children = (
128 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
129 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
130 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
131 | 97C147021CF9000F007C117D /* Info.plist */,
132 | 97C146F11CF9000F007C117D /* Supporting Files */,
133 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
134 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
135 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
136 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
137 | );
138 | path = Runner;
139 | sourceTree = "";
140 | };
141 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
142 | isa = PBXGroup;
143 | children = (
144 | );
145 | name = "Supporting Files";
146 | sourceTree = "";
147 | };
148 | /* End PBXGroup section */
149 |
150 | /* Begin PBXNativeTarget section */
151 | 97C146ED1CF9000F007C117D /* Runner */ = {
152 | isa = PBXNativeTarget;
153 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
154 | buildPhases = (
155 | 9548500050B1FDEA97803B01 /* [CP] Check Pods Manifest.lock */,
156 | 9740EEB61CF901F6004384FC /* Run Script */,
157 | 97C146EA1CF9000F007C117D /* Sources */,
158 | 97C146EB1CF9000F007C117D /* Frameworks */,
159 | 97C146EC1CF9000F007C117D /* Resources */,
160 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
161 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
162 | E77F2B6F42E455C262C62880 /* [CP] Embed Pods Frameworks */,
163 | );
164 | buildRules = (
165 | );
166 | dependencies = (
167 | );
168 | name = Runner;
169 | productName = Runner;
170 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
171 | productType = "com.apple.product-type.application";
172 | };
173 | /* End PBXNativeTarget section */
174 |
175 | /* Begin PBXProject section */
176 | 97C146E61CF9000F007C117D /* Project object */ = {
177 | isa = PBXProject;
178 | attributes = {
179 | LastUpgradeCheck = 1020;
180 | ORGANIZATIONNAME = "The Chromium Authors";
181 | TargetAttributes = {
182 | 97C146ED1CF9000F007C117D = {
183 | CreatedOnToolsVersion = 7.3.1;
184 | LastSwiftMigration = 1100;
185 | };
186 | };
187 | };
188 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
189 | compatibilityVersion = "Xcode 3.2";
190 | developmentRegion = en;
191 | hasScannedForEncodings = 0;
192 | knownRegions = (
193 | en,
194 | Base,
195 | );
196 | mainGroup = 97C146E51CF9000F007C117D;
197 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
198 | projectDirPath = "";
199 | projectRoot = "";
200 | targets = (
201 | 97C146ED1CF9000F007C117D /* Runner */,
202 | );
203 | };
204 | /* End PBXProject section */
205 |
206 | /* Begin PBXResourcesBuildPhase section */
207 | 97C146EC1CF9000F007C117D /* Resources */ = {
208 | isa = PBXResourcesBuildPhase;
209 | buildActionMask = 2147483647;
210 | files = (
211 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
212 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
213 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
214 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
215 | );
216 | runOnlyForDeploymentPostprocessing = 0;
217 | };
218 | /* End PBXResourcesBuildPhase section */
219 |
220 | /* Begin PBXShellScriptBuildPhase section */
221 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
222 | isa = PBXShellScriptBuildPhase;
223 | buildActionMask = 2147483647;
224 | files = (
225 | );
226 | inputPaths = (
227 | );
228 | name = "Thin Binary";
229 | outputPaths = (
230 | );
231 | runOnlyForDeploymentPostprocessing = 0;
232 | shellPath = /bin/sh;
233 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
234 | };
235 | 9548500050B1FDEA97803B01 /* [CP] Check Pods Manifest.lock */ = {
236 | isa = PBXShellScriptBuildPhase;
237 | buildActionMask = 2147483647;
238 | files = (
239 | );
240 | inputFileListPaths = (
241 | );
242 | inputPaths = (
243 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
244 | "${PODS_ROOT}/Manifest.lock",
245 | );
246 | name = "[CP] Check Pods Manifest.lock";
247 | outputFileListPaths = (
248 | );
249 | outputPaths = (
250 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
251 | );
252 | runOnlyForDeploymentPostprocessing = 0;
253 | shellPath = /bin/sh;
254 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
255 | showEnvVarsInLog = 0;
256 | };
257 | 9740EEB61CF901F6004384FC /* Run Script */ = {
258 | isa = PBXShellScriptBuildPhase;
259 | buildActionMask = 2147483647;
260 | files = (
261 | );
262 | inputPaths = (
263 | );
264 | name = "Run Script";
265 | outputPaths = (
266 | );
267 | runOnlyForDeploymentPostprocessing = 0;
268 | shellPath = /bin/sh;
269 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
270 | };
271 | E77F2B6F42E455C262C62880 /* [CP] Embed Pods Frameworks */ = {
272 | isa = PBXShellScriptBuildPhase;
273 | buildActionMask = 2147483647;
274 | files = (
275 | );
276 | inputPaths = (
277 | );
278 | name = "[CP] Embed Pods Frameworks";
279 | outputPaths = (
280 | );
281 | runOnlyForDeploymentPostprocessing = 0;
282 | shellPath = /bin/sh;
283 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
284 | showEnvVarsInLog = 0;
285 | };
286 | /* End PBXShellScriptBuildPhase section */
287 |
288 | /* Begin PBXSourcesBuildPhase section */
289 | 97C146EA1CF9000F007C117D /* Sources */ = {
290 | isa = PBXSourcesBuildPhase;
291 | buildActionMask = 2147483647;
292 | files = (
293 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
294 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
295 | );
296 | runOnlyForDeploymentPostprocessing = 0;
297 | };
298 | /* End PBXSourcesBuildPhase section */
299 |
300 | /* Begin PBXVariantGroup section */
301 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
302 | isa = PBXVariantGroup;
303 | children = (
304 | 97C146FB1CF9000F007C117D /* Base */,
305 | );
306 | name = Main.storyboard;
307 | sourceTree = "";
308 | };
309 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
310 | isa = PBXVariantGroup;
311 | children = (
312 | 97C147001CF9000F007C117D /* Base */,
313 | );
314 | name = LaunchScreen.storyboard;
315 | sourceTree = "";
316 | };
317 | /* End PBXVariantGroup section */
318 |
319 | /* Begin XCBuildConfiguration section */
320 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
321 | isa = XCBuildConfiguration;
322 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
323 | buildSettings = {
324 | ALWAYS_SEARCH_USER_PATHS = NO;
325 | CLANG_ANALYZER_NONNULL = YES;
326 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
327 | CLANG_CXX_LIBRARY = "libc++";
328 | CLANG_ENABLE_MODULES = YES;
329 | CLANG_ENABLE_OBJC_ARC = YES;
330 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
331 | CLANG_WARN_BOOL_CONVERSION = YES;
332 | CLANG_WARN_COMMA = YES;
333 | CLANG_WARN_CONSTANT_CONVERSION = YES;
334 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
335 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
336 | CLANG_WARN_EMPTY_BODY = YES;
337 | CLANG_WARN_ENUM_CONVERSION = YES;
338 | CLANG_WARN_INFINITE_RECURSION = YES;
339 | CLANG_WARN_INT_CONVERSION = YES;
340 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
341 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
342 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
343 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
344 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
345 | CLANG_WARN_STRICT_PROTOTYPES = YES;
346 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
347 | CLANG_WARN_UNREACHABLE_CODE = YES;
348 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
349 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
350 | COPY_PHASE_STRIP = NO;
351 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
352 | ENABLE_NS_ASSERTIONS = NO;
353 | ENABLE_STRICT_OBJC_MSGSEND = YES;
354 | GCC_C_LANGUAGE_STANDARD = gnu99;
355 | GCC_NO_COMMON_BLOCKS = YES;
356 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
357 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
358 | GCC_WARN_UNDECLARED_SELECTOR = YES;
359 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
360 | GCC_WARN_UNUSED_FUNCTION = YES;
361 | GCC_WARN_UNUSED_VARIABLE = YES;
362 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
363 | MTL_ENABLE_DEBUG_INFO = NO;
364 | SDKROOT = iphoneos;
365 | SUPPORTED_PLATFORMS = iphoneos;
366 | TARGETED_DEVICE_FAMILY = "1,2";
367 | VALIDATE_PRODUCT = YES;
368 | };
369 | name = Profile;
370 | };
371 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
372 | isa = XCBuildConfiguration;
373 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
374 | buildSettings = {
375 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
376 | CLANG_ENABLE_MODULES = YES;
377 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
378 | ENABLE_BITCODE = NO;
379 | FRAMEWORK_SEARCH_PATHS = (
380 | "$(inherited)",
381 | "$(PROJECT_DIR)/Flutter",
382 | );
383 | INFOPLIST_FILE = Runner/Info.plist;
384 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
385 | LIBRARY_SEARCH_PATHS = (
386 | "$(inherited)",
387 | "$(PROJECT_DIR)/Flutter",
388 | );
389 | PRODUCT_BUNDLE_IDENTIFIER = com.codebrek.covid19app;
390 | PRODUCT_NAME = "$(TARGET_NAME)";
391 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
392 | SWIFT_VERSION = 5.0;
393 | VERSIONING_SYSTEM = "apple-generic";
394 | };
395 | name = Profile;
396 | };
397 | 97C147031CF9000F007C117D /* Debug */ = {
398 | isa = XCBuildConfiguration;
399 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
400 | buildSettings = {
401 | ALWAYS_SEARCH_USER_PATHS = NO;
402 | CLANG_ANALYZER_NONNULL = YES;
403 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
404 | CLANG_CXX_LIBRARY = "libc++";
405 | CLANG_ENABLE_MODULES = YES;
406 | CLANG_ENABLE_OBJC_ARC = YES;
407 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
408 | CLANG_WARN_BOOL_CONVERSION = YES;
409 | CLANG_WARN_COMMA = YES;
410 | CLANG_WARN_CONSTANT_CONVERSION = YES;
411 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
412 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
413 | CLANG_WARN_EMPTY_BODY = YES;
414 | CLANG_WARN_ENUM_CONVERSION = YES;
415 | CLANG_WARN_INFINITE_RECURSION = YES;
416 | CLANG_WARN_INT_CONVERSION = YES;
417 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
418 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
419 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
420 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
421 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
422 | CLANG_WARN_STRICT_PROTOTYPES = YES;
423 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
424 | CLANG_WARN_UNREACHABLE_CODE = YES;
425 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
426 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
427 | COPY_PHASE_STRIP = NO;
428 | DEBUG_INFORMATION_FORMAT = dwarf;
429 | ENABLE_STRICT_OBJC_MSGSEND = YES;
430 | ENABLE_TESTABILITY = YES;
431 | GCC_C_LANGUAGE_STANDARD = gnu99;
432 | GCC_DYNAMIC_NO_PIC = NO;
433 | GCC_NO_COMMON_BLOCKS = YES;
434 | GCC_OPTIMIZATION_LEVEL = 0;
435 | GCC_PREPROCESSOR_DEFINITIONS = (
436 | "DEBUG=1",
437 | "$(inherited)",
438 | );
439 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
440 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
441 | GCC_WARN_UNDECLARED_SELECTOR = YES;
442 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
443 | GCC_WARN_UNUSED_FUNCTION = YES;
444 | GCC_WARN_UNUSED_VARIABLE = YES;
445 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
446 | MTL_ENABLE_DEBUG_INFO = YES;
447 | ONLY_ACTIVE_ARCH = YES;
448 | SDKROOT = iphoneos;
449 | TARGETED_DEVICE_FAMILY = "1,2";
450 | };
451 | name = Debug;
452 | };
453 | 97C147041CF9000F007C117D /* Release */ = {
454 | isa = XCBuildConfiguration;
455 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
456 | buildSettings = {
457 | ALWAYS_SEARCH_USER_PATHS = NO;
458 | CLANG_ANALYZER_NONNULL = YES;
459 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
460 | CLANG_CXX_LIBRARY = "libc++";
461 | CLANG_ENABLE_MODULES = YES;
462 | CLANG_ENABLE_OBJC_ARC = YES;
463 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
464 | CLANG_WARN_BOOL_CONVERSION = YES;
465 | CLANG_WARN_COMMA = YES;
466 | CLANG_WARN_CONSTANT_CONVERSION = YES;
467 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
468 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
469 | CLANG_WARN_EMPTY_BODY = YES;
470 | CLANG_WARN_ENUM_CONVERSION = YES;
471 | CLANG_WARN_INFINITE_RECURSION = YES;
472 | CLANG_WARN_INT_CONVERSION = YES;
473 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
474 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
475 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
476 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
477 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
478 | CLANG_WARN_STRICT_PROTOTYPES = YES;
479 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
480 | CLANG_WARN_UNREACHABLE_CODE = YES;
481 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
482 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
483 | COPY_PHASE_STRIP = NO;
484 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
485 | ENABLE_NS_ASSERTIONS = NO;
486 | ENABLE_STRICT_OBJC_MSGSEND = YES;
487 | GCC_C_LANGUAGE_STANDARD = gnu99;
488 | GCC_NO_COMMON_BLOCKS = YES;
489 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
490 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
491 | GCC_WARN_UNDECLARED_SELECTOR = YES;
492 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
493 | GCC_WARN_UNUSED_FUNCTION = YES;
494 | GCC_WARN_UNUSED_VARIABLE = YES;
495 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
496 | MTL_ENABLE_DEBUG_INFO = NO;
497 | SDKROOT = iphoneos;
498 | SUPPORTED_PLATFORMS = iphoneos;
499 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
500 | TARGETED_DEVICE_FAMILY = "1,2";
501 | VALIDATE_PRODUCT = YES;
502 | };
503 | name = Release;
504 | };
505 | 97C147061CF9000F007C117D /* Debug */ = {
506 | isa = XCBuildConfiguration;
507 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
508 | buildSettings = {
509 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
510 | CLANG_ENABLE_MODULES = YES;
511 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
512 | ENABLE_BITCODE = NO;
513 | FRAMEWORK_SEARCH_PATHS = (
514 | "$(inherited)",
515 | "$(PROJECT_DIR)/Flutter",
516 | );
517 | INFOPLIST_FILE = Runner/Info.plist;
518 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
519 | LIBRARY_SEARCH_PATHS = (
520 | "$(inherited)",
521 | "$(PROJECT_DIR)/Flutter",
522 | );
523 | PRODUCT_BUNDLE_IDENTIFIER = com.codebrek.covid19app;
524 | PRODUCT_NAME = "$(TARGET_NAME)";
525 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
526 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
527 | SWIFT_VERSION = 5.0;
528 | VERSIONING_SYSTEM = "apple-generic";
529 | };
530 | name = Debug;
531 | };
532 | 97C147071CF9000F007C117D /* Release */ = {
533 | isa = XCBuildConfiguration;
534 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
535 | buildSettings = {
536 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
537 | CLANG_ENABLE_MODULES = YES;
538 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
539 | ENABLE_BITCODE = NO;
540 | FRAMEWORK_SEARCH_PATHS = (
541 | "$(inherited)",
542 | "$(PROJECT_DIR)/Flutter",
543 | );
544 | INFOPLIST_FILE = Runner/Info.plist;
545 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
546 | LIBRARY_SEARCH_PATHS = (
547 | "$(inherited)",
548 | "$(PROJECT_DIR)/Flutter",
549 | );
550 | PRODUCT_BUNDLE_IDENTIFIER = com.codebrek.covid19app;
551 | PRODUCT_NAME = "$(TARGET_NAME)";
552 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
553 | SWIFT_VERSION = 5.0;
554 | VERSIONING_SYSTEM = "apple-generic";
555 | };
556 | name = Release;
557 | };
558 | /* End XCBuildConfiguration section */
559 |
560 | /* Begin XCConfigurationList section */
561 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
562 | isa = XCConfigurationList;
563 | buildConfigurations = (
564 | 97C147031CF9000F007C117D /* Debug */,
565 | 97C147041CF9000F007C117D /* Release */,
566 | 249021D3217E4FDB00AE95B9 /* Profile */,
567 | );
568 | defaultConfigurationIsVisible = 0;
569 | defaultConfigurationName = Release;
570 | };
571 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
572 | isa = XCConfigurationList;
573 | buildConfigurations = (
574 | 97C147061CF9000F007C117D /* Debug */,
575 | 97C147071CF9000F007C117D /* Release */,
576 | 249021D4217E4FDB00AE95B9 /* Profile */,
577 | );
578 | defaultConfigurationIsVisible = 0;
579 | defaultConfigurationName = Release;
580 | };
581 | /* End XCConfigurationList section */
582 | };
583 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
584 | }
585 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/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/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/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 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | covid19app
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 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
--------------------------------------------------------------------------------
/lib/api/all.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'dart:async';
3 | import 'package:http/http.dart' as http;
4 |
5 |
6 | class AllCases {
7 | final int cases;
8 | final int deaths;
9 | final int recovered;
10 |
11 | AllCases({this.cases, this.deaths, this.recovered});
12 |
13 | factory AllCases.fromJson(Map json) {
14 | return AllCases(
15 | cases: json['cases'],
16 | deaths: json['deaths'],
17 | recovered: json['recovered'],
18 | );
19 | }
20 | }
21 |
22 | Future fetchCases() async {
23 | final response = await http.get('https://corona.lmao.ninja/v2/all');
24 |
25 | if (response.statusCode == 200) {
26 | // If the server did return a 200 OK response,
27 | // then parse the JSON.
28 | return AllCases.fromJson(json.decode(response.body));
29 | } else {
30 | // If the server did not return a 200 OK response,
31 | // then throw an exception.
32 | throw Exception('Failed to load album');
33 | }
34 | }
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/lib/api/flags.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'dart:async';
3 | import 'package:http/http.dart' as http;
4 |
5 | List flags;
6 |
7 |
8 |
9 |
10 |
11 | Future fetchFlags() async {
12 |
13 | final response = await http.get(Uri.encodeFull("https://corona.lmao.ninja/v2/countries"),
14 | headers: {
15 | "Accept" : "application/json",
16 |
17 |
18 | }
19 |
20 |
21 |
22 | );
23 | if (response.statusCode == 200) {
24 | // If the server did return a 200 OK response,
25 | // then parse the JSON.
26 |
27 |
28 | flags = json.decode(response.body);
29 |
30 |
31 |
32 |
33 | return "good";
34 | } else {
35 | // If the server did not return a 200 OK response,
36 | // then throw an exception.
37 | throw Exception('Failed to load album');
38 | }
39 | }
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/lib/api/getby.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'dart:async';
3 | import 'package:http/http.dart' as http;
4 |
5 | // ignore: non_constant_identifier_names
6 | List GetList;
7 |
8 | String by;
9 |
10 | Future fetchBy() async {
11 |
12 | final response = await http.get(Uri.encodeFull("https://corona.lmao.ninja/v2/countries?sort=$by"),
13 | headers: {
14 | "Accept" : "application/json",
15 |
16 |
17 | }
18 |
19 |
20 |
21 | );
22 | if (response.statusCode == 200) {
23 | // If the server did return a 200 OK response,
24 | // then parse the JSON.
25 |
26 |
27 | GetList = json.decode(response.body);
28 |
29 |
30 | return "good";
31 | } else {
32 | // If the server did not return a 200 OK response,
33 | // then throw an exception.
34 | throw Exception('Failed to load album');
35 | }
36 | }
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/lib/icons/myiconsfile.dart:
--------------------------------------------------------------------------------
1 | /// Flutter icons MyFlutterApp
2 | /// Copyright (C) 2020 by original authors @ fluttericon.com, fontello.com
3 | /// This font was generated by FlutterIcon.com, which is derived from Fontello.
4 | ///
5 | /// To use this font, place it in your fonts/ directory and include the
6 | /// following in your pubspec.yaml
7 | ///
8 | /// flutter:
9 | /// fonts:
10 | /// - family: MyFlutterApp
11 | /// fonts:
12 | /// - asset: fonts/MyFlutterApp.ttf
13 | ///
14 | ///
15 | /// * Linearicons Free, Copyright (C) Linearicons.com
16 | /// Author: Perxis
17 | /// License: CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)
18 | /// Homepage: https://linearicons.com
19 | ///
20 | import 'package:flutter/widgets.dart';
21 |
22 | class MyFlutterApp {
23 | MyFlutterApp._();
24 |
25 | static const _kFontFam = 'myicons';
26 |
27 | static const IconData home = IconData(0xe800, fontFamily: _kFontFam);
28 | static const IconData apartment = IconData(0xe801, fontFamily: _kFontFam);
29 | static const IconData pencil = IconData(0xe802, fontFamily: _kFontFam);
30 | static const IconData magic_wand = IconData(0xe803, fontFamily: _kFontFam);
31 | static const IconData lighter = IconData(0xe805, fontFamily: _kFontFam);
32 | static const IconData sun = IconData(0xe807, fontFamily: _kFontFam);
33 | static const IconData cloud = IconData(0xe809, fontFamily: _kFontFam);
34 | static const IconData cloud_upload = IconData(0xe80a, fontFamily: _kFontFam);
35 | static const IconData cloud_download = IconData(0xe80b, fontFamily: _kFontFam);
36 | static const IconData cloud_sync = IconData(0xe80c, fontFamily: _kFontFam);
37 | static const IconData cloud_check = IconData(0xe80d, fontFamily: _kFontFam);
38 | static const IconData lock = IconData(0xe80f, fontFamily: _kFontFam);
39 | static const IconData cog = IconData(0xe810, fontFamily: _kFontFam);
40 | static const IconData trash = IconData(0xe811, fontFamily: _kFontFam);
41 | static const IconData star = IconData(0xe814, fontFamily: _kFontFam);
42 | static const IconData flag = IconData(0xe817, fontFamily: _kFontFam);
43 | static const IconData paperclip = IconData(0xe819, fontFamily: _kFontFam);
44 | static const IconData inbox = IconData(0xe81a, fontFamily: _kFontFam);
45 | static const IconData eye = IconData(0xe81b, fontFamily: _kFontFam);
46 | static const IconData file_empty = IconData(0xe81d, fontFamily: _kFontFam);
47 | static const IconData enter = IconData(0xe81f, fontFamily: _kFontFam);
48 | static const IconData exit = IconData(0xe820, fontFamily: _kFontFam);
49 | static const IconData license = IconData(0xe822, fontFamily: _kFontFam);
50 | static const IconData film_play = IconData(0xe824, fontFamily: _kFontFam);
51 | static const IconData camera_video = IconData(0xe825, fontFamily: _kFontFam);
52 | static const IconData camera = IconData(0xe826, fontFamily: _kFontFam);
53 | static const IconData picture = IconData(0xe827, fontFamily: _kFontFam);
54 | static const IconData book = IconData(0xe828, fontFamily: _kFontFam);
55 | static const IconData bookmark = IconData(0xe829, fontFamily: _kFontFam);
56 | static const IconData user = IconData(0xe82a, fontFamily: _kFontFam);
57 | static const IconData users = IconData(0xe82b, fontFamily: _kFontFam);
58 | static const IconData tag = IconData(0xe82f, fontFamily: _kFontFam);
59 | static const IconData phone_handset = IconData(0xe830, fontFamily: _kFontFam);
60 | static const IconData pushpin = IconData(0xe832, fontFamily: _kFontFam);
61 | static const IconData map_marker = IconData(0xe833, fontFamily: _kFontFam);
62 | static const IconData location = IconData(0xe835, fontFamily: _kFontFam);
63 | static const IconData calendar_full = IconData(0xe836, fontFamily: _kFontFam);
64 | static const IconData power_swtich = IconData(0xe83e, fontFamily: _kFontFam);
65 | static const IconData lnr_bubble = IconData(0xe83f, fontFamily: _kFontFam);
66 | static const IconData heart_pulse = IconData(0xe840, fontFamily: _kFontFam);
67 | static const IconData construction = IconData(0xe841, fontFamily: _kFontFam);
68 | static const IconData pie_chart = IconData(0xe842, fontFamily: _kFontFam);
69 | static const IconData chart_bars = IconData(0xe843, fontFamily: _kFontFam);
70 | static const IconData rocket = IconData(0xe84b, fontFamily: _kFontFam);
71 | static const IconData bicycle = IconData(0xe850, fontFamily: _kFontFam);
72 | static const IconData wheelchair = IconData(0xe851, fontFamily: _kFontFam);
73 | static const IconData earth = IconData(0xe853, fontFamily: _kFontFam);
74 | static const IconData smile = IconData(0xe854, fontFamily: _kFontFam);
75 | static const IconData sad = IconData(0xe855, fontFamily: _kFontFam);
76 | static const IconData neutral = IconData(0xe856, fontFamily: _kFontFam);
77 | static const IconData mustache = IconData(0xe857, fontFamily: _kFontFam);
78 | static const IconData alarm = IconData(0xe858, fontFamily: _kFontFam);
79 | static const IconData bullhorn = IconData(0xe859, fontFamily: _kFontFam);
80 | static const IconData hourglass = IconData(0xe85f, fontFamily: _kFontFam);
81 | static const IconData clock = IconData(0xe864, fontFamily: _kFontFam);
82 | static const IconData download = IconData(0xe865, fontFamily: _kFontFam);
83 | static const IconData upload = IconData(0xe866, fontFamily: _kFontFam);
84 | static const IconData enter_down = IconData(0xe867, fontFamily: _kFontFam);
85 | static const IconData exit_up = IconData(0xe868, fontFamily: _kFontFam);
86 | static const IconData code = IconData(0xe86a, fontFamily: _kFontFam);
87 | static const IconData thumbs_up = IconData(0xe86d, fontFamily: _kFontFam);
88 | static const IconData thumbs_down = IconData(0xe86e, fontFamily: _kFontFam);
89 | static const IconData magnifier = IconData(0xe86f, fontFamily: _kFontFam);
90 | static const IconData menu = IconData(0xe871, fontFamily: _kFontFam);
91 | static const IconData list = IconData(0xe872, fontFamily: _kFontFam);
92 | static const IconData chevron_up = IconData(0xe873, fontFamily: _kFontFam);
93 | static const IconData chevron_down = IconData(0xe874, fontFamily: _kFontFam);
94 | static const IconData chevron_left = IconData(0xe875, fontFamily: _kFontFam);
95 | static const IconData chevron_right = IconData(0xe876, fontFamily: _kFontFam);
96 | static const IconData arrow_up = IconData(0xe877, fontFamily: _kFontFam);
97 | static const IconData arrow_down = IconData(0xe878, fontFamily: _kFontFam);
98 | static const IconData arrow_left = IconData(0xe879, fontFamily: _kFontFam);
99 | static const IconData arrow_right = IconData(0xe87a, fontFamily: _kFontFam);
100 | static const IconData move = IconData(0xe87b, fontFamily: _kFontFam);
101 | static const IconData warning = IconData(0xe87c, fontFamily: _kFontFam);
102 | static const IconData question_circle = IconData(0xe87d, fontFamily: _kFontFam);
103 | static const IconData menu_circle = IconData(0xe87e, fontFamily: _kFontFam);
104 | static const IconData checkmark_cicle = IconData(0xe87f, fontFamily: _kFontFam);
105 | static const IconData cross_circle = IconData(0xe880, fontFamily: _kFontFam);
106 | static const IconData plus_circle = IconData(0xe881, fontFamily: _kFontFam);
107 | static const IconData circle_minus = IconData(0xe882, fontFamily: _kFontFam);
108 | static const IconData arrow_up_circle = IconData(0xe883, fontFamily: _kFontFam);
109 | static const IconData arrow_down_circle = IconData(0xe884, fontFamily: _kFontFam);
110 | static const IconData arrow_left_circle = IconData(0xe885, fontFamily: _kFontFam);
111 | static const IconData arrow_right_circle = IconData(0xe886, fontFamily: _kFontFam);
112 | static const IconData chevron_up_circle = IconData(0xe887, fontFamily: _kFontFam);
113 | static const IconData chevron_down_circle = IconData(0xe888, fontFamily: _kFontFam);
114 | static const IconData chevron_left_circle = IconData(0xe889, fontFamily: _kFontFam);
115 | static const IconData chevron_right_circle = IconData(0xe88a, fontFamily: _kFontFam);
116 | static const IconData frame_expand = IconData(0xe88c, fontFamily: _kFontFam);
117 | static const IconData frame_contract = IconData(0xe88d, fontFamily: _kFontFam);
118 | static const IconData hand = IconData(0xe8a5, fontFamily: _kFontFam);
119 | static const IconData pointer_up = IconData(0xe8a6, fontFamily: _kFontFam);
120 | static const IconData pointer_right = IconData(0xe8a7, fontFamily: _kFontFam);
121 | static const IconData pointer_down = IconData(0xe8a8, fontFamily: _kFontFam);
122 | static const IconData pointer_left = IconData(0xe8a9, fontFamily: _kFontFam);
123 | }
124 |
--------------------------------------------------------------------------------
/lib/icons/soshal_icons.dart:
--------------------------------------------------------------------------------
1 | /// Flutter icons Soshal
2 | /// Copyright (C) 2020 by original authors @ fluttericon.com, fontello.com
3 | /// This font was generated by FlutterIcon.com, which is derived from Fontello.
4 | ///
5 | /// To use this font, place it in your fonts/ directory and include the
6 | /// following in your pubspec.yaml
7 | ///
8 | /// flutter:
9 | /// fonts:
10 | /// - family: Soshal
11 | /// fonts:
12 | /// - asset: fonts/Soshal.ttf
13 | ///
14 | ///
15 | ///
16 | import 'package:flutter/widgets.dart';
17 |
18 | class Soshal {
19 | Soshal._();
20 |
21 | static const _kFontFam = 'Soshal';
22 |
23 | static const IconData facebook__2_ = IconData(0xe800, fontFamily: _kFontFam);
24 | static const IconData twitter__1_ = IconData(0xe801, fontFamily: _kFontFam);
25 | static const IconData github__1_ = IconData(0xe802, fontFamily: _kFontFam);
26 | }
27 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:covid19app/pages/home.dart';
2 | import 'package:flutter/cupertino.dart';
3 |
4 |
5 | void main() {
6 | runApp(
7 | new CupertinoApp(
8 |
9 |
10 |
11 | debugShowCheckedModeBanner: false,
12 |
13 | title: 'COVID-19 Coronavirus Statistics',
14 |
15 | theme: CupertinoThemeData(
16 |
17 |
18 | textTheme: CupertinoTextThemeData(
19 |
20 |
21 | ),
22 |
23 |
24 |
25 | ),
26 |
27 |
28 | home: home(),
29 | ),
30 | );
31 | }
--------------------------------------------------------------------------------
/lib/pages/Latest_statistics.dart:
--------------------------------------------------------------------------------
1 | import 'package:covid19app/api/all.dart';
2 | import 'package:covid19app/api/flags.dart';
3 | import 'package:covid19app/icons/myiconsfile.dart';
4 | import 'package:covid19app/pages/casesby.dart';
5 | import 'package:covid19app/pages/instructions.dart';
6 | import 'package:covid19app/style/style.dart';
7 | import 'package:flutter/cupertino.dart';
8 | import 'package:flutter/gestures.dart';
9 | import 'package:flutter/material.dart';
10 | import 'package:flutter/widgets.dart';
11 |
12 | class lastest_state extends StatefulWidget {
13 | @override
14 | _lastest_stateState createState() => _lastest_stateState();
15 | }
16 |
17 | class _lastest_stateState extends State {
18 | Future futureCases;
19 |
20 | @override
21 | void initState() {
22 | // TODO: implement initState
23 | super.initState();
24 | futureCases = fetchCases();
25 | }
26 |
27 |
28 |
29 | @override
30 | Widget build(BuildContext context) {
31 | return CupertinoPageScaffold(
32 | child: CustomScrollView(
33 | slivers: [
34 | CupertinoSliverNavigationBar(
35 | transitionBetweenRoutes: false,
36 | heroTag: "latest",
37 | largeTitle: Text("Latest Statistics"),
38 |
39 | ),
40 |
41 |
42 |
43 |
44 |
45 |
46 | SliverFillRemaining(
47 | hasScrollBody: false,
48 | child: Column(
49 | crossAxisAlignment: CrossAxisAlignment.center,
50 | children: [
51 |
52 | FutureBuilder(
53 | future: futureCases,
54 | builder: (context, snapshot) {
55 | if (snapshot.hasData) {
56 | return Container(
57 | margin: EdgeInsets.only(
58 | top: 40, left: 20, right: 20, bottom: 10),
59 | child: Column(
60 | crossAxisAlignment: CrossAxisAlignment.start,
61 | children: [
62 | Container(
63 | margin: EdgeInsets.only(bottom: 10),
64 | child: Text(
65 | "Total global cases",
66 | style: TextStyle(
67 | color: CupertinoColors.label.resolveFrom(context),
68 | fontSize: 25,
69 | fontWeight: FontWeight.w700,
70 | ),
71 | textAlign: TextAlign.left,
72 | ),
73 | ),
74 | Container(
75 | margin: EdgeInsets.only(bottom: 20),
76 | decoration: BoxDecoration(
77 | color: CupertinoColors.label
78 | .resolveFrom(context)
79 | .withOpacity(0.12),
80 | borderRadius: BorderRadius.circular(10),
81 | image: DecorationImage(
82 | image: AssetImage('imgs/map.png'),
83 | fit: BoxFit.cover,
84 | )
85 | ),
86 | padding: EdgeInsets.symmetric(
87 | vertical: 14, horizontal: 20),
88 | width: MediaQuery.of(context).size.width,
89 | child: Row(
90 | crossAxisAlignment: CrossAxisAlignment.center,
91 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
92 | children: [
93 | Text(
94 | "All cases",
95 | style: TextStyle(
96 | color: CupertinoColors.label
97 | .resolveFrom(context)
98 | .withOpacity(0.8),
99 | fontWeight: FontWeight.w700,
100 | fontSize: 20,
101 | ),
102 | ),
103 | Container(
104 | padding: EdgeInsets.symmetric(
105 | vertical: 10, horizontal: 20),
106 | decoration: BoxDecoration(
107 | color: CupertinoColors.white,
108 | borderRadius: BorderRadius.circular(10),
109 | ),
110 | child: Text(
111 | snapshot.data.cases.toString(),
112 | style: TextStyle(
113 | fontWeight: FontWeight.w700,
114 | color: CupertinoColors.black),
115 | ),
116 | ),
117 | ],
118 | ),
119 | ),
120 | Row(
121 | children: [
122 | Expanded(
123 | child: Container(
124 | decoration: BoxDecoration(
125 | color: CupertinoColors.systemRed,
126 | borderRadius: BorderRadius.circular(10),
127 | image: DecorationImage(
128 | image: AssetImage('imgs/map.png'),
129 | fit: BoxFit.cover,
130 | )
131 | ),
132 | padding: EdgeInsets.symmetric(
133 | vertical: 20, horizontal: 5),
134 | child: Column(
135 | children: [
136 | Text(
137 | "Deaths",
138 | style: TextStyle(
139 | color: CupertinoColors.white,
140 | fontWeight: FontWeight.w700,
141 | fontSize: 20,
142 | ),
143 | ),
144 | Container(
145 | margin: EdgeInsets.only(top: 10),
146 | padding: EdgeInsets.symmetric(
147 | vertical: 10, horizontal: 20),
148 | decoration: BoxDecoration(
149 | color: CupertinoColors.white,
150 | borderRadius: BorderRadius.circular(10),
151 | ),
152 | child: Text(
153 | snapshot.data.deaths.toString(),
154 | style: TextStyle(
155 | fontWeight: FontWeight.w700,
156 | color: CupertinoColors.black),
157 | ),
158 | ),
159 | ],
160 | ),
161 | ),
162 | ),
163 | Container(
164 | width: 20,
165 | ),
166 | Expanded(
167 | child: Container(
168 | decoration: BoxDecoration(
169 | color: CupertinoColors.activeGreen,
170 | borderRadius: BorderRadius.circular(10),
171 | image: DecorationImage(
172 | image: AssetImage('imgs/map.png'),
173 | fit: BoxFit.cover,
174 | )
175 | ),
176 | padding: EdgeInsets.symmetric(
177 | vertical: 20, horizontal: 5),
178 | child: Column(
179 | children: [
180 | Text(
181 | "Recovered",
182 | style: TextStyle(
183 | color: CupertinoColors.white,
184 | fontWeight: FontWeight.w700,
185 | fontSize: 20,
186 | ),
187 | ),
188 | Container(
189 | margin: EdgeInsets.only(top: 10),
190 | padding: EdgeInsets.symmetric(
191 | vertical: 10, horizontal: 20),
192 | decoration: BoxDecoration(
193 | color: CupertinoColors.white,
194 | borderRadius: BorderRadius.circular(10),
195 | ),
196 | child: Text(
197 | snapshot.data.recovered.toString(),
198 | style: TextStyle(
199 | fontWeight: FontWeight.w700,
200 | color: CupertinoColors.black),
201 | ),
202 | ),
203 | ],
204 | ),
205 | ),
206 | ),
207 | ],
208 | ),
209 | ],
210 | ),
211 | );
212 | } else if (snapshot.hasError) {
213 | return Container(
214 | width: MediaQuery.of(context).size.width,
215 | color: CupertinoColors.systemRed,
216 | padding: EdgeInsets.all(20),
217 | child: Row(
218 | mainAxisAlignment: MainAxisAlignment.start,
219 | crossAxisAlignment: CrossAxisAlignment.center,
220 | children: [
221 | Container(
222 | child: Icon(
223 | MyFlutterApp.warning,
224 | size: 30,
225 | color: CupertinoColors.label.resolveFrom(context),
226 | ),
227 | margin: EdgeInsets.only(right: 10),),
228 | Flexible(
229 | child: Text(
230 | "Please check your internet connection",
231 | style: TextStyle(
232 | color: CupertinoColors.label.resolveFrom(context),
233 | fontWeight: FontWeight.w700),
234 |
235 | overflow: TextOverflow.ellipsis,
236 | maxLines: 2,
237 | ),
238 | ),
239 | ],
240 | ),
241 | );
242 |
243 | }
244 |
245 | // By default, show a loading spinner.
246 | return Container(
247 | margin: EdgeInsets.only(
248 | top: 40, left: 20, right: 20, bottom: 10),
249 | child: Column(
250 | crossAxisAlignment: CrossAxisAlignment.start,
251 | children: [
252 | Container(
253 | margin: EdgeInsets.only(bottom: 10),
254 | width: 150,
255 | height: 30,
256 | decoration: BoxDecoration(
257 | color: CupertinoColors.label
258 | .resolveFrom(context)
259 | .withOpacity(0.20),
260 | borderRadius: BorderRadius.circular(10),
261 | ),
262 |
263 | ),
264 | Container(
265 | margin: EdgeInsets.only(bottom: 20),
266 | decoration: BoxDecoration(
267 | color: CupertinoColors.label
268 | .resolveFrom(context)
269 | .withOpacity(0.12),
270 | borderRadius: BorderRadius.circular(10),
271 | ),
272 | padding: EdgeInsets.symmetric(
273 | vertical: 14, horizontal: 20),
274 | width: MediaQuery.of(context).size.width,
275 | child: Row(
276 | crossAxisAlignment: CrossAxisAlignment.center,
277 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
278 | children: [
279 | Container(
280 |
281 | width: 120,
282 | height: 30,
283 | decoration: BoxDecoration(
284 | color: CupertinoColors.label
285 | .resolveFrom(context)
286 | .withOpacity(0.20),
287 | borderRadius: BorderRadius.circular(10),
288 | ),
289 |
290 | ),
291 | Container(
292 | padding: EdgeInsets.symmetric(
293 | vertical: 10, horizontal: 20),
294 | decoration: BoxDecoration(
295 | color: CupertinoColors.label
296 | .resolveFrom(context)
297 | .withOpacity(0.12),
298 | borderRadius: BorderRadius.circular(10),
299 | ),
300 | child: Text(
301 | " ",
302 | style: TextStyle(
303 | fontWeight: FontWeight.w700,
304 | color: CupertinoColors.black),
305 | ),
306 | ),
307 | ],
308 | ),
309 | ),
310 | Row(
311 | children: [
312 | Expanded(
313 | child: Container(
314 | decoration: BoxDecoration(
315 | color: CupertinoColors.label
316 | .resolveFrom(context)
317 | .withOpacity(0.12),
318 | borderRadius: BorderRadius.circular(10),
319 | ),
320 | padding: EdgeInsets.symmetric(
321 | vertical: 20, horizontal: 5),
322 | child: Column(
323 | children: [
324 | Container(
325 |
326 | width: 100,
327 | height: 30,
328 | decoration: BoxDecoration(
329 | color: CupertinoColors.label
330 | .resolveFrom(context)
331 | .withOpacity(0.20),
332 | borderRadius: BorderRadius.circular(10),
333 | ),
334 |
335 | ),
336 | Container(
337 | margin: EdgeInsets.only(top: 10),
338 | padding: EdgeInsets.symmetric(
339 | vertical: 10, horizontal: 20),
340 | decoration: BoxDecoration(
341 | color: CupertinoColors.label
342 | .resolveFrom(context)
343 | .withOpacity(0.12),
344 | borderRadius: BorderRadius.circular(10),
345 | ),
346 | child: Text(
347 | " ",
348 | style: TextStyle(
349 | fontWeight: FontWeight.w700,
350 | color: CupertinoColors.black),
351 | ),
352 | ),
353 | ],
354 | ),
355 | ),
356 | ),
357 | Container(
358 | width: 20,
359 | ),
360 | Expanded(
361 | child: Container(
362 | decoration: BoxDecoration(
363 | color: CupertinoColors.label
364 | .resolveFrom(context)
365 | .withOpacity(0.12),
366 | borderRadius: BorderRadius.circular(10),
367 | ),
368 | padding: EdgeInsets.symmetric(
369 | vertical: 20, horizontal: 5),
370 | child: Column(
371 | children: [
372 | Container(
373 |
374 | width: 100,
375 | height: 30,
376 | decoration: BoxDecoration(
377 | color: CupertinoColors.label
378 | .resolveFrom(context)
379 | .withOpacity(0.20),
380 | borderRadius: BorderRadius.circular(10),
381 | ),
382 |
383 | ),
384 | Container(
385 | margin: EdgeInsets.only(top: 10),
386 | padding: EdgeInsets.symmetric(
387 | vertical: 10, horizontal: 20),
388 | decoration: BoxDecoration(
389 | color: CupertinoColors.label
390 | .resolveFrom(context)
391 | .withOpacity(0.12),
392 | borderRadius: BorderRadius.circular(10),
393 | ),
394 | child: Text(
395 | " ",
396 | style: TextStyle(
397 | fontWeight: FontWeight.w700,
398 | color: CupertinoColors.black),
399 | ),
400 | ),
401 | ],
402 | ),
403 | ),
404 | ),
405 | ],
406 | ),
407 | ],
408 | ),
409 | );
410 | },
411 | ),
412 |
413 |
414 |
415 | Container(
416 | margin: EdgeInsets.symmetric(horizontal: 20),
417 | child: Column(
418 | crossAxisAlignment: CrossAxisAlignment.start,
419 | children: [
420 | Container(
421 | child: Text(
422 | "Top 5 countries by",
423 | style: TextStyle(
424 | color: CupertinoColors.label.resolveFrom(context),
425 | fontSize: 25,
426 | fontWeight: FontWeight.w700,
427 | ),
428 | textAlign: TextAlign.left,
429 | ),
430 | margin: EdgeInsets.only(bottom: 10, top: 20),
431 | ),
432 | Container(
433 | decoration: BoxDecoration(
434 | color: CupertinoColors.systemFill.withOpacity(0.2),
435 | borderRadius: new BorderRadius.only(
436 | topLeft: const Radius.circular(20.0),
437 | topRight: const Radius.circular(20.0),
438 | ),
439 | ),
440 | child: Column(
441 | children: [
442 | CupertinoButton(
443 | child: SizedBox(
444 | width: double.infinity,
445 | child: Row(
446 | mainAxisAlignment:
447 | MainAxisAlignment.spaceBetween,
448 | children: [
449 | Row(
450 | children: [
451 | Container(
452 | padding: EdgeInsets.all(4),
453 | decoration: BoxDecoration(
454 | color:
455 | CupertinoColors.activeOrange,
456 | borderRadius:
457 | new BorderRadius.circular(
458 | 5.0),
459 | ),
460 | child: Icon(
461 | MyFlutterApp.warning,
462 | color: CupertinoColors.white,
463 | ),
464 | ),
465 | Container(
466 | margin: EdgeInsets.only(left: 10),
467 | child: Text(
468 | 'Affected Cases',
469 | textAlign: TextAlign.left,
470 | style: TextStyle(
471 | color: CupertinoColors.label
472 | .resolveFrom(context),
473 | fontSize: 17),
474 | ),
475 | ),
476 | ],
477 | ),
478 | Container(
479 | child: Icon(
480 | CupertinoIcons.forward,
481 | color: CupertinoColors.label
482 | .resolveFrom(context),
483 | ),
484 | ),
485 | ],
486 | ),
487 | ),
488 | onPressed: () {
489 |
490 |
491 | Navigator.push(
492 | context,
493 | CupertinoPageRoute(
494 | builder: (context) => CasesBy(
495 | sort: "cases",
496 | name: "Affected"
497 |
498 | ),
499 | ),
500 | );
501 |
502 | },
503 | ),
504 | ],
505 | ),
506 | ),
507 | Container(
508 | height: 1,
509 | width: MediaQuery.of(context).size.width * 0.90,
510 | color: CupertinoColors.label
511 | .resolveFrom(context)
512 | .withOpacity(0.2),
513 | alignment: Alignment.centerRight,
514 | ),
515 | Container(
516 |
517 | decoration: BoxDecoration(
518 | color: CupertinoColors.systemFill.withOpacity(0.2),
519 | ),
520 | child: Column(
521 | children: [
522 | CupertinoButton(
523 | child: SizedBox(
524 | width: double.infinity,
525 | child: Row(
526 | mainAxisAlignment:
527 | MainAxisAlignment.spaceBetween,
528 | children: [
529 | Row(
530 | children: [
531 | Container(
532 | padding: EdgeInsets.all(4),
533 | decoration: BoxDecoration(
534 | color:
535 | CupertinoColors.activeGreen,
536 | borderRadius:
537 | new BorderRadius.circular(
538 | 5.0),
539 | ),
540 | child: Icon(
541 | MyFlutterApp.checkmark_cicle,
542 | color: CupertinoColors.white,
543 | ),
544 | ),
545 | Container(
546 | margin: EdgeInsets.only(left: 10),
547 | child: Text(
548 | 'Recovered Cases',
549 | textAlign: TextAlign.left,
550 | style: TextStyle(
551 | color: CupertinoColors.label
552 | .resolveFrom(context),
553 | fontSize: 17),
554 | ),
555 | ),
556 | ],
557 | ),
558 | Container(
559 | child: Icon(
560 | CupertinoIcons.forward,
561 | color: CupertinoColors.label
562 | .resolveFrom(context),
563 | ),
564 | ),
565 | ],
566 | ),
567 | ),
568 | onPressed: () {
569 |
570 | Navigator.push(
571 | context,
572 | CupertinoPageRoute(
573 | builder: (context) => CasesBy(
574 | sort: "recovered",
575 | name: "Recovered"
576 |
577 | ),
578 | ),
579 | );
580 |
581 |
582 |
583 | },
584 | ),
585 | ],
586 | ),
587 | ),
588 | Container(
589 | height: 1,
590 | width: MediaQuery.of(context).size.width * 0.90,
591 | color: CupertinoColors.label
592 | .resolveFrom(context)
593 | .withOpacity(0.2),
594 | alignment: Alignment.centerRight,
595 | ),
596 | Container(
597 |
598 | decoration: BoxDecoration(
599 | color: CupertinoColors.systemFill.withOpacity(0.2),
600 | borderRadius: new BorderRadius.only(
601 | bottomRight: const Radius.circular(20.0),
602 | bottomLeft: const Radius.circular(20.0),
603 | ),
604 | ),
605 | child: Column(
606 | children: [
607 | CupertinoButton(
608 | child: SizedBox(
609 | width: double.infinity,
610 | child: Row(
611 | mainAxisAlignment:
612 | MainAxisAlignment.spaceBetween,
613 | children: [
614 | Row(
615 | children: [
616 | Container(
617 | padding: EdgeInsets.all(4),
618 | decoration: BoxDecoration(
619 | color: CupertinoColors.systemRed,
620 | borderRadius:
621 | new BorderRadius.circular(
622 | 5.0),
623 | ),
624 | child: Icon(
625 | MyFlutterApp.heart_pulse,
626 | color: CupertinoColors.white,
627 | ),
628 | ),
629 | Container(
630 | margin: EdgeInsets.only(left: 10),
631 | child: Text(
632 | 'Deaths cases',
633 | textAlign: TextAlign.left,
634 | style: TextStyle(
635 | color: CupertinoColors.label
636 | .resolveFrom(context),
637 | fontSize: 17),
638 | ),
639 | ),
640 | ],
641 | ),
642 | Container(
643 | child: Icon(
644 | CupertinoIcons.forward,
645 | color: CupertinoColors.label
646 | .resolveFrom(context),
647 | ),
648 | ),
649 | ],
650 | ),
651 | ),
652 | onPressed: () {
653 |
654 | Navigator.push(
655 |
656 | context,
657 | CupertinoPageRoute(
658 | builder: (context) => CasesBy(
659 | sort: "deaths",
660 | name: "Deaths"
661 |
662 | ),
663 | ),
664 | );
665 | },
666 | ),
667 | ],
668 | ),
669 | ),
670 | Container(
671 | child: Text(
672 | "How to Protect Yourself?",
673 | style: TextStyle(
674 | color: CupertinoColors.label.resolveFrom(context),
675 | fontSize: 25,
676 | fontWeight: FontWeight.w700,
677 | ),
678 | textAlign: TextAlign.left,
679 | ),
680 | margin: EdgeInsets.only(bottom: 10, top: 30),
681 | ),
682 | GestureDetector(
683 |
684 | onTap: (){
685 |
686 | Navigator.push(
687 | context,
688 | CupertinoPageRoute(
689 | builder: (context) => Instructions(),
690 | ),
691 | );
692 |
693 | },
694 |
695 |
696 | child: Container(
697 | decoration: BoxDecoration(
698 | color: maincolors().maincolor,
699 | borderRadius: new BorderRadius.circular(20.0),
700 |
701 | ),
702 | child: Padding(
703 | padding: const EdgeInsets.all(20.0),
704 | child: Column(
705 | mainAxisAlignment: MainAxisAlignment.spaceAround,
706 | children: [
707 | Container(
708 | height: 200,
709 | child: Image(
710 | image: AssetImage('imgs/mansick.png'),
711 | fit: BoxFit.cover,
712 | ),
713 | ),
714 | Row(
715 | mainAxisAlignment: MainAxisAlignment.start,
716 | children: [
717 | Icon(
718 | MyFlutterApp.book,
719 | color: maincolors().sec_color,
720 | ),
721 | Container(
722 | width: 200,
723 | margin:
724 | EdgeInsets.symmetric(horizontal: 10),
725 | child: Text(
726 | "Read it all...",
727 | overflow: TextOverflow.ellipsis,
728 | style: TextStyle(
729 | color: maincolors().sec_color,
730 | fontSize: 20,
731 | fontWeight: FontWeight.w700,
732 | ),
733 | textAlign: TextAlign.left,
734 | ),
735 | ),
736 | ],
737 | ),
738 | ],
739 | ),
740 | ),
741 |
742 | height: 300,
743 | ),
744 | ),
745 | Container(
746 | height: 100,
747 | )
748 | ],
749 | ),
750 | ),
751 | ],
752 | ))
753 | ],
754 | ),
755 | );
756 | }
757 | }
758 |
--------------------------------------------------------------------------------
/lib/pages/casesby.dart:
--------------------------------------------------------------------------------
1 | import 'package:covid19app/api/getby.dart';
2 | import 'package:covid19app/icons/myiconsfile.dart';
3 | import 'package:covid19app/pages/single.dart';
4 | import 'package:flutter/cupertino.dart';
5 |
6 |
7 | class CasesBy extends StatelessWidget {
8 |
9 |
10 | final String sort;
11 | final String name;
12 |
13 |
14 |
15 | CasesBy({
16 | Key key,
17 | @required this.sort, this.name,
18 |
19 |
20 | }) : super(key: key);
21 |
22 |
23 | @override
24 | void setState(fn) {
25 | // TODO: implement setState
26 | setState(() {
27 |
28 | fetchBy();
29 | });
30 | }
31 |
32 | @override
33 | void initState() {
34 | // TODO: implement initState
35 | initState();
36 |
37 | fetchBy();
38 | }
39 |
40 |
41 |
42 |
43 | @override
44 | Widget build(BuildContext context) {
45 | by = sort;
46 | return CupertinoPageScaffold(
47 | navigationBar: new CupertinoNavigationBar(
48 | transitionBetweenRoutes: false,
49 | heroTag: "caseby",
50 |
51 | leading: GestureDetector(
52 | onTap: () {
53 | Navigator.pop(context);
54 | },
55 | child: Icon(
56 | MyFlutterApp.chevron_left,
57 | color: CupertinoColors.label.resolveFrom(context),
58 | size: 20,
59 | )),
60 | middle: Text(
61 | name + " cases",
62 |
63 | style: TextStyle(
64 | color: CupertinoColors.label.resolveFrom(context),
65 | ),
66 | ),
67 | backgroundColor: CupertinoColors.inactiveGray.withOpacity(0.10),
68 | ),
69 | resizeToAvoidBottomInset: true,
70 | child: SingleChildScrollView(
71 |
72 | child: SafeArea(
73 | child: Container(
74 | margin: EdgeInsets.only(bottom: 20,top: 20),
75 | child: FutureBuilder(
76 | future: fetchBy(),
77 | builder: (context, snapshot) {
78 |
79 | if (snapshot.hasData) {
80 | return ListView.builder(
81 | physics: NeverScrollableScrollPhysics(),
82 | shrinkWrap: true,
83 | itemCount: GetList == null ? 0 : 5,
84 | itemBuilder: (context, index) {
85 | return GestureDetector(
86 |
87 | onTap: () {
88 | Navigator.push(
89 | context,
90 | CupertinoPageRoute(
91 | builder: (context) => Single_st(
92 | name: GetList[index]["country"],
93 | flag: GetList[index]["countryInfo"]["flag"],
94 | cases: GetList[index]["cases"],
95 | todayCases: GetList[index]["todayCases"],
96 | deaths: GetList[index]["deaths"],
97 | todayDeaths: GetList[index]["todayDeaths"],
98 | recovered: GetList[index]["recovered"],
99 | active: GetList[index]["active"],
100 | critical: GetList[index]["critical"],
101 |
102 | ),
103 | ),
104 | );
105 | },
106 |
107 | child: Container(
108 | margin: EdgeInsets.symmetric(
109 | horizontal: 20, vertical: 10),
110 | padding: EdgeInsets.symmetric(horizontal: 20,vertical: 20),
111 | height: 130,
112 | decoration: BoxDecoration(
113 | color: CupertinoColors.label
114 | .resolveFrom(context)
115 | .withOpacity(0.1),
116 | borderRadius: BorderRadius.circular(13),
117 | ),
118 | child: Column(
119 | crossAxisAlignment: CrossAxisAlignment.start,
120 | mainAxisAlignment: MainAxisAlignment.spaceAround,
121 | children: [
122 | Flexible(
123 | child: Row(
124 | mainAxisAlignment: MainAxisAlignment.start,
125 | children: [
126 | Image.network(GetList[index]["countryInfo"]["flag"], width: 30,),
127 | Container(width: 10, height: 0,),
128 | Flexible(
129 | child: Text(
130 | GetList[index]["country"],
131 | style: TextStyle(
132 | fontWeight: FontWeight.w700,
133 | fontSize: 25,
134 | color: CupertinoColors.label
135 | .resolveFrom(context)),
136 | overflow: TextOverflow.ellipsis,
137 | maxLines: 1,
138 | ),
139 | ),
140 | ],
141 | ),
142 | ),
143 |
144 | Container(
145 |
146 | width: MediaQuery.of(context).size.width,
147 | height: 1,
148 | color: CupertinoColors.label.resolveFrom(context).withOpacity(0.20),
149 |
150 | ),
151 | Text(
152 | GetList[index][sort].toString()+ " "+ name + " cases",
153 | style: TextStyle(
154 | fontSize: 20,
155 | fontWeight: FontWeight.w600,
156 | color: CupertinoColors.label.resolveFrom(context)),
157 | overflow: TextOverflow.ellipsis,
158 | maxLines: 1,
159 | ),
160 | ],
161 | ),
162 | ),
163 | );
164 | },
165 | );
166 | } else if (snapshot.hasError) {
167 | return Container(
168 | width: MediaQuery.of(context).size.width,
169 |
170 | padding: EdgeInsets.all(20),
171 | child: Column(
172 | mainAxisAlignment: MainAxisAlignment.center,
173 | crossAxisAlignment: CrossAxisAlignment.center,
174 | children: [
175 | Container(
176 | child: Icon(
177 | MyFlutterApp.warning,
178 | size: 100,
179 | color: CupertinoColors.label.resolveFrom(context),
180 | ),
181 | margin: EdgeInsets.only(bottom: 20),),
182 | Text(
183 | "Please check your internet connection",
184 | style: TextStyle(
185 | color: CupertinoColors.label.resolveFrom(context),
186 | fontWeight: FontWeight.w700),
187 | textAlign: TextAlign.center,
188 | ),
189 | ],
190 | ),
191 | );
192 | }
193 |
194 | // By default, show a loading spinner.
195 | return Center(
196 | child: CupertinoActivityIndicator(),
197 | );
198 | },
199 | ),
200 | ),
201 | ),
202 | )
203 | );
204 | }
205 | }
206 |
--------------------------------------------------------------------------------
/lib/pages/home.dart:
--------------------------------------------------------------------------------
1 | import 'package:covid19app/pages/Latest_statistics.dart';
2 | import 'package:covid19app/pages/search.dart';
3 | import 'package:covid19app/pages/setting.dart';
4 | import 'package:covid19app/style/style.dart';
5 | import 'package:flutter/cupertino.dart';
6 | import 'package:flutter/material.dart';
7 | import 'package:covid19app/icons/myiconsfile.dart';
8 |
9 |
10 | class home extends StatefulWidget {
11 | @override
12 | _homeState createState() => _homeState();
13 | }
14 |
15 |
16 |
17 | int _currentIndex = 0;
18 | PageController _pageController;
19 |
20 | class _homeState extends State {
21 | @override
22 | Widget build(BuildContext context) {
23 |
24 | return CupertinoTabScaffold(
25 |
26 |
27 |
28 | tabBar: CupertinoTabBar(
29 |
30 |
31 |
32 |
33 | activeColor: CupertinoColors.destructiveRed,
34 |
35 | inactiveColor: CupertinoColors.label,
36 |
37 |
38 |
39 | items: [
40 | BottomNavigationBarItem(
41 |
42 | icon: Icon(MyFlutterApp.earth, size: 24,),
43 | title: Text("latest Statistics"),
44 |
45 |
46 |
47 | ),
48 | BottomNavigationBarItem(
49 |
50 | icon: Icon(MyFlutterApp.magnifier, size: 24,),
51 | title: Text("Search")
52 |
53 | ),
54 |
55 | BottomNavigationBarItem(
56 |
57 | icon: Icon(MyFlutterApp.question_circle, size: 24,),
58 | title: Text("App Info")
59 |
60 | ),
61 |
62 |
63 | ],
64 |
65 | ) ,
66 |
67 |
68 | tabBuilder: (context,index){
69 |
70 | if(index == 0){
71 |
72 | return lastest_state();
73 | }else if(index == 1){
74 |
75 | return search();
76 | }
77 |
78 |
79 | else return setting();
80 |
81 | },
82 | );
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/lib/pages/instructions.dart:
--------------------------------------------------------------------------------
1 | import 'package:covid19app/icons/myiconsfile.dart';
2 | import 'package:covid19app/style/style.dart';
3 | import 'package:flutter/cupertino.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class Instructions extends StatefulWidget {
7 | @override
8 | _InstructionsState createState() => _InstructionsState();
9 | }
10 |
11 | class _InstructionsState extends State {
12 | @override
13 | Widget build(BuildContext context) {
14 | return CupertinoPageScaffold(
15 |
16 | backgroundColor: maincolors().maincolor,
17 | navigationBar: new CupertinoNavigationBar(
18 | transitionBetweenRoutes: false,
19 | heroTag: "instructions",
20 | leading: GestureDetector(
21 | onTap: () {
22 | Navigator.pop(context);
23 | },
24 | child: Icon(
25 | MyFlutterApp.chevron_left,
26 | color: CupertinoColors.white,
27 | size: 20,
28 | ),),
29 | middle: Text(
30 | "How to Protect Yourself?",
31 | style: TextStyle(
32 | color: CupertinoColors.white,
33 | ),
34 | ),
35 | backgroundColor: maincolors().maincolor.withOpacity(0.40),
36 | ),
37 | child: SingleChildScrollView(
38 | child: SafeArea(
39 | child: Column(
40 | crossAxisAlignment: CrossAxisAlignment.start,
41 | children: [
42 | Container(
43 | height: 300,
44 | width: MediaQuery.of(context).size.width,
45 | child: Image(
46 | image: AssetImage('imgs/prod.png'),
47 | fit: BoxFit.cover,
48 | ),
49 | ),
50 | Container(
51 | padding: EdgeInsets.all(20),
52 | child: Text(
53 | "How to Protect Yourself and your family?",
54 | style: TextStyle(
55 |
56 | color: CupertinoColors.white,
57 | fontSize: 25,
58 | fontWeight: FontWeight.w800,
59 |
60 | ),
61 | )),
62 | Container(
63 | padding: EdgeInsets.symmetric(horizontal: 20),
64 | child: Text(
65 | "Stay aware of the latest information on the COVID-19 outbreak, available on the WHO website and through your national and local public health authority. Most people who become infected experience mild illness and recover, but it can be more severe for others. Take care of your health and protect others by doing the following:",
66 | style: TextStyle(
67 |
68 | color: CupertinoColors.white,
69 | fontSize: 17,
70 |
71 |
72 | ),
73 | )),
74 | Container(
75 | padding: EdgeInsets.all(20),
76 | child: Row(
77 | children: [
78 | Container(
79 | width: MediaQuery.of(context).size.width * 0.40,
80 |
81 | child: Text(
82 | "Wash your hands frequently",
83 | style: TextStyle(
84 |
85 | color: maincolors().sec_color,
86 | fontSize: 23,
87 | fontWeight: FontWeight.w800,
88 |
89 | ),
90 | )),
91 | Expanded(
92 |
93 |
94 | child: Image(image: AssetImage('imgs/hand.png'),fit: BoxFit.contain,height: 140,),
95 |
96 |
97 | ),
98 | ],
99 | ),
100 | ),
101 |
102 |
103 |
104 | Container(
105 | padding: EdgeInsets.symmetric(horizontal: 20),
106 | child: Text(
107 | "Regularly and thoroughly clean your hands with an alcohol-based hand rub or wash them with soap and water.",
108 | style: TextStyle(
109 |
110 | color: CupertinoColors.white,
111 | fontSize: 17,
112 |
113 |
114 | ),
115 | )),
116 |
117 |
118 | Container(
119 | padding: EdgeInsets.all(20),
120 |
121 | child: Row(
122 | children: [
123 | Container(
124 | width: MediaQuery.of(context).size.width * 0.40,
125 |
126 |
127 | child: Text(
128 | "Maintain social distancing",
129 | style: TextStyle(
130 |
131 | color: maincolors().sec_color,
132 | fontSize: 23,
133 | fontWeight: FontWeight.w800,
134 |
135 | ),
136 | )),
137 | Expanded(
138 |
139 |
140 | child: Image(image: AssetImage('imgs/cou.png'),fit: BoxFit.contain,height: 140,),
141 |
142 |
143 | ),
144 | ],
145 | ),
146 | ),
147 |
148 | Container(
149 | padding: EdgeInsets.symmetric(horizontal: 20),
150 | child: Text(
151 | "Maintain at least 1 metre (3 feet) distance between yourself and anyone who is coughing or sneezing.",
152 | style: TextStyle(
153 |
154 | color: CupertinoColors.white,
155 | fontSize: 17,
156 |
157 |
158 | ),
159 | )),
160 |
161 | Container(
162 | padding: EdgeInsets.all(20),
163 |
164 | child: Row(
165 | children: [
166 | Container(
167 | width: MediaQuery.of(context).size.width * 0.40,
168 |
169 |
170 | child: Text(
171 | "Avoid touching eyes, nose and mouth",
172 | style: TextStyle(
173 |
174 | color: maincolors().sec_color,
175 | fontSize: 23,
176 | fontWeight: FontWeight.w800,
177 |
178 | ),
179 | )),
180 | Expanded(
181 |
182 |
183 | child: Image(image: AssetImage('imgs/eay.png'),fit: BoxFit.contain,height: 140,),
184 |
185 |
186 | ),
187 | ],
188 | ),
189 | ),
190 |
191 | Container(
192 | padding: EdgeInsets.symmetric(horizontal: 20),
193 | child: Text(
194 | "Hands touch many surfaces and can pick up viruses. Once contaminated, hands can transfer the virus to your eyes, nose or mouth. From there, the virus can enter your body and can make you sick.",
195 | style: TextStyle(
196 |
197 | color: CupertinoColors.white,
198 | fontSize: 17,
199 |
200 |
201 | ),
202 | )),
203 |
204 | Container(
205 | padding: EdgeInsets.all(20),
206 |
207 | child: Row(
208 | children: [
209 | Container(
210 | width: MediaQuery.of(context).size.width * 0.40,
211 |
212 |
213 | child: Text(
214 | "Practice respiratory hygiene",
215 | style: TextStyle(
216 |
217 | color: maincolors().sec_color,
218 | fontSize: 23,
219 | fontWeight: FontWeight.w800,
220 |
221 | ),
222 | )),
223 | Expanded(
224 |
225 |
226 | child: Image(image: AssetImage('imgs/good.png'),fit: BoxFit.contain,height: 140,),
227 |
228 |
229 | ),
230 | ],
231 | ),
232 | ),
233 |
234 | Container(
235 | padding: EdgeInsets.symmetric(horizontal: 20),
236 | child: Text(
237 | "Make sure you, and the people around you, follow good respiratory hygiene. This means covering your mouth and nose with your bent elbow or tissue when you cough or sneeze. Then dispose of the used tissue immediately.",
238 | style: TextStyle(
239 |
240 | color: CupertinoColors.white,
241 | fontSize: 17,
242 |
243 |
244 | ),
245 | )),
246 |
247 | Container(
248 | padding: EdgeInsets.all(20),
249 |
250 | child: Row(
251 | children: [
252 | Container(
253 | width: MediaQuery.of(context).size.width * 0.40,
254 |
255 |
256 | child: Text(
257 | "If you have fever, cough and difficulty breathing, seek medical care early",
258 | style: TextStyle(
259 |
260 | color: maincolors().sec_color,
261 | fontSize: 23,
262 | fontWeight: FontWeight.w800,
263 |
264 | ),
265 | )),
266 | Expanded(
267 |
268 |
269 | child: Image(image: AssetImage('imgs/care.png'),fit: BoxFit.contain,height: 140,),
270 |
271 |
272 | ),
273 | ],
274 | ),
275 | ),
276 |
277 | Container(
278 | padding: EdgeInsets.symmetric(horizontal: 20),
279 | child: Text(
280 | "Stay home if you feel unwell. If you have a fever, cough and difficulty breathing, seek medical attention and call in advance. Follow the directions of your local health authority.",
281 | style: TextStyle(
282 |
283 | color: CupertinoColors.white,
284 | fontSize: 17,
285 |
286 |
287 | ),
288 | )),
289 |
290 |
291 | Container(
292 | padding: EdgeInsets.all(20),
293 |
294 | child: Text(
295 | "Stay informed and follow advice given by your healthcare provider",
296 | style: TextStyle(
297 |
298 | color: maincolors().sec_color,
299 | fontSize: 23,
300 | fontWeight: FontWeight.w800,
301 |
302 | ),
303 | ),
304 | ),
305 |
306 | Container(
307 | padding: EdgeInsets.symmetric(horizontal: 20),
308 | child: Text(
309 | "Stay informed on the latest developments about COVID-19. Follow advice given by your healthcare provider, your national and local public health authority or your employer on how to protect yourself and others from COVID-19.",
310 | style: TextStyle(
311 |
312 | color: CupertinoColors.white,
313 | fontSize: 17,
314 |
315 |
316 | ),
317 | )),
318 |
319 | Container(height: 20,)
320 |
321 | ],
322 | ),
323 | ),
324 | ),
325 | );
326 | }
327 | }
328 |
--------------------------------------------------------------------------------
/lib/pages/search.dart:
--------------------------------------------------------------------------------
1 | import 'package:covid19app/api/flags.dart';
2 | import 'package:covid19app/icons/myiconsfile.dart';
3 | import 'package:covid19app/pages/single.dart';
4 | import 'package:flutter/cupertino.dart';
5 |
6 |
7 | class search extends StatefulWidget {
8 | @override
9 | _searchState createState() => _searchState();
10 | }
11 |
12 | class _searchState extends State {
13 | TextEditingController _textController;
14 |
15 | @override
16 | void setState(fn) {
17 | // TODO: implement setState
18 | super.setState(() {
19 | fetchFlags();
20 | });
21 | }
22 |
23 | @override
24 | void initState() {
25 | // TODO: implement initState
26 | super.initState();
27 | fetchFlags();
28 | }
29 |
30 | @override
31 | Widget build(BuildContext context) {
32 | return CupertinoPageScaffold(
33 | resizeToAvoidBottomInset: true,
34 | child: CustomScrollView(
35 | slivers: [
36 | CupertinoSliverNavigationBar(
37 | transitionBetweenRoutes: false,
38 | automaticallyImplyLeading: false,
39 | largeTitle: Text("Search"),
40 | heroTag: "pagesearch",
41 | ),
42 | SliverFillRemaining(
43 | hasScrollBody: false,
44 | child: Container(
45 | margin: EdgeInsets.only(bottom: 20),
46 | child: FutureBuilder(
47 | future: fetchFlags(),
48 | builder: (context, snapshot) {
49 | if (snapshot.hasData) {
50 | return ListView.builder(
51 | physics: NeverScrollableScrollPhysics(),
52 | shrinkWrap: true,
53 | itemCount: flags == null ? 0 : flags.length,
54 | itemBuilder: (context, index) {
55 | if (index == 0) {
56 | return Column(
57 | crossAxisAlignment: CrossAxisAlignment.start,
58 | children: [
59 | Container(
60 | padding: EdgeInsets.symmetric(horizontal: 20),
61 | margin: EdgeInsets.only(bottom: 10),
62 | child: Text(
63 | "Countries sorted by total cases",
64 |
65 | style: TextStyle(
66 | fontWeight: FontWeight.w700,
67 | fontSize: 20,
68 | color: CupertinoColors.label
69 | .resolveFrom(context)),
70 | ),
71 | ),
72 | GestureDetector(
73 | onTap: () {
74 | Navigator.push(
75 | context,
76 | CupertinoPageRoute(
77 | builder: (context) => Single_st(
78 | name: flags[index]["country"],
79 | flag: flags[index]["countryInfo"]
80 | ["flag"],
81 | cases: flags[index]["cases"],
82 | todayCases: flags[index]["todayCases"],
83 | deaths: flags[index]["deaths"],
84 | todayDeaths: flags[index]
85 | ["todayDeaths"],
86 | recovered: flags[index]["recovered"],
87 | active: flags[index]["active"],
88 | critical: flags[index]["critical"],
89 | ),
90 | ),
91 | );
92 | },
93 | child: Container(
94 | margin: EdgeInsets.symmetric(
95 | horizontal: 20, vertical: 10),
96 | padding: EdgeInsets.symmetric(horizontal: 13),
97 | height: 50,
98 | decoration: BoxDecoration(
99 | color: CupertinoColors.label
100 | .resolveFrom(context)
101 | .withOpacity(0.1),
102 | borderRadius: BorderRadius.circular(13),
103 | ),
104 | child: Row(
105 | mainAxisAlignment:
106 | MainAxisAlignment.spaceBetween,
107 | children: [
108 | Flexible(
109 | child: Row(
110 | mainAxisAlignment:
111 | MainAxisAlignment.start,
112 | children: [
113 | Flexible(
114 | child: Text(
115 | flags[index]["country"],
116 | style: TextStyle(
117 | color: CupertinoColors.label
118 | .resolveFrom(context)),
119 | overflow: TextOverflow.ellipsis,
120 | maxLines: 1,
121 | ),
122 | ),
123 | ],
124 | ),
125 | ),
126 | Icon(
127 | MyFlutterApp.chevron_right,
128 | color: CupertinoColors.label
129 | .resolveFrom(context),
130 | ),
131 | ],
132 | ),
133 | ),
134 | ),
135 | ],
136 | );
137 | }
138 |
139 | return GestureDetector(
140 | onTap: () {
141 | Navigator.push(
142 | context,
143 | CupertinoPageRoute(
144 | builder: (context) => Single_st(
145 | name: flags[index]["country"],
146 | flag: flags[index]["countryInfo"]["flag"],
147 | cases: flags[index]["cases"],
148 | todayCases: flags[index]["todayCases"],
149 | deaths: flags[index]["deaths"],
150 | todayDeaths: flags[index]["todayDeaths"],
151 | recovered: flags[index]["recovered"],
152 | active: flags[index]["active"],
153 | critical: flags[index]["critical"],
154 | ),
155 | ),
156 | );
157 | },
158 | child: Container(
159 | margin: EdgeInsets.symmetric(
160 | horizontal: 20, vertical: 10),
161 | padding: EdgeInsets.symmetric(horizontal: 13),
162 | height: 50,
163 | decoration: BoxDecoration(
164 | color: CupertinoColors.label
165 | .resolveFrom(context)
166 | .withOpacity(0.1),
167 | borderRadius: BorderRadius.circular(13),
168 | ),
169 | child: Row(
170 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
171 | children: [
172 | Flexible(
173 | child: Row(
174 | mainAxisAlignment: MainAxisAlignment.start,
175 | children: [
176 | Flexible(
177 | child: Text(
178 | flags[index]["country"],
179 | style: TextStyle(
180 | color: CupertinoColors.label
181 | .resolveFrom(context)),
182 | overflow: TextOverflow.ellipsis,
183 | maxLines: 1,
184 | ),
185 | ),
186 | ],
187 | ),
188 | ),
189 | Icon(
190 | MyFlutterApp.chevron_right,
191 | color: CupertinoColors.label
192 | .resolveFrom(context),
193 | ),
194 | ],
195 | ),
196 | ),
197 | );
198 | },
199 | );
200 | } else if (snapshot.hasError) {
201 | return Container(
202 | width: MediaQuery.of(context).size.width,
203 | padding: EdgeInsets.all(20),
204 | child: Column(
205 | mainAxisAlignment: MainAxisAlignment.center,
206 | crossAxisAlignment: CrossAxisAlignment.center,
207 | children: [
208 | Container(
209 | child: Icon(
210 | MyFlutterApp.warning,
211 | size: 100,
212 | color: CupertinoColors.label.resolveFrom(context),
213 | ),
214 | margin: EdgeInsets.only(bottom: 20),
215 | ),
216 | Text(
217 | "Please check your internet connection",
218 | style: TextStyle(
219 | color:
220 | CupertinoColors.label.resolveFrom(context),
221 | fontWeight: FontWeight.w700),
222 | textAlign: TextAlign.center,
223 | ),
224 | ],
225 | ),
226 | );
227 | }
228 |
229 | // By default, show a loading spinner.
230 | return Center(
231 | child: CupertinoActivityIndicator(),
232 | );
233 | },
234 | ),
235 | ),
236 | )
237 | ],
238 | ),
239 | );
240 | }
241 | }
242 |
--------------------------------------------------------------------------------
/lib/pages/setting.dart:
--------------------------------------------------------------------------------
1 | import 'dart:ui';
2 |
3 | import 'package:covid19app/icons/myiconsfile.dart';
4 | import 'package:covid19app/icons/soshal_icons.dart';
5 | import 'package:covid19app/style/style.dart';
6 | import 'package:flutter/cupertino.dart';
7 | import 'package:flutter/material.dart';
8 | import 'package:flutter/rendering.dart';
9 | import 'package:url_launcher/url_launcher.dart';
10 | import 'package:share/share.dart';
11 |
12 |
13 | class setting extends StatefulWidget {
14 | @override
15 | _settingState createState() => _settingState();
16 | }
17 |
18 | _launchGithub() async {
19 | const url = 'https://github.com/mohammedkmo';
20 | if (await canLaunch(url)) {
21 | await launch(url);
22 | } else {
23 | throw 'Could not launch $url';
24 | }
25 | }
26 | _launchFacebook() async {
27 | const url = 'https://www.facebook.com/mohammedkarimeng';
28 | if (await canLaunch(url)) {
29 | await launch(url);
30 | } else {
31 | throw 'Could not launch $url';
32 | }
33 | }
34 |
35 | _launchTweter() async {
36 | const url = 'https://twitter.com/imohammedkareem';
37 | if (await canLaunch(url)) {
38 | await launch(url);
39 | } else {
40 | throw 'Could not launch $url';
41 | }
42 | }
43 |
44 |
45 | var scr= new GlobalKey();
46 |
47 |
48 | class _settingState extends State {
49 |
50 |
51 |
52 | takescrshot() async {
53 | RenderRepaintBoundary boundary = scr.currentContext.findRenderObject();
54 | var image = await boundary.toImage();
55 | var byteData = await image.toByteData(format: ImageByteFormat.png);
56 | var pngBytes = byteData.buffer.asUint8List();
57 | print(pngBytes);
58 | }
59 |
60 | @override
61 | Widget build(BuildContext context) {
62 | return CupertinoPageScaffold(
63 | child: CustomScrollView(
64 | slivers: [
65 | CupertinoSliverNavigationBar(
66 | transitionBetweenRoutes: false,
67 | heroTag: "appinfo",
68 | largeTitle: Text("App Info"),
69 | ),
70 | SliverFillRemaining(
71 | child: Column(
72 | children: [
73 | Container(
74 | width: MediaQuery.of(context).size.width,
75 | height: 200,
76 | padding: EdgeInsets.all(25),
77 | child: Column(
78 | crossAxisAlignment: CrossAxisAlignment.start,
79 | mainAxisAlignment: MainAxisAlignment.center,
80 | children: [
81 | Text(
82 | "Developed by",
83 | style: TextStyle(
84 | color: CupertinoColors.label.resolveFrom(context)),
85 | ),
86 | Text(
87 | "Mohammed Kareem",
88 | style: TextStyle(
89 | color: CupertinoColors.label.resolveFrom(context),
90 | fontWeight: FontWeight.w700,
91 | fontSize: 25,
92 | ),
93 | ),
94 |
95 | Container(height: 5,),
96 |
97 | Text(
98 | "Phone number: +9647810094883",
99 | style: TextStyle(
100 | color: CupertinoColors.label.resolveFrom(context).withOpacity(0.7),
101 | fontWeight: FontWeight.w700,
102 | fontSize: 15,
103 | ),
104 | ),
105 | ],
106 | ),
107 | ),
108 | Expanded(
109 | child: Container(
110 | padding: EdgeInsets.symmetric(horizontal: 25),
111 | child: Column(
112 |
113 | children: [
114 | CupertinoButton(
115 | padding: EdgeInsets.symmetric(horizontal: 10,vertical: 15),
116 | color: CupertinoColors.label.resolveFrom(context),
117 | onPressed: () {
118 |
119 | _launchFacebook();
120 |
121 | },
122 | child: Row(
123 | crossAxisAlignment: CrossAxisAlignment.center,
124 | mainAxisAlignment: MainAxisAlignment.center,
125 | children: [
126 |
127 |
128 | Icon(Soshal.github__1_),
129 |
130 | Container(width: 10,),
131 |
132 |
133 | Text("Follow me on Github",
134 | style: TextStyle(
135 | fontWeight: FontWeight.w700,
136 | fontSize: 17,
137 |
138 | ),
139 |
140 | overflow: TextOverflow.ellipsis,
141 | maxLines: 1,
142 | ),
143 |
144 | ],
145 | ),
146 | ),
147 | Container(height: 15,),
148 | CupertinoButton(
149 | padding: EdgeInsets.symmetric(horizontal: 10,vertical: 15),
150 | color: maincolors().facebook,
151 | onPressed: () {
152 |
153 | _launchFacebook();
154 |
155 | },
156 | child: Row(
157 | crossAxisAlignment: CrossAxisAlignment.center,
158 | mainAxisAlignment: MainAxisAlignment.center,
159 | children: [
160 |
161 |
162 | Icon(Soshal.facebook__2_, color: CupertinoColors.white,),
163 |
164 | Container(width: 10,),
165 |
166 |
167 | Text("Follow me on Facebook",
168 | style: TextStyle(
169 | color: CupertinoColors.white,
170 | fontWeight: FontWeight.w700,
171 | fontSize: 17,
172 |
173 | ),
174 |
175 | overflow: TextOverflow.ellipsis,
176 | maxLines: 1,
177 | ),
178 |
179 | ],
180 | ),
181 | ),
182 |
183 | Container(height: 15,),
184 | CupertinoButton(
185 | padding: EdgeInsets.symmetric(horizontal: 10,vertical: 15),
186 | color: maincolors().twetter,
187 | onPressed: () {
188 |
189 | _launchTweter();
190 |
191 | },
192 | child: Row(
193 | crossAxisAlignment: CrossAxisAlignment.center,
194 | mainAxisAlignment: MainAxisAlignment.center,
195 | children: [
196 |
197 |
198 | Icon(Soshal.twitter__1_, color: CupertinoColors.white,),
199 |
200 | Container(width: 10,),
201 |
202 |
203 | Text("Follow me on Twitter",
204 | style: TextStyle(
205 | color: CupertinoColors.white,
206 | fontWeight: FontWeight.w700,
207 | fontSize: 17,
208 |
209 | ),
210 |
211 | overflow: TextOverflow.ellipsis,
212 | maxLines: 1,
213 | ),
214 |
215 | ],
216 | ),
217 | ),
218 | Container(height: 15,),
219 | CupertinoButton(
220 | padding: EdgeInsets.symmetric(horizontal: 10,vertical: 15),
221 | color: maincolors().sec_color,
222 | onPressed: () {
223 |
224 | final RenderBox box = context.findRenderObject();
225 | Share.share("download Covid-19 app",
226 | subject: "https://covid19.mkareem.dev/",
227 | sharePositionOrigin:
228 | box.localToGlobal(Offset.zero) &
229 | box.size);
230 |
231 | },
232 | child: Row(
233 | crossAxisAlignment: CrossAxisAlignment.center,
234 | mainAxisAlignment: MainAxisAlignment.center,
235 | children: [
236 |
237 |
238 | Icon(MyFlutterApp.hand, color: CupertinoColors.white,),
239 |
240 | Container(width: 10,),
241 |
242 |
243 | Text("Share app",
244 | style: TextStyle(
245 | color: CupertinoColors.white,
246 | fontWeight: FontWeight.w700,
247 | fontSize: 17,
248 |
249 | ),
250 |
251 | overflow: TextOverflow.ellipsis,
252 | maxLines: 1,
253 | ),
254 |
255 | ],
256 | ),
257 | ),
258 |
259 | ],
260 | ),
261 | ),
262 | )
263 | ],
264 | ),
265 | )
266 | ],
267 | ),
268 | );
269 | }
270 | }
271 |
--------------------------------------------------------------------------------
/lib/pages/single.dart:
--------------------------------------------------------------------------------
1 | import 'package:covid19app/icons/myiconsfile.dart';
2 | import 'package:flutter/cupertino.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:share/share.dart';
5 |
6 | class Single_st extends StatelessWidget {
7 | final String name;
8 | final String flag;
9 | final int cases;
10 | final int todayCases;
11 | final int deaths;
12 | final int todayDeaths;
13 | final int recovered;
14 | final int active;
15 | final int critical;
16 |
17 | Single_st({
18 | Key key,
19 | @required this.name,
20 | this.flag,
21 | this.cases,
22 | this.todayCases,
23 | this.deaths,
24 | this.todayDeaths,
25 | this.recovered,
26 | this.active,
27 | this.critical,
28 | }) : super(key: key);
29 |
30 | @override
31 | Widget build(BuildContext context) {
32 | if (name == null ||
33 | flag == null ||
34 | cases == null ||
35 | deaths == null ||
36 | todayDeaths == null ||
37 | recovered == null ||
38 | todayCases == null) {
39 | return CupertinoPageScaffold(
40 | child: Center(child: CupertinoActivityIndicator()),
41 | );
42 | } else
43 | return CupertinoPageScaffold(
44 | backgroundColor: CupertinoColors.systemBlue,
45 | navigationBar: new CupertinoNavigationBar(
46 | transitionBetweenRoutes: false,
47 | heroTag: "single",
48 | trailing: GestureDetector(
49 | onTap: () {
50 |
51 |
52 |
53 | final RenderBox box = context.findRenderObject();
54 | Share.share(name,
55 | subject: "All cases in " + name +" is: " + cases.toString() + "and new cases today is: " + todayCases.toString() ,
56 | sharePositionOrigin:
57 | box.localToGlobal(Offset.zero) &
58 | box.size);
59 |
60 | },
61 | child: Icon(
62 | MyFlutterApp.upload,
63 | size: 25,
64 | color: CupertinoColors.white,
65 | )),
66 | leading: GestureDetector(
67 | onTap: () {
68 | Navigator.pop(context);
69 | },
70 | child: Icon(
71 | MyFlutterApp.chevron_left,
72 | color: CupertinoColors.white,
73 | size: 20,
74 | )),
75 | middle: Row(
76 | mainAxisAlignment: MainAxisAlignment.start,
77 | children: [
78 | Image.network(
79 | flag,
80 | fit: BoxFit.cover,
81 | height: 20,
82 | ),
83 | Container(
84 | width: 10,
85 | ),
86 | Text(
87 | name,
88 | style: TextStyle(
89 | color: CupertinoColors.white,
90 | ),
91 | ),
92 | ],
93 | ),
94 | backgroundColor: CupertinoColors.inactiveGray.withOpacity(0.10),
95 | ),
96 | child: SingleChildScrollView(
97 | child: SafeArea(
98 | child: Column(
99 | crossAxisAlignment: CrossAxisAlignment.start,
100 | children: [
101 | Padding(
102 | padding: const EdgeInsets.all(20.0),
103 | child: Container(
104 | child: Column(
105 | mainAxisAlignment: MainAxisAlignment.center,
106 | crossAxisAlignment: CrossAxisAlignment.start,
107 | children: [
108 | Text(
109 | name,
110 | style: TextStyle(
111 | color: CupertinoColors.white,
112 | fontSize: 40,
113 | fontWeight: FontWeight.w700),
114 | ),
115 | Container(
116 | margin: EdgeInsets.symmetric(vertical: 20),
117 | padding: EdgeInsets.symmetric(
118 | vertical: 20, horizontal: 20),
119 | decoration: BoxDecoration(
120 | color: CupertinoColors.white,
121 | borderRadius: BorderRadius.circular(10),
122 | ),
123 | child: Row(
124 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
125 | children: [
126 | Expanded(
127 | child: Container(
128 | child: Column(
129 | crossAxisAlignment:
130 | CrossAxisAlignment.start,
131 | children: [
132 | Text(
133 | "All cases",
134 | style: TextStyle(
135 | color: CupertinoColors.black
136 | .withOpacity(0.7),
137 | fontWeight: FontWeight.w800,
138 | fontSize: 25,
139 | ),
140 | ),
141 | Text(
142 | cases.toString(),
143 | style: TextStyle(
144 | fontSize: 25,
145 | fontWeight: FontWeight.w700,
146 | color: CupertinoColors.systemRed
147 | .withOpacity(0.8)),
148 | ),
149 | ],
150 | ),
151 | ),
152 | ),
153 | Container(
154 | width: 60,
155 | child: Image(
156 | image: AssetImage(
157 | 'imgs/covid.png',
158 | ),
159 | fit: BoxFit.cover,
160 | ),
161 | ),
162 | ],
163 | ),
164 | ),
165 | Container(
166 | margin: EdgeInsets.only(bottom: 20),
167 | decoration: BoxDecoration(
168 | color: CupertinoColors.white.withOpacity(0.40),
169 | borderRadius: BorderRadius.circular(10),
170 | ),
171 | padding: EdgeInsets.symmetric(
172 | vertical: 14, horizontal: 20),
173 | width: MediaQuery.of(context).size.width,
174 | child: Row(
175 | crossAxisAlignment: CrossAxisAlignment.center,
176 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
177 | children: [
178 | Text(
179 | "Today Cases",
180 | style: TextStyle(
181 | color:
182 | CupertinoColors.black.withOpacity(0.70),
183 | fontWeight: FontWeight.w700,
184 | fontSize: 20,
185 | ),
186 | ),
187 | Container(
188 | padding: EdgeInsets.symmetric(
189 | vertical: 10, horizontal: 20),
190 | decoration: BoxDecoration(
191 | color: CupertinoColors.white,
192 | borderRadius: BorderRadius.circular(10),
193 | ),
194 | child: Text(
195 | todayCases.toString(),
196 | style: TextStyle(
197 | fontWeight: FontWeight.w700,
198 | color: CupertinoColors.activeBlue),
199 | ),
200 | ),
201 | ],
202 | ),
203 | ),
204 | Container(
205 | decoration: BoxDecoration(
206 | color: CupertinoColors.black.withOpacity(0.60),
207 | borderRadius: BorderRadius.circular(10),
208 | ),
209 | padding: EdgeInsets.symmetric(
210 | vertical: 14, horizontal: 20),
211 | width: MediaQuery.of(context).size.width,
212 | child: Row(
213 | crossAxisAlignment: CrossAxisAlignment.center,
214 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
215 | children: [
216 | Text(
217 | "Today Deaths",
218 | style: TextStyle(
219 | color: CupertinoColors.white,
220 | fontWeight: FontWeight.w700,
221 | fontSize: 20,
222 | ),
223 | ),
224 | Container(
225 | padding: EdgeInsets.symmetric(
226 | vertical: 10, horizontal: 20),
227 | decoration: BoxDecoration(
228 | color: CupertinoColors.white,
229 | borderRadius: BorderRadius.circular(10),
230 | ),
231 | child: Text(
232 | todayDeaths.toString(),
233 | style: TextStyle(
234 | fontWeight: FontWeight.w700,
235 | color: CupertinoColors.systemRed),
236 | ),
237 | ),
238 | ],
239 | ),
240 | ),
241 | ],
242 | ),
243 | ),
244 | ),
245 |
246 | Container(
247 | padding: EdgeInsets.symmetric(horizontal: 20),
248 | child: Text(
249 | "Total recent statistics",
250 | style: TextStyle(
251 | color: CupertinoColors.white,
252 | fontSize: 25,
253 | fontWeight: FontWeight.w700),
254 | ),
255 | ),
256 | Container(
257 | padding: EdgeInsets.symmetric(horizontal: 20, vertical: 15),
258 | child: Row(
259 | children: [
260 | Expanded(
261 | child: Container(
262 | decoration: BoxDecoration(
263 | color: CupertinoColors.white,
264 | borderRadius: BorderRadius.circular(10),
265 | image: DecorationImage(
266 | image: AssetImage('imgs/map.png'),
267 | fit: BoxFit.cover,
268 | )),
269 | padding:
270 | EdgeInsets.symmetric(vertical: 20, horizontal: 5),
271 | child: Column(
272 | children: [
273 | Text(
274 | "Deaths",
275 | style: TextStyle(
276 | color: CupertinoColors.black.withOpacity(0.7),
277 | fontWeight: FontWeight.w700,
278 | fontSize: 20,
279 | ),
280 | ),
281 | Container(
282 | margin: EdgeInsets.only(top: 10),
283 | padding: EdgeInsets.symmetric(
284 | vertical: 10, horizontal: 20),
285 | decoration: BoxDecoration(
286 | color: CupertinoColors.systemRed.withOpacity(0.8),
287 | borderRadius: BorderRadius.circular(10),
288 | ),
289 | child: Text(
290 | deaths.toString(),
291 | style: TextStyle(
292 | fontWeight: FontWeight.w700,
293 | color: CupertinoColors.white),
294 | ),
295 | ),
296 | ],
297 | ),
298 | ),
299 | ),
300 | Container(
301 | width: 20,
302 | ),
303 | Expanded(
304 | child: Container(
305 | decoration: BoxDecoration(
306 | color: CupertinoColors.white,
307 | borderRadius: BorderRadius.circular(10),
308 | image: DecorationImage(
309 | image: AssetImage('imgs/map.png'),
310 | fit: BoxFit.cover,
311 | )),
312 | padding:
313 | EdgeInsets.symmetric(vertical: 20, horizontal: 5),
314 | child: Column(
315 | children: [
316 | Text(
317 | "Recovered",
318 | style: TextStyle(
319 | color: CupertinoColors.black.withOpacity(0.7),
320 | fontWeight: FontWeight.w700,
321 | fontSize: 20,
322 | ),
323 | ),
324 | Container(
325 | margin: EdgeInsets.only(top: 10),
326 | padding: EdgeInsets.symmetric(
327 | vertical: 10, horizontal: 20),
328 | decoration: BoxDecoration(
329 | color: CupertinoColors.activeGreen.withOpacity(0.8),
330 | borderRadius: BorderRadius.circular(10),
331 | ),
332 | child: Text(
333 | recovered.toString(),
334 | style: TextStyle(
335 | fontWeight: FontWeight.w700,
336 | color: CupertinoColors.white),
337 | ),
338 | ),
339 | ],
340 | ),
341 | ),
342 | ),
343 | ],
344 | ),
345 | ),
346 |
347 | Container(
348 | padding: EdgeInsets.symmetric(horizontal: 20, vertical: 5),
349 | child: Row(
350 | children: [
351 | Expanded(
352 | child: Container(
353 | decoration: BoxDecoration(
354 | color: CupertinoColors.white,
355 | borderRadius: BorderRadius.circular(10),
356 | image: DecorationImage(
357 | image: AssetImage('imgs/map.png'),
358 | fit: BoxFit.cover,
359 | )),
360 | padding:
361 | EdgeInsets.symmetric(vertical: 20, horizontal: 5),
362 | child: Column(
363 | children: [
364 | Text(
365 | "Active",
366 | style: TextStyle(
367 | color: CupertinoColors.black.withOpacity(0.7),
368 | fontWeight: FontWeight.w700,
369 | fontSize: 20,
370 | ),
371 | ),
372 | Container(
373 | margin: EdgeInsets.only(top: 10),
374 | padding: EdgeInsets.symmetric(
375 | vertical: 10, horizontal: 20),
376 | decoration: BoxDecoration(
377 | color: CupertinoColors.activeBlue.withOpacity(0.8),
378 | borderRadius: BorderRadius.circular(10),
379 | ),
380 | child: Text(
381 | active.toString(),
382 | style: TextStyle(
383 | fontWeight: FontWeight.w700,
384 | color: CupertinoColors.white),
385 | ),
386 | ),
387 | ],
388 | ),
389 | ),
390 | ),
391 | Container(
392 | width: 20,
393 | ),
394 | Expanded(
395 | child: Container(
396 | decoration: BoxDecoration(
397 | color: CupertinoColors.white,
398 | borderRadius: BorderRadius.circular(10),
399 | image: DecorationImage(
400 | image: AssetImage('imgs/map.png'),
401 | fit: BoxFit.cover,
402 | )),
403 | padding:
404 | EdgeInsets.symmetric(vertical: 20, horizontal: 5),
405 | child: Column(
406 | children: [
407 | Text(
408 | "Critical",
409 | style: TextStyle(
410 | color: CupertinoColors.black.withOpacity(0.7),
411 | fontWeight: FontWeight.w700,
412 | fontSize: 20,
413 | ),
414 | ),
415 | Container(
416 | margin: EdgeInsets.only(top: 10),
417 | padding: EdgeInsets.symmetric(
418 | vertical: 10, horizontal: 20),
419 | decoration: BoxDecoration(
420 | color: CupertinoColors.activeOrange.withOpacity(0.8),
421 | borderRadius: BorderRadius.circular(10),
422 | ),
423 | child: Text(
424 | critical.toString(),
425 | style: TextStyle(
426 | fontWeight: FontWeight.w700,
427 | color: CupertinoColors.white),
428 | ),
429 | ),
430 |
431 |
432 | ],
433 | ),
434 | ),
435 | ),
436 |
437 | ],
438 | ),
439 | ),
440 | Container(
441 | height: 20,
442 | ),
443 | ],
444 | ),
445 | ),
446 | ),
447 | );
448 | }
449 | }
450 |
--------------------------------------------------------------------------------
/lib/style/style.dart:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | import 'dart:ui';
6 |
7 | class maincolors{
8 |
9 |
10 | Color maincolor = HexColor("250f30");
11 | Color sec_color = HexColor("dd515d");
12 | Color facebook = HexColor("1778F2");
13 | Color twetter = HexColor("55ACEE");
14 |
15 |
16 |
17 |
18 | }
19 |
20 |
21 | class HexColor extends Color {
22 | static int _getColorFromHex(String hexColor) {
23 | hexColor = hexColor.toUpperCase().replaceAll("#", "");
24 | if (hexColor.length == 6) {
25 | hexColor = "FF" + hexColor;
26 | }
27 | return int.parse(hexColor, radix: 16);
28 | }
29 |
30 | HexColor(final String hexColor) : super(_getColorFromHex(hexColor));
31 | }
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | archive:
5 | dependency: transitive
6 | description:
7 | name: archive
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.0.11"
11 | args:
12 | dependency: transitive
13 | description:
14 | name: args
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "1.5.2"
18 | async:
19 | dependency: transitive
20 | description:
21 | name: async
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.4.0"
25 | boolean_selector:
26 | dependency: transitive
27 | description:
28 | name: boolean_selector
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.0.5"
32 | charcode:
33 | dependency: transitive
34 | description:
35 | name: charcode
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.1.2"
39 | collection:
40 | dependency: transitive
41 | description:
42 | name: collection
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.14.11"
46 | convert:
47 | dependency: transitive
48 | description:
49 | name: convert
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "2.1.1"
53 | crypto:
54 | dependency: transitive
55 | description:
56 | name: crypto
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "2.1.3"
60 | cupertino_icons:
61 | dependency: "direct main"
62 | description:
63 | name: cupertino_icons
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "0.1.3"
67 | flappy_search_bar:
68 | dependency: "direct main"
69 | description:
70 | name: flappy_search_bar
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "1.7.2"
74 | flutter:
75 | dependency: "direct main"
76 | description: flutter
77 | source: sdk
78 | version: "0.0.0"
79 | flutter_staggered_grid_view:
80 | dependency: transitive
81 | description:
82 | name: flutter_staggered_grid_view
83 | url: "https://pub.dartlang.org"
84 | source: hosted
85 | version: "0.3.0"
86 | flutter_test:
87 | dependency: "direct dev"
88 | description: flutter
89 | source: sdk
90 | version: "0.0.0"
91 | flutter_web_plugins:
92 | dependency: transitive
93 | description: flutter
94 | source: sdk
95 | version: "0.0.0"
96 | http:
97 | dependency: "direct main"
98 | description:
99 | name: http
100 | url: "https://pub.dartlang.org"
101 | source: hosted
102 | version: "0.12.0+4"
103 | http_parser:
104 | dependency: transitive
105 | description:
106 | name: http_parser
107 | url: "https://pub.dartlang.org"
108 | source: hosted
109 | version: "3.1.4"
110 | image:
111 | dependency: transitive
112 | description:
113 | name: image
114 | url: "https://pub.dartlang.org"
115 | source: hosted
116 | version: "2.1.4"
117 | matcher:
118 | dependency: transitive
119 | description:
120 | name: matcher
121 | url: "https://pub.dartlang.org"
122 | source: hosted
123 | version: "0.12.6"
124 | meta:
125 | dependency: transitive
126 | description:
127 | name: meta
128 | url: "https://pub.dartlang.org"
129 | source: hosted
130 | version: "1.1.8"
131 | path:
132 | dependency: transitive
133 | description:
134 | name: path
135 | url: "https://pub.dartlang.org"
136 | source: hosted
137 | version: "1.6.4"
138 | pedantic:
139 | dependency: transitive
140 | description:
141 | name: pedantic
142 | url: "https://pub.dartlang.org"
143 | source: hosted
144 | version: "1.8.0+1"
145 | petitparser:
146 | dependency: transitive
147 | description:
148 | name: petitparser
149 | url: "https://pub.dartlang.org"
150 | source: hosted
151 | version: "2.4.0"
152 | plugin_platform_interface:
153 | dependency: transitive
154 | description:
155 | name: plugin_platform_interface
156 | url: "https://pub.dartlang.org"
157 | source: hosted
158 | version: "1.0.2"
159 | quiver:
160 | dependency: transitive
161 | description:
162 | name: quiver
163 | url: "https://pub.dartlang.org"
164 | source: hosted
165 | version: "2.0.5"
166 | share:
167 | dependency: "direct main"
168 | description:
169 | name: share
170 | url: "https://pub.dartlang.org"
171 | source: hosted
172 | version: "0.6.3+6"
173 | sky_engine:
174 | dependency: transitive
175 | description: flutter
176 | source: sdk
177 | version: "0.0.99"
178 | source_span:
179 | dependency: transitive
180 | description:
181 | name: source_span
182 | url: "https://pub.dartlang.org"
183 | source: hosted
184 | version: "1.5.5"
185 | stack_trace:
186 | dependency: transitive
187 | description:
188 | name: stack_trace
189 | url: "https://pub.dartlang.org"
190 | source: hosted
191 | version: "1.9.3"
192 | stream_channel:
193 | dependency: transitive
194 | description:
195 | name: stream_channel
196 | url: "https://pub.dartlang.org"
197 | source: hosted
198 | version: "2.0.0"
199 | string_scanner:
200 | dependency: transitive
201 | description:
202 | name: string_scanner
203 | url: "https://pub.dartlang.org"
204 | source: hosted
205 | version: "1.0.5"
206 | term_glyph:
207 | dependency: transitive
208 | description:
209 | name: term_glyph
210 | url: "https://pub.dartlang.org"
211 | source: hosted
212 | version: "1.1.0"
213 | test_api:
214 | dependency: transitive
215 | description:
216 | name: test_api
217 | url: "https://pub.dartlang.org"
218 | source: hosted
219 | version: "0.2.11"
220 | typed_data:
221 | dependency: transitive
222 | description:
223 | name: typed_data
224 | url: "https://pub.dartlang.org"
225 | source: hosted
226 | version: "1.1.6"
227 | url_launcher:
228 | dependency: "direct main"
229 | description:
230 | name: url_launcher
231 | url: "https://pub.dartlang.org"
232 | source: hosted
233 | version: "5.4.2"
234 | url_launcher_macos:
235 | dependency: transitive
236 | description:
237 | name: url_launcher_macos
238 | url: "https://pub.dartlang.org"
239 | source: hosted
240 | version: "0.0.1+4"
241 | url_launcher_platform_interface:
242 | dependency: transitive
243 | description:
244 | name: url_launcher_platform_interface
245 | url: "https://pub.dartlang.org"
246 | source: hosted
247 | version: "1.0.6"
248 | url_launcher_web:
249 | dependency: transitive
250 | description:
251 | name: url_launcher_web
252 | url: "https://pub.dartlang.org"
253 | source: hosted
254 | version: "0.1.1+1"
255 | vector_math:
256 | dependency: transitive
257 | description:
258 | name: vector_math
259 | url: "https://pub.dartlang.org"
260 | source: hosted
261 | version: "2.0.8"
262 | xml:
263 | dependency: transitive
264 | description:
265 | name: xml
266 | url: "https://pub.dartlang.org"
267 | source: hosted
268 | version: "3.5.0"
269 | sdks:
270 | dart: ">=2.4.0 <3.0.0"
271 | flutter: ">=1.12.8 <2.0.0"
272 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: covid19app
2 | description: Covid-19 app Open source
3 |
4 | # The following defines the version and build number for your application.
5 | # A version number is three numbers separated by dots, like 1.2.43
6 | # followed by an optional build number separated by a +.
7 | # Both the version and the builder number may be overridden in flutter
8 | # build by specifying --build-name and --build-number, respectively.
9 | # In Android, build-name is used as versionName while build-number used as versionCode.
10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12 | # Read more about iOS versioning at
13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14 | version: 1.0.0+1
15 |
16 | environment:
17 | sdk: ">=2.1.0 <3.0.0"
18 |
19 | dependencies:
20 | flutter:
21 | sdk: flutter
22 | http: ^0.12.0+4
23 | flappy_search_bar: ^1.7.2
24 | url_launcher: ^5.4.2
25 | share: ^0.6.3+6
26 |
27 |
28 |
29 |
30 |
31 |
32 | # The following adds the Cupertino Icons font to your application.
33 | # Use with the CupertinoIcons class for iOS style icons.
34 | cupertino_icons: ^0.1.2
35 |
36 | dev_dependencies:
37 | flutter_test:
38 | sdk: flutter
39 |
40 |
41 | # For information on the generic Dart part of this file, see the
42 | # following page: https://dart.dev/tools/pub/pubspec
43 |
44 | # The following section is specific to Flutter.
45 | flutter:
46 |
47 | # The following line ensures that the Material Icons font is
48 | # included with your application, so that you can use the icons in
49 | # the material Icons class.
50 | uses-material-design: true
51 |
52 | # To add assets to your application, add an assets section, like this:
53 | assets:
54 | - imgs/
55 |
56 |
57 | # An image asset can refer to one or more resolution-specific "variants", see
58 | # https://flutter.dev/assets-and-images/#resolution-aware.
59 |
60 | # For details regarding adding assets from package dependencies, see
61 | # https://flutter.dev/assets-and-images/#from-packages
62 |
63 | # To add custom fonts to your application, add a fonts section here,
64 | # in this "flutter" section. Each entry in this list should have a
65 | # "family" key with the font family name, and a "fonts" key with a
66 | # list giving the asset and other descriptors for the font. For
67 | # example:
68 | fonts:
69 | - family: myicons
70 | fonts:
71 | - asset: fonts/Myicons.ttf
72 | - family: Soshal
73 | fonts:
74 | - asset: fonts/Soshal.ttf
75 |
76 | # - family: Schyler
77 | # fonts:
78 | # - asset: fonts/Schyler-Regular.ttf
79 | # - asset: fonts/Schyler-Italic.ttf
80 | # style: italic
81 | # - family: Trajan Pro
82 | # fonts:
83 | # - asset: fonts/TrajanPro.ttf
84 | # - asset: fonts/TrajanPro_Bold.ttf
85 | # weight: 700
86 | #
87 | # For details regarding fonts from package dependencies,
88 | # see https://flutter.dev/custom-fonts/#from-packages
89 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mohammedkmo/Covid-19-open-source-app-flutter/d2f4a7b8fc6ae62c6e39121a26327489fedd1c20/test/widget_test.dart
--------------------------------------------------------------------------------