├── .github
└── PULL_REQUEST_TEMPLATE.md
├── .gitignore
├── .metadata
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ ├── coolbeatz71
│ │ │ │ └── todo_app
│ │ │ │ │ └── MainActivity.kt
│ │ │ │ └── example
│ │ │ │ └── todo_app
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable
│ │ │ ├── app_icon.png
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── raw
│ │ │ ├── keep.xml
│ │ │ └── wecker_sound.mp3
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── settings.gradle
└── settings_aar.gradle
├── assets
└── images
│ ├── dont-know.gif
│ ├── to-do-list.svg
│ ├── undraw_ideas.svg
│ └── undraw_no_data.svg
├── fonts
├── OpenSans-Bold.ttf
├── OpenSans-ExtraBold.ttf
├── OpenSans-Light.ttf
├── OpenSans-Regular.ttf
└── OpenSans-SemiBold.ttf
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── flutter_export_environment.sh
├── Podfile
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── 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
└── wecker_sound.aiff
├── lib
├── bloc
│ ├── task_bloc.dart
│ ├── task_event.dart
│ └── task_state.dart
├── core
│ ├── custom_switch.dart
│ ├── dialog.dart
│ ├── flushbar.dart
│ └── validation.dart
├── helpers
│ ├── animation.dart
│ ├── colors.dart
│ └── utils.dart
├── main.dart
├── models
│ └── task.dart
├── routes
│ ├── router.dart
│ └── router.gr.dart
├── services
│ ├── auth_key.dart
│ ├── firestore.dart
│ └── notification.dart
└── views
│ ├── pages
│ ├── details
│ │ ├── completion_task.dart
│ │ ├── details.dart
│ │ ├── reminder_status.dart
│ │ ├── task_icon.dart
│ │ ├── task_list.dart
│ │ └── task_list_tile.dart
│ ├── home
│ │ ├── bottomsheet.dart
│ │ ├── btn_create_task.dart
│ │ └── home.dart
│ ├── profile
│ │ ├── active_task
│ │ │ └── active_task.dart
│ │ ├── all_task
│ │ │ └── all_task.page.dart
│ │ ├── completed_task
│ │ │ └── completed_task.dart
│ │ └── profile.dart
│ └── wrapper.dart
│ └── widgets
│ ├── add_task_fb.dart
│ ├── date_picker_timeline
│ ├── core
│ │ ├── dimen.dart
│ │ └── style.dart
│ ├── date_picker_timeline.dart
│ ├── date_widget.dart
│ └── gestures
│ │ └── tap.dart
│ ├── day_task.dart
│ ├── forms
│ └── task_form.dart
│ ├── illustration.dart
│ ├── no_data_illustration.dart
│ ├── task_card
│ ├── card_color.dart
│ ├── custom_painter.dart
│ ├── task_card.dart
│ ├── text_info.dart
│ └── time_board.dart
│ └── task_list.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── widget_test.dart
/.github/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | #### Description
2 |
3 | #### Type of change
4 |
5 | Please select the relevant option
6 |
7 | - [ ] Bug fix (non-breaking change which fixes an issue)
8 | - [ ] New feature (non-breaking change which adds functionality)
9 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
10 | - [ ] Others (cosmetics, styling, improvements)
11 | - [ ] This change requires a documentation update
12 |
13 | #### How Has This Been Tested?
14 |
15 | - [ ] Unit
16 | - [ ] Integration
17 | - [ ] End-to-end
18 |
19 | #### How to Test
20 |
21 | Give instructions on how reviewers can verify your work
22 |
23 | #### Any background context you want to add
24 |
25 | [Delivers]
26 |
--------------------------------------------------------------------------------
/.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 | .flutter-plugins*
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | build/
33 |
34 | # Android related
35 | **/android/**/gradle-wrapper.jar
36 | **/android/.gradle
37 | **/android/captures/
38 | **/android/gradlew
39 | **/android/gradlew.bat
40 | **/android/local.properties
41 | **/android/**/GeneratedPluginRegistrant.java
42 |
43 | # iOS/XCode related
44 | **/ios/**/*.mode1v3
45 | **/ios/**/*.mode2v3
46 | **/ios/**/*.moved-aside
47 | **/ios/**/*.pbxuser
48 | **/ios/**/*.perspectivev3
49 | **/ios/**/*sync/
50 | **/ios/**/.sconsign.dblite
51 | **/ios/**/.tags*
52 | **/ios/**/.vagrant/
53 | **/ios/**/DerivedData/
54 | **/ios/**/Icon?
55 | **/ios/**/Pods/
56 | **/ios/**/.symlinks/
57 | **/ios/**/profile
58 | **/ios/**/xcuserdata
59 | **/ios/.generated/
60 | **/ios/Flutter/App.framework
61 | **/ios/Flutter/Flutter.framework
62 | **/ios/Flutter/Generated.xcconfig
63 | **/ios/Flutter/app.flx
64 | **/ios/Flutter/app.zip
65 | **/ios/Flutter/flutter_assets/
66 | **/ios/ServiceDefinitions.json
67 | **/ios/Runner/GeneratedPluginRegistrant.*
68 |
69 |
70 | ### https://raw.github.com/github/gitignore//Android.gitignore
71 |
72 | # Built application files
73 | *.apk
74 | *.ap_
75 |
76 | # Files for the ART/Dalvik VM
77 | *.dex
78 |
79 | # Java class files
80 | *.class
81 |
82 | # Generated files
83 | bin/
84 | gen/
85 | out/
86 |
87 | # Gradle files
88 | .gradle/
89 | build/
90 |
91 | # Local configuration file (sdk path, etc)
92 | local.properties
93 |
94 | # Proguard folder generated by Eclipse
95 | proguard/
96 |
97 | # Log Files
98 | *.log
99 |
100 | # Android Studio Navigation editor temp files
101 | .navigation/
102 |
103 | # Android Studio captures folder
104 | captures/
105 |
106 | # IntelliJ
107 | *.iml
108 | .idea/workspace.xml
109 | .idea/tasks.xml
110 | .idea/gradle.xml
111 | .idea/assetWizardSettings.xml
112 | .idea/dictionaries
113 | .idea/libraries
114 | .idea/caches
115 |
116 | # Keystore files
117 | # Uncomment the following line if you do not want to check your keystore files in.
118 | #*.jks
119 |
120 | # External native build folder generated in Android Studio 2.2 and later
121 | .externalNativeBuild
122 |
123 | # Google Services (e.g. APIs or Firebase)
124 | *google-services.json
125 | *GoogleService-Info.plist
126 |
127 | # Freeline
128 | freeline.py
129 | freeline/
130 | freeline_project_description.json
131 |
132 | # fastlane
133 | fastlane/report.xml
134 | fastlane/Preview.html
135 | fastlane/screenshots
136 | fastlane/test_output
137 | fastlane/readme.md
138 |
139 |
140 | ### https://raw.github.com/github/gitignore//Dart.gitignore
141 |
142 | # See https://www.dartlang.org/guides/libraries/private-files
143 |
144 | # Files and directories created by pub
145 | .dart_tool/
146 | .packages
147 | build/
148 | # If you're building an application, you may want to check-in your pubspec.lock
149 | pubspec.lock
150 |
151 | # Directory created by dartdoc
152 | # If you don't generate documentation locally you can remove this line.
153 | doc/api/
154 |
155 | # Avoid committing generated Javascript files:
156 | *.dart.js
157 | *.info.json # Produced by the --dump-info flag.
158 | *.js # When generated by dart2js. Don't specify *.js if your
159 | # project includes source files written in JavaScript.
160 | *.js_
161 | *.js.deps
162 | *.js.map
163 |
164 |
165 | ### https://raw.github.com/github/gitignore//Global/JetBrains.gitignore
166 |
167 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
168 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
169 |
170 | # User-specific stuff
171 | .idea/**/workspace.xml
172 | .idea/**/tasks.xml
173 | .idea/**/usage.statistics.xml
174 | .idea/**/dictionaries
175 | .idea/**/shelf
176 |
177 | # Generated files
178 | .idea/**/contentModel.xml
179 |
180 | # Sensitive or high-churn files
181 | .idea/**/dataSources/
182 | .idea/**/dataSources.ids
183 | .idea/**/dataSources.local.xml
184 | .idea/**/sqlDataSources.xml
185 | .idea/**/dynamic.xml
186 | .idea/**/uiDesigner.xml
187 | .idea/**/dbnavigator.xml
188 |
189 | # Gradle
190 | .idea/**/gradle.xml
191 | .idea/**/libraries
192 |
193 | # Gradle and Maven with auto-import
194 | # When using Gradle or Maven with auto-import, you should exclude module files,
195 | # since they will be recreated, and may cause churn. Uncomment if using
196 | # auto-import.
197 | # .idea/modules.xml
198 | # .idea/*.iml
199 | # .idea/modules
200 |
201 | # CMake
202 | cmake-build-*/
203 |
204 | # Mongo Explorer plugin
205 | .idea/**/mongoSettings.xml
206 |
207 | # File-based project format
208 | *.iws
209 |
210 | # IntelliJ
211 | out/
212 |
213 | # mpeltonen/sbt-idea plugin
214 | .idea_modules/
215 |
216 | # JIRA plugin
217 | atlassian-ide-plugin.xml
218 |
219 | # Cursive Clojure plugin
220 | .idea/replstate.xml
221 |
222 | # Crashlytics plugin (for Android Studio and IntelliJ)
223 | com_crashlytics_export_strings.xml
224 | crashlytics.properties
225 | crashlytics-build.properties
226 | fabric.properties
227 |
228 | # Editor-based Rest Client
229 | .idea/httpRequests
230 |
231 | # Android studio 3.1+ serialized cache file
232 | .idea/caches/build_file_checksums.ser
233 |
234 |
235 | ### https://raw.github.com/github/gitignore//Global/macOS.gitignore
236 |
237 | # General
238 | .DS_Store
239 | .AppleDouble
240 | .LSOverride
241 |
242 | # Icon must end with two \r
243 | Icon
244 |
245 |
246 | # Thumbnails
247 | ._*
248 |
249 | # Files that might appear in the root of a volume
250 | .DocumentRevisions-V100
251 | .fseventsd
252 | .Spotlight-V100
253 | .TemporaryItems
254 | .Trashes
255 | .VolumeIcon.icns
256 | .com.apple.timemachine.donotpresent
257 |
258 | # Directories potentially created on remote AFP share
259 | .AppleDB
260 | .AppleDesktop
261 | Network Trash Folder
262 | Temporary Items
263 | .apdisk
264 |
265 |
266 | ### https://raw.github.com/github/gitignore//Global/Xcode.gitignore
267 |
268 | # Xcode
269 | #
270 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
271 |
272 | ## User settings
273 | xcuserdata/
274 |
275 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
276 | *.xcscmblueprint
277 | *.xccheckout
278 |
279 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
280 | build/
281 | DerivedData/
282 | *.moved-aside
283 | *.pbxuser
284 | !default.pbxuser
285 | *.mode1v3
286 | !default.mode1v3
287 | *.mode2v3
288 | !default.mode2v3
289 | *.perspectivev3
290 | !default.perspectivev3
291 |
292 |
293 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/Archives.gitignore
294 |
295 | # It's better to unpack these files and commit the raw source because
296 | # git has its own built in compression methods.
297 | *.7z
298 | *.jar
299 | *.rar
300 | *.zip
301 | *.gz
302 | *.tgz
303 | *.bzip
304 | *.bz2
305 | *.xz
306 | *.lzma
307 | *.cab
308 |
309 | # Packing-only formats
310 | *.iso
311 | *.tar
312 |
313 | # Package management formats
314 | *.dmg
315 | *.xpi
316 | *.gem
317 | *.egg
318 | *.deb
319 | *.rpm
320 | *.msi
321 | *.msm
322 | *.msp
323 |
324 |
325 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/Backup.gitignore
326 |
327 | *.bak
328 | *.gho
329 | *.ori
330 | *.orig
331 | *.tmp
332 |
333 |
334 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Android.gitignore
335 |
336 | # Built application files
337 | *.apk
338 | *.ap_
339 |
340 | # Files for the ART/Dalvik VM
341 | *.dex
342 |
343 | # Java class files
344 | *.class
345 |
346 | # Generated files
347 | bin/
348 | gen/
349 | out/
350 |
351 | # Gradle files
352 | .gradle/
353 | build/
354 |
355 | # Local configuration file (sdk path, etc)
356 | local.properties
357 |
358 | # Proguard folder generated by Eclipse
359 | proguard/
360 |
361 | # Log Files
362 | *.log
363 |
364 | # Android Studio Navigation editor temp files
365 | .navigation/
366 |
367 | # Android Studio captures folder
368 | captures/
369 |
370 | # IntelliJ
371 | *.iml
372 | .idea/workspace.xml
373 | .idea/tasks.xml
374 | .idea/gradle.xml
375 | .idea/assetWizardSettings.xml
376 | .idea/dictionaries
377 | .idea/libraries
378 | .idea/caches
379 |
380 | # Keystore files
381 | # Uncomment the following line if you do not want to check your keystore files in.
382 | #*.jks
383 |
384 | # External native build folder generated in Android Studio 2.2 and later
385 | .externalNativeBuild
386 |
387 | # Google Services (e.g. APIs or Firebase)
388 | google-services.json
389 |
390 | # Freeline
391 | freeline.py
392 | freeline/
393 | freeline_project_description.json
394 |
395 | # fastlane
396 | fastlane/report.xml
397 | fastlane/Preview.html
398 | fastlane/screenshots
399 | fastlane/test_output
400 | fastlane/readme.md
401 |
402 |
403 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Dart.gitignore
404 |
405 | # See https://www.dartlang.org/guides/libraries/private-files
406 |
407 | # Files and directories created by pub
408 | .dart_tool/
409 | .packages
410 | build/
411 | # If you're building an application, you may want to check-in your pubspec.lock
412 | pubspec.lock
413 |
414 | # Directory created by dartdoc
415 | # If you don't generate documentation locally you can remove this line.
416 | doc/api/
417 |
418 | # Avoid committing generated Javascript files:
419 | *.dart.js
420 | *.info.json # Produced by the --dump-info flag.
421 | *.js # When generated by dart2js. Don't specify *.js if your
422 | # project includes source files written in JavaScript.
423 | *.js_
424 | *.js.deps
425 | *.js.map
426 |
427 |
428 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/DartEditor.gitignore
429 |
430 | .project
431 | .buildlog
432 |
433 |
434 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/Emacs.gitignore
435 |
436 | # -*- mode: gitignore; -*-
437 | *~
438 | \#*\#
439 | /.emacs.desktop
440 | /.emacs.desktop.lock
441 | *.elc
442 | auto-save-list
443 | tramp
444 | .\#*
445 |
446 | # Org-mode
447 | .org-id-locations
448 | *_archive
449 |
450 | # flymake-mode
451 | *_flymake.*
452 |
453 | # eshell files
454 | /eshell/history
455 | /eshell/lastdir
456 |
457 | # elpa packages
458 | /elpa/
459 |
460 | # reftex files
461 | *.rel
462 |
463 | # AUCTeX auto folder
464 | /auto/
465 |
466 | # cask packages
467 | .cask/
468 | dist/
469 |
470 | # Flycheck
471 | flycheck_*.el
472 |
473 | # server auth directory
474 | /server/
475 |
476 | # projectiles files
477 | .projectile
478 |
479 | # directory configuration
480 | .dir-locals.el
481 |
482 |
483 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Gradle.gitignore
484 |
485 | .gradle
486 | /build/
487 |
488 | # Ignore Gradle GUI config
489 | gradle-app.setting
490 |
491 | # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
492 | !gradle-wrapper.jar
493 |
494 | # Cache of project
495 | .gradletasknamecache
496 |
497 | # # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
498 | # gradle/wrapper/gradle-wrapper.properties
499 |
500 |
501 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Java.gitignore
502 |
503 | # Compiled class file
504 | *.class
505 |
506 | # Log file
507 | *.log
508 |
509 | # BlueJ files
510 | *.ctxt
511 |
512 | # Mobile Tools for Java (J2ME)
513 | .mtj.tmp/
514 |
515 | # Package Files #
516 | *.jar
517 | *.war
518 | *.nar
519 | *.ear
520 | *.zip
521 | *.tar.gz
522 | *.rar
523 |
524 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
525 | hs_err_pid*
526 |
527 |
528 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/JetBrains.gitignore
529 |
530 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
531 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
532 |
533 | # User-specific stuff
534 | .idea/**/workspace.xml
535 | .idea/**/tasks.xml
536 | .idea/**/usage.statistics.xml
537 | .idea/**/dictionaries
538 | .idea/**/shelf
539 |
540 | # Generated files
541 | .idea/**/contentModel.xml
542 |
543 | # Sensitive or high-churn files
544 | .idea/**/dataSources/
545 | .idea/**/dataSources.ids
546 | .idea/**/dataSources.local.xml
547 | .idea/**/sqlDataSources.xml
548 | .idea/**/dynamic.xml
549 | .idea/**/uiDesigner.xml
550 | .idea/**/dbnavigator.xml
551 |
552 | # Gradle
553 | .idea/**/gradle.xml
554 | .idea/**/libraries
555 |
556 | # Gradle and Maven with auto-import
557 | # When using Gradle or Maven with auto-import, you should exclude module files,
558 | # since they will be recreated, and may cause churn. Uncomment if using
559 | # auto-import.
560 | # .idea/modules.xml
561 | # .idea/*.iml
562 | # .idea/modules
563 |
564 | # CMake
565 | cmake-build-*/
566 |
567 | # Mongo Explorer plugin
568 | .idea/**/mongoSettings.xml
569 |
570 | # File-based project format
571 | *.iws
572 |
573 | # IntelliJ
574 | out/
575 |
576 | # mpeltonen/sbt-idea plugin
577 | .idea_modules/
578 |
579 | # JIRA plugin
580 | atlassian-ide-plugin.xml
581 |
582 | # Cursive Clojure plugin
583 | .idea/replstate.xml
584 |
585 | # Crashlytics plugin (for Android Studio and IntelliJ)
586 | com_crashlytics_export_strings.xml
587 | crashlytics.properties
588 | crashlytics-build.properties
589 | fabric.properties
590 |
591 | # Editor-based Rest Client
592 | .idea/httpRequests
593 |
594 | # Android studio 3.1+ serialized cache file
595 | .idea/caches/build_file_checksums.ser
596 |
597 |
598 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/JEnv.gitignore
599 |
600 | # JEnv local Java version configuration file
601 | .java-version
602 |
603 | # Used by previous versions of JEnv
604 | .jenv-version
605 |
606 |
607 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Kotlin.gitignore
608 |
609 | # Compiled class file
610 | *.class
611 |
612 | # Log file
613 | *.log
614 |
615 | # BlueJ files
616 | *.ctxt
617 |
618 | # Mobile Tools for Java (J2ME)
619 | .mtj.tmp/
620 |
621 | # Package Files #
622 | *.jar
623 | *.war
624 | *.nar
625 | *.ear
626 | *.zip
627 | *.tar.gz
628 | *.rar
629 |
630 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
631 | hs_err_pid*
632 |
633 |
634 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/Linux.gitignore
635 |
636 | *~
637 |
638 | # temporary files which can be created if a process still has a handle open of a deleted file
639 | .fuse_hidden*
640 |
641 | # KDE directory preferences
642 | .directory
643 |
644 | # Linux trash folder which might appear on any partition or disk
645 | .Trash-*
646 |
647 | # .nfs files are created when an open file is removed but is still being accessed
648 | .nfs*
649 |
650 |
651 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/macOS.gitignore
652 |
653 | # General
654 | .DS_Store
655 | .AppleDouble
656 | .LSOverride
657 |
658 | # Icon must end with two \r
659 | Icon
660 |
661 |
662 | # Thumbnails
663 | ._*
664 |
665 | # Files that might appear in the root of a volume
666 | .DocumentRevisions-V100
667 | .fseventsd
668 | .Spotlight-V100
669 | .TemporaryItems
670 | .Trashes
671 | .VolumeIcon.icns
672 | .com.apple.timemachine.donotpresent
673 |
674 | # Directories potentially created on remote AFP share
675 | .AppleDB
676 | .AppleDesktop
677 | Network Trash Folder
678 | Temporary Items
679 | .apdisk
680 |
681 |
682 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Maven.gitignore
683 |
684 | target/
685 | pom.xml.tag
686 | pom.xml.releaseBackup
687 | pom.xml.versionsBackup
688 | pom.xml.next
689 | release.properties
690 | dependency-reduced-pom.xml
691 | buildNumber.properties
692 | .mvn/timing.properties
693 | .mvn/wrapper/maven-wrapper.jar
694 |
695 |
696 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Objective-C.gitignore
697 |
698 | # Xcode
699 | #
700 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
701 |
702 | ## Build generated
703 | build/
704 | DerivedData/
705 |
706 | ## Various settings
707 | *.pbxuser
708 | !default.pbxuser
709 | *.mode1v3
710 | !default.mode1v3
711 | *.mode2v3
712 | !default.mode2v3
713 | *.perspectivev3
714 | !default.perspectivev3
715 | xcuserdata/
716 |
717 | ## Other
718 | *.moved-aside
719 | *.xccheckout
720 | *.xcscmblueprint
721 |
722 | ## Obj-C/Swift specific
723 | *.hmap
724 | *.ipa
725 | *.dSYM.zip
726 | *.dSYM
727 |
728 | # CocoaPods
729 | #
730 | # We recommend against adding the Pods directory to your .gitignore. However
731 | # you should judge for yourself, the pros and cons are mentioned at:
732 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
733 | #
734 | # Pods/
735 | #
736 | # Add this line if you want to avoid checking in source code from the Xcode workspace
737 | # *.xcworkspace
738 |
739 | # Carthage
740 | #
741 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
742 | # Carthage/Checkouts
743 |
744 | Carthage/Build
745 |
746 | # fastlane
747 | #
748 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
749 | # screenshots whenever they are needed.
750 | # For more information about the recommended setup visit:
751 | # https://docs.fastlane.tools/best-practices/source-control/#source-control
752 |
753 | fastlane/report.xml
754 | fastlane/Preview.html
755 | fastlane/screenshots/**/*.png
756 | fastlane/test_output
757 |
758 | # Code Injection
759 | #
760 | # After new code Injection tools there's a generated folder /iOSInjectionProject
761 | # https://github.com/johnno1962/injectionforxcode
762 |
763 | iOSInjectionProject/
764 |
765 |
766 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/SublimeText.gitignore
767 |
768 | # Cache files for Sublime Text
769 | *.tmlanguage.cache
770 | *.tmPreferences.cache
771 | *.stTheme.cache
772 |
773 | # Workspace files are user-specific
774 | *.sublime-workspace
775 |
776 | # Project files should be checked into the repository, unless a significant
777 | # proportion of contributors will probably not be using Sublime Text
778 | # *.sublime-project
779 |
780 | # SFTP configuration file
781 | sftp-config.json
782 |
783 | # Package control specific files
784 | Package Control.last-run
785 | Package Control.ca-list
786 | Package Control.ca-bundle
787 | Package Control.system-ca-bundle
788 | Package Control.cache/
789 | Package Control.ca-certs/
790 | Package Control.merged-ca-bundle
791 | Package Control.user-ca-bundle
792 | oscrypto-ca-bundle.crt
793 | bh_unicode_properties.cache
794 |
795 | # Sublime-github package stores a github token in this file
796 | # https://packagecontrol.io/packages/sublime-github
797 | GitHub.sublime-settings
798 |
799 |
800 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/Vim.gitignore
801 |
802 | # Swap
803 | [._]*.s[a-v][a-z]
804 | [._]*.sw[a-p]
805 | [._]s[a-rt-v][a-z]
806 | [._]ss[a-gi-z]
807 | [._]sw[a-p]
808 |
809 | # Session
810 | Session.vim
811 |
812 | # Temporary
813 | .netrwhist
814 | *~
815 | # Auto-generated tag files
816 | tags
817 | # Persistent undo
818 | [._]*.un~
819 |
820 |
821 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/VisualStudioCode.gitignore
822 |
823 | .vscode/*
824 | !.vscode/settings.json
825 | !.vscode/tasks.json
826 | !.vscode/launch.json
827 | !.vscode/extensions.json
828 |
829 |
830 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/Windows.gitignore
831 |
832 | # Windows thumbnail cache files
833 | Thumbs.db
834 | ehthumbs.db
835 | ehthumbs_vista.db
836 |
837 | # Dump file
838 | *.stackdump
839 |
840 | # Folder config file
841 | [Dd]esktop.ini
842 |
843 | # Recycle Bin used on file shares
844 | $RECYCLE.BIN/
845 |
846 | # Windows Installer files
847 | *.cab
848 | *.msi
849 | *.msix
850 | *.msm
851 | *.msp
852 |
853 | # Windows shortcuts
854 | *.lnk
855 |
856 |
857 | ### https://raw.github.com/github/gitignore/340e2fe08a2356c2e3760ff58c3a9e1fddf08060/Global/Xcode.gitignore
858 |
859 | # Xcode
860 | #
861 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
862 |
863 | ## User settings
864 | xcuserdata/
865 |
866 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
867 | *.xcscmblueprint
868 | *.xccheckout
869 |
870 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
871 | build/
872 | DerivedData/
873 | *.moved-aside
874 | *.pbxuser
875 | !default.pbxuser
876 | *.mode1v3
877 | !default.mode1v3
878 | *.mode2v3
879 | !default.mode2v3
880 | *.perspectivev3
881 | !default.perspectivev3
882 |
883 |
884 | ### Flutter Generated Exceptions
885 |
886 | # Exceptions to above rules.
887 | !**/ios/**/default.mode1v3
888 | !**/ios/**/default.mode2v3
889 | !**/ios/**/default.pbxuser
890 | !**/ios/**/default.perspectivev3
891 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
892 | TODO.md
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: cc949a8e8b9cf394b9290a8e80f87af3e207dce5
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Task manager app
2 | A fancy task manager application for learning Flutter, Bloc pattern and Firebase
3 |
4 | ## Technologies used
5 | - Flutter
6 | - Bloc
7 | - Dart
8 | - Firebase
9 |
10 | ## How to use it?
11 | You can follow these instructions to build the task manager application and install it onto your device.
12 |
13 | ### Prerequisites
14 | If you are new to Flutter, please first follow
15 | the [Flutter Setup](https://flutter.dev/setup/) guide.
16 |
17 | ### Building and installing the task manager app
18 | * `git clone https://github.com/coolbeatz71/task_manager_flutter/`
19 | * `cd task_manager_flutter`
20 | * `flutter pub get`
21 | * `flutter run --release`
22 |
23 | The `flutter run --release` command both builds and installs the Flutter app.
24 |
25 | ## App user interface showcase
26 | I tried my best to make the User interface more fancy and attractive, here are some illustration pages
27 |
28 | 
29 | 
30 |
31 | 
32 | 
33 |
34 | 
35 | 
36 |
37 | 
38 | 
39 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 28
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.coolbeatz71.flutter_todo_app"
42 | minSdkVersion 16
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
47 | multiDexEnabled true
48 | }
49 |
50 | buildTypes {
51 | release {
52 | // TODO: Add your own signing config for the release build.
53 | // Signing with the debug keys for now, so `flutter run --release` works.
54 | signingConfig signingConfigs.debug
55 | }
56 | }
57 | }
58 |
59 | flutter {
60 | source '../..'
61 | }
62 |
63 | dependencies {
64 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
65 | testImplementation 'junit:junit:4.12'
66 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
67 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
68 | implementation 'com.google.firebase:firebase-analytics:17.2.2'
69 | implementation 'androidx.multidex:multidex:2.0.1'
70 | }
71 |
72 | apply plugin: 'com.google.gms.google-services'
73 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
11 |
15 |
22 |
26 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/coolbeatz71/todo_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.coolbeatz71.todo_app
2 |
3 | import android.os.Bundle
4 |
5 | import io.flutter.app.FlutterActivity
6 | import io.flutter.plugins.GeneratedPluginRegistrant
7 |
8 | class MainActivity: FlutterActivity() {
9 | override fun onCreate(savedInstanceState: Bundle?) {
10 | super.onCreate(savedInstanceState)
11 | GeneratedPluginRegistrant.registerWith(this)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/todo_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.todo_app
2 |
3 | import android.os.Bundle
4 |
5 | import io.flutter.app.FlutterActivity
6 | import io.flutter.plugins.GeneratedPluginRegistrant
7 |
8 | class MainActivity: FlutterActivity() {
9 | override fun onCreate(savedInstanceState: Bundle?) {
10 | super.onCreate(savedInstanceState)
11 | GeneratedPluginRegistrant.registerWith(this)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/app_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/android/app/src/main/res/drawable/app_icon.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/raw/keep.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/android/app/src/main/res/raw/wecker_sound.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/android/app/src/main/res/raw/wecker_sound.mp3
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.0'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.3.1'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | classpath 'com.google.gms:google-services:4.3.3'
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | google()
18 | jcenter()
19 | }
20 | }
21 |
22 | rootProject.buildDir = '../build'
23 | subprojects {
24 | project.buildDir = "${rootProject.buildDir}/${project.name}"
25 | }
26 | subprojects {
27 | project.evaluationDependsOn(':app')
28 | }
29 |
30 | task clean(type: Delete) {
31 | delete rootProject.buildDir
32 | }
33 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 |
3 | android.enableR8=true
4 |
5 | android.useAndroidX=true
6 | android.enableJetifier=true
7 |
--------------------------------------------------------------------------------
/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-4.10.2-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/android/settings_aar.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/assets/images/dont-know.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/assets/images/dont-know.gif
--------------------------------------------------------------------------------
/assets/images/to-do-list.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/assets/images/undraw_no_data.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/fonts/OpenSans-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/fonts/OpenSans-Bold.ttf
--------------------------------------------------------------------------------
/fonts/OpenSans-ExtraBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/fonts/OpenSans-ExtraBold.ttf
--------------------------------------------------------------------------------
/fonts/OpenSans-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/fonts/OpenSans-Light.ttf
--------------------------------------------------------------------------------
/fonts/OpenSans-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/fonts/OpenSans-Regular.ttf
--------------------------------------------------------------------------------
/fonts/OpenSans-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/fonts/OpenSans-SemiBold.ttf
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/flutter_export_environment.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # This is a generated file; do not edit or check into version control.
3 | export "FLUTTER_ROOT=/Users/mutombojean-vincent/desktop/tools/flutter"
4 | export "FLUTTER_APPLICATION_PATH=/Users/mutombojean-vincent/Desktop/projects/todo_app"
5 | export "FLUTTER_TARGET=/Users/mutombojean-vincent/Desktop/projects/todo_app/lib/main.dart"
6 | export "FLUTTER_BUILD_DIR=build"
7 | export "SYMROOT=${SOURCE_ROOT}/../build/ios"
8 | export "FLUTTER_FRAMEWORK_DIR=/Users/mutombojean-vincent/desktop/tools/flutter/bin/cache/artifacts/engine/ios"
9 | export "FLUTTER_BUILD_NAME=1.0.0"
10 | export "FLUTTER_BUILD_NUMBER=1"
11 | export "TRACK_WIDGET_CREATION=true"
12 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def parse_KV_file(file, separator='=')
14 | file_abs_path = File.expand_path(file)
15 | if !File.exists? file_abs_path
16 | return [];
17 | end
18 | generated_key_values = {}
19 | skip_line_start_symbols = ["#", "/"]
20 | File.foreach(file_abs_path) do |line|
21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
22 | plugin = line.split(pattern=separator)
23 | if plugin.length == 2
24 | podname = plugin[0].strip()
25 | path = plugin[1].strip()
26 | podpath = File.expand_path("#{path}", file_abs_path)
27 | generated_key_values[podname] = podpath
28 | else
29 | puts "Invalid plugin specification: #{line}"
30 | end
31 | end
32 | generated_key_values
33 | end
34 |
35 | target 'Runner' do
36 | use_frameworks!
37 | use_modular_headers!
38 |
39 | pod 'Firebase/Analytics'
40 |
41 | # Flutter Pod
42 |
43 | copied_flutter_dir = File.join(__dir__, 'Flutter')
44 | copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
45 | copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
46 | unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)
47 | # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
48 | # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
49 | # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
50 |
51 | generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
52 | unless File.exist?(generated_xcode_build_settings_path)
53 | raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
54 | end
55 | generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
56 | cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];
57 |
58 | unless File.exist?(copied_framework_path)
59 | FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
60 | end
61 | unless File.exist?(copied_podspec_path)
62 | FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
63 | end
64 | end
65 |
66 | # Keep pod path relative so it can be checked into Podfile.lock.
67 | pod 'Flutter', :path => 'Flutter'
68 |
69 | # Plugin Pods
70 |
71 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
72 | # referring to absolute paths on developers' machines.
73 | system('rm -rf .symlinks')
74 | system('mkdir -p .symlinks/plugins')
75 | plugin_pods = parse_KV_file('../.flutter-plugins')
76 | plugin_pods.each do |name, path|
77 | symlink = File.join('.symlinks', 'plugins', name)
78 | File.symlink(path, symlink)
79 | pod name, :path => File.join(symlink, 'ios')
80 | end
81 | end
82 |
83 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
84 | install! 'cocoapods', :disable_input_output_paths => true
85 |
86 | post_install do |installer|
87 | installer.pods_project.targets.each do |target|
88 | target.build_configurations.each do |config|
89 | config.build_settings['ENABLE_BITCODE'] = 'NO'
90 | end
91 | end
92 | end
93 |
--------------------------------------------------------------------------------
/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/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 | import Firebase
4 |
5 | @UIApplicationMain
6 | @objc class AppDelegate: FlutterAppDelegate {
7 | override func application(
8 | _ application: UIApplication,
9 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
10 | ) -> Bool {
11 | FirebaseApp.configure()
12 | GeneratedPluginRegistrant.register(with: self)
13 | if #available(iOS 10.0, *) {
14 | UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate
15 | }
16 | if(!UserDefaults.standard.bool(forKey: "Notification")) {
17 | UIApplication.shared.cancelAllLocalNotifications()
18 | UserDefaults.standard.set(true, forKey: "Notification")
19 | }
20 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/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 | todo_app
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"
--------------------------------------------------------------------------------
/ios/wecker_sound.aiff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coolbeatz71/task_manager_flutter/7a0f5d0cc06a1e171d60f0fd824730b4eb9481a9/ios/wecker_sound.aiff
--------------------------------------------------------------------------------
/lib/bloc/task_bloc.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:bloc/bloc.dart';
4 | import 'package:cloud_firestore/cloud_firestore.dart';
5 | import 'package:equatable/equatable.dart';
6 | import 'package:todo_app/models/task.dart';
7 | import 'package:todo_app/services/firestore.dart';
8 | import 'package:todo_app/services/notification.dart';
9 |
10 | part 'task_event.dart';
11 | part 'task_state.dart';
12 |
13 | class TaskBloc extends Bloc {
14 | final FirestoreService _firestore = FirestoreService();
15 |
16 | @override
17 | TaskState get initialState => TaskInitial();
18 |
19 | @override
20 | Stream mapEventToState(TaskEvent event) async* {
21 | if (event is CreateTaskEvent) {
22 | yield* _mapCreateTask(event);
23 | } else if (event is DeleteTaskEvent) {
24 | yield* _mapDeleteTask(event);
25 | } else if (event is CompleteTaskEvent) {
26 | yield* _mapCompleteTask(event);
27 | } else if (event is UpdateTaskEvent) {
28 | yield* _mapUpdateTask(event);
29 | } else if (event is TaskReminderEvent) {
30 | yield* _mapTaskReminder(event);
31 | }
32 | }
33 |
34 | Stream _mapCreateTask(CreateTaskEvent event) async* {
35 | yield TaskLoading();
36 | DocumentReference ref = await _firestore.createTask(event.task);
37 |
38 | // schedule reminder
39 | if (event.task.isReminderSet == true)
40 | await Reminder().setup(
41 | ref.documentID,
42 | event.task,
43 | );
44 | yield TaskSubmitted();
45 | }
46 |
47 | Stream _mapDeleteTask(DeleteTaskEvent event) async* {
48 | yield TaskDeleting();
49 | await _firestore.deleteTask(event.taskId);
50 | }
51 |
52 | Stream _mapCompleteTask(CompleteTaskEvent event) async* {
53 | yield TaskCompleting();
54 | await _firestore.completeTask(event.taskId, event.isCompleted);
55 | yield TaskCompleted();
56 | }
57 |
58 | Stream _mapTaskReminder(TaskReminderEvent event) async* {
59 | yield TaskReminderSetting();
60 | await _firestore.setTaskReminder(event.task.id, event.isReminderSet);
61 |
62 | // schedule reminder
63 | if (event.isReminderSet == true)
64 | await Reminder().setup(
65 | event.task.id,
66 | event.task,
67 | );
68 | yield TaskReminderSet();
69 | }
70 |
71 | Stream _mapUpdateTask(UpdateTaskEvent event) async* {
72 | yield TaskLoading();
73 | await _firestore.updateTask(event.taskId, event.task);
74 |
75 | // schedule reminder
76 | if (event.task.isReminderSet == true)
77 | await Reminder().setup(
78 | event.taskId,
79 | event.task,
80 | );
81 | yield TaskSubmitted();
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/lib/bloc/task_event.dart:
--------------------------------------------------------------------------------
1 | part of 'task_bloc.dart';
2 |
3 | abstract class TaskEvent extends Equatable {
4 | const TaskEvent();
5 | }
6 |
7 | class CreateTaskEvent extends TaskEvent {
8 | final Task task;
9 |
10 | CreateTaskEvent(this.task);
11 |
12 | @override
13 | List