├── .flutter-plugins
├── .flutter-plugins-dependencies
├── .gitignore
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── flutter_mvvm_starter
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── 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-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── flutter_mvvm_starter_android.iml
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
└── logo.png
├── flutter_starter.iml
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── 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
├── generated_plugin_registrant.dart
├── helpers
│ ├── constants.dart
│ ├── dio.dart
│ ├── empty.view.dart
│ ├── enums.dart
│ ├── extensions.dart
│ └── theme.dart
├── locator.dart
├── main.dart
├── models
│ ├── appuser.model.dart
│ ├── base.model.dart
│ └── user.model.dart
├── providers
│ ├── base.provider.dart
│ └── theme.provider.dart
├── routes.dart
├── services
│ ├── api
│ │ └── api.service.dart
│ ├── base.service.dart
│ ├── firebase
│ │ ├── auth.service.dart
│ │ └── firestore.service.dart
│ └── local
│ │ └── local.service.dart
├── viewmodels
│ ├── base.viewmodel.dart
│ └── login.viewmodel.dart
└── views
│ ├── base.view.dart
│ ├── create_view.sh
│ ├── home
│ ├── home.view.dart
│ └── widgets
│ │ └── custom.widget.dart
│ ├── login
│ └── login.view.dart
│ ├── wide_scope_base.view.dart
│ └── widgets
│ └── global.widget.dart
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
└── web
├── favicon.png
├── icons
├── Icon-192.png
└── Icon-512.png
├── index.html
└── manifest.json
/.flutter-plugins:
--------------------------------------------------------------------------------
1 | # This is a generated file; do not edit or check into version control.
2 | cloud_firestore=/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-2.5.4/
3 | cloud_firestore_web=/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-2.8.10/
4 | firebase_auth=/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-1.4.1/
5 | firebase_auth_web=/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-1.3.1/
6 | firebase_core=/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.24.0/
7 | firebase_core_web=/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-1.7.3/
8 | firebase_storage=/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-8.1.3/
9 | firebase_storage_web=/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage_web-1.1.2/
10 |
--------------------------------------------------------------------------------
/.flutter-plugins-dependencies:
--------------------------------------------------------------------------------
1 | {"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"cloud_firestore","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-2.5.4/","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_auth","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-1.4.1/","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_core","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.24.0/","native_build":true,"dependencies":[]},{"name":"firebase_storage","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-8.1.3/","native_build":true,"dependencies":["firebase_core"]}],"android":[{"name":"cloud_firestore","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-2.5.4/","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_auth","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-1.4.1/","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_core","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.24.0/","native_build":true,"dependencies":[]},{"name":"firebase_storage","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-8.1.3/","native_build":true,"dependencies":["firebase_core"]}],"macos":[{"name":"cloud_firestore","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-2.5.4/","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_auth","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-1.4.1/","native_build":true,"dependencies":["firebase_core"]},{"name":"firebase_core","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.24.0/","native_build":true,"dependencies":[]},{"name":"firebase_storage","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage-8.1.3/","native_build":true,"dependencies":["firebase_core"]}],"linux":[],"windows":[],"web":[{"name":"cloud_firestore_web","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-2.8.10/","dependencies":["firebase_core_web"]},{"name":"firebase_auth_web","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-1.3.1/","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-1.7.3/","dependencies":[]},{"name":"firebase_storage_web","path":"/home/juniormedehou/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_storage_web-1.1.2/","dependencies":["firebase_core_web"]}]},"dependencyGraph":[{"name":"cloud_firestore","dependencies":["cloud_firestore_web","firebase_core"]},{"name":"cloud_firestore_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"firebase_auth","dependencies":["firebase_auth_web","firebase_core"]},{"name":"firebase_auth_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"firebase_core","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","dependencies":[]},{"name":"firebase_storage","dependencies":["firebase_core","firebase_storage_web"]},{"name":"firebase_storage_web","dependencies":["firebase_core","firebase_core_web"]}],"date_created":"2022-10-12 08:43:54.190162","version":"3.3.3"}
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ### Flutter Generated
2 |
3 | # Miscellaneous
4 | *.class
5 | *.lock
6 | *.log
7 | *.pyc
8 | *.swp
9 | .DS_Store
10 | .atom/
11 | .buildlog/
12 | .history
13 | .svn/
14 |
15 | # IntelliJ related
16 | *.iml
17 | *.ipr
18 | *.iws
19 | .idea/
20 |
21 | # Visual Studio Code related
22 | .vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | .dart_tool/
27 | .flutter-plugins
28 | .packages
29 | .pub-cache/
30 | .pub/
31 | build/
32 |
33 | # Android related
34 | **/android/**/gradle-wrapper.jar
35 | **/android/.gradle
36 | **/android/captures/
37 | **/android/gradlew
38 | **/android/gradlew.bat
39 | **/android/local.properties
40 | **/android/**/GeneratedPluginRegistrant.java
41 |
42 | # iOS/XCode related
43 | **/ios/**/*.mode1v3
44 | **/ios/**/*.mode2v3
45 | **/ios/**/*.moved-aside
46 | **/ios/**/*.pbxuser
47 | **/ios/**/*.perspectivev3
48 | **/ios/**/*sync/
49 | **/ios/**/.sconsign.dblite
50 | **/ios/**/.tags*
51 | **/ios/**/.vagrant/
52 | **/ios/**/DerivedData/
53 | **/ios/**/Icon?
54 | **/ios/**/Pods/
55 | **/ios/**/.symlinks/
56 | **/ios/**/profile
57 | **/ios/**/xcuserdata
58 | **/ios/.generated/
59 | **/ios/Flutter/App.framework
60 | **/ios/Flutter/Flutter.framework
61 | **/ios/Flutter/Generated.xcconfig
62 | **/ios/Flutter/app.flx
63 | **/ios/Flutter/app.zip
64 | **/ios/Flutter/flutter_assets/
65 | **/ios/ServiceDefinitions.json
66 | **/ios/Runner/GeneratedPluginRegistrant.*
67 |
68 |
69 | ### https://raw.github.com/github/gitignore//Android.gitignore
70 |
71 | # Built application files
72 | *.apk
73 | *.ap_
74 |
75 | # Files for the ART/Dalvik VM
76 | *.dex
77 |
78 | # Java class files
79 | *.class
80 |
81 | # Generated files
82 | bin/
83 | gen/
84 | out/
85 |
86 | # Gradle files
87 | .gradle/
88 | build/
89 |
90 | # Local configuration file (sdk path, etc)
91 | local.properties
92 |
93 | # Proguard folder generated by Eclipse
94 | proguard/
95 |
96 | # Log Files
97 | *.log
98 |
99 | # Android Studio Navigation editor temp files
100 | .navigation/
101 |
102 | # Android Studio captures folder
103 | captures/
104 |
105 | # IntelliJ
106 | *.iml
107 | .idea/workspace.xml
108 | .idea/tasks.xml
109 | .idea/gradle.xml
110 | .idea/assetWizardSettings.xml
111 | .idea/dictionaries
112 | .idea/libraries
113 | .idea/caches
114 |
115 | # Keystore files
116 | # Uncomment the following line if you do not want to check your keystore files in.
117 | #*.jks
118 |
119 | # External native build folder generated in Android Studio 2.2 and later
120 | .externalNativeBuild
121 |
122 | # Freeline
123 | freeline.py
124 | freeline/
125 | freeline_project_description.json
126 |
127 | # fastlane
128 | fastlane/report.xml
129 | fastlane/Preview.html
130 | fastlane/screenshots
131 | fastlane/test_output
132 | fastlane/readme.md
133 |
134 |
135 | ### https://raw.github.com/github/gitignore//Dart.gitignore
136 |
137 | # See https://www.dartlang.org/guides/libraries/private-files
138 |
139 | # Files and directories created by pub
140 | .dart_tool/
141 | .packages
142 | build/
143 | # If you're building an application, you may want to check-in your pubspec.lock
144 | pubspec.lock
145 |
146 | # Directory created by dartdoc
147 | # If you don't generate documentation locally you can remove this line.
148 | doc/api/
149 |
150 | # Avoid committing generated Javascript files:
151 | *.dart.js
152 | *.info.json # Produced by the --dump-info flag.
153 | *.js # When generated by dart2js. Don't specify *.js if your
154 | # project includes source files written in JavaScript.
155 | *.js_
156 | *.js.deps
157 | *.js.map
158 |
159 |
160 | ### https://raw.github.com/github/gitignore//Global/JetBrains.gitignore
161 |
162 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
163 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
164 |
165 | # User-specific stuff
166 | .idea/**/workspace.xml
167 | .idea/**/tasks.xml
168 | .idea/**/usage.statistics.xml
169 | .idea/**/dictionaries
170 | .idea/**/shelf
171 |
172 | # Generated files
173 | .idea/**/contentModel.xml
174 |
175 | # Sensitive or high-churn files
176 | .idea/**/dataSources/
177 | .idea/**/dataSources.ids
178 | .idea/**/dataSources.local.xml
179 | .idea/**/sqlDataSources.xml
180 | .idea/**/dynamic.xml
181 | .idea/**/uiDesigner.xml
182 | .idea/**/dbnavigator.xml
183 |
184 | # Gradle
185 | .idea/**/gradle.xml
186 | .idea/**/libraries
187 |
188 | # Gradle and Maven with auto-import
189 | # When using Gradle or Maven with auto-import, you should exclude module files,
190 | # since they will be recreated, and may cause churn. Uncomment if using
191 | # auto-import.
192 | # .idea/modules.xml
193 | # .idea/*.iml
194 | # .idea/modules
195 |
196 | # CMake
197 | cmake-build-*/
198 |
199 | # Mongo Explorer plugin
200 | .idea/**/mongoSettings.xml
201 |
202 | # File-based project format
203 | *.iws
204 |
205 | # IntelliJ
206 | out/
207 |
208 | # mpeltonen/sbt-idea plugin
209 | .idea_modules/
210 |
211 | # JIRA plugin
212 | atlassian-ide-plugin.xml
213 |
214 | # Cursive Clojure plugin
215 | .idea/replstate.xml
216 |
217 | # Crashlytics plugin (for Android Studio and IntelliJ)
218 | com_crashlytics_export_strings.xml
219 | crashlytics.properties
220 | crashlytics-build.properties
221 | fabric.properties
222 |
223 | # Editor-based Rest Client
224 | .idea/httpRequests
225 |
226 | # Android studio 3.1+ serialized cache file
227 | .idea/caches/build_file_checksums.ser
228 |
229 |
230 | ### https://raw.github.com/github/gitignore//Global/macOS.gitignore
231 |
232 | # General
233 | .DS_Store
234 | .AppleDouble
235 | .LSOverride
236 |
237 | # Icon must end with two \r
238 | Icon
239 |
240 |
241 | # Thumbnails
242 | ._*
243 |
244 | # Files that might appear in the root of a volume
245 | .DocumentRevisions-V100
246 | .fseventsd
247 | .Spotlight-V100
248 | .TemporaryItems
249 | .Trashes
250 | .VolumeIcon.icns
251 | .com.apple.timemachine.donotpresent
252 |
253 | # Directories potentially created on remote AFP share
254 | .AppleDB
255 | .AppleDesktop
256 | Network Trash Folder
257 | Temporary Items
258 | .apdisk
259 |
260 |
261 | ### https://raw.github.com/github/gitignore//Global/Xcode.gitignore
262 |
263 | # Xcode
264 | #
265 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
266 |
267 | ## User settings
268 | xcuserdata/
269 |
270 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
271 | *.xcscmblueprint
272 | *.xccheckout
273 |
274 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
275 | build/
276 | DerivedData/
277 | *.moved-aside
278 | *.pbxuser
279 | !default.pbxuser
280 | *.mode1v3
281 | !default.mode1v3
282 | *.mode2v3
283 | !default.mode2v3
284 | *.perspectivev3
285 | !default.perspectivev3
286 |
287 |
288 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/Archives.gitignore
289 |
290 | # It's better to unpack these files and commit the raw source because
291 | # git has its own built in compression methods.
292 | *.7z
293 | *.jar
294 | *.rar
295 | *.zip
296 | *.gz
297 | *.tgz
298 | *.bzip
299 | *.bz2
300 | *.xz
301 | *.lzma
302 | *.cab
303 |
304 | # Packing-only formats
305 | *.iso
306 | *.tar
307 |
308 | # Package management formats
309 | *.dmg
310 | *.xpi
311 | *.gem
312 | *.egg
313 | *.deb
314 | *.rpm
315 | *.msi
316 | *.msm
317 | *.msp
318 |
319 |
320 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/Backup.gitignore
321 |
322 | *.bak
323 | *.gho
324 | *.ori
325 | *.orig
326 | *.tmp
327 |
328 |
329 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Android.gitignore
330 |
331 | # Built application files
332 | *.apk
333 | *.ap_
334 |
335 | # Files for the ART/Dalvik VM
336 | *.dex
337 |
338 | # Java class files
339 | *.class
340 |
341 | # Generated files
342 | bin/
343 | gen/
344 | out/
345 |
346 | # Gradle files
347 | .gradle/
348 | build/
349 |
350 | # Local configuration file (sdk path, etc)
351 | local.properties
352 |
353 | # Proguard folder generated by Eclipse
354 | proguard/
355 |
356 | # Log Files
357 | *.log
358 |
359 | # Android Studio Navigation editor temp files
360 | .navigation/
361 |
362 | # Android Studio captures folder
363 | captures/
364 |
365 | # IntelliJ
366 | *.iml
367 | .idea/workspace.xml
368 | .idea/tasks.xml
369 | .idea/gradle.xml
370 | .idea/assetWizardSettings.xml
371 | .idea/dictionaries
372 | .idea/libraries
373 | .idea/caches
374 |
375 | # Keystore files
376 | # Uncomment the following line if you do not want to check your keystore files in.
377 | #*.jks
378 |
379 | # External native build folder generated in Android Studio 2.2 and later
380 | .externalNativeBuild
381 |
382 | # Freeline
383 | freeline.py
384 | freeline/
385 | freeline_project_description.json
386 |
387 | # fastlane
388 | fastlane/report.xml
389 | fastlane/Preview.html
390 | fastlane/screenshots
391 | fastlane/test_output
392 | fastlane/readme.md
393 |
394 |
395 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Dart.gitignore
396 |
397 | # See https://www.dartlang.org/guides/libraries/private-files
398 |
399 | # Files and directories created by pub
400 | .dart_tool/
401 | .packages
402 | build/
403 | # If you're building an application, you may want to check-in your pubspec.lock
404 | pubspec.lock
405 |
406 | # Directory created by dartdoc
407 | # If you don't generate documentation locally you can remove this line.
408 | doc/api/
409 |
410 | # Avoid committing generated Javascript files:
411 | *.dart.js
412 | *.info.json # Produced by the --dump-info flag.
413 | *.js # When generated by dart2js. Don't specify *.js if your
414 | # project includes source files written in JavaScript.
415 | *.js_
416 | *.js.deps
417 | *.js.map
418 |
419 |
420 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/DartEditor.gitignore
421 |
422 | .project
423 | .buildlog
424 |
425 |
426 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/Emacs.gitignore
427 |
428 | # -*- mode: gitignore; -*-
429 | *~
430 | \#*\#
431 | /.emacs.desktop
432 | /.emacs.desktop.lock
433 | *.elc
434 | auto-save-list
435 | tramp
436 | .\#*
437 |
438 | # Org-mode
439 | .org-id-locations
440 | *_archive
441 |
442 | # flymake-mode
443 | *_flymake.*
444 |
445 | # eshell files
446 | /eshell/history
447 | /eshell/lastdir
448 |
449 | # elpa packages
450 | /elpa/
451 |
452 | # reftex files
453 | *.rel
454 |
455 | # AUCTeX auto folder
456 | /auto/
457 |
458 | # cask packages
459 | .cask/
460 | dist/
461 |
462 | # Flycheck
463 | flycheck_*.el
464 |
465 | # server auth directory
466 | /server/
467 |
468 | # projectiles files
469 | .projectile
470 |
471 | # directory configuration
472 | .dir-locals.el
473 |
474 |
475 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Gradle.gitignore
476 |
477 | .gradle
478 | /build/
479 |
480 | # Ignore Gradle GUI config
481 | gradle-app.setting
482 |
483 | # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
484 | !gradle-wrapper.jar
485 |
486 | # Cache of project
487 | .gradletasknamecache
488 |
489 | # # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
490 | # gradle/wrapper/gradle-wrapper.properties
491 |
492 |
493 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Java.gitignore
494 |
495 | # Compiled class file
496 | *.class
497 |
498 | # Log file
499 | *.log
500 |
501 | # BlueJ files
502 | *.ctxt
503 |
504 | # Mobile Tools for Java (J2ME)
505 | .mtj.tmp/
506 |
507 | # Package Files #
508 | *.jar
509 | *.war
510 | *.nar
511 | *.ear
512 | *.zip
513 | *.tar.gz
514 | *.rar
515 |
516 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
517 | hs_err_pid*
518 |
519 |
520 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/JetBrains.gitignore
521 |
522 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
523 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
524 |
525 | # User-specific stuff
526 | .idea/**/workspace.xml
527 | .idea/**/tasks.xml
528 | .idea/**/usage.statistics.xml
529 | .idea/**/dictionaries
530 | .idea/**/shelf
531 |
532 | # Generated files
533 | .idea/**/contentModel.xml
534 |
535 | # Sensitive or high-churn files
536 | .idea/**/dataSources/
537 | .idea/**/dataSources.ids
538 | .idea/**/dataSources.local.xml
539 | .idea/**/sqlDataSources.xml
540 | .idea/**/dynamic.xml
541 | .idea/**/uiDesigner.xml
542 | .idea/**/dbnavigator.xml
543 |
544 | # Gradle
545 | .idea/**/gradle.xml
546 | .idea/**/libraries
547 |
548 | # Gradle and Maven with auto-import
549 | # When using Gradle or Maven with auto-import, you should exclude module files,
550 | # since they will be recreated, and may cause churn. Uncomment if using
551 | # auto-import.
552 | # .idea/modules.xml
553 | # .idea/*.iml
554 | # .idea/modules
555 |
556 | # CMake
557 | cmake-build-*/
558 |
559 | # Mongo Explorer plugin
560 | .idea/**/mongoSettings.xml
561 |
562 | # File-based project format
563 | *.iws
564 |
565 | # IntelliJ
566 | out/
567 |
568 | # mpeltonen/sbt-idea plugin
569 | .idea_modules/
570 |
571 | # JIRA plugin
572 | atlassian-ide-plugin.xml
573 |
574 | # Cursive Clojure plugin
575 | .idea/replstate.xml
576 |
577 | # Crashlytics plugin (for Android Studio and IntelliJ)
578 | com_crashlytics_export_strings.xml
579 | crashlytics.properties
580 | crashlytics-build.properties
581 | fabric.properties
582 |
583 | # Editor-based Rest Client
584 | .idea/httpRequests
585 |
586 | # Android studio 3.1+ serialized cache file
587 | .idea/caches/build_file_checksums.ser
588 |
589 |
590 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/JEnv.gitignore
591 |
592 | # JEnv local Java version configuration file
593 | .java-version
594 |
595 | # Used by previous versions of JEnv
596 | .jenv-version
597 |
598 |
599 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Kotlin.gitignore
600 |
601 | # Compiled class file
602 | *.class
603 |
604 | # Log file
605 | *.log
606 |
607 | # BlueJ files
608 | *.ctxt
609 |
610 | # Mobile Tools for Java (J2ME)
611 | .mtj.tmp/
612 |
613 | # Package Files #
614 | *.jar
615 | *.war
616 | *.nar
617 | *.ear
618 | *.zip
619 | *.tar.gz
620 | *.rar
621 |
622 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
623 | hs_err_pid*
624 |
625 |
626 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/Linux.gitignore
627 |
628 | *~
629 |
630 | # temporary files which can be created if a process still has a handle open of a deleted file
631 | .fuse_hidden*
632 |
633 | # KDE directory preferences
634 | .directory
635 |
636 | # Linux trash folder which might appear on any partition or disk
637 | .Trash-*
638 |
639 | # .nfs files are created when an open file is removed but is still being accessed
640 | .nfs*
641 |
642 |
643 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/macOS.gitignore
644 |
645 | # General
646 | .DS_Store
647 | .AppleDouble
648 | .LSOverride
649 |
650 | # Icon must end with two \r
651 | Icon
652 |
653 |
654 | # Thumbnails
655 | ._*
656 |
657 | # Files that might appear in the root of a volume
658 | .DocumentRevisions-V100
659 | .fseventsd
660 | .Spotlight-V100
661 | .TemporaryItems
662 | .Trashes
663 | .VolumeIcon.icns
664 | .com.apple.timemachine.donotpresent
665 |
666 | # Directories potentially created on remote AFP share
667 | .AppleDB
668 | .AppleDesktop
669 | Network Trash Folder
670 | Temporary Items
671 | .apdisk
672 |
673 |
674 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Maven.gitignore
675 |
676 | target/
677 | pom.xml.tag
678 | pom.xml.releaseBackup
679 | pom.xml.versionsBackup
680 | pom.xml.next
681 | release.properties
682 | dependency-reduced-pom.xml
683 | buildNumber.properties
684 | .mvn/timing.properties
685 | .mvn/wrapper/maven-wrapper.jar
686 |
687 |
688 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Objective-C.gitignore
689 |
690 | # Xcode
691 | #
692 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
693 |
694 | ## Build generated
695 | build/
696 | DerivedData/
697 |
698 | ## Various settings
699 | *.pbxuser
700 | !default.pbxuser
701 | *.mode1v3
702 | !default.mode1v3
703 | *.mode2v3
704 | !default.mode2v3
705 | *.perspectivev3
706 | !default.perspectivev3
707 | xcuserdata/
708 |
709 | ## Other
710 | *.moved-aside
711 | *.xccheckout
712 | *.xcscmblueprint
713 |
714 | ## Obj-C/Swift specific
715 | *.hmap
716 | *.ipa
717 | *.dSYM.zip
718 | *.dSYM
719 |
720 | # CocoaPods
721 | #
722 | # We recommend against adding the Pods directory to your .gitignore. However
723 | # you should judge for yourself, the pros and cons are mentioned at:
724 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
725 | #
726 | # Pods/
727 | #
728 | # Add this line if you want to avoid checking in source code from the Xcode workspace
729 | # *.xcworkspace
730 |
731 | # Carthage
732 | #
733 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
734 | # Carthage/Checkouts
735 |
736 | Carthage/Build
737 |
738 | # fastlane
739 | #
740 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
741 | # screenshots whenever they are needed.
742 | # For more information about the recommended setup visit:
743 | # https://docs.fastlane.tools/best-practices/source-control/#source-control
744 |
745 | fastlane/report.xml
746 | fastlane/Preview.html
747 | fastlane/screenshots/**/*.png
748 | fastlane/test_output
749 |
750 | # Code Injection
751 | #
752 | # After new code Injection tools there's a generated folder /iOSInjectionProject
753 | # https://github.com/johnno1962/injectionforxcode
754 |
755 | iOSInjectionProject/
756 |
757 |
758 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/SublimeText.gitignore
759 |
760 | # Cache files for Sublime Text
761 | *.tmlanguage.cache
762 | *.tmPreferences.cache
763 | *.stTheme.cache
764 |
765 | # Workspace files are user-specific
766 | *.sublime-workspace
767 |
768 | # Project files should be checked into the repository, unless a significant
769 | # proportion of contributors will probably not be using Sublime Text
770 | # *.sublime-project
771 |
772 | # SFTP configuration file
773 | sftp-config.json
774 |
775 | # Package control specific files
776 | Package Control.last-run
777 | Package Control.ca-list
778 | Package Control.ca-bundle
779 | Package Control.system-ca-bundle
780 | Package Control.cache/
781 | Package Control.ca-certs/
782 | Package Control.merged-ca-bundle
783 | Package Control.user-ca-bundle
784 | oscrypto-ca-bundle.crt
785 | bh_unicode_properties.cache
786 |
787 | # Sublime-github package stores a github token in this file
788 | # https://packagecontrol.io/packages/sublime-github
789 | GitHub.sublime-settings
790 |
791 |
792 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/Vim.gitignore
793 |
794 | # Swap
795 | [._]*.s[a-v][a-z]
796 | [._]*.sw[a-p]
797 | [._]s[a-rt-v][a-z]
798 | [._]ss[a-gi-z]
799 | [._]sw[a-p]
800 |
801 | # Session
802 | Session.vim
803 |
804 | # Temporary
805 | .netrwhist
806 | *~
807 | # Auto-generated tag files
808 | tags
809 | # Persistent undo
810 | [._]*.un~
811 |
812 |
813 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/VisualStudioCode.gitignore
814 |
815 | .vscode/*
816 | !.vscode/settings.json
817 | !.vscode/tasks.json
818 | !.vscode/launch.json
819 | !.vscode/extensions.json
820 |
821 |
822 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/Windows.gitignore
823 |
824 | # Windows thumbnail cache files
825 | Thumbs.db
826 | ehthumbs.db
827 | ehthumbs_vista.db
828 |
829 | # Dump file
830 | *.stackdump
831 |
832 | # Folder config file
833 | [Dd]esktop.ini
834 |
835 | # Recycle Bin used on file shares
836 | $RECYCLE.BIN/
837 |
838 | # Windows Installer files
839 | *.cab
840 | *.msi
841 | *.msix
842 | *.msm
843 | *.msp
844 |
845 | # Windows shortcuts
846 | *.lnk
847 |
848 |
849 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/Xcode.gitignore
850 |
851 | # Xcode
852 | #
853 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
854 |
855 | ## User settings
856 | xcuserdata/
857 |
858 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
859 | *.xcscmblueprint
860 | *.xccheckout
861 |
862 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
863 | build/
864 | DerivedData/
865 | *.moved-aside
866 | *.pbxuser
867 | !default.pbxuser
868 | *.mode1v3
869 | !default.mode1v3
870 | *.mode2v3
871 | !default.mode2v3
872 | *.perspectivev3
873 | !default.perspectivev3
874 |
875 |
876 | ### Flutter Generated Exceptions
877 |
878 | # Exceptions to above rules.
879 | !**/ios/**/default.mode1v3
880 | !**/ios/**/default.mode2v3
881 | !**/ios/**/default.pbxuser
882 | !**/ios/**/default.perspectivev3
883 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU AFFERO GENERAL PUBLIC LICENSE
2 | Version 3, 19 November 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU Affero General Public License is a free, copyleft license for
11 | software and other kinds of works, specifically designed to ensure
12 | cooperation with the community in the case of network server software.
13 |
14 | The licenses for most software and other practical works are designed
15 | to take away your freedom to share and change the works. By contrast,
16 | our General Public Licenses are intended to guarantee your freedom to
17 | share and change all versions of a program--to make sure it remains free
18 | software for all its users.
19 |
20 | When we speak of free software, we are referring to freedom, not
21 | price. Our General Public Licenses are designed to make sure that you
22 | have the freedom to distribute copies of free software (and charge for
23 | them if you wish), that you receive source code or can get it if you
24 | want it, that you can change the software or use pieces of it in new
25 | free programs, and that you know you can do these things.
26 |
27 | Developers that use our General Public Licenses protect your rights
28 | with two steps: (1) assert copyright on the software, and (2) offer
29 | you this License which gives you legal permission to copy, distribute
30 | and/or modify the software.
31 |
32 | A secondary benefit of defending all users' freedom is that
33 | improvements made in alternate versions of the program, if they
34 | receive widespread use, become available for other developers to
35 | incorporate. Many developers of free software are heartened and
36 | encouraged by the resulting cooperation. However, in the case of
37 | software used on network servers, this result may fail to come about.
38 | The GNU General Public License permits making a modified version and
39 | letting the public access it on a server without ever releasing its
40 | source code to the public.
41 |
42 | The GNU Affero General Public License is designed specifically to
43 | ensure that, in such cases, the modified source code becomes available
44 | to the community. It requires the operator of a network server to
45 | provide the source code of the modified version running there to the
46 | users of that server. Therefore, public use of a modified version, on
47 | a publicly accessible server, gives the public access to the source
48 | code of the modified version.
49 |
50 | An older license, called the Affero General Public License and
51 | published by Affero, was designed to accomplish similar goals. This is
52 | a different license, not a version of the Affero GPL, but Affero has
53 | released a new version of the Affero GPL which permits relicensing under
54 | this license.
55 |
56 | The precise terms and conditions for copying, distribution and
57 | modification follow.
58 |
59 | TERMS AND CONDITIONS
60 |
61 | 0. Definitions.
62 |
63 | "This License" refers to version 3 of the GNU Affero General Public License.
64 |
65 | "Copyright" also means copyright-like laws that apply to other kinds of
66 | works, such as semiconductor masks.
67 |
68 | "The Program" refers to any copyrightable work licensed under this
69 | License. Each licensee is addressed as "you". "Licensees" and
70 | "recipients" may be individuals or organizations.
71 |
72 | To "modify" a work means to copy from or adapt all or part of the work
73 | in a fashion requiring copyright permission, other than the making of an
74 | exact copy. The resulting work is called a "modified version" of the
75 | earlier work or a work "based on" the earlier work.
76 |
77 | A "covered work" means either the unmodified Program or a work based
78 | on the Program.
79 |
80 | To "propagate" a work means to do anything with it that, without
81 | permission, would make you directly or secondarily liable for
82 | infringement under applicable copyright law, except executing it on a
83 | computer or modifying a private copy. Propagation includes copying,
84 | distribution (with or without modification), making available to the
85 | public, and in some countries other activities as well.
86 |
87 | To "convey" a work means any kind of propagation that enables other
88 | parties to make or receive copies. Mere interaction with a user through
89 | a computer network, with no transfer of a copy, is not conveying.
90 |
91 | An interactive user interface displays "Appropriate Legal Notices"
92 | to the extent that it includes a convenient and prominently visible
93 | feature that (1) displays an appropriate copyright notice, and (2)
94 | tells the user that there is no warranty for the work (except to the
95 | extent that warranties are provided), that licensees may convey the
96 | work under this License, and how to view a copy of this License. If
97 | the interface presents a list of user commands or options, such as a
98 | menu, a prominent item in the list meets this criterion.
99 |
100 | 1. Source Code.
101 |
102 | The "source code" for a work means the preferred form of the work
103 | for making modifications to it. "Object code" means any non-source
104 | form of a work.
105 |
106 | A "Standard Interface" means an interface that either is an official
107 | standard defined by a recognized standards body, or, in the case of
108 | interfaces specified for a particular programming language, one that
109 | is widely used among developers working in that language.
110 |
111 | The "System Libraries" of an executable work include anything, other
112 | than the work as a whole, that (a) is included in the normal form of
113 | packaging a Major Component, but which is not part of that Major
114 | Component, and (b) serves only to enable use of the work with that
115 | Major Component, or to implement a Standard Interface for which an
116 | implementation is available to the public in source code form. A
117 | "Major Component", in this context, means a major essential component
118 | (kernel, window system, and so on) of the specific operating system
119 | (if any) on which the executable work runs, or a compiler used to
120 | produce the work, or an object code interpreter used to run it.
121 |
122 | The "Corresponding Source" for a work in object code form means all
123 | the source code needed to generate, install, and (for an executable
124 | work) run the object code and to modify the work, including scripts to
125 | control those activities. However, it does not include the work's
126 | System Libraries, or general-purpose tools or generally available free
127 | programs which are used unmodified in performing those activities but
128 | which are not part of the work. For example, Corresponding Source
129 | includes interface definition files associated with source files for
130 | the work, and the source code for shared libraries and dynamically
131 | linked subprograms that the work is specifically designed to require,
132 | such as by intimate data communication or control flow between those
133 | subprograms and other parts of the work.
134 |
135 | The Corresponding Source need not include anything that users
136 | can regenerate automatically from other parts of the Corresponding
137 | Source.
138 |
139 | The Corresponding Source for a work in source code form is that
140 | same work.
141 |
142 | 2. Basic Permissions.
143 |
144 | All rights granted under this License are granted for the term of
145 | copyright on the Program, and are irrevocable provided the stated
146 | conditions are met. This License explicitly affirms your unlimited
147 | permission to run the unmodified Program. The output from running a
148 | covered work is covered by this License only if the output, given its
149 | content, constitutes a covered work. This License acknowledges your
150 | rights of fair use or other equivalent, as provided by copyright law.
151 |
152 | You may make, run and propagate covered works that you do not
153 | convey, without conditions so long as your license otherwise remains
154 | in force. You may convey covered works to others for the sole purpose
155 | of having them make modifications exclusively for you, or provide you
156 | with facilities for running those works, provided that you comply with
157 | the terms of this License in conveying all material for which you do
158 | not control copyright. Those thus making or running the covered works
159 | for you must do so exclusively on your behalf, under your direction
160 | and control, on terms that prohibit them from making any copies of
161 | your copyrighted material outside their relationship with you.
162 |
163 | Conveying under any other circumstances is permitted solely under
164 | the conditions stated below. Sublicensing is not allowed; section 10
165 | makes it unnecessary.
166 |
167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168 |
169 | No covered work shall be deemed part of an effective technological
170 | measure under any applicable law fulfilling obligations under article
171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172 | similar laws prohibiting or restricting circumvention of such
173 | measures.
174 |
175 | When you convey a covered work, you waive any legal power to forbid
176 | circumvention of technological measures to the extent such circumvention
177 | is effected by exercising rights under this License with respect to
178 | the covered work, and you disclaim any intention to limit operation or
179 | modification of the work as a means of enforcing, against the work's
180 | users, your or third parties' legal rights to forbid circumvention of
181 | technological measures.
182 |
183 | 4. Conveying Verbatim Copies.
184 |
185 | You may convey verbatim copies of the Program's source code as you
186 | receive it, in any medium, provided that you conspicuously and
187 | appropriately publish on each copy an appropriate copyright notice;
188 | keep intact all notices stating that this License and any
189 | non-permissive terms added in accord with section 7 apply to the code;
190 | keep intact all notices of the absence of any warranty; and give all
191 | recipients a copy of this License along with the Program.
192 |
193 | You may charge any price or no price for each copy that you convey,
194 | and you may offer support or warranty protection for a fee.
195 |
196 | 5. Conveying Modified Source Versions.
197 |
198 | You may convey a work based on the Program, or the modifications to
199 | produce it from the Program, in the form of source code under the
200 | terms of section 4, provided that you also meet all of these conditions:
201 |
202 | a) The work must carry prominent notices stating that you modified
203 | it, and giving a relevant date.
204 |
205 | b) The work must carry prominent notices stating that it is
206 | released under this License and any conditions added under section
207 | 7. This requirement modifies the requirement in section 4 to
208 | "keep intact all notices".
209 |
210 | c) You must license the entire work, as a whole, under this
211 | License to anyone who comes into possession of a copy. This
212 | License will therefore apply, along with any applicable section 7
213 | additional terms, to the whole of the work, and all its parts,
214 | regardless of how they are packaged. This License gives no
215 | permission to license the work in any other way, but it does not
216 | invalidate such permission if you have separately received it.
217 |
218 | d) If the work has interactive user interfaces, each must display
219 | Appropriate Legal Notices; however, if the Program has interactive
220 | interfaces that do not display Appropriate Legal Notices, your
221 | work need not make them do so.
222 |
223 | A compilation of a covered work with other separate and independent
224 | works, which are not by their nature extensions of the covered work,
225 | and which are not combined with it such as to form a larger program,
226 | in or on a volume of a storage or distribution medium, is called an
227 | "aggregate" if the compilation and its resulting copyright are not
228 | used to limit the access or legal rights of the compilation's users
229 | beyond what the individual works permit. Inclusion of a covered work
230 | in an aggregate does not cause this License to apply to the other
231 | parts of the aggregate.
232 |
233 | 6. Conveying Non-Source Forms.
234 |
235 | You may convey a covered work in object code form under the terms
236 | of sections 4 and 5, provided that you also convey the
237 | machine-readable Corresponding Source under the terms of this License,
238 | in one of these ways:
239 |
240 | a) Convey the object code in, or embodied in, a physical product
241 | (including a physical distribution medium), accompanied by the
242 | Corresponding Source fixed on a durable physical medium
243 | customarily used for software interchange.
244 |
245 | b) Convey the object code in, or embodied in, a physical product
246 | (including a physical distribution medium), accompanied by a
247 | written offer, valid for at least three years and valid for as
248 | long as you offer spare parts or customer support for that product
249 | model, to give anyone who possesses the object code either (1) a
250 | copy of the Corresponding Source for all the software in the
251 | product that is covered by this License, on a durable physical
252 | medium customarily used for software interchange, for a price no
253 | more than your reasonable cost of physically performing this
254 | conveying of source, or (2) access to copy the
255 | Corresponding Source from a network server at no charge.
256 |
257 | c) Convey individual copies of the object code with a copy of the
258 | written offer to provide the Corresponding Source. This
259 | alternative is allowed only occasionally and noncommercially, and
260 | only if you received the object code with such an offer, in accord
261 | with subsection 6b.
262 |
263 | d) Convey the object code by offering access from a designated
264 | place (gratis or for a charge), and offer equivalent access to the
265 | Corresponding Source in the same way through the same place at no
266 | further charge. You need not require recipients to copy the
267 | Corresponding Source along with the object code. If the place to
268 | copy the object code is a network server, the Corresponding Source
269 | may be on a different server (operated by you or a third party)
270 | that supports equivalent copying facilities, provided you maintain
271 | clear directions next to the object code saying where to find the
272 | Corresponding Source. Regardless of what server hosts the
273 | Corresponding Source, you remain obligated to ensure that it is
274 | available for as long as needed to satisfy these requirements.
275 |
276 | e) Convey the object code using peer-to-peer transmission, provided
277 | you inform other peers where the object code and Corresponding
278 | Source of the work are being offered to the general public at no
279 | charge under subsection 6d.
280 |
281 | A separable portion of the object code, whose source code is excluded
282 | from the Corresponding Source as a System Library, need not be
283 | included in conveying the object code work.
284 |
285 | A "User Product" is either (1) a "consumer product", which means any
286 | tangible personal property which is normally used for personal, family,
287 | or household purposes, or (2) anything designed or sold for incorporation
288 | into a dwelling. In determining whether a product is a consumer product,
289 | doubtful cases shall be resolved in favor of coverage. For a particular
290 | product received by a particular user, "normally used" refers to a
291 | typical or common use of that class of product, regardless of the status
292 | of the particular user or of the way in which the particular user
293 | actually uses, or expects or is expected to use, the product. A product
294 | is a consumer product regardless of whether the product has substantial
295 | commercial, industrial or non-consumer uses, unless such uses represent
296 | the only significant mode of use of the product.
297 |
298 | "Installation Information" for a User Product means any methods,
299 | procedures, authorization keys, or other information required to install
300 | and execute modified versions of a covered work in that User Product from
301 | a modified version of its Corresponding Source. The information must
302 | suffice to ensure that the continued functioning of the modified object
303 | code is in no case prevented or interfered with solely because
304 | modification has been made.
305 |
306 | If you convey an object code work under this section in, or with, or
307 | specifically for use in, a User Product, and the conveying occurs as
308 | part of a transaction in which the right of possession and use of the
309 | User Product is transferred to the recipient in perpetuity or for a
310 | fixed term (regardless of how the transaction is characterized), the
311 | Corresponding Source conveyed under this section must be accompanied
312 | by the Installation Information. But this requirement does not apply
313 | if neither you nor any third party retains the ability to install
314 | modified object code on the User Product (for example, the work has
315 | been installed in ROM).
316 |
317 | The requirement to provide Installation Information does not include a
318 | requirement to continue to provide support service, warranty, or updates
319 | for a work that has been modified or installed by the recipient, or for
320 | the User Product in which it has been modified or installed. Access to a
321 | network may be denied when the modification itself materially and
322 | adversely affects the operation of the network or violates the rules and
323 | protocols for communication across the network.
324 |
325 | Corresponding Source conveyed, and Installation Information provided,
326 | in accord with this section must be in a format that is publicly
327 | documented (and with an implementation available to the public in
328 | source code form), and must require no special password or key for
329 | unpacking, reading or copying.
330 |
331 | 7. Additional Terms.
332 |
333 | "Additional permissions" are terms that supplement the terms of this
334 | License by making exceptions from one or more of its conditions.
335 | Additional permissions that are applicable to the entire Program shall
336 | be treated as though they were included in this License, to the extent
337 | that they are valid under applicable law. If additional permissions
338 | apply only to part of the Program, that part may be used separately
339 | under those permissions, but the entire Program remains governed by
340 | this License without regard to the additional permissions.
341 |
342 | When you convey a copy of a covered work, you may at your option
343 | remove any additional permissions from that copy, or from any part of
344 | it. (Additional permissions may be written to require their own
345 | removal in certain cases when you modify the work.) You may place
346 | additional permissions on material, added by you to a covered work,
347 | for which you have or can give appropriate copyright permission.
348 |
349 | Notwithstanding any other provision of this License, for material you
350 | add to a covered work, you may (if authorized by the copyright holders of
351 | that material) supplement the terms of this License with terms:
352 |
353 | a) Disclaiming warranty or limiting liability differently from the
354 | terms of sections 15 and 16 of this License; or
355 |
356 | b) Requiring preservation of specified reasonable legal notices or
357 | author attributions in that material or in the Appropriate Legal
358 | Notices displayed by works containing it; or
359 |
360 | c) Prohibiting misrepresentation of the origin of that material, or
361 | requiring that modified versions of such material be marked in
362 | reasonable ways as different from the original version; or
363 |
364 | d) Limiting the use for publicity purposes of names of licensors or
365 | authors of the material; or
366 |
367 | e) Declining to grant rights under trademark law for use of some
368 | trade names, trademarks, or service marks; or
369 |
370 | f) Requiring indemnification of licensors and authors of that
371 | material by anyone who conveys the material (or modified versions of
372 | it) with contractual assumptions of liability to the recipient, for
373 | any liability that these contractual assumptions directly impose on
374 | those licensors and authors.
375 |
376 | All other non-permissive additional terms are considered "further
377 | restrictions" within the meaning of section 10. If the Program as you
378 | received it, or any part of it, contains a notice stating that it is
379 | governed by this License along with a term that is a further
380 | restriction, you may remove that term. If a license document contains
381 | a further restriction but permits relicensing or conveying under this
382 | License, you may add to a covered work material governed by the terms
383 | of that license document, provided that the further restriction does
384 | not survive such relicensing or conveying.
385 |
386 | If you add terms to a covered work in accord with this section, you
387 | must place, in the relevant source files, a statement of the
388 | additional terms that apply to those files, or a notice indicating
389 | where to find the applicable terms.
390 |
391 | Additional terms, permissive or non-permissive, may be stated in the
392 | form of a separately written license, or stated as exceptions;
393 | the above requirements apply either way.
394 |
395 | 8. Termination.
396 |
397 | You may not propagate or modify a covered work except as expressly
398 | provided under this License. Any attempt otherwise to propagate or
399 | modify it is void, and will automatically terminate your rights under
400 | this License (including any patent licenses granted under the third
401 | paragraph of section 11).
402 |
403 | However, if you cease all violation of this License, then your
404 | license from a particular copyright holder is reinstated (a)
405 | provisionally, unless and until the copyright holder explicitly and
406 | finally terminates your license, and (b) permanently, if the copyright
407 | holder fails to notify you of the violation by some reasonable means
408 | prior to 60 days after the cessation.
409 |
410 | Moreover, your license from a particular copyright holder is
411 | reinstated permanently if the copyright holder notifies you of the
412 | violation by some reasonable means, this is the first time you have
413 | received notice of violation of this License (for any work) from that
414 | copyright holder, and you cure the violation prior to 30 days after
415 | your receipt of the notice.
416 |
417 | Termination of your rights under this section does not terminate the
418 | licenses of parties who have received copies or rights from you under
419 | this License. If your rights have been terminated and not permanently
420 | reinstated, you do not qualify to receive new licenses for the same
421 | material under section 10.
422 |
423 | 9. Acceptance Not Required for Having Copies.
424 |
425 | You are not required to accept this License in order to receive or
426 | run a copy of the Program. Ancillary propagation of a covered work
427 | occurring solely as a consequence of using peer-to-peer transmission
428 | to receive a copy likewise does not require acceptance. However,
429 | nothing other than this License grants you permission to propagate or
430 | modify any covered work. These actions infringe copyright if you do
431 | not accept this License. Therefore, by modifying or propagating a
432 | covered work, you indicate your acceptance of this License to do so.
433 |
434 | 10. Automatic Licensing of Downstream Recipients.
435 |
436 | Each time you convey a covered work, the recipient automatically
437 | receives a license from the original licensors, to run, modify and
438 | propagate that work, subject to this License. You are not responsible
439 | for enforcing compliance by third parties with this License.
440 |
441 | An "entity transaction" is a transaction transferring control of an
442 | organization, or substantially all assets of one, or subdividing an
443 | organization, or merging organizations. If propagation of a covered
444 | work results from an entity transaction, each party to that
445 | transaction who receives a copy of the work also receives whatever
446 | licenses to the work the party's predecessor in interest had or could
447 | give under the previous paragraph, plus a right to possession of the
448 | Corresponding Source of the work from the predecessor in interest, if
449 | the predecessor has it or can get it with reasonable efforts.
450 |
451 | You may not impose any further restrictions on the exercise of the
452 | rights granted or affirmed under this License. For example, you may
453 | not impose a license fee, royalty, or other charge for exercise of
454 | rights granted under this License, and you may not initiate litigation
455 | (including a cross-claim or counterclaim in a lawsuit) alleging that
456 | any patent claim is infringed by making, using, selling, offering for
457 | sale, or importing the Program or any portion of it.
458 |
459 | 11. Patents.
460 |
461 | A "contributor" is a copyright holder who authorizes use under this
462 | License of the Program or a work on which the Program is based. The
463 | work thus licensed is called the contributor's "contributor version".
464 |
465 | A contributor's "essential patent claims" are all patent claims
466 | owned or controlled by the contributor, whether already acquired or
467 | hereafter acquired, that would be infringed by some manner, permitted
468 | by this License, of making, using, or selling its contributor version,
469 | but do not include claims that would be infringed only as a
470 | consequence of further modification of the contributor version. For
471 | purposes of this definition, "control" includes the right to grant
472 | patent sublicenses in a manner consistent with the requirements of
473 | this License.
474 |
475 | Each contributor grants you a non-exclusive, worldwide, royalty-free
476 | patent license under the contributor's essential patent claims, to
477 | make, use, sell, offer for sale, import and otherwise run, modify and
478 | propagate the contents of its contributor version.
479 |
480 | In the following three paragraphs, a "patent license" is any express
481 | agreement or commitment, however denominated, not to enforce a patent
482 | (such as an express permission to practice a patent or covenant not to
483 | sue for patent infringement). To "grant" such a patent license to a
484 | party means to make such an agreement or commitment not to enforce a
485 | patent against the party.
486 |
487 | If you convey a covered work, knowingly relying on a patent license,
488 | and the Corresponding Source of the work is not available for anyone
489 | to copy, free of charge and under the terms of this License, through a
490 | publicly available network server or other readily accessible means,
491 | then you must either (1) cause the Corresponding Source to be so
492 | available, or (2) arrange to deprive yourself of the benefit of the
493 | patent license for this particular work, or (3) arrange, in a manner
494 | consistent with the requirements of this License, to extend the patent
495 | license to downstream recipients. "Knowingly relying" means you have
496 | actual knowledge that, but for the patent license, your conveying the
497 | covered work in a country, or your recipient's use of the covered work
498 | in a country, would infringe one or more identifiable patents in that
499 | country that you have reason to believe are valid.
500 |
501 | If, pursuant to or in connection with a single transaction or
502 | arrangement, you convey, or propagate by procuring conveyance of, a
503 | covered work, and grant a patent license to some of the parties
504 | receiving the covered work authorizing them to use, propagate, modify
505 | or convey a specific copy of the covered work, then the patent license
506 | you grant is automatically extended to all recipients of the covered
507 | work and works based on it.
508 |
509 | A patent license is "discriminatory" if it does not include within
510 | the scope of its coverage, prohibits the exercise of, or is
511 | conditioned on the non-exercise of one or more of the rights that are
512 | specifically granted under this License. You may not convey a covered
513 | work if you are a party to an arrangement with a third party that is
514 | in the business of distributing software, under which you make payment
515 | to the third party based on the extent of your activity of conveying
516 | the work, and under which the third party grants, to any of the
517 | parties who would receive the covered work from you, a discriminatory
518 | patent license (a) in connection with copies of the covered work
519 | conveyed by you (or copies made from those copies), or (b) primarily
520 | for and in connection with specific products or compilations that
521 | contain the covered work, unless you entered into that arrangement,
522 | or that patent license was granted, prior to 28 March 2007.
523 |
524 | Nothing in this License shall be construed as excluding or limiting
525 | any implied license or other defenses to infringement that may
526 | otherwise be available to you under applicable patent law.
527 |
528 | 12. No Surrender of Others' Freedom.
529 |
530 | If conditions are imposed on you (whether by court order, agreement or
531 | otherwise) that contradict the conditions of this License, they do not
532 | excuse you from the conditions of this License. If you cannot convey a
533 | covered work so as to satisfy simultaneously your obligations under this
534 | License and any other pertinent obligations, then as a consequence you may
535 | not convey it at all. For example, if you agree to terms that obligate you
536 | to collect a royalty for further conveying from those to whom you convey
537 | the Program, the only way you could satisfy both those terms and this
538 | License would be to refrain entirely from conveying the Program.
539 |
540 | 13. Remote Network Interaction; Use with the GNU General Public License.
541 |
542 | Notwithstanding any other provision of this License, if you modify the
543 | Program, your modified version must prominently offer all users
544 | interacting with it remotely through a computer network (if your version
545 | supports such interaction) an opportunity to receive the Corresponding
546 | Source of your version by providing access to the Corresponding Source
547 | from a network server at no charge, through some standard or customary
548 | means of facilitating copying of software. This Corresponding Source
549 | shall include the Corresponding Source for any work covered by version 3
550 | of the GNU General Public License that is incorporated pursuant to the
551 | following paragraph.
552 |
553 | Notwithstanding any other provision of this License, you have
554 | permission to link or combine any covered work with a work licensed
555 | under version 3 of the GNU General Public License into a single
556 | combined work, and to convey the resulting work. The terms of this
557 | License will continue to apply to the part which is the covered work,
558 | but the work with which it is combined will remain governed by version
559 | 3 of the GNU General Public License.
560 |
561 | 14. Revised Versions of this License.
562 |
563 | The Free Software Foundation may publish revised and/or new versions of
564 | the GNU Affero General Public License from time to time. Such new versions
565 | will be similar in spirit to the present version, but may differ in detail to
566 | address new problems or concerns.
567 |
568 | Each version is given a distinguishing version number. If the
569 | Program specifies that a certain numbered version of the GNU Affero General
570 | Public License "or any later version" applies to it, you have the
571 | option of following the terms and conditions either of that numbered
572 | version or of any later version published by the Free Software
573 | Foundation. If the Program does not specify a version number of the
574 | GNU Affero General Public License, you may choose any version ever published
575 | by the Free Software Foundation.
576 |
577 | If the Program specifies that a proxy can decide which future
578 | versions of the GNU Affero General Public License can be used, that proxy's
579 | public statement of acceptance of a version permanently authorizes you
580 | to choose that version for the Program.
581 |
582 | Later license versions may give you additional or different
583 | permissions. However, no additional obligations are imposed on any
584 | author or copyright holder as a result of your choosing to follow a
585 | later version.
586 |
587 | 15. Disclaimer of Warranty.
588 |
589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597 |
598 | 16. Limitation of Liability.
599 |
600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608 | SUCH DAMAGES.
609 |
610 | 17. Interpretation of Sections 15 and 16.
611 |
612 | If the disclaimer of warranty and limitation of liability provided
613 | above cannot be given local legal effect according to their terms,
614 | reviewing courts shall apply local law that most closely approximates
615 | an absolute waiver of all civil liability in connection with the
616 | Program, unless a warranty or assumption of liability accompanies a
617 | copy of the Program in return for a fee.
618 |
619 | END OF TERMS AND CONDITIONS
620 |
621 | How to Apply These Terms to Your New Programs
622 |
623 | If you develop a new program, and you want it to be of the greatest
624 | possible use to the public, the best way to achieve this is to make it
625 | free software which everyone can redistribute and change under these terms.
626 |
627 | To do so, attach the following notices to the program. It is safest
628 | to attach them to the start of each source file to most effectively
629 | state the exclusion of warranty; and each file should have at least
630 | the "copyright" line and a pointer to where the full notice is found.
631 |
632 |
633 | Copyright (C)
634 |
635 | This program is free software: you can redistribute it and/or modify
636 | it under the terms of the GNU Affero General Public License as published
637 | by the Free Software Foundation, either version 3 of the License, or
638 | (at your option) any later version.
639 |
640 | This program is distributed in the hope that it will be useful,
641 | but WITHOUT ANY WARRANTY; without even the implied warranty of
642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643 | GNU Affero General Public License for more details.
644 |
645 | You should have received a copy of the GNU Affero General Public License
646 | along with this program. If not, see .
647 |
648 | Also add information on how to contact you by electronic and paper mail.
649 |
650 | If your software can interact with users remotely through a computer
651 | network, you should also make sure that it provides a way for users to
652 | get its source. For example, if your program is a web application, its
653 | interface could display a "Source" link that leads users to an archive
654 | of the code. There are many ways you could offer source, and different
655 | solutions will be better for different programs; see section 13 for the
656 | specific requirements.
657 |
658 | You should also get your employer (if you work as a programmer) or school,
659 | if any, to sign a "copyright disclaimer" for the program, if necessary.
660 | For more information on this, and how to apply and follow the GNU AGPL, see
661 | .
662 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 👷🔧🔩 Flutter Starter Architecture (MVVM)
2 |
3 | My custom starter project for Flutter apps.
4 |
5 | I was looking for a simple way to build Flutter app in a [*scalable and clear way*](https://www.businessofapps.com/insights/why-app-scalability-is-important-and-why-you-should-be-prepared-for-it-from-start/#:~:text=Scalability%20is%20the%20function%20of,features%20will%20cause%20a%20gridlock.) way to operate. So I've spent a little to search for how to implement an MVVM architecture in a proper and efficient way for scalable apps. This is the first result of my research. I use it for two projects now.
6 | This one provide an MVVM architecture powered by [get_it](https://pub.dev/packages/get_it) and [provider](https://pub.dev/packages/provider).
7 | This work was mainly inspired by the work of [Filledstacks](https://github.com/FilledStacks/flutter-tutorials).
8 |
9 | > ## 👀 Overview
10 |
11 | I have made:
12 |
13 | - a [*helpers*](lib/helpers) folder where I have put all the utilities of the project such as constant values, dart enumerate, extensions, theming, and other general utilities.
14 | - a [*models*](lib/models) folder where I have put all the data's classes representation.
15 | - a [*services*](lib/services) folder where I have put all folders relative to data's storing and fetching base on local storage, firebase, or API.
16 | - a [*viewmodels*](lib/viewmodels) folder where I put all the viewmodels related files. In the easiest way, I call viewmodel a bridge between the models, services, and views. Their job is to handle the business logic of the view they are related to in order to make the views part safe from anything non-relevant to UI.
17 | - a [*views*](lib/views) folder where are stored the UI part of the application. Each view/page/screen of the application is put here in differents folders. Those folders contain the base file of the view and a widgets folder where are stored the widgets which are used **only** on this view. The **global** widgets are located in the [widgets](lib/views/widgets) folder.
18 | - a [*providers*](lib/providers) folder where I put all the providers of my app. I call providers class with need to change the app state in order to provide functionalities. A clear example of this is theme management through the app for dart/light mode purposes as example. **You should register them in the locator and the providers of the App in the [main.dart](lib/main.dart)**
19 |
20 | I have also added a base class for viewmodels [here](lib/viewmodels/base.viewmodel.dart). All the next viewmodels you'll write should inherit from the BaseViewModel class. There is also a BaseView widget [here](lib/views/base.view.dart) to mix the access easily to the base viewmodel proper to each class and also a WideScopeBaseView widget [here](lib/views/wide_scope_base.view.dart) to register ViewModel shared across many views.
21 |
22 | At the root of the app, you will see the [locator.dart](lib/locator.dart) file where I registered an instance of each service and viewmodel in order to use them efficiently in the whole app. You will also find the [routes.dart](lib/routes.dart) where the named routes of the app are stored in the AppRouter class.
23 |
24 | > ### 💥 Future
25 |
26 | I will create new branches to add more base project with various kind of scalable architecture.
27 |
28 | > ## :electric_plug: Plugins inside
29 |
30 | The repository contains based packages for provider, firebase, firebase_auth, cloud_firestore, and get_it
31 |
32 | > ## :sunglasses: Author(s)
33 |
34 | **Junior Medehou** [](https://twitter.com/juniormedehou_)
35 |
36 | > ### Getting Started with Flutter
37 |
38 | A few resources to get you started if this is your first Flutter project:
39 |
40 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
41 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
42 |
43 | For help getting started with Flutter, view our
44 | [online documentation](https://flutter.dev/docs), which offers tutorials,
45 | samples, guidance on mobile development, and a full API reference.
46 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at
17 | # https://dart-lang.github.io/linter/lints/index.html.
18 | #
19 | # Instead of disabling a lint rule for the entire project in the
20 | # section below, it can also be suppressed for a single line of code
21 | # or a specific dart file by using the `// ignore: name_of_lint` and
22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
23 | # producing the lint.
24 | rules:
25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27 |
28 | # Additional information about this file can be found at
29 | # https://dart.dev/guides/language/analysis-options
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/android/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 31
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | defaultConfig {
36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37 | applicationId "com.example.flutter_starter"
38 | minSdkVersion 19
39 | targetSdkVersion 30
40 | multiDexEnabled true
41 | versionCode flutterVersionCode.toInteger()
42 | versionName flutterVersionName
43 | }
44 |
45 | buildTypes {
46 | release {
47 | // TODO: Add your own signing config for the release build.
48 | // Signing with the debug keys for now, so `flutter run --release` works.
49 | signingConfig signingConfigs.debug
50 | }
51 | }
52 | }
53 |
54 | flutter {
55 | source '../..'
56 | }
57 |
58 | dependencies {
59 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
60 | implementation "androidx.multidex:multidex:2.0.1"
61 | }
62 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
14 |
18 |
22 |
27 |
31 |
32 |
33 |
34 |
35 |
36 |
38 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/flutter_mvvm_starter/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.flutter_starter
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
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 | project.evaluationDependsOn(':app')
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/android/flutter_mvvm_starter_android.iml:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/assets/logo.png
--------------------------------------------------------------------------------
/flutter_starter.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/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/ephemeral/
22 | Flutter/app.flx
23 | Flutter/app.zip
24 | Flutter/flutter_assets/
25 | Flutter/flutter_export_environment.sh
26 | ServiceDefinitions.json
27 | Runner/GeneratedPluginRegistrant.*
28 |
29 | # Exceptions to above rules.
30 | !default.mode1v3
31 | !default.mode2v3
32 | !default.pbxuser
33 | !default.perspectivev3
34 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "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 flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/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 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1020;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | INFOPLIST_FILE = Runner/Info.plist;
293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterMvvmStarter;
295 | PRODUCT_NAME = "$(TARGET_NAME)";
296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
297 | SWIFT_VERSION = 5.0;
298 | VERSIONING_SYSTEM = "apple-generic";
299 | };
300 | name = Profile;
301 | };
302 | 97C147031CF9000F007C117D /* Debug */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ALWAYS_SEARCH_USER_PATHS = NO;
306 | CLANG_ANALYZER_NONNULL = YES;
307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
308 | CLANG_CXX_LIBRARY = "libc++";
309 | CLANG_ENABLE_MODULES = YES;
310 | CLANG_ENABLE_OBJC_ARC = YES;
311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_COMMA = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
326 | CLANG_WARN_STRICT_PROTOTYPES = YES;
327 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
328 | CLANG_WARN_UNREACHABLE_CODE = YES;
329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
331 | COPY_PHASE_STRIP = NO;
332 | DEBUG_INFORMATION_FORMAT = dwarf;
333 | ENABLE_STRICT_OBJC_MSGSEND = YES;
334 | ENABLE_TESTABILITY = YES;
335 | GCC_C_LANGUAGE_STANDARD = gnu99;
336 | GCC_DYNAMIC_NO_PIC = NO;
337 | GCC_NO_COMMON_BLOCKS = YES;
338 | GCC_OPTIMIZATION_LEVEL = 0;
339 | GCC_PREPROCESSOR_DEFINITIONS = (
340 | "DEBUG=1",
341 | "$(inherited)",
342 | );
343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
345 | GCC_WARN_UNDECLARED_SELECTOR = YES;
346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
347 | GCC_WARN_UNUSED_FUNCTION = YES;
348 | GCC_WARN_UNUSED_VARIABLE = YES;
349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
350 | MTL_ENABLE_DEBUG_INFO = YES;
351 | ONLY_ACTIVE_ARCH = YES;
352 | SDKROOT = iphoneos;
353 | TARGETED_DEVICE_FAMILY = "1,2";
354 | };
355 | name = Debug;
356 | };
357 | 97C147041CF9000F007C117D /* Release */ = {
358 | isa = XCBuildConfiguration;
359 | buildSettings = {
360 | ALWAYS_SEARCH_USER_PATHS = NO;
361 | CLANG_ANALYZER_NONNULL = YES;
362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
363 | CLANG_CXX_LIBRARY = "libc++";
364 | CLANG_ENABLE_MODULES = YES;
365 | CLANG_ENABLE_OBJC_ARC = YES;
366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
367 | CLANG_WARN_BOOL_CONVERSION = YES;
368 | CLANG_WARN_COMMA = YES;
369 | CLANG_WARN_CONSTANT_CONVERSION = YES;
370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
372 | CLANG_WARN_EMPTY_BODY = YES;
373 | CLANG_WARN_ENUM_CONVERSION = YES;
374 | CLANG_WARN_INFINITE_RECURSION = YES;
375 | CLANG_WARN_INT_CONVERSION = YES;
376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
381 | CLANG_WARN_STRICT_PROTOTYPES = YES;
382 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
383 | CLANG_WARN_UNREACHABLE_CODE = YES;
384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
386 | COPY_PHASE_STRIP = NO;
387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
388 | ENABLE_NS_ASSERTIONS = NO;
389 | ENABLE_STRICT_OBJC_MSGSEND = YES;
390 | GCC_C_LANGUAGE_STANDARD = gnu99;
391 | GCC_NO_COMMON_BLOCKS = YES;
392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
394 | GCC_WARN_UNDECLARED_SELECTOR = YES;
395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
396 | GCC_WARN_UNUSED_FUNCTION = YES;
397 | GCC_WARN_UNUSED_VARIABLE = YES;
398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
399 | MTL_ENABLE_DEBUG_INFO = NO;
400 | SDKROOT = iphoneos;
401 | SUPPORTED_PLATFORMS = iphoneos;
402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
403 | TARGETED_DEVICE_FAMILY = "1,2";
404 | VALIDATE_PRODUCT = YES;
405 | };
406 | name = Release;
407 | };
408 | 97C147061CF9000F007C117D /* Debug */ = {
409 | isa = XCBuildConfiguration;
410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
411 | buildSettings = {
412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
413 | CLANG_ENABLE_MODULES = YES;
414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
415 | ENABLE_BITCODE = NO;
416 | INFOPLIST_FILE = Runner/Info.plist;
417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterMvvmStarter;
419 | PRODUCT_NAME = "$(TARGET_NAME)";
420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
422 | SWIFT_VERSION = 5.0;
423 | VERSIONING_SYSTEM = "apple-generic";
424 | };
425 | name = Debug;
426 | };
427 | 97C147071CF9000F007C117D /* Release */ = {
428 | isa = XCBuildConfiguration;
429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
430 | buildSettings = {
431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
432 | CLANG_ENABLE_MODULES = YES;
433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
434 | ENABLE_BITCODE = NO;
435 | INFOPLIST_FILE = Runner/Info.plist;
436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterMvvmStarter;
438 | PRODUCT_NAME = "$(TARGET_NAME)";
439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
440 | SWIFT_VERSION = 5.0;
441 | VERSIONING_SYSTEM = "apple-generic";
442 | };
443 | name = Release;
444 | };
445 | /* End XCBuildConfiguration section */
446 |
447 | /* Begin XCConfigurationList section */
448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
449 | isa = XCConfigurationList;
450 | buildConfigurations = (
451 | 97C147031CF9000F007C117D /* Debug */,
452 | 97C147041CF9000F007C117D /* Release */,
453 | 249021D3217E4FDB00AE95B9 /* Profile */,
454 | );
455 | defaultConfigurationIsVisible = 0;
456 | defaultConfigurationName = Release;
457 | };
458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
459 | isa = XCConfigurationList;
460 | buildConfigurations = (
461 | 97C147061CF9000F007C117D /* Debug */,
462 | 97C147071CF9000F007C117D /* Release */,
463 | 249021D4217E4FDB00AE95B9 /* Profile */,
464 | );
465 | defaultConfigurationIsVisible = 0;
466 | defaultConfigurationName = Release;
467 | };
468 | /* End XCConfigurationList section */
469 | };
470 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
471 | }
472 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.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 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/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 | flutter_starter
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"
2 |
--------------------------------------------------------------------------------
/lib/generated_plugin_registrant.dart:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // ignore_for_file: directives_ordering
6 | // ignore_for_file: lines_longer_than_80_chars
7 |
8 | import 'package:cloud_firestore_web/cloud_firestore_web.dart';
9 | import 'package:firebase_auth_web/firebase_auth_web.dart';
10 | import 'package:firebase_core_web/firebase_core_web.dart';
11 | import 'package:firebase_storage_web/firebase_storage_web.dart';
12 |
13 | import 'package:flutter_web_plugins/flutter_web_plugins.dart';
14 |
15 | // ignore: public_member_api_docs
16 | void registerPlugins(Registrar registrar) {
17 | FirebaseFirestoreWeb.registerWith(registrar);
18 | FirebaseAuthWeb.registerWith(registrar);
19 | FirebaseCoreWeb.registerWith(registrar);
20 | FirebaseStorageWeb.registerWith(registrar);
21 | registrar.registerMessageHandler();
22 | }
23 |
--------------------------------------------------------------------------------
/lib/helpers/constants.dart:
--------------------------------------------------------------------------------
1 | /// Here you can define the whole app's constant value
2 |
--------------------------------------------------------------------------------
/lib/helpers/dio.dart:
--------------------------------------------------------------------------------
1 | /// Here you can define the basic configuration you want
2 | /// to perform better API calls with dio package.
3 | /// Dio still remain my favorite dart package to perform HTTP requests
4 |
--------------------------------------------------------------------------------
/lib/helpers/empty.view.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../viewmodels/base.viewmodel.dart';
3 | import '../views/base.view.dart';
4 |
5 | /// A basic use case of the interaction between with a view and its related
6 | /// viewmodel.
7 | /// Feel free to use it as a starter to create you own view based on a view model
8 |
9 | class EmptyViewModel extends BaseViewModel {}
10 |
11 | class EmptyView extends StatefulWidget {
12 | const EmptyView({Key? key}) : super(key: key);
13 |
14 | @override
15 | _EmptyViewState createState() => _EmptyViewState();
16 | }
17 |
18 | class _EmptyViewState extends State {
19 | @override
20 | Widget build(BuildContext context) {
21 | return BaseView(
22 | builder: (context, model, child) => Scaffold(
23 | appBar: AppBar(),
24 | body: ListBody(),
25 | ),
26 | );
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/lib/helpers/enums.dart:
--------------------------------------------------------------------------------
1 | /// Here you can put all the enums you want to use in your
2 |
3 | /// [ViewState]
4 | /// This is an enum to manage more efficiently a view's state
5 | /// directly from you viewmodel.
6 | enum ViewState {
7 | Busy,
8 | Idle,
9 | }
10 |
--------------------------------------------------------------------------------
/lib/helpers/extensions.dart:
--------------------------------------------------------------------------------
1 | /// Here you can put all of your custom classes's extensions
2 |
--------------------------------------------------------------------------------
/lib/helpers/theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | /// Global app theme manager
4 | ThemeData appTheme = ThemeData();
5 |
--------------------------------------------------------------------------------
/lib/locator.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_starter/helpers/empty.view.dart';
2 | import 'package:flutter_starter/providers/theme.provider.dart';
3 | import 'package:get_it/get_it.dart';
4 | import 'services/firebase/auth.service.dart';
5 | import 'services/api/api.service.dart';
6 | import 'services/local/local.service.dart';
7 | import 'viewmodels/login.viewmodel.dart';
8 |
9 | GetIt locator = GetIt.instance;
10 |
11 | void setupLocator() {
12 | // Here you register all your services
13 | locator.registerLazySingleton(() => AuthService());
14 | locator.registerLazySingleton(() => ApiService());
15 | locator.registerLazySingleton(() => LocalService());
16 |
17 | // Here you register all your viewmodels
18 | locator.registerFactory(() => LoginViewModel());
19 | locator.registerFactory(() => EmptyViewModel());
20 |
21 | // Here you register your providers
22 | locator.registerFactory(() => ThemeProvider());
23 | }
24 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_core/firebase_core.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_starter/helpers/empty.view.dart';
4 | import 'package:flutter_starter/helpers/theme.dart';
5 | import 'package:flutter_starter/providers/theme.provider.dart';
6 | import 'package:provider/provider.dart';
7 | import 'locator.dart';
8 | import 'routes.dart';
9 |
10 | /// [globalInitializer()]
11 | /// Function to initialise all the pre-app things
12 | globalInitializer() async {
13 | WidgetsFlutterBinding.ensureInitialized();
14 | setupLocator();
15 | // await Firebase.initializeApp();
16 | }
17 |
18 | void main() async {
19 | await globalInitializer();
20 |
21 | runApp(const App());
22 | }
23 |
24 | class App extends StatelessWidget {
25 | const App({Key? key}) : super(key: key);
26 |
27 | @override
28 | Widget build(BuildContext context) {
29 | return MultiProvider(
30 | providers: [
31 | /// Here you should register the ViewModels you want to use across many screens with
32 | /// the WideScopeBaseView
33 | ChangeNotifierProvider(create: (context) => locator()),
34 |
35 | /// You should register yoyr providers here too
36 | ChangeNotifierProvider(create: (context) => locator()),
37 | ],
38 | child: MaterialApp(
39 | title: 'Flutter Demo',
40 | theme: appTheme,
41 | onGenerateRoute: (settings) => AppRouter.generateRoute(settings),
42 | ),
43 | );
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/lib/models/appuser.model.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_starter/models/base.model.dart';
2 |
3 | class AppUser implements BaseModel {}
4 |
--------------------------------------------------------------------------------
/lib/models/base.model.dart:
--------------------------------------------------------------------------------
1 | abstract class BaseModel {}
2 |
--------------------------------------------------------------------------------
/lib/models/user.model.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_starter/models/base.model.dart';
2 |
3 | class User extends BaseModel {}
4 |
--------------------------------------------------------------------------------
/lib/providers/base.provider.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | /// Abstract classes for providers
4 | /// I call providers classes with aim to work with data which are not related
5 | /// to any specific viewmodel such as things like theme manager (for light/dark
6 | /// mode purposes maybe)
7 | /// You don't use them with a BaseView or a WideScopeBaseView
8 | abstract class BaseProvider extends ChangeNotifier {}
9 |
--------------------------------------------------------------------------------
/lib/providers/theme.provider.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_starter/providers/base.provider.dart';
2 |
3 | class ThemeProvider extends BaseProvider {}
4 |
--------------------------------------------------------------------------------
/lib/routes.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/widgets.dart';
3 | import 'helpers/empty.view.dart';
4 | import 'views/home/home.view.dart';
5 |
6 | /// [AppRouter]
7 | /// This the base router classes where you can registered
8 | /// and customize all the named routes of your app
9 | class AppRouter {
10 | static Route generateRoute(RouteSettings settings) {
11 | switch (settings.name) {
12 | case HomeView.routeName:
13 | return MaterialPageRoute(builder: (_) => HomeView());
14 | default:
15 | return MaterialPageRoute(builder: (_) {
16 | return EmptyView();
17 | });
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/lib/services/api/api.service.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_starter/services/base.service.dart';
2 |
3 | class ApiService extends BaseService {}
4 |
--------------------------------------------------------------------------------
/lib/services/base.service.dart:
--------------------------------------------------------------------------------
1 | abstract class BaseService {}
2 |
--------------------------------------------------------------------------------
/lib/services/firebase/auth.service.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:flutter/material.dart';
3 | import '../base.service.dart';
4 |
5 | /// [AuthService]
6 | /// This is a basic classe to provide some firebase_auth's utilities
7 | class AuthService extends BaseService {
8 | final FirebaseAuth _auth = FirebaseAuth.instance;
9 | User user = FirebaseAuth.instance.currentUser!;
10 |
11 | Future signInWithMailAndPassword(
12 | String mail,
13 | String password,
14 | ) async {
15 | bool isOk = true;
16 | try {
17 | await _auth.signInWithEmailAndPassword(email: mail, password: password);
18 | } on FirebaseAuthException catch (e) {
19 | if (e.code == 'user-not-found') {
20 | isOk = false;
21 | debugPrint("Sign In failed. Error: " + e.code);
22 | } else if (e.code == 'wrong-password') {
23 | isOk = false;
24 | debugPrint("Sign In failed. Error: " + e.code);
25 | } else {
26 | isOk = false;
27 | debugPrint("Sign In failed. Error: " + e.code);
28 | }
29 | }
30 | return isOk;
31 | }
32 |
33 | Future signUpWithMailAndPassword(
34 | String mail,
35 | String password,
36 | ) async {
37 | try {
38 | await _auth.createUserWithEmailAndPassword(
39 | email: mail, password: password);
40 | } on FirebaseAuthException catch (e) {
41 | debugPrint("Sign Up failed. Error: " + e.code);
42 | }
43 | }
44 |
45 | Future signOut(Function? afterSignOut) async {
46 | try {
47 | await _auth.signOut();
48 | if (afterSignOut != null) afterSignOut();
49 | } on FirebaseAuthException catch (e) {
50 | debugPrint("Sign Out failed. Error: " + e.code);
51 | }
52 | }
53 | }
54 |
55 | var auth =
56 | new AuthService(); // if necessary. Feel free to delete this line if you prefer use locator
57 |
--------------------------------------------------------------------------------
/lib/services/firebase/firestore.service.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_starter/services/base.service.dart';
2 |
3 | class FirestoreService extends BaseService {}
4 |
--------------------------------------------------------------------------------
/lib/services/local/local.service.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_starter/services/base.service.dart';
2 |
3 | class LocalService extends BaseService {}
4 |
--------------------------------------------------------------------------------
/lib/viewmodels/base.viewmodel.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/widgets.dart';
2 | import '../helpers/enums.dart';
3 |
4 | /// [BaseViewModel]
5 | /// The base viewmodel which is inheritate by all the others viewmodel.
6 | /// It provide the base things every viewmodels will need.
7 | /// It can be used also to handle the view's state.
8 | /// If you are performing a task that require to be performs before a rendering
9 | /// just set the _state to ViewState.Busy and to ViewState.Idle if everything
10 | /// is normally done.
11 | class BaseViewModel extends ChangeNotifier {
12 | ViewState _state = ViewState.Idle;
13 |
14 | ViewState get state => _state;
15 |
16 | void setState(ViewState viewState) {
17 | _state = viewState;
18 | notifyListeners();
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/lib/viewmodels/login.viewmodel.dart:
--------------------------------------------------------------------------------
1 | import 'base.viewmodel.dart';
2 |
3 | class LoginViewModel extends BaseViewModel {}
4 |
--------------------------------------------------------------------------------
/lib/views/base.view.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:provider/provider.dart';
3 | import '../viewmodels/base.viewmodel.dart';
4 | import '../../locator.dart';
5 |
6 | /// [BaseView]
7 | /// Base class to manage a both a view and it related viewmodel
8 | /// powered by provider package
9 | class BaseView extends StatefulWidget {
10 | final Widget Function(BuildContext context, T model, Widget? child)? builder;
11 | final Function(T)? onModelReady;
12 |
13 | const BaseView({
14 | Key? key,
15 | required this.builder,
16 | this.onModelReady,
17 | }) : super(key: key);
18 |
19 | @override
20 | _BaseViewState createState() => _BaseViewState();
21 | }
22 |
23 | class _BaseViewState extends State> {
24 | T model = locator();
25 |
26 | @override
27 | void initState() {
28 | if (widget.onModelReady != null) {
29 | widget.onModelReady!(model);
30 | }
31 | super.initState();
32 | }
33 |
34 | @override
35 | Widget build(BuildContext context) {
36 | return ChangeNotifierProvider(
37 | create: (context) => model,
38 | child: Consumer(builder: widget.builder!));
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/lib/views/create_view.sh:
--------------------------------------------------------------------------------
1 | mkdir $1
2 | cd $1
3 | mkdir widgets
4 | cp ../../helpers/empty_view.dart $1_view.dart
5 | touch ../../viewmodels/$1_viewmodel.dart
6 | code $1_view.dart
--------------------------------------------------------------------------------
/lib/views/home/home.view.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'widgets/custom.widget.dart';
3 |
4 | class HomeView extends StatefulWidget {
5 | static const routeName = '/';
6 | HomeView({Key? key}) : super(key: key);
7 |
8 | @override
9 | _HomeViewState createState() => _HomeViewState();
10 | }
11 |
12 | class _HomeViewState extends State {
13 | @override
14 | Widget build(BuildContext context) {
15 | return Scaffold(
16 | body: Column(),
17 | );
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/lib/views/home/widgets/custom.widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CustomWidget extends StatelessWidget {
4 | const CustomWidget({Key? key}) : super(key: key);
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return Container(
9 | child: Text(
10 | "This is a custom widget",
11 | ),
12 | );
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/lib/views/login/login.view.dart:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/lib/views/wide_scope_base.view.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:provider/provider.dart';
3 | import '../viewmodels/base.viewmodel.dart';
4 | import '../../locator.dart';
5 |
6 | /// [WideScopeBaseView]
7 | /// Base class to manage a both a view and it related viewmodel
8 | /// powered by provider package
9 | class WideScopeBaseView extends StatefulWidget {
10 | final Widget Function(BuildContext context, T model) builder;
11 |
12 | const WideScopeBaseView({
13 | required this.builder,
14 | this.listen = false,
15 | Key? key,
16 | }) : super(key: key);
17 | final bool listen;
18 | @override
19 | _WideScopeBaseViewState createState() => _WideScopeBaseViewState();
20 | }
21 |
22 | class _WideScopeBaseViewState
23 | extends State> {
24 | late T model;
25 | @override
26 | void initState() {
27 | if (mounted && !widget.listen) {
28 | model = Provider.of(
29 | context,
30 | listen: widget.listen,
31 | );
32 | }
33 | super.initState();
34 | }
35 |
36 | @override
37 | void dispose() {
38 | super.dispose();
39 | }
40 |
41 | @override
42 | void didChangeDependencies() {
43 | if (mounted && widget.listen) {
44 | model = Provider.of(
45 | context,
46 | listen: widget.listen,
47 | );
48 | }
49 | // TODO: implement didChangeDependencies
50 | super.didChangeDependencies();
51 | }
52 |
53 | @override
54 | Widget build(BuildContext context) {
55 | return Builder(builder: (context) {
56 | return widget.builder(context, model);
57 | });
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/lib/views/widgets/global.widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class GlobalWidget extends StatelessWidget {
4 | const GlobalWidget({Key? key}) : super(key: key);
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return Container();
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | _fe_analyzer_shared:
5 | dependency: transitive
6 | description:
7 | name: _fe_analyzer_shared
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "47.0.0"
11 | _flutterfire_internals:
12 | dependency: transitive
13 | description:
14 | name: _flutterfire_internals
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "1.0.2"
18 | analyzer:
19 | dependency: transitive
20 | description:
21 | name: analyzer
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "4.7.0"
25 | args:
26 | dependency: transitive
27 | description:
28 | name: args
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "2.3.1"
32 | async:
33 | dependency: transitive
34 | description:
35 | name: async
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "2.9.0"
39 | boolean_selector:
40 | dependency: transitive
41 | description:
42 | name: boolean_selector
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "2.1.0"
46 | characters:
47 | dependency: transitive
48 | description:
49 | name: characters
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.2.1"
53 | clock:
54 | dependency: transitive
55 | description:
56 | name: clock
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.1.1"
60 | cloud_firestore:
61 | dependency: "direct main"
62 | description:
63 | name: cloud_firestore
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "2.5.4"
67 | cloud_firestore_platform_interface:
68 | dependency: transitive
69 | description:
70 | name: cloud_firestore_platform_interface
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "5.7.7"
74 | cloud_firestore_web:
75 | dependency: transitive
76 | description:
77 | name: cloud_firestore_web
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "2.8.10"
81 | collection:
82 | dependency: transitive
83 | description:
84 | name: collection
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "1.16.0"
88 | convert:
89 | dependency: transitive
90 | description:
91 | name: convert
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "3.0.2"
95 | coverage:
96 | dependency: transitive
97 | description:
98 | name: coverage
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "1.6.1"
102 | crypto:
103 | dependency: transitive
104 | description:
105 | name: crypto
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "3.0.2"
109 | cupertino_icons:
110 | dependency: "direct main"
111 | description:
112 | name: cupertino_icons
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "1.0.5"
116 | dio:
117 | dependency: "direct main"
118 | description:
119 | name: dio
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "4.0.6"
123 | fake_async:
124 | dependency: transitive
125 | description:
126 | name: fake_async
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "1.3.1"
130 | file:
131 | dependency: transitive
132 | description:
133 | name: file
134 | url: "https://pub.dartlang.org"
135 | source: hosted
136 | version: "6.1.4"
137 | firebase:
138 | dependency: "direct main"
139 | description:
140 | name: firebase
141 | url: "https://pub.dartlang.org"
142 | source: hosted
143 | version: "9.0.3"
144 | firebase_auth:
145 | dependency: "direct main"
146 | description:
147 | name: firebase_auth
148 | url: "https://pub.dartlang.org"
149 | source: hosted
150 | version: "1.4.1"
151 | firebase_auth_platform_interface:
152 | dependency: transitive
153 | description:
154 | name: firebase_auth_platform_interface
155 | url: "https://pub.dartlang.org"
156 | source: hosted
157 | version: "4.3.1"
158 | firebase_auth_web:
159 | dependency: transitive
160 | description:
161 | name: firebase_auth_web
162 | url: "https://pub.dartlang.org"
163 | source: hosted
164 | version: "1.3.1"
165 | firebase_core:
166 | dependency: "direct main"
167 | description:
168 | name: firebase_core
169 | url: "https://pub.dartlang.org"
170 | source: hosted
171 | version: "1.24.0"
172 | firebase_core_platform_interface:
173 | dependency: transitive
174 | description:
175 | name: firebase_core_platform_interface
176 | url: "https://pub.dartlang.org"
177 | source: hosted
178 | version: "4.5.1"
179 | firebase_core_web:
180 | dependency: transitive
181 | description:
182 | name: firebase_core_web
183 | url: "https://pub.dartlang.org"
184 | source: hosted
185 | version: "1.7.3"
186 | firebase_storage:
187 | dependency: "direct main"
188 | description:
189 | name: firebase_storage
190 | url: "https://pub.dartlang.org"
191 | source: hosted
192 | version: "8.1.3"
193 | firebase_storage_platform_interface:
194 | dependency: transitive
195 | description:
196 | name: firebase_storage_platform_interface
197 | url: "https://pub.dartlang.org"
198 | source: hosted
199 | version: "2.1.2"
200 | firebase_storage_web:
201 | dependency: transitive
202 | description:
203 | name: firebase_storage_web
204 | url: "https://pub.dartlang.org"
205 | source: hosted
206 | version: "1.1.2"
207 | flutter:
208 | dependency: "direct main"
209 | description: flutter
210 | source: sdk
211 | version: "0.0.0"
212 | flutter_lints:
213 | dependency: "direct dev"
214 | description:
215 | name: flutter_lints
216 | url: "https://pub.dartlang.org"
217 | source: hosted
218 | version: "1.0.4"
219 | flutter_test:
220 | dependency: "direct dev"
221 | description: flutter
222 | source: sdk
223 | version: "0.0.0"
224 | flutter_web_plugins:
225 | dependency: transitive
226 | description: flutter
227 | source: sdk
228 | version: "0.0.0"
229 | frontend_server_client:
230 | dependency: transitive
231 | description:
232 | name: frontend_server_client
233 | url: "https://pub.dartlang.org"
234 | source: hosted
235 | version: "2.1.3"
236 | get_it:
237 | dependency: "direct main"
238 | description:
239 | name: get_it
240 | url: "https://pub.dartlang.org"
241 | source: hosted
242 | version: "7.2.0"
243 | glob:
244 | dependency: transitive
245 | description:
246 | name: glob
247 | url: "https://pub.dartlang.org"
248 | source: hosted
249 | version: "2.1.0"
250 | http:
251 | dependency: transitive
252 | description:
253 | name: http
254 | url: "https://pub.dartlang.org"
255 | source: hosted
256 | version: "0.13.5"
257 | http_multi_server:
258 | dependency: transitive
259 | description:
260 | name: http_multi_server
261 | url: "https://pub.dartlang.org"
262 | source: hosted
263 | version: "3.2.1"
264 | http_parser:
265 | dependency: transitive
266 | description:
267 | name: http_parser
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "4.0.1"
271 | intl:
272 | dependency: transitive
273 | description:
274 | name: intl
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "0.17.0"
278 | io:
279 | dependency: transitive
280 | description:
281 | name: io
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "1.0.3"
285 | js:
286 | dependency: transitive
287 | description:
288 | name: js
289 | url: "https://pub.dartlang.org"
290 | source: hosted
291 | version: "0.6.4"
292 | lints:
293 | dependency: transitive
294 | description:
295 | name: lints
296 | url: "https://pub.dartlang.org"
297 | source: hosted
298 | version: "1.0.1"
299 | logging:
300 | dependency: transitive
301 | description:
302 | name: logging
303 | url: "https://pub.dartlang.org"
304 | source: hosted
305 | version: "1.1.0"
306 | matcher:
307 | dependency: transitive
308 | description:
309 | name: matcher
310 | url: "https://pub.dartlang.org"
311 | source: hosted
312 | version: "0.12.12"
313 | material_color_utilities:
314 | dependency: transitive
315 | description:
316 | name: material_color_utilities
317 | url: "https://pub.dartlang.org"
318 | source: hosted
319 | version: "0.1.5"
320 | meta:
321 | dependency: transitive
322 | description:
323 | name: meta
324 | url: "https://pub.dartlang.org"
325 | source: hosted
326 | version: "1.8.0"
327 | mime:
328 | dependency: transitive
329 | description:
330 | name: mime
331 | url: "https://pub.dartlang.org"
332 | source: hosted
333 | version: "1.0.2"
334 | nested:
335 | dependency: transitive
336 | description:
337 | name: nested
338 | url: "https://pub.dartlang.org"
339 | source: hosted
340 | version: "1.0.0"
341 | node_preamble:
342 | dependency: transitive
343 | description:
344 | name: node_preamble
345 | url: "https://pub.dartlang.org"
346 | source: hosted
347 | version: "2.0.1"
348 | package_config:
349 | dependency: transitive
350 | description:
351 | name: package_config
352 | url: "https://pub.dartlang.org"
353 | source: hosted
354 | version: "2.1.0"
355 | path:
356 | dependency: transitive
357 | description:
358 | name: path
359 | url: "https://pub.dartlang.org"
360 | source: hosted
361 | version: "1.8.2"
362 | plugin_platform_interface:
363 | dependency: transitive
364 | description:
365 | name: plugin_platform_interface
366 | url: "https://pub.dartlang.org"
367 | source: hosted
368 | version: "2.1.3"
369 | pool:
370 | dependency: transitive
371 | description:
372 | name: pool
373 | url: "https://pub.dartlang.org"
374 | source: hosted
375 | version: "1.5.1"
376 | provider:
377 | dependency: "direct main"
378 | description:
379 | name: provider
380 | url: "https://pub.dartlang.org"
381 | source: hosted
382 | version: "5.0.0"
383 | pub_semver:
384 | dependency: transitive
385 | description:
386 | name: pub_semver
387 | url: "https://pub.dartlang.org"
388 | source: hosted
389 | version: "2.1.1"
390 | shelf:
391 | dependency: transitive
392 | description:
393 | name: shelf
394 | url: "https://pub.dartlang.org"
395 | source: hosted
396 | version: "1.4.0"
397 | shelf_packages_handler:
398 | dependency: transitive
399 | description:
400 | name: shelf_packages_handler
401 | url: "https://pub.dartlang.org"
402 | source: hosted
403 | version: "3.0.1"
404 | shelf_static:
405 | dependency: transitive
406 | description:
407 | name: shelf_static
408 | url: "https://pub.dartlang.org"
409 | source: hosted
410 | version: "1.1.1"
411 | shelf_web_socket:
412 | dependency: transitive
413 | description:
414 | name: shelf_web_socket
415 | url: "https://pub.dartlang.org"
416 | source: hosted
417 | version: "1.0.2"
418 | sky_engine:
419 | dependency: transitive
420 | description: flutter
421 | source: sdk
422 | version: "0.0.99"
423 | source_map_stack_trace:
424 | dependency: transitive
425 | description:
426 | name: source_map_stack_trace
427 | url: "https://pub.dartlang.org"
428 | source: hosted
429 | version: "2.1.0"
430 | source_maps:
431 | dependency: transitive
432 | description:
433 | name: source_maps
434 | url: "https://pub.dartlang.org"
435 | source: hosted
436 | version: "0.10.10"
437 | source_span:
438 | dependency: transitive
439 | description:
440 | name: source_span
441 | url: "https://pub.dartlang.org"
442 | source: hosted
443 | version: "1.9.0"
444 | stack_trace:
445 | dependency: transitive
446 | description:
447 | name: stack_trace
448 | url: "https://pub.dartlang.org"
449 | source: hosted
450 | version: "1.10.0"
451 | stream_channel:
452 | dependency: transitive
453 | description:
454 | name: stream_channel
455 | url: "https://pub.dartlang.org"
456 | source: hosted
457 | version: "2.1.0"
458 | string_scanner:
459 | dependency: transitive
460 | description:
461 | name: string_scanner
462 | url: "https://pub.dartlang.org"
463 | source: hosted
464 | version: "1.1.1"
465 | term_glyph:
466 | dependency: transitive
467 | description:
468 | name: term_glyph
469 | url: "https://pub.dartlang.org"
470 | source: hosted
471 | version: "1.2.1"
472 | test:
473 | dependency: "direct main"
474 | description:
475 | name: test
476 | url: "https://pub.dartlang.org"
477 | source: hosted
478 | version: "1.21.4"
479 | test_api:
480 | dependency: transitive
481 | description:
482 | name: test_api
483 | url: "https://pub.dartlang.org"
484 | source: hosted
485 | version: "0.4.12"
486 | test_core:
487 | dependency: transitive
488 | description:
489 | name: test_core
490 | url: "https://pub.dartlang.org"
491 | source: hosted
492 | version: "0.4.16"
493 | typed_data:
494 | dependency: transitive
495 | description:
496 | name: typed_data
497 | url: "https://pub.dartlang.org"
498 | source: hosted
499 | version: "1.3.1"
500 | vector_math:
501 | dependency: transitive
502 | description:
503 | name: vector_math
504 | url: "https://pub.dartlang.org"
505 | source: hosted
506 | version: "2.1.2"
507 | vm_service:
508 | dependency: transitive
509 | description:
510 | name: vm_service
511 | url: "https://pub.dartlang.org"
512 | source: hosted
513 | version: "9.4.0"
514 | watcher:
515 | dependency: transitive
516 | description:
517 | name: watcher
518 | url: "https://pub.dartlang.org"
519 | source: hosted
520 | version: "1.0.1"
521 | web_socket_channel:
522 | dependency: transitive
523 | description:
524 | name: web_socket_channel
525 | url: "https://pub.dartlang.org"
526 | source: hosted
527 | version: "2.2.0"
528 | webkit_inspection_protocol:
529 | dependency: transitive
530 | description:
531 | name: webkit_inspection_protocol
532 | url: "https://pub.dartlang.org"
533 | source: hosted
534 | version: "1.2.0"
535 | yaml:
536 | dependency: transitive
537 | description:
538 | name: yaml
539 | url: "https://pub.dartlang.org"
540 | source: hosted
541 | version: "3.1.1"
542 | sdks:
543 | dart: ">=2.17.0 <3.0.0"
544 | flutter: ">=1.20.0"
545 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_starter
2 | description: A new Flutter project.
3 |
4 | publish_to: 'none'
5 |
6 | version: 1.0.0+1
7 |
8 | environment:
9 | sdk: ">=2.12.0 <3.0.0"
10 |
11 | dependencies:
12 | flutter:
13 | sdk: flutter
14 |
15 |
16 | cupertino_icons: ^1.0.2
17 | get_it: ^7.1.3
18 | provider: ^5.0.0
19 | test: ^1.16.8
20 | dio: ^4.0.0
21 | firebase: ^9.0.1
22 | firebase_core: ^1.3.0
23 | cloud_firestore: ^2.2.2
24 | firebase_storage: ^8.1.3
25 | firebase_auth: ^1.4.1
26 |
27 | dev_dependencies:
28 | flutter_lints: ^1.0.3
29 | flutter_test:
30 | sdk: flutter
31 |
32 | flutter:
33 |
34 | uses-material-design: true
35 |
36 | assets:
37 | - assets/
38 |
39 | # fonts:
40 | # - family: Schyler
41 | # fonts:
42 | # - asset: fonts/Schyler-Regular.ttf
43 | # - asset: fonts/Schyler-Italic.ttf
44 | # style: italic
45 | # - family: Trajan Pro
46 | # fonts:
47 | # - asset: fonts/TrajanPro.ttf
48 | # - asset: fonts/TrajanPro_Bold.ttf
49 | # weight: 700
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 | import '../lib/main.dart';
11 |
12 | void main() {
13 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
14 | // Build our app and trigger a frame.
15 | await tester.pumpWidget(App());
16 |
17 | // Verify that our counter starts at 0.
18 | expect(find.text('0'), findsOneWidget);
19 | expect(find.text('1'), findsNothing);
20 |
21 | // Tap the '+' icon and trigger a frame.
22 | await tester.tap(find.byIcon(Icons.add));
23 | await tester.pump();
24 |
25 | // Verify that our counter has incremented.
26 | expect(find.text('0'), findsNothing);
27 | expect(find.text('1'), findsOneWidget);
28 | });
29 | }
30 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/NemesisX1/flutter-starter-architecture/7427e99b05d208952f256de29d9d03707d547134/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | flutter_starter
27 |
28 |
29 |
30 |
33 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "flutter_starter",
3 | "short_name": "flutter_starter",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------