├── .gitignore
├── .metadata
├── LICENSE.txt
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── task_manager_app
│ │ │ │ └── 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
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── fonts
│ ├── Sora-Bold.ttf
│ ├── Sora-ExtraBold.ttf
│ ├── Sora-ExtraLight.ttf
│ ├── Sora-Light.ttf
│ ├── Sora-Medium.ttf
│ ├── Sora-Regular.ttf
│ ├── Sora-SemiBold.ttf
│ └── Sora-Thin.ttf
├── images
│ └── app_logo.png
└── svgs
│ ├── back_arrow.svg
│ ├── calender.svg
│ ├── delete.svg
│ ├── edit.svg
│ ├── filter.svg
│ ├── horizontal_menu.svg
│ ├── task.svg
│ ├── task_checked.svg
│ ├── tasks.svg
│ └── vertical_menu.svg
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── 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
│ │ │ ├── 100.png
│ │ │ ├── 102.png
│ │ │ ├── 1024.png
│ │ │ ├── 114.png
│ │ │ ├── 120.png
│ │ │ ├── 128.png
│ │ │ ├── 144.png
│ │ │ ├── 152.png
│ │ │ ├── 16.png
│ │ │ ├── 167.png
│ │ │ ├── 172.png
│ │ │ ├── 180.png
│ │ │ ├── 196.png
│ │ │ ├── 20.png
│ │ │ ├── 216.png
│ │ │ ├── 256.png
│ │ │ ├── 29.png
│ │ │ ├── 32.png
│ │ │ ├── 40.png
│ │ │ ├── 48.png
│ │ │ ├── 50.png
│ │ │ ├── 512.png
│ │ │ ├── 55.png
│ │ │ ├── 57.png
│ │ │ ├── 58.png
│ │ │ ├── 60.png
│ │ │ ├── 64.png
│ │ │ ├── 66.png
│ │ │ ├── 72.png
│ │ │ ├── 76.png
│ │ │ ├── 80.png
│ │ │ ├── 87.png
│ │ │ ├── 88.png
│ │ │ ├── 92.png
│ │ │ └── Contents.json
│ │ └── LaunchImage.imageset
│ │ │ ├── Contents.json
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ └── README.md
│ ├── Base.lproj
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
└── RunnerTests
│ └── RunnerTests.swift
├── lib
├── bloc_state_observer.dart
├── components
│ ├── build_text_field.dart
│ ├── custom_app_bar.dart
│ └── widgets.dart
├── main.dart
├── page_not_found.dart
├── routes
│ ├── app_router.dart
│ └── pages.dart
├── splash_screen.dart
├── tasks
│ ├── data
│ │ ├── local
│ │ │ ├── data_sources
│ │ │ │ └── tasks_data_provider.dart
│ │ │ └── model
│ │ │ │ └── task_model.dart
│ │ └── repository
│ │ │ └── task_repository.dart
│ └── presentation
│ │ ├── bloc
│ │ ├── tasks_bloc.dart
│ │ ├── tasks_event.dart
│ │ └── tasks_state.dart
│ │ ├── pages
│ │ ├── new_task_screen.dart
│ │ ├── tasks_screen.dart
│ │ └── update_task_screen.dart
│ │ └── widget
│ │ └── task_item_view.dart
└── utils
│ ├── color_palette.dart
│ ├── constants.dart
│ ├── exception_handler.dart
│ ├── font_sizes.dart
│ └── util.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── functionality_test.dart
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Symbolication related
36 | app.*.symbols
37 |
38 | # Obfuscation related
39 | app.*.map.json
40 |
41 | # Android Studio will place build artifacts here
42 | /android/app/debug
43 | /android/app/profile
44 | /android/app/release
45 | /.idea/.wiseGPT/
46 |
--------------------------------------------------------------------------------
/.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: "ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a"
8 | channel: "stable"
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a
17 | base_revision: ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a
18 | - platform: android
19 | create_revision: ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a
20 | base_revision: ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a
21 | - platform: ios
22 | create_revision: ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a
23 | base_revision: ff5b5b5fa6f35b717667719ddfdb1521d8bdd05a
24 |
25 | # User provided section
26 |
27 | # List of Local paths (relative to this file) that should be
28 | # ignored by the migrate tool.
29 | #
30 | # Files that are not part of the templates will be ignored by default.
31 | unmanaged_files:
32 | - 'lib/main.dart'
33 | - 'ios/Runner.xcodeproj/project.pbxproj'
34 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 Jerome Uloho
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | # Task Manager App
4 |
5 | ## Overview
6 |
7 | The Task Manager App is a Flutter mobile application designed to help users manage their tasks efficiently.
8 | The app utilizes the Bloc architecture for state management and incorporates error handling for a smooth user experience.
9 |
10 | ## Features
11 |
12 | - **Add New Task:** Easily add new tasks with titles, descriptions, start and end dates.
13 | - **Edit and Delete Tasks:** Each tasks created can be edited and deleted.
14 | - **Sort and Search:** Sort tasks by date or completion status, and search for specific tasks using keywords.
15 | - **Error Handling:** The app includes error handling mechanisms to gracefully handle and display errors to users.
16 |
17 | ## Getting Started
18 |
19 | ### Prerequisites
20 |
21 | - Ensure you have Flutter installed on your machine. If not, follow the [Flutter installation guide](https://flutter.dev/docs/get-started/install).
22 | - Clone the repository to your local machine.
23 |
24 | ### Installation
25 |
26 | 1. Open a terminal and navigate to the project directory.
27 |
28 | 2. Run the following command to install dependencies:
29 |
30 | ```bash
31 | flutter pub get
32 |
33 |
34 | Run the app on an emulator or physical device using the following command:
35 |
36 | flutter run
37 |
38 | ### State Management
39 | The app uses the Bloc architecture for efficient state management. Key Bloc classes include:
40 |
41 | TasksBloc: Manages the overall state of tasks in the application.
42 | TasksEvent: Represents events triggering state changes.
43 | TasksState: Represents different states of the tasks, such as loading, success, or failure.
44 |
45 | ### Error Handling
46 | Error handling is implemented throughout the app to ensure a seamless user experience.
47 | The LoadTaskFailure, AddTaskFailure, and UpdateTaskFailure states provide details about errors encountered during data loading, task creation, and task updates.
48 |
49 | ### Unit Test
50 | Unit test has been integrated to test all functionalities from initial state to creating new task, updating task and deleting task
51 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at https://dart.dev/lints.
17 | #
18 | # Instead of disabling a lint rule for the entire project in the
19 | # section below, it can also be suppressed for a single line of code
20 | # or a specific dart file by using the `// ignore: name_of_lint` and
21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
22 | # producing the lint.
23 | rules:
24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26 |
27 | # Additional information about this file can be found at
28 | # https://dart.dev/guides/language/analysis-options
29 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id "com.android.application"
3 | id "kotlin-android"
4 | id "dev.flutter.flutter-gradle-plugin"
5 | }
6 |
7 | def localProperties = new Properties()
8 | def localPropertiesFile = rootProject.file('local.properties')
9 | if (localPropertiesFile.exists()) {
10 | localPropertiesFile.withReader('UTF-8') { reader ->
11 | localProperties.load(reader)
12 | }
13 | }
14 |
15 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
16 | if (flutterVersionCode == null) {
17 | flutterVersionCode = '1'
18 | }
19 |
20 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
21 | if (flutterVersionName == null) {
22 | flutterVersionName = '1.0'
23 | }
24 |
25 | android {
26 | namespace "com.example.task_manager_app"
27 | compileSdkVersion flutter.compileSdkVersion
28 | ndkVersion flutter.ndkVersion
29 |
30 | compileOptions {
31 | sourceCompatibility JavaVersion.VERSION_1_8
32 | targetCompatibility JavaVersion.VERSION_1_8
33 | }
34 |
35 | kotlinOptions {
36 | jvmTarget = '1.8'
37 | }
38 |
39 | sourceSets {
40 | main.java.srcDirs += 'src/main/kotlin'
41 | }
42 |
43 | defaultConfig {
44 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
45 | applicationId "com.example.task_manager_app"
46 | // You can update the following values to match your application needs.
47 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
48 | minSdkVersion 21
49 | targetSdkVersion flutter.targetSdkVersion
50 | versionCode flutterVersionCode.toInteger()
51 | versionName flutterVersionName
52 | }
53 |
54 | buildTypes {
55 | release {
56 | // TODO: Add your own signing config for the release build.
57 | // Signing with the debug keys for now, so `flutter run --release` works.
58 | signingConfig signingConfigs.debug
59 | }
60 | }
61 | }
62 |
63 | flutter {
64 | source '../..'
65 | }
66 |
67 | dependencies {}
68 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
14 |
18 |
22 |
23 |
24 |
25 |
26 |
27 |
29 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/task_manager_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.task_manager_app
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/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/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 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.7.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.3.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | tasks.register("clean", Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
6 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | def flutterSdkPath = {
3 | def properties = new Properties()
4 | file("local.properties").withInputStream { properties.load(it) }
5 | def flutterSdkPath = properties.getProperty("flutter.sdk")
6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7 | return flutterSdkPath
8 | }
9 | settings.ext.flutterSdkPath = flutterSdkPath()
10 |
11 | includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
12 |
13 | plugins {
14 | id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
15 | }
16 | }
17 |
18 | include ":app"
19 |
20 | apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle"
21 |
--------------------------------------------------------------------------------
/assets/fonts/Sora-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/assets/fonts/Sora-Bold.ttf
--------------------------------------------------------------------------------
/assets/fonts/Sora-ExtraBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/assets/fonts/Sora-ExtraBold.ttf
--------------------------------------------------------------------------------
/assets/fonts/Sora-ExtraLight.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/assets/fonts/Sora-ExtraLight.ttf
--------------------------------------------------------------------------------
/assets/fonts/Sora-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/assets/fonts/Sora-Light.ttf
--------------------------------------------------------------------------------
/assets/fonts/Sora-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/assets/fonts/Sora-Medium.ttf
--------------------------------------------------------------------------------
/assets/fonts/Sora-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/assets/fonts/Sora-Regular.ttf
--------------------------------------------------------------------------------
/assets/fonts/Sora-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/assets/fonts/Sora-SemiBold.ttf
--------------------------------------------------------------------------------
/assets/fonts/Sora-Thin.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/assets/fonts/Sora-Thin.ttf
--------------------------------------------------------------------------------
/assets/images/app_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/assets/images/app_logo.png
--------------------------------------------------------------------------------
/assets/svgs/back_arrow.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/assets/svgs/calender.svg:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/assets/svgs/delete.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/assets/svgs/edit.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/assets/svgs/filter.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/assets/svgs/horizontal_menu.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/assets/svgs/task.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/assets/svgs/task_checked.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/assets/svgs/tasks.svg:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/assets/svgs/vertical_menu.svg:
--------------------------------------------------------------------------------
1 |
6 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 12.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, '12.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 | target 'RunnerTests' do
36 | inherit! :search_paths
37 | end
38 | end
39 |
40 | post_install do |installer|
41 | installer.pods_project.targets.each do |target|
42 | flutter_additional_ios_build_settings(target)
43 | end
44 | end
45 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - connectivity_plus (0.0.1):
3 | - Flutter
4 | - ReachabilitySwift
5 | - Flutter (1.0.0)
6 | - fluttertoast (0.0.2):
7 | - Flutter
8 | - Toast
9 | - nb_utils (0.0.1):
10 | - Flutter
11 | - ReachabilitySwift (5.0.0)
12 | - shared_preferences_foundation (0.0.1):
13 | - Flutter
14 | - FlutterMacOS
15 | - Toast (4.0.0)
16 |
17 | DEPENDENCIES:
18 | - connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
19 | - Flutter (from `Flutter`)
20 | - fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
21 | - nb_utils (from `.symlinks/plugins/nb_utils/ios`)
22 | - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
23 |
24 | SPEC REPOS:
25 | trunk:
26 | - ReachabilitySwift
27 | - Toast
28 |
29 | EXTERNAL SOURCES:
30 | connectivity_plus:
31 | :path: ".symlinks/plugins/connectivity_plus/ios"
32 | Flutter:
33 | :path: Flutter
34 | fluttertoast:
35 | :path: ".symlinks/plugins/fluttertoast/ios"
36 | nb_utils:
37 | :path: ".symlinks/plugins/nb_utils/ios"
38 | shared_preferences_foundation:
39 | :path: ".symlinks/plugins/shared_preferences_foundation/darwin"
40 |
41 | SPEC CHECKSUMS:
42 | connectivity_plus: bf0076dd84a130856aa636df1c71ccaff908fa1d
43 | Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
44 | fluttertoast: 31b00dabfa7fb7bacd9e7dbee580d7a2ff4bf265
45 | nb_utils: ada4338858d8827ec92fdab2a545206b4ba4cfb1
46 | ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
47 | shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
48 | Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
49 |
50 | PODFILE CHECKSUM: 7be2f5f74864d463a8ad433546ed1de7e0f29aef
51 |
52 | COCOAPODS: 1.15.2
53 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 54;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
14 | 933F4EAF11F5AAFE60CA6D9F /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C49D1B3C4C2DDB15B3DCC0AC /* Pods_RunnerTests.framework */; };
15 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
16 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
17 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
18 | F9FF5A21528F6A6F014EC598 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AFAF6983870053FCA37D96DA /* Pods_Runner.framework */; };
19 | /* End PBXBuildFile section */
20 |
21 | /* Begin PBXContainerItemProxy section */
22 | 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
23 | isa = PBXContainerItemProxy;
24 | containerPortal = 97C146E61CF9000F007C117D /* Project object */;
25 | proxyType = 1;
26 | remoteGlobalIDString = 97C146ED1CF9000F007C117D;
27 | remoteInfo = Runner;
28 | };
29 | /* End PBXContainerItemProxy section */
30 |
31 | /* Begin PBXCopyFilesBuildPhase section */
32 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
33 | isa = PBXCopyFilesBuildPhase;
34 | buildActionMask = 2147483647;
35 | dstPath = "";
36 | dstSubfolderSpec = 10;
37 | files = (
38 | );
39 | name = "Embed Frameworks";
40 | runOnlyForDeploymentPostprocessing = 0;
41 | };
42 | /* End PBXCopyFilesBuildPhase section */
43 |
44 | /* Begin PBXFileReference section */
45 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
46 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
47 | 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
48 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
49 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
50 | 48B9BF1861563AAED8109684 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; };
51 | 619391C3D5EC22BE0DEAC52C /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
52 | 663A7CB16A4182EA697284C4 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; };
53 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
54 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
55 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
56 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
57 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
58 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
59 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
60 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
61 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
62 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
63 | AFAF6983870053FCA37D96DA /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
64 | C49D1B3C4C2DDB15B3DCC0AC /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
65 | E6CF363B1865A4CB565F570F /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; };
66 | F105E2CE8F9BA588111F8072 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
67 | F3F61533720F573A827339D9 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
68 | /* End PBXFileReference section */
69 |
70 | /* Begin PBXFrameworksBuildPhase section */
71 | 58315BC4389E888F0DBD18E1 /* Frameworks */ = {
72 | isa = PBXFrameworksBuildPhase;
73 | buildActionMask = 2147483647;
74 | files = (
75 | 933F4EAF11F5AAFE60CA6D9F /* Pods_RunnerTests.framework in Frameworks */,
76 | );
77 | runOnlyForDeploymentPostprocessing = 0;
78 | };
79 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
80 | isa = PBXFrameworksBuildPhase;
81 | buildActionMask = 2147483647;
82 | files = (
83 | F9FF5A21528F6A6F014EC598 /* Pods_Runner.framework in Frameworks */,
84 | );
85 | runOnlyForDeploymentPostprocessing = 0;
86 | };
87 | /* End PBXFrameworksBuildPhase section */
88 |
89 | /* Begin PBXGroup section */
90 | 331C8082294A63A400263BE5 /* RunnerTests */ = {
91 | isa = PBXGroup;
92 | children = (
93 | 331C807B294A618700263BE5 /* RunnerTests.swift */,
94 | );
95 | path = RunnerTests;
96 | sourceTree = "";
97 | };
98 | 4AA9F48AE9CB967DDCB44070 /* Pods */ = {
99 | isa = PBXGroup;
100 | children = (
101 | F105E2CE8F9BA588111F8072 /* Pods-Runner.debug.xcconfig */,
102 | 619391C3D5EC22BE0DEAC52C /* Pods-Runner.release.xcconfig */,
103 | F3F61533720F573A827339D9 /* Pods-Runner.profile.xcconfig */,
104 | E6CF363B1865A4CB565F570F /* Pods-RunnerTests.debug.xcconfig */,
105 | 48B9BF1861563AAED8109684 /* Pods-RunnerTests.release.xcconfig */,
106 | 663A7CB16A4182EA697284C4 /* Pods-RunnerTests.profile.xcconfig */,
107 | );
108 | path = Pods;
109 | sourceTree = "";
110 | };
111 | 549ACE8C99B1F782A8A9D28B /* Frameworks */ = {
112 | isa = PBXGroup;
113 | children = (
114 | AFAF6983870053FCA37D96DA /* Pods_Runner.framework */,
115 | C49D1B3C4C2DDB15B3DCC0AC /* Pods_RunnerTests.framework */,
116 | );
117 | name = Frameworks;
118 | sourceTree = "";
119 | };
120 | 9740EEB11CF90186004384FC /* Flutter */ = {
121 | isa = PBXGroup;
122 | children = (
123 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
124 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
125 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
126 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
127 | );
128 | name = Flutter;
129 | sourceTree = "";
130 | };
131 | 97C146E51CF9000F007C117D = {
132 | isa = PBXGroup;
133 | children = (
134 | 9740EEB11CF90186004384FC /* Flutter */,
135 | 97C146F01CF9000F007C117D /* Runner */,
136 | 97C146EF1CF9000F007C117D /* Products */,
137 | 331C8082294A63A400263BE5 /* RunnerTests */,
138 | 4AA9F48AE9CB967DDCB44070 /* Pods */,
139 | 549ACE8C99B1F782A8A9D28B /* Frameworks */,
140 | );
141 | sourceTree = "";
142 | };
143 | 97C146EF1CF9000F007C117D /* Products */ = {
144 | isa = PBXGroup;
145 | children = (
146 | 97C146EE1CF9000F007C117D /* Runner.app */,
147 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
148 | );
149 | name = Products;
150 | sourceTree = "";
151 | };
152 | 97C146F01CF9000F007C117D /* Runner */ = {
153 | isa = PBXGroup;
154 | children = (
155 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
156 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
157 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
158 | 97C147021CF9000F007C117D /* Info.plist */,
159 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
160 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
161 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
162 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
163 | );
164 | path = Runner;
165 | sourceTree = "";
166 | };
167 | /* End PBXGroup section */
168 |
169 | /* Begin PBXNativeTarget section */
170 | 331C8080294A63A400263BE5 /* RunnerTests */ = {
171 | isa = PBXNativeTarget;
172 | buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
173 | buildPhases = (
174 | 682C94A07399D6019E601692 /* [CP] Check Pods Manifest.lock */,
175 | 331C807D294A63A400263BE5 /* Sources */,
176 | 331C807F294A63A400263BE5 /* Resources */,
177 | 58315BC4389E888F0DBD18E1 /* Frameworks */,
178 | );
179 | buildRules = (
180 | );
181 | dependencies = (
182 | 331C8086294A63A400263BE5 /* PBXTargetDependency */,
183 | );
184 | name = RunnerTests;
185 | productName = RunnerTests;
186 | productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
187 | productType = "com.apple.product-type.bundle.unit-test";
188 | };
189 | 97C146ED1CF9000F007C117D /* Runner */ = {
190 | isa = PBXNativeTarget;
191 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
192 | buildPhases = (
193 | BD1A0FE90AE68069E5A73D05 /* [CP] Check Pods Manifest.lock */,
194 | 9740EEB61CF901F6004384FC /* Run Script */,
195 | 97C146EA1CF9000F007C117D /* Sources */,
196 | 97C146EB1CF9000F007C117D /* Frameworks */,
197 | 97C146EC1CF9000F007C117D /* Resources */,
198 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
199 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
200 | C2FE2C4FC6D72E42AF987AE8 /* [CP] Embed Pods Frameworks */,
201 | );
202 | buildRules = (
203 | );
204 | dependencies = (
205 | );
206 | name = Runner;
207 | productName = Runner;
208 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
209 | productType = "com.apple.product-type.application";
210 | };
211 | /* End PBXNativeTarget section */
212 |
213 | /* Begin PBXProject section */
214 | 97C146E61CF9000F007C117D /* Project object */ = {
215 | isa = PBXProject;
216 | attributes = {
217 | BuildIndependentTargetsInParallel = YES;
218 | LastUpgradeCheck = 1510;
219 | ORGANIZATIONNAME = "";
220 | TargetAttributes = {
221 | 331C8080294A63A400263BE5 = {
222 | CreatedOnToolsVersion = 14.0;
223 | TestTargetID = 97C146ED1CF9000F007C117D;
224 | };
225 | 97C146ED1CF9000F007C117D = {
226 | CreatedOnToolsVersion = 7.3.1;
227 | LastSwiftMigration = 1100;
228 | };
229 | };
230 | };
231 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
232 | compatibilityVersion = "Xcode 9.3";
233 | developmentRegion = en;
234 | hasScannedForEncodings = 0;
235 | knownRegions = (
236 | en,
237 | Base,
238 | );
239 | mainGroup = 97C146E51CF9000F007C117D;
240 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
241 | projectDirPath = "";
242 | projectRoot = "";
243 | targets = (
244 | 97C146ED1CF9000F007C117D /* Runner */,
245 | 331C8080294A63A400263BE5 /* RunnerTests */,
246 | );
247 | };
248 | /* End PBXProject section */
249 |
250 | /* Begin PBXResourcesBuildPhase section */
251 | 331C807F294A63A400263BE5 /* Resources */ = {
252 | isa = PBXResourcesBuildPhase;
253 | buildActionMask = 2147483647;
254 | files = (
255 | );
256 | runOnlyForDeploymentPostprocessing = 0;
257 | };
258 | 97C146EC1CF9000F007C117D /* Resources */ = {
259 | isa = PBXResourcesBuildPhase;
260 | buildActionMask = 2147483647;
261 | files = (
262 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
263 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
264 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
265 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
266 | );
267 | runOnlyForDeploymentPostprocessing = 0;
268 | };
269 | /* End PBXResourcesBuildPhase section */
270 |
271 | /* Begin PBXShellScriptBuildPhase section */
272 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
273 | isa = PBXShellScriptBuildPhase;
274 | alwaysOutOfDate = 1;
275 | buildActionMask = 2147483647;
276 | files = (
277 | );
278 | inputPaths = (
279 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
280 | );
281 | name = "Thin Binary";
282 | outputPaths = (
283 | );
284 | runOnlyForDeploymentPostprocessing = 0;
285 | shellPath = /bin/sh;
286 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
287 | };
288 | 682C94A07399D6019E601692 /* [CP] Check Pods Manifest.lock */ = {
289 | isa = PBXShellScriptBuildPhase;
290 | buildActionMask = 2147483647;
291 | files = (
292 | );
293 | inputFileListPaths = (
294 | );
295 | inputPaths = (
296 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
297 | "${PODS_ROOT}/Manifest.lock",
298 | );
299 | name = "[CP] Check Pods Manifest.lock";
300 | outputFileListPaths = (
301 | );
302 | outputPaths = (
303 | "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
304 | );
305 | runOnlyForDeploymentPostprocessing = 0;
306 | shellPath = /bin/sh;
307 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
308 | showEnvVarsInLog = 0;
309 | };
310 | 9740EEB61CF901F6004384FC /* Run Script */ = {
311 | isa = PBXShellScriptBuildPhase;
312 | alwaysOutOfDate = 1;
313 | buildActionMask = 2147483647;
314 | files = (
315 | );
316 | inputPaths = (
317 | );
318 | name = "Run Script";
319 | outputPaths = (
320 | );
321 | runOnlyForDeploymentPostprocessing = 0;
322 | shellPath = /bin/sh;
323 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
324 | };
325 | BD1A0FE90AE68069E5A73D05 /* [CP] Check Pods Manifest.lock */ = {
326 | isa = PBXShellScriptBuildPhase;
327 | buildActionMask = 2147483647;
328 | files = (
329 | );
330 | inputFileListPaths = (
331 | );
332 | inputPaths = (
333 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
334 | "${PODS_ROOT}/Manifest.lock",
335 | );
336 | name = "[CP] Check Pods Manifest.lock";
337 | outputFileListPaths = (
338 | );
339 | outputPaths = (
340 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
341 | );
342 | runOnlyForDeploymentPostprocessing = 0;
343 | shellPath = /bin/sh;
344 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
345 | showEnvVarsInLog = 0;
346 | };
347 | C2FE2C4FC6D72E42AF987AE8 /* [CP] Embed Pods Frameworks */ = {
348 | isa = PBXShellScriptBuildPhase;
349 | buildActionMask = 2147483647;
350 | files = (
351 | );
352 | inputFileListPaths = (
353 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
354 | );
355 | name = "[CP] Embed Pods Frameworks";
356 | outputFileListPaths = (
357 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
358 | );
359 | runOnlyForDeploymentPostprocessing = 0;
360 | shellPath = /bin/sh;
361 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
362 | showEnvVarsInLog = 0;
363 | };
364 | /* End PBXShellScriptBuildPhase section */
365 |
366 | /* Begin PBXSourcesBuildPhase section */
367 | 331C807D294A63A400263BE5 /* Sources */ = {
368 | isa = PBXSourcesBuildPhase;
369 | buildActionMask = 2147483647;
370 | files = (
371 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
372 | );
373 | runOnlyForDeploymentPostprocessing = 0;
374 | };
375 | 97C146EA1CF9000F007C117D /* Sources */ = {
376 | isa = PBXSourcesBuildPhase;
377 | buildActionMask = 2147483647;
378 | files = (
379 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
380 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
381 | );
382 | runOnlyForDeploymentPostprocessing = 0;
383 | };
384 | /* End PBXSourcesBuildPhase section */
385 |
386 | /* Begin PBXTargetDependency section */
387 | 331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
388 | isa = PBXTargetDependency;
389 | target = 97C146ED1CF9000F007C117D /* Runner */;
390 | targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
391 | };
392 | /* End PBXTargetDependency section */
393 |
394 | /* Begin PBXVariantGroup section */
395 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
396 | isa = PBXVariantGroup;
397 | children = (
398 | 97C146FB1CF9000F007C117D /* Base */,
399 | );
400 | name = Main.storyboard;
401 | sourceTree = "";
402 | };
403 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
404 | isa = PBXVariantGroup;
405 | children = (
406 | 97C147001CF9000F007C117D /* Base */,
407 | );
408 | name = LaunchScreen.storyboard;
409 | sourceTree = "";
410 | };
411 | /* End PBXVariantGroup section */
412 |
413 | /* Begin XCBuildConfiguration section */
414 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
415 | isa = XCBuildConfiguration;
416 | buildSettings = {
417 | ALWAYS_SEARCH_USER_PATHS = NO;
418 | CLANG_ANALYZER_NONNULL = YES;
419 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
420 | CLANG_CXX_LIBRARY = "libc++";
421 | CLANG_ENABLE_MODULES = YES;
422 | CLANG_ENABLE_OBJC_ARC = YES;
423 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
424 | CLANG_WARN_BOOL_CONVERSION = YES;
425 | CLANG_WARN_COMMA = YES;
426 | CLANG_WARN_CONSTANT_CONVERSION = YES;
427 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
428 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
429 | CLANG_WARN_EMPTY_BODY = YES;
430 | CLANG_WARN_ENUM_CONVERSION = YES;
431 | CLANG_WARN_INFINITE_RECURSION = YES;
432 | CLANG_WARN_INT_CONVERSION = YES;
433 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
434 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
435 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
436 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
437 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
438 | CLANG_WARN_STRICT_PROTOTYPES = YES;
439 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
440 | CLANG_WARN_UNREACHABLE_CODE = YES;
441 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
442 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
443 | COPY_PHASE_STRIP = NO;
444 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
445 | ENABLE_NS_ASSERTIONS = NO;
446 | ENABLE_STRICT_OBJC_MSGSEND = YES;
447 | GCC_C_LANGUAGE_STANDARD = gnu99;
448 | GCC_NO_COMMON_BLOCKS = YES;
449 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
450 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
451 | GCC_WARN_UNDECLARED_SELECTOR = YES;
452 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
453 | GCC_WARN_UNUSED_FUNCTION = YES;
454 | GCC_WARN_UNUSED_VARIABLE = YES;
455 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
456 | MTL_ENABLE_DEBUG_INFO = NO;
457 | SDKROOT = iphoneos;
458 | SUPPORTED_PLATFORMS = iphoneos;
459 | TARGETED_DEVICE_FAMILY = "1,2";
460 | VALIDATE_PRODUCT = YES;
461 | };
462 | name = Profile;
463 | };
464 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
465 | isa = XCBuildConfiguration;
466 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
467 | buildSettings = {
468 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
469 | CLANG_ENABLE_MODULES = YES;
470 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
471 | DEVELOPMENT_TEAM = C74S6S2V68;
472 | ENABLE_BITCODE = NO;
473 | INFOPLIST_FILE = Runner/Info.plist;
474 | LD_RUNPATH_SEARCH_PATHS = (
475 | "$(inherited)",
476 | "@executable_path/Frameworks",
477 | );
478 | PRODUCT_BUNDLE_IDENTIFIER = com.example.taskManagerApp;
479 | PRODUCT_NAME = "$(TARGET_NAME)";
480 | SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
481 | SUPPORTS_MACCATALYST = NO;
482 | SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
483 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
484 | SWIFT_VERSION = 5.0;
485 | TARGETED_DEVICE_FAMILY = 1;
486 | VERSIONING_SYSTEM = "apple-generic";
487 | };
488 | name = Profile;
489 | };
490 | 331C8088294A63A400263BE5 /* Debug */ = {
491 | isa = XCBuildConfiguration;
492 | baseConfigurationReference = E6CF363B1865A4CB565F570F /* Pods-RunnerTests.debug.xcconfig */;
493 | buildSettings = {
494 | BUNDLE_LOADER = "$(TEST_HOST)";
495 | CODE_SIGN_STYLE = Automatic;
496 | CURRENT_PROJECT_VERSION = 1;
497 | GENERATE_INFOPLIST_FILE = YES;
498 | MARKETING_VERSION = 1.0;
499 | PRODUCT_BUNDLE_IDENTIFIER = com.example.taskManagerApp.RunnerTests;
500 | PRODUCT_NAME = "$(TARGET_NAME)";
501 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
502 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
503 | SWIFT_VERSION = 5.0;
504 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
505 | };
506 | name = Debug;
507 | };
508 | 331C8089294A63A400263BE5 /* Release */ = {
509 | isa = XCBuildConfiguration;
510 | baseConfigurationReference = 48B9BF1861563AAED8109684 /* Pods-RunnerTests.release.xcconfig */;
511 | buildSettings = {
512 | BUNDLE_LOADER = "$(TEST_HOST)";
513 | CODE_SIGN_STYLE = Automatic;
514 | CURRENT_PROJECT_VERSION = 1;
515 | GENERATE_INFOPLIST_FILE = YES;
516 | MARKETING_VERSION = 1.0;
517 | PRODUCT_BUNDLE_IDENTIFIER = com.example.taskManagerApp.RunnerTests;
518 | PRODUCT_NAME = "$(TARGET_NAME)";
519 | SWIFT_VERSION = 5.0;
520 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
521 | };
522 | name = Release;
523 | };
524 | 331C808A294A63A400263BE5 /* Profile */ = {
525 | isa = XCBuildConfiguration;
526 | baseConfigurationReference = 663A7CB16A4182EA697284C4 /* Pods-RunnerTests.profile.xcconfig */;
527 | buildSettings = {
528 | BUNDLE_LOADER = "$(TEST_HOST)";
529 | CODE_SIGN_STYLE = Automatic;
530 | CURRENT_PROJECT_VERSION = 1;
531 | GENERATE_INFOPLIST_FILE = YES;
532 | MARKETING_VERSION = 1.0;
533 | PRODUCT_BUNDLE_IDENTIFIER = com.example.taskManagerApp.RunnerTests;
534 | PRODUCT_NAME = "$(TARGET_NAME)";
535 | SWIFT_VERSION = 5.0;
536 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
537 | };
538 | name = Profile;
539 | };
540 | 97C147031CF9000F007C117D /* Debug */ = {
541 | isa = XCBuildConfiguration;
542 | buildSettings = {
543 | ALWAYS_SEARCH_USER_PATHS = NO;
544 | CLANG_ANALYZER_NONNULL = YES;
545 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
546 | CLANG_CXX_LIBRARY = "libc++";
547 | CLANG_ENABLE_MODULES = YES;
548 | CLANG_ENABLE_OBJC_ARC = YES;
549 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
550 | CLANG_WARN_BOOL_CONVERSION = YES;
551 | CLANG_WARN_COMMA = YES;
552 | CLANG_WARN_CONSTANT_CONVERSION = YES;
553 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
554 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
555 | CLANG_WARN_EMPTY_BODY = YES;
556 | CLANG_WARN_ENUM_CONVERSION = YES;
557 | CLANG_WARN_INFINITE_RECURSION = YES;
558 | CLANG_WARN_INT_CONVERSION = YES;
559 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
560 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
561 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
562 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
563 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
564 | CLANG_WARN_STRICT_PROTOTYPES = YES;
565 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
566 | CLANG_WARN_UNREACHABLE_CODE = YES;
567 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
568 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
569 | COPY_PHASE_STRIP = NO;
570 | DEBUG_INFORMATION_FORMAT = dwarf;
571 | ENABLE_STRICT_OBJC_MSGSEND = YES;
572 | ENABLE_TESTABILITY = YES;
573 | GCC_C_LANGUAGE_STANDARD = gnu99;
574 | GCC_DYNAMIC_NO_PIC = NO;
575 | GCC_NO_COMMON_BLOCKS = YES;
576 | GCC_OPTIMIZATION_LEVEL = 0;
577 | GCC_PREPROCESSOR_DEFINITIONS = (
578 | "DEBUG=1",
579 | "$(inherited)",
580 | );
581 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
582 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
583 | GCC_WARN_UNDECLARED_SELECTOR = YES;
584 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
585 | GCC_WARN_UNUSED_FUNCTION = YES;
586 | GCC_WARN_UNUSED_VARIABLE = YES;
587 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
588 | MTL_ENABLE_DEBUG_INFO = YES;
589 | ONLY_ACTIVE_ARCH = YES;
590 | SDKROOT = iphoneos;
591 | TARGETED_DEVICE_FAMILY = "1,2";
592 | };
593 | name = Debug;
594 | };
595 | 97C147041CF9000F007C117D /* Release */ = {
596 | isa = XCBuildConfiguration;
597 | buildSettings = {
598 | ALWAYS_SEARCH_USER_PATHS = NO;
599 | CLANG_ANALYZER_NONNULL = YES;
600 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
601 | CLANG_CXX_LIBRARY = "libc++";
602 | CLANG_ENABLE_MODULES = YES;
603 | CLANG_ENABLE_OBJC_ARC = YES;
604 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
605 | CLANG_WARN_BOOL_CONVERSION = YES;
606 | CLANG_WARN_COMMA = YES;
607 | CLANG_WARN_CONSTANT_CONVERSION = YES;
608 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
609 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
610 | CLANG_WARN_EMPTY_BODY = YES;
611 | CLANG_WARN_ENUM_CONVERSION = YES;
612 | CLANG_WARN_INFINITE_RECURSION = YES;
613 | CLANG_WARN_INT_CONVERSION = YES;
614 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
615 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
616 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
617 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
618 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
619 | CLANG_WARN_STRICT_PROTOTYPES = YES;
620 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
621 | CLANG_WARN_UNREACHABLE_CODE = YES;
622 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
623 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
624 | COPY_PHASE_STRIP = NO;
625 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
626 | ENABLE_NS_ASSERTIONS = NO;
627 | ENABLE_STRICT_OBJC_MSGSEND = YES;
628 | GCC_C_LANGUAGE_STANDARD = gnu99;
629 | GCC_NO_COMMON_BLOCKS = YES;
630 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
631 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
632 | GCC_WARN_UNDECLARED_SELECTOR = YES;
633 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
634 | GCC_WARN_UNUSED_FUNCTION = YES;
635 | GCC_WARN_UNUSED_VARIABLE = YES;
636 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
637 | MTL_ENABLE_DEBUG_INFO = NO;
638 | SDKROOT = iphoneos;
639 | SUPPORTED_PLATFORMS = iphoneos;
640 | SWIFT_COMPILATION_MODE = wholemodule;
641 | SWIFT_OPTIMIZATION_LEVEL = "-O";
642 | TARGETED_DEVICE_FAMILY = "1,2";
643 | VALIDATE_PRODUCT = YES;
644 | };
645 | name = Release;
646 | };
647 | 97C147061CF9000F007C117D /* Debug */ = {
648 | isa = XCBuildConfiguration;
649 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
650 | buildSettings = {
651 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
652 | CLANG_ENABLE_MODULES = YES;
653 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
654 | DEVELOPMENT_TEAM = C74S6S2V68;
655 | ENABLE_BITCODE = NO;
656 | INFOPLIST_FILE = Runner/Info.plist;
657 | LD_RUNPATH_SEARCH_PATHS = (
658 | "$(inherited)",
659 | "@executable_path/Frameworks",
660 | );
661 | PRODUCT_BUNDLE_IDENTIFIER = com.example.taskManagerApp;
662 | PRODUCT_NAME = "$(TARGET_NAME)";
663 | SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
664 | SUPPORTS_MACCATALYST = NO;
665 | SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
666 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
667 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
668 | SWIFT_VERSION = 5.0;
669 | TARGETED_DEVICE_FAMILY = 1;
670 | VERSIONING_SYSTEM = "apple-generic";
671 | };
672 | name = Debug;
673 | };
674 | 97C147071CF9000F007C117D /* Release */ = {
675 | isa = XCBuildConfiguration;
676 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
677 | buildSettings = {
678 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
679 | CLANG_ENABLE_MODULES = YES;
680 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
681 | DEVELOPMENT_TEAM = C74S6S2V68;
682 | ENABLE_BITCODE = NO;
683 | INFOPLIST_FILE = Runner/Info.plist;
684 | LD_RUNPATH_SEARCH_PATHS = (
685 | "$(inherited)",
686 | "@executable_path/Frameworks",
687 | );
688 | PRODUCT_BUNDLE_IDENTIFIER = com.example.taskManagerApp;
689 | PRODUCT_NAME = "$(TARGET_NAME)";
690 | SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
691 | SUPPORTS_MACCATALYST = NO;
692 | SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
693 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
694 | SWIFT_VERSION = 5.0;
695 | TARGETED_DEVICE_FAMILY = 1;
696 | VERSIONING_SYSTEM = "apple-generic";
697 | };
698 | name = Release;
699 | };
700 | /* End XCBuildConfiguration section */
701 |
702 | /* Begin XCConfigurationList section */
703 | 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
704 | isa = XCConfigurationList;
705 | buildConfigurations = (
706 | 331C8088294A63A400263BE5 /* Debug */,
707 | 331C8089294A63A400263BE5 /* Release */,
708 | 331C808A294A63A400263BE5 /* Profile */,
709 | );
710 | defaultConfigurationIsVisible = 0;
711 | defaultConfigurationName = Release;
712 | };
713 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
714 | isa = XCConfigurationList;
715 | buildConfigurations = (
716 | 97C147031CF9000F007C117D /* Debug */,
717 | 97C147041CF9000F007C117D /* Release */,
718 | 249021D3217E4FDB00AE95B9 /* Profile */,
719 | );
720 | defaultConfigurationIsVisible = 0;
721 | defaultConfigurationName = Release;
722 | };
723 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
724 | isa = XCConfigurationList;
725 | buildConfigurations = (
726 | 97C147061CF9000F007C117D /* Debug */,
727 | 97C147071CF9000F007C117D /* Release */,
728 | 249021D4217E4FDB00AE95B9 /* Profile */,
729 | );
730 | defaultConfigurationIsVisible = 0;
731 | defaultConfigurationName = Release;
732 | };
733 | /* End XCConfigurationList section */
734 | };
735 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
736 | }
737 |
--------------------------------------------------------------------------------
/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 |
37 |
38 |
39 |
40 |
43 |
49 |
50 |
51 |
52 |
53 |
63 |
65 |
71 |
72 |
73 |
74 |
80 |
82 |
88 |
89 |
90 |
91 |
93 |
94 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/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.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/100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/100.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/102.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/102.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/114.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/114.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/120.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/128.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/144.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/152.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/16.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/167.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/167.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/172.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/172.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/180.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/196.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/196.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/20.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/216.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/216.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/256.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/29.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/32.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/40.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/48.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/50.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/512.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/55.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/55.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/57.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/58.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/60.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/64.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/66.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/66.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/72.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/76.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/80.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/87.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/88.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/88.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/92.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/AppIcon.appiconset/92.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {"images":[{"size":"60x60","expected-size":"180","filename":"180.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"40x40","expected-size":"80","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"40x40","expected-size":"120","filename":"120.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"60x60","expected-size":"120","filename":"120.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"57x57","expected-size":"57","filename":"57.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"1x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"29x29","expected-size":"29","filename":"29.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"1x"},{"size":"29x29","expected-size":"87","filename":"87.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"57x57","expected-size":"114","filename":"114.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"20x20","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"2x"},{"size":"20x20","expected-size":"60","filename":"60.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"iphone","scale":"3x"},{"size":"1024x1024","filename":"1024.png","expected-size":"1024","idiom":"ios-marketing","folder":"Assets.xcassets/AppIcon.appiconset/","scale":"1x"},{"size":"40x40","expected-size":"80","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"72x72","expected-size":"72","filename":"72.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"76x76","expected-size":"152","filename":"152.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"50x50","expected-size":"100","filename":"100.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"76x76","expected-size":"76","filename":"76.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"29x29","expected-size":"29","filename":"29.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"50x50","expected-size":"50","filename":"50.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"72x72","expected-size":"144","filename":"144.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"40x40","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"83.5x83.5","expected-size":"167","filename":"167.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"size":"20x20","expected-size":"20","filename":"20.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"1x"},{"size":"20x20","expected-size":"40","filename":"40.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"ipad","scale":"2x"},{"idiom":"watch","filename":"172.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"38mm","scale":"2x","size":"86x86","expected-size":"172","role":"quickLook"},{"idiom":"watch","filename":"80.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"38mm","scale":"2x","size":"40x40","expected-size":"80","role":"appLauncher"},{"idiom":"watch","filename":"88.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"40mm","scale":"2x","size":"44x44","expected-size":"88","role":"appLauncher"},{"idiom":"watch","filename":"102.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"41mm","scale":"2x","size":"45x45","expected-size":"102","role":"appLauncher"},{"idiom":"watch","filename":"92.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"41mm","scale":"2x","size":"46x46","expected-size":"92","role":"appLauncher"},{"idiom":"watch","filename":"100.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"44mm","scale":"2x","size":"50x50","expected-size":"100","role":"appLauncher"},{"idiom":"watch","filename":"196.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"42mm","scale":"2x","size":"98x98","expected-size":"196","role":"quickLook"},{"idiom":"watch","filename":"216.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"44mm","scale":"2x","size":"108x108","expected-size":"216","role":"quickLook"},{"idiom":"watch","filename":"48.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"38mm","scale":"2x","size":"24x24","expected-size":"48","role":"notificationCenter"},{"idiom":"watch","filename":"55.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"42mm","scale":"2x","size":"27.5x27.5","expected-size":"55","role":"notificationCenter"},{"idiom":"watch","filename":"66.png","folder":"Assets.xcassets/AppIcon.appiconset/","subtype":"45mm","scale":"2x","size":"33x33","expected-size":"66","role":"notificationCenter"},{"size":"29x29","expected-size":"87","filename":"87.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"watch","role":"companionSettings","scale":"3x"},{"size":"29x29","expected-size":"58","filename":"58.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"watch","role":"companionSettings","scale":"2x"},{"size":"1024x1024","expected-size":"1024","filename":"1024.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"watch-marketing","scale":"1x"},{"size":"128x128","expected-size":"128","filename":"128.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"256x256","expected-size":"256","filename":"256.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"128x128","expected-size":"256","filename":"256.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"256x256","expected-size":"512","filename":"512.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"32x32","expected-size":"32","filename":"32.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"512x512","expected-size":"512","filename":"512.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"16x16","expected-size":"16","filename":"16.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"1x"},{"size":"16x16","expected-size":"32","filename":"32.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"32x32","expected-size":"64","filename":"64.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"},{"size":"512x512","expected-size":"1024","filename":"1024.png","folder":"Assets.xcassets/AppIcon.appiconset/","idiom":"mac","scale":"2x"}]}
--------------------------------------------------------------------------------
/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/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Jayjerome/Task_manager_application/445f36eefdcf162e91f17684b46e387d7b898821/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Task Manager
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | task_manager_app
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | CADisableMinimumFrameDurationOnPhone
45 |
46 | UIApplicationSupportsIndirectInputEvents
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/ios/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/lib/bloc_state_observer.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/foundation.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 |
4 | class BlocStateOberver extends BlocObserver{
5 | @override
6 | void onCreate(BlocBase bloc) {
7 | if (kDebugMode) {
8 | print(bloc.state);
9 | }
10 | super.onCreate(bloc);
11 | }
12 |
13 | @override
14 | void onEvent(Bloc bloc, Object? event) {
15 | if (kDebugMode) {
16 | print(bloc.state);
17 | }
18 | super.onEvent(bloc, event);
19 | }
20 |
21 | @override
22 | void onError(BlocBase bloc, Object error, StackTrace stackTrace) {
23 | if (kDebugMode) {
24 | print(bloc.state);
25 | }
26 | super.onError(bloc, error, stackTrace);
27 | }
28 |
29 | @override
30 | void onTransition(Bloc bloc, Transition transition) {
31 | if (kDebugMode) {
32 | print(bloc.state);
33 | }
34 | super.onTransition(bloc, transition);
35 | }
36 | }
--------------------------------------------------------------------------------
/lib/components/build_text_field.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import '../utils/color_palette.dart';
4 | import '../utils/font_sizes.dart';
5 |
6 | class BuildTextField extends StatelessWidget {
7 | final String hint;
8 | final TextEditingController? controller;
9 | final TextInputType inputType;
10 | final Widget? prefixIcon;
11 | final Widget? suffixIcon;
12 | final bool obscureText;
13 | final bool enabled;
14 | final Color fillColor;
15 | final Color hintColor;
16 | final int? maxLength;
17 | final Function onChange;
18 |
19 | const BuildTextField(
20 | {super.key,
21 | required this.hint,
22 | this.controller,
23 | required this.inputType,
24 | this.prefixIcon,
25 | this.suffixIcon,
26 | this.obscureText = false,
27 | this.enabled = true,
28 | this.fillColor = kWhiteColor,
29 | this.hintColor = kGrey1,
30 | this.maxLength,
31 | required this.onChange});
32 |
33 | @override
34 | Widget build(BuildContext context) {
35 | return TextFormField(
36 | onChanged: (value) {
37 | onChange(value);
38 | },
39 | validator: (val) => val!.isEmpty ? 'required' : null,
40 | keyboardType: inputType,
41 | obscureText: obscureText,
42 | maxLength: maxLength,
43 | maxLines: inputType == TextInputType.multiline ? 3 : 1,
44 | controller: controller,
45 | enabled: enabled,
46 | decoration: InputDecoration(
47 | counterText: "",
48 | fillColor: fillColor,
49 | filled: true,
50 | contentPadding:
51 | const EdgeInsets.symmetric(vertical: 15.0, horizontal: 10),
52 | hintText: hint,
53 | floatingLabelBehavior: FloatingLabelBehavior.always,
54 | hintStyle: TextStyle(
55 | fontSize: textMedium,
56 | fontWeight: FontWeight.w300,
57 | color: hintColor,
58 | ),
59 | prefixIcon: prefixIcon,
60 | suffixIcon: suffixIcon,
61 | errorStyle: const TextStyle(
62 | fontSize: textMedium,
63 | fontWeight: FontWeight.normal,
64 | color: kRed,
65 | ),
66 | focusedBorder: const OutlineInputBorder(
67 | borderRadius: BorderRadius.all(Radius.circular(5)),
68 | borderSide: BorderSide(width: 1, color: kPrimaryColor),
69 | ),
70 | disabledBorder: OutlineInputBorder(
71 | borderRadius: const BorderRadius.all(Radius.circular(5)),
72 | borderSide: BorderSide(width: 0, color: fillColor),
73 | ),
74 | enabledBorder: const OutlineInputBorder(
75 | borderRadius: BorderRadius.all(Radius.circular(5)),
76 | borderSide: BorderSide(width: 0, color: kGrey1),
77 | ),
78 | border: const OutlineInputBorder(
79 | borderRadius: BorderRadius.all(Radius.circular(5)),
80 | borderSide: BorderSide(width: 0, color: kGrey1)),
81 | errorBorder: const OutlineInputBorder(
82 | borderRadius: BorderRadius.all(Radius.circular(5)),
83 | borderSide: BorderSide(width: 1, color: kRed)),
84 | focusedErrorBorder: const OutlineInputBorder(
85 | borderRadius: BorderRadius.all(Radius.circular(5)),
86 | borderSide: BorderSide(width: 1, color: kGrey1)),
87 | focusColor: kWhiteColor,
88 | hoverColor: kWhiteColor,
89 | ),
90 | cursorColor: kPrimaryColor,
91 | style: const TextStyle(
92 | fontSize: textMedium,
93 | fontWeight: FontWeight.normal,
94 | color: kBlackColor,
95 | ),
96 | );
97 | }
98 | }
--------------------------------------------------------------------------------
/lib/components/custom_app_bar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_svg/flutter_svg.dart';
3 | import 'package:task_manager_app/components/widgets.dart';
4 | import 'package:task_manager_app/utils/color_palette.dart';
5 | import 'package:task_manager_app/utils/font_sizes.dart';
6 |
7 | class CustomAppBar extends StatelessWidget implements PreferredSizeWidget {
8 | final String title;
9 | final Function? onBackTap;
10 | final bool showBackArrow;
11 | final Color? backgroundColor;
12 | final List? actionWidgets;
13 |
14 | const CustomAppBar({super.key,
15 | required this.title,
16 | this.onBackTap,
17 | this.showBackArrow = true,
18 | this.backgroundColor = kWhiteColor,
19 | this.actionWidgets
20 | });
21 |
22 | @override
23 | Widget build(BuildContext context) {
24 | return AppBar(
25 | backgroundColor: backgroundColor,
26 | automaticallyImplyLeading: false,
27 | elevation: 0,
28 | leading: showBackArrow ? IconButton(
29 | icon: SvgPicture.asset('assets/svgs/back_arrow.svg'),
30 | onPressed: () {
31 | if (onBackTap != null) {
32 | onBackTap!();
33 | } else {
34 | Navigator.of(context).pop();
35 | }
36 | },
37 | ) : null,
38 | actions: actionWidgets,
39 | title: Row(
40 | children: [
41 | buildText(title, kBlackColor, textMedium, FontWeight.w500,
42 | TextAlign.start, TextOverflow.clip),
43 | ],
44 | ),
45 | );
46 | }
47 |
48 | @override
49 | Size get preferredSize => const Size.fromHeight(kToolbarHeight);
50 | }
--------------------------------------------------------------------------------
/lib/components/widgets.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | Text buildText(String text, Color color, double fontSize, FontWeight fontWeight,
4 | TextAlign textAlign, TextOverflow overflow) {
5 | return Text(
6 | text,
7 | textAlign: textAlign,
8 | overflow: overflow,
9 | style: TextStyle(
10 | fontSize: fontSize,
11 | fontWeight: fontWeight,
12 | color: color,
13 | ),
14 | );
15 | }
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 | import 'package:shared_preferences/shared_preferences.dart';
4 | import 'package:task_manager_app/routes/app_router.dart';
5 | import 'package:task_manager_app/bloc_state_observer.dart';
6 | import 'package:task_manager_app/routes/pages.dart';
7 | import 'package:task_manager_app/tasks/data/local/data_sources/tasks_data_provider.dart';
8 | import 'package:task_manager_app/tasks/data/repository/task_repository.dart';
9 | import 'package:task_manager_app/tasks/presentation/bloc/tasks_bloc.dart';
10 | import 'package:task_manager_app/utils/color_palette.dart';
11 |
12 | Future main() async {
13 | WidgetsFlutterBinding.ensureInitialized();
14 | Bloc.observer = BlocStateOberver();
15 | SharedPreferences preferences = await SharedPreferences.getInstance();
16 | runApp(MyApp(
17 | preferences: preferences,
18 | ));
19 | }
20 |
21 | class MyApp extends StatelessWidget {
22 | final SharedPreferences preferences;
23 |
24 | const MyApp({super.key, required this.preferences});
25 |
26 | @override
27 | Widget build(BuildContext context) {
28 | return RepositoryProvider(
29 | create: (context) =>
30 | TaskRepository(taskDataProvider: TaskDataProvider(preferences)),
31 | child: BlocProvider(
32 | create: (context) => TasksBloc(context.read()),
33 | child: MaterialApp(
34 | title: 'Task Manager',
35 | debugShowCheckedModeBanner: false,
36 | initialRoute: Pages.initial,
37 | onGenerateRoute: onGenerateRoute,
38 | theme: ThemeData(
39 | fontFamily: 'Sora',
40 | visualDensity: VisualDensity.adaptivePlatformDensity,
41 | canvasColor: Colors.transparent,
42 | colorScheme: ColorScheme.fromSeed(seedColor: kPrimaryColor),
43 | useMaterial3: true,
44 | ),
45 | )));
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/lib/page_not_found.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 | import 'package:task_manager_app/tasks/presentation/bloc/tasks_bloc.dart';
4 |
5 | import 'components/widgets.dart';
6 | import 'routes/pages.dart';
7 | import 'utils/color_palette.dart';
8 | import 'utils/font_sizes.dart';
9 |
10 | class PageNotFound extends StatefulWidget {
11 | const PageNotFound({super.key});
12 |
13 | @override
14 | State createState() => _PageNotFoundState();
15 | }
16 |
17 | class _PageNotFoundState extends State {
18 |
19 | @override
20 | Widget build(BuildContext context) {
21 | return Scaffold(
22 | backgroundColor: kWhiteColor,
23 | body: Center(child:Column(
24 | crossAxisAlignment: CrossAxisAlignment.center,
25 | mainAxisAlignment: MainAxisAlignment.center,
26 | children: [
27 | buildText(
28 | 'Page not found',
29 | kBlackColor,
30 | textBold,
31 | FontWeight.w600,
32 | TextAlign.center,
33 | TextOverflow.clip),
34 | const SizedBox(height: 10,),
35 | buildText(
36 | 'Something went wrong',
37 | kBlackColor,
38 | textTiny,
39 | FontWeight.normal,
40 | TextAlign.center,
41 | TextOverflow.clip),
42 | ],)));
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/lib/routes/app_router.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:task_manager_app/routes/pages.dart';
3 | import 'package:task_manager_app/splash_screen.dart';
4 | import 'package:task_manager_app/tasks/data/local/model/task_model.dart';
5 | import 'package:task_manager_app/tasks/presentation/pages/new_task_screen.dart';
6 | import 'package:task_manager_app/tasks/presentation/pages/tasks_screen.dart';
7 | import 'package:task_manager_app/tasks/presentation/pages/update_task_screen.dart';
8 |
9 | import '../page_not_found.dart';
10 |
11 | Route onGenerateRoute(RouteSettings routeSettings) {
12 | switch (routeSettings.name) {
13 | case Pages.initial:
14 | return MaterialPageRoute(
15 | builder: (context) => const SplashScreen(),
16 | );
17 | case Pages.home:
18 | return MaterialPageRoute(
19 | builder: (context) => const TasksScreen(),
20 | );
21 | case Pages.createNewTask:
22 | return MaterialPageRoute(
23 | builder: (context) => const NewTaskScreen(),
24 | );
25 | case Pages.updateTask:
26 | final args = routeSettings.arguments as TaskModel;
27 | return MaterialPageRoute(
28 | builder: (context) => UpdateTaskScreen(taskModel: args),
29 | );
30 | default:
31 | return MaterialPageRoute(
32 | builder: (context) => const PageNotFound(),
33 | );
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/lib/routes/pages.dart:
--------------------------------------------------------------------------------
1 | class Pages {
2 | static const initial = '/';
3 | static const home = '/home';
4 | static const createNewTask = '/createNewTask';
5 | static const updateTask = '/updateNewTask';
6 | }
7 |
--------------------------------------------------------------------------------
/lib/splash_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'components/widgets.dart';
3 | import 'routes/pages.dart';
4 | import 'utils/color_palette.dart';
5 | import 'utils/font_sizes.dart';
6 |
7 | class SplashScreen extends StatefulWidget {
8 | const SplashScreen({super.key});
9 |
10 | @override
11 | State createState() => _SplashScreenState();
12 | }
13 |
14 | class _SplashScreenState extends State {
15 | @override
16 | void initState() {
17 | startTimer();
18 | super.initState();
19 | }
20 |
21 | startTimer() async {
22 | Future.delayed(const Duration(milliseconds: 3000), () {
23 | Navigator.pushNamedAndRemoveUntil(
24 | context,
25 | Pages.home,
26 | (route) => false,
27 | );
28 | });
29 | }
30 |
31 | @override
32 | Widget build(BuildContext context) {
33 | return Scaffold(
34 | backgroundColor: kPrimaryColor,
35 | body: Center(
36 | child: Column(
37 | mainAxisAlignment: MainAxisAlignment.center,
38 | crossAxisAlignment: CrossAxisAlignment.center,
39 | children: [
40 | Image.asset('assets/images/app_logo.png', width: 100,),
41 | const SizedBox(height: 20,),
42 | buildText('Everything Tasks', kWhiteColor, textBold,
43 | FontWeight.w600, TextAlign.center, TextOverflow.clip),
44 | const SizedBox(
45 | height: 10,
46 | ),
47 | buildText('Schedule your week with ease', kWhiteColor, textTiny,
48 | FontWeight.normal, TextAlign.center, TextOverflow.clip),
49 | ],
50 | )));
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/lib/tasks/data/local/data_sources/tasks_data_provider.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'package:shared_preferences/shared_preferences.dart';
3 | import 'package:task_manager_app/tasks/data/local/model/task_model.dart';
4 | import 'package:task_manager_app/utils/exception_handler.dart';
5 |
6 | import '../../../../utils/constants.dart';
7 |
8 | class TaskDataProvider {
9 | List tasks = [];
10 | SharedPreferences? prefs;
11 |
12 | TaskDataProvider(this.prefs);
13 |
14 | Future> getTasks() async {
15 | try {
16 | final List? savedTasks = prefs!.getStringList(Constants.taskKey);
17 | if (savedTasks != null) {
18 | tasks = savedTasks
19 | .map((taskJson) => TaskModel.fromJson(json.decode(taskJson)))
20 | .toList();
21 | tasks.sort((a, b) {
22 | if (a.completed == b.completed) {
23 | return 0;
24 | } else if (a.completed) {
25 | return 1;
26 | } else {
27 | return -1;
28 | }
29 | });
30 | }
31 | return tasks;
32 | }catch(e){
33 | throw Exception(handleException(e));
34 | }
35 | }
36 |
37 | Future> sortTasks(int sortOption) async {
38 | switch (sortOption) {
39 | case 0:
40 | tasks.sort((a, b) {
41 | // Sort by date
42 | if (a.startDateTime!.isAfter(b.startDateTime!)) {
43 | return 1;
44 | } else if (a.startDateTime!.isBefore(b.startDateTime!)) {
45 | return -1;
46 | }
47 | return 0;
48 | });
49 | break;
50 | case 1:
51 | //sort by completed tasks
52 | tasks.sort((a, b) {
53 | if (!a.completed && b.completed) {
54 | return 1;
55 | } else if (a.completed && !b.completed) {
56 | return -1;
57 | }
58 | return 0;
59 | });
60 | break;
61 | case 2:
62 | //sort by pending tasks
63 | tasks.sort((a, b) {
64 | if (a.completed == b.completed) {
65 | return 0;
66 | } else if (a.completed) {
67 | return 1;
68 | } else {
69 | return -1;
70 | }
71 | });
72 | break;
73 | }
74 | return tasks;
75 | }
76 |
77 | Future createTask(TaskModel taskModel) async {
78 | try {
79 | tasks.add(taskModel);
80 | final List taskJsonList =
81 | tasks.map((task) => json.encode(task.toJson())).toList();
82 | await prefs!.setStringList(Constants.taskKey, taskJsonList);
83 | } catch (exception) {
84 | throw Exception(handleException(exception));
85 | }
86 | }
87 |
88 | Future> updateTask(TaskModel taskModel) async {
89 | try {
90 | tasks[tasks.indexWhere((element) => element.id == taskModel.id)] =
91 | taskModel;
92 | tasks.sort((a, b) {
93 | if (a.completed == b.completed) {
94 | return 0;
95 | } else if (a.completed) {
96 | return 1;
97 | } else {
98 | return -1;
99 | }
100 | });
101 | final List taskJsonList = tasks.map((task) =>
102 | json.encode(task.toJson())).toList();
103 | prefs!.setStringList(Constants.taskKey, taskJsonList);
104 | return tasks;
105 | } catch (exception) {
106 | throw Exception(handleException(exception));
107 | }
108 | }
109 |
110 | Future> deleteTask(TaskModel taskModel) async {
111 | try {
112 | tasks.remove(taskModel);
113 | final List taskJsonList = tasks.map((task) =>
114 | json.encode(task.toJson())).toList();
115 | prefs!.setStringList(Constants.taskKey, taskJsonList);
116 | return tasks;
117 | } catch (exception) {
118 | throw Exception(handleException(exception));
119 | }
120 | }
121 |
122 | Future> searchTasks(String keywords) async {
123 | var searchText = keywords.toLowerCase();
124 | List matchedTasked = tasks;
125 | return matchedTasked.where((task) {
126 | final titleMatches = task.title.toLowerCase().contains(searchText);
127 | final descriptionMatches = task.description.toLowerCase().contains(searchText);
128 | return titleMatches || descriptionMatches;
129 | }).toList();
130 | }
131 | }
132 |
--------------------------------------------------------------------------------
/lib/tasks/data/local/model/task_model.dart:
--------------------------------------------------------------------------------
1 | class TaskModel {
2 | String id;
3 | String title;
4 | String description;
5 | DateTime? startDateTime;
6 | DateTime? stopDateTime;
7 | bool completed;
8 |
9 | TaskModel({
10 | required this.id,
11 | required this.title,
12 | required this.description,
13 | required this.startDateTime,
14 | required this.stopDateTime,
15 | this.completed = false,
16 | });
17 |
18 | Map toJson() {
19 | return {
20 | 'id': id,
21 | 'title': title,
22 | 'description': description,
23 | 'completed': completed,
24 | 'startDateTime': startDateTime?.toIso8601String(),
25 | 'stopDateTime': stopDateTime?.toIso8601String(),
26 | };
27 | }
28 |
29 |
30 | factory TaskModel.fromJson(Map json) {
31 | return TaskModel(
32 | id: json['id'],
33 | title: json['title'],
34 | description: json['description'],
35 | completed: json['completed'],
36 | startDateTime: DateTime.parse(json['startDateTime']),
37 | stopDateTime: DateTime.parse(json['stopDateTime']),
38 | );
39 | }
40 |
41 | @override
42 | String toString() {
43 | return 'TaskModel{id: $id, title: $title, description: $description, '
44 | 'startDateTime: $startDateTime, stopDateTime: $stopDateTime, '
45 | 'completed: $completed}';
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/lib/tasks/data/repository/task_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:task_manager_app/tasks/data/local/data_sources/tasks_data_provider.dart';
2 | import 'package:task_manager_app/tasks/data/local/model/task_model.dart';
3 |
4 | class TaskRepository{
5 | final TaskDataProvider taskDataProvider;
6 |
7 | TaskRepository({required this.taskDataProvider});
8 |
9 | Future> getTasks() async {
10 | return await taskDataProvider.getTasks();
11 | }
12 |
13 | Future createNewTask(TaskModel taskModel) async {
14 | return await taskDataProvider.createTask(taskModel);
15 | }
16 |
17 | Future> updateTask(TaskModel taskModel) async {
18 | return await taskDataProvider.updateTask(taskModel);
19 | }
20 |
21 | Future> deleteTask(TaskModel taskModel) async {
22 | return await taskDataProvider.deleteTask(taskModel);
23 | }
24 |
25 | Future> sortTasks(int sortOption) async {
26 | return await taskDataProvider.sortTasks(sortOption);
27 | }
28 |
29 | Future> searchTasks(String search) async {
30 | return await taskDataProvider.searchTasks(search);
31 | }
32 |
33 | }
--------------------------------------------------------------------------------
/lib/tasks/presentation/bloc/tasks_bloc.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/foundation.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 |
4 | import '../../data/local/model/task_model.dart';
5 | import '../../data/repository/task_repository.dart';
6 |
7 | part 'tasks_event.dart';
8 |
9 | part 'tasks_state.dart';
10 |
11 | class TasksBloc extends Bloc {
12 | final TaskRepository taskRepository;
13 |
14 | TasksBloc(this.taskRepository) : super(FetchTasksSuccess(tasks: const [])) {
15 | on(_addNewTask);
16 | on(_fetchTasks);
17 | on(_updateTask);
18 | on(_deleteTask);
19 | on(_sortTasks);
20 | on(_searchTasks);
21 | }
22 |
23 | _addNewTask(AddNewTaskEvent event, Emitter emit) async {
24 | emit(TasksLoading());
25 | try {
26 | if (event.taskModel.title.trim().isEmpty) {
27 | return emit(AddTaskFailure(error: 'Task title cannot be blank'));
28 | }
29 | if (event.taskModel.description.trim().isEmpty) {
30 | return emit(AddTaskFailure(error: 'Task description cannot be blank'));
31 | }
32 | if (event.taskModel.startDateTime == null) {
33 | return emit(AddTaskFailure(error: 'Missing task start date'));
34 | }
35 | if (event.taskModel.stopDateTime == null) {
36 | return emit(AddTaskFailure(error: 'Missing task stop date'));
37 | }
38 | await taskRepository.createNewTask(event.taskModel);
39 | emit(AddTasksSuccess());
40 | final tasks = await taskRepository.getTasks();
41 | return emit(FetchTasksSuccess(tasks: tasks));
42 | } catch (exception) {
43 | emit(AddTaskFailure(error: exception.toString()));
44 | }
45 | }
46 |
47 | void _fetchTasks(FetchTaskEvent event, Emitter emit) async {
48 | emit(TasksLoading());
49 | try {
50 | final tasks = await taskRepository.getTasks();
51 | return emit(FetchTasksSuccess(tasks: tasks));
52 | } catch (exception) {
53 | emit(LoadTaskFailure(error: exception.toString()));
54 | }
55 | }
56 |
57 | _updateTask(UpdateTaskEvent event, Emitter emit) async {
58 | try {
59 | if (event.taskModel.title.trim().isEmpty) {
60 | return emit(UpdateTaskFailure(error: 'Task title cannot be blank'));
61 | }
62 | if (event.taskModel.description.trim().isEmpty) {
63 | return emit(
64 | UpdateTaskFailure(error: 'Task description cannot be blank'));
65 | }
66 | if (event.taskModel.startDateTime == null) {
67 | return emit(UpdateTaskFailure(error: 'Missing task start date'));
68 | }
69 | if (event.taskModel.stopDateTime == null) {
70 | return emit(UpdateTaskFailure(error: 'Missing task stop date'));
71 | }
72 | emit(TasksLoading());
73 | final tasks = await taskRepository.updateTask(event.taskModel);
74 | emit(UpdateTaskSuccess());
75 | return emit(FetchTasksSuccess(tasks: tasks));
76 | } catch (exception) {
77 | emit(UpdateTaskFailure(error: exception.toString()));
78 | }
79 | }
80 |
81 | _deleteTask(DeleteTaskEvent event, Emitter emit) async {
82 | emit(TasksLoading());
83 | try {
84 | final tasks = await taskRepository.deleteTask(event.taskModel);
85 | return emit(FetchTasksSuccess(tasks: tasks));
86 | } catch (exception) {
87 | emit(LoadTaskFailure(error: exception.toString()));
88 | }
89 | }
90 |
91 | _sortTasks(SortTaskEvent event, Emitter emit) async {
92 | final tasks = await taskRepository.sortTasks(event.sortOption);
93 | return emit(FetchTasksSuccess(tasks: tasks));
94 | }
95 |
96 | _searchTasks(SearchTaskEvent event, Emitter emit) async {
97 | final tasks = await taskRepository.searchTasks(event.keywords);
98 | return emit(FetchTasksSuccess(tasks: tasks, isSearching: true));
99 | }
100 | }
101 |
--------------------------------------------------------------------------------
/lib/tasks/presentation/bloc/tasks_event.dart:
--------------------------------------------------------------------------------
1 | part of 'tasks_bloc.dart';
2 |
3 | @immutable
4 | sealed class TasksEvent {}
5 |
6 | class AddNewTaskEvent extends TasksEvent {
7 | final TaskModel taskModel;
8 |
9 | AddNewTaskEvent({required this.taskModel});
10 | }
11 |
12 | class FetchTaskEvent extends TasksEvent {}
13 |
14 | class SortTaskEvent extends TasksEvent {
15 | final int sortOption;
16 |
17 | SortTaskEvent({required this.sortOption});
18 | }
19 |
20 | class UpdateTaskEvent extends TasksEvent {
21 | final TaskModel taskModel;
22 |
23 | UpdateTaskEvent({required this.taskModel});
24 | }
25 |
26 | class DeleteTaskEvent extends TasksEvent {
27 | final TaskModel taskModel;
28 |
29 | DeleteTaskEvent({required this.taskModel});
30 | }
31 |
32 | class SearchTaskEvent extends TasksEvent{
33 | final String keywords;
34 |
35 | SearchTaskEvent({required this.keywords});
36 | }
37 |
38 |
39 |
--------------------------------------------------------------------------------
/lib/tasks/presentation/bloc/tasks_state.dart:
--------------------------------------------------------------------------------
1 | part of 'tasks_bloc.dart';
2 |
3 | @immutable
4 | sealed class TasksState {}
5 |
6 | final class FetchTasksSuccess extends TasksState {
7 | final List tasks;
8 | final bool isSearching;
9 |
10 | FetchTasksSuccess({required this.tasks, this.isSearching = false});
11 | }
12 |
13 | final class AddTasksSuccess extends TasksState {}
14 |
15 | final class LoadTaskFailure extends TasksState {
16 | final String error;
17 |
18 | LoadTaskFailure({required this.error});
19 | }
20 |
21 | final class AddTaskFailure extends TasksState {
22 | final String error;
23 |
24 | AddTaskFailure({required this.error});
25 | }
26 |
27 | final class TasksLoading extends TasksState {}
28 |
29 | final class UpdateTaskFailure extends TasksState {
30 | final String error;
31 |
32 | UpdateTaskFailure({required this.error});
33 | }
34 |
35 | final class UpdateTaskSuccess extends TasksState {}
36 |
--------------------------------------------------------------------------------
/lib/tasks/presentation/pages/new_task_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/services.dart';
3 | import 'package:flutter_bloc/flutter_bloc.dart';
4 | import 'package:table_calendar/table_calendar.dart';
5 | import 'package:task_manager_app/components/widgets.dart';
6 | import 'package:task_manager_app/tasks/data/local/model/task_model.dart';
7 | import 'package:task_manager_app/utils/font_sizes.dart';
8 | import 'package:task_manager_app/utils/util.dart';
9 |
10 | import '../../../components/custom_app_bar.dart';
11 | import '../../../utils/color_palette.dart';
12 | import '../bloc/tasks_bloc.dart';
13 | import '../../../components/build_text_field.dart';
14 |
15 | class NewTaskScreen extends StatefulWidget {
16 | const NewTaskScreen({super.key});
17 |
18 | @override
19 | State createState() => _NewTaskScreenState();
20 | }
21 |
22 | class _NewTaskScreenState extends State {
23 | TextEditingController title = TextEditingController();
24 | TextEditingController description = TextEditingController();
25 |
26 | CalendarFormat _calendarFormat = CalendarFormat.month;
27 | DateTime _focusedDay = DateTime.now();
28 | DateTime? _selectedDay;
29 | DateTime? _rangeStart;
30 | DateTime? _rangeEnd;
31 |
32 | @override
33 | void initState() {
34 | _selectedDay = _focusedDay;
35 | super.initState();
36 | }
37 |
38 | _onRangeSelected(DateTime? start, DateTime? end, DateTime focusDay) {
39 | setState(() {
40 | _selectedDay = null;
41 | _focusedDay = focusDay;
42 | _rangeStart = start;
43 | _rangeEnd = end;
44 | });
45 | }
46 |
47 | @override
48 | Widget build(BuildContext context) {
49 | return AnnotatedRegion(
50 | value: const SystemUiOverlayStyle(
51 | statusBarColor: Colors.transparent,
52 | ),
53 | child: Scaffold(
54 | backgroundColor: kWhiteColor,
55 | appBar: const CustomAppBar(
56 | title: 'Create New Task',
57 | ),
58 | body: GestureDetector(
59 | behavior: HitTestBehavior.opaque,
60 | onTap: () => FocusScope.of(context).unfocus(),
61 | child: Padding(
62 | padding: const EdgeInsets.all(20),
63 | child: BlocConsumer(
64 | listener: (context, state) {
65 | if (state is AddTaskFailure) {
66 | ScaffoldMessenger.of(context).showSnackBar(
67 | getSnackBar(state.error, kRed));
68 | }
69 | if (state is AddTasksSuccess) {
70 | Navigator.pop(context);
71 | }
72 | }, builder: (context, state) {
73 | return ListView(
74 | children: [
75 | TableCalendar(
76 | calendarFormat: _calendarFormat,
77 | startingDayOfWeek: StartingDayOfWeek.monday,
78 | availableCalendarFormats: const {
79 | CalendarFormat.month: 'Month',
80 | CalendarFormat.week: 'Week',
81 | },
82 | rangeSelectionMode: RangeSelectionMode.toggledOn,
83 | focusedDay: _focusedDay,
84 | firstDay: DateTime.utc(2023, 1, 1),
85 | lastDay: DateTime.utc(2030, 1, 1),
86 | onPageChanged: (focusDay) {
87 | _focusedDay = focusDay;
88 | },
89 | selectedDayPredicate: (day) =>
90 | isSameDay(_selectedDay, day),
91 | rangeStartDay: _rangeStart,
92 | rangeEndDay: _rangeEnd,
93 | onFormatChanged: (format) {
94 | if (_calendarFormat != format) {
95 | setState(() {
96 | _calendarFormat = format;
97 | });
98 | }
99 | },
100 | onRangeSelected: _onRangeSelected,
101 | ),
102 | const SizedBox(height: 20),
103 | Container(
104 | padding: const EdgeInsets.symmetric(
105 | vertical: 10, horizontal: 20),
106 | decoration: BoxDecoration(
107 | color: kPrimaryColor.withOpacity(.1),
108 | borderRadius:
109 | const BorderRadius.all(Radius.circular(5))),
110 | child: buildText(
111 | _rangeStart != null && _rangeEnd != null
112 | ? 'Task starting at ${formatDate(dateTime: _rangeStart.toString())} - ${formatDate(dateTime: _rangeEnd.toString())}'
113 | : 'Select a date range',
114 | kPrimaryColor,
115 | textSmall,
116 | FontWeight.w400,
117 | TextAlign.start,
118 | TextOverflow.clip),
119 | ),
120 | const SizedBox(height: 20),
121 | buildText(
122 | 'Title',
123 | kBlackColor,
124 | textMedium,
125 | FontWeight.bold,
126 | TextAlign.start,
127 | TextOverflow.clip),
128 | const SizedBox(
129 | height: 10,
130 | ),
131 | BuildTextField(
132 | hint: "Task Title",
133 | controller: title,
134 | inputType: TextInputType.text,
135 | fillColor: kWhiteColor,
136 | onChange: (value) {}),
137 | const SizedBox(
138 | height: 20,
139 | ),
140 | buildText(
141 | 'Description',
142 | kBlackColor,
143 | textMedium,
144 | FontWeight.bold,
145 | TextAlign.start,
146 | TextOverflow.clip),
147 | const SizedBox(
148 | height: 10,
149 | ),
150 | BuildTextField(
151 | hint: "Task Description",
152 | controller: description,
153 | inputType: TextInputType.multiline,
154 | fillColor: kWhiteColor,
155 | onChange: (value) {}),
156 | const SizedBox(height: 20),
157 | Row(
158 | children: [
159 | Expanded(
160 | child: ElevatedButton(
161 | style: ButtonStyle(
162 | foregroundColor:
163 | MaterialStateProperty.all(
164 | Colors.white),
165 | backgroundColor:
166 | MaterialStateProperty.all(
167 | kWhiteColor),
168 | shape: MaterialStateProperty.all<
169 | RoundedRectangleBorder>(
170 | RoundedRectangleBorder(
171 | borderRadius: BorderRadius.circular(
172 | 10), // Adjust the radius as needed
173 | ),
174 | ),
175 | ),
176 | onPressed: () {
177 | Navigator.pop(context);
178 | },
179 | child: Padding(
180 | padding: const EdgeInsets.all(15),
181 | child: buildText(
182 | 'Cancel',
183 | kBlackColor,
184 | textMedium,
185 | FontWeight.w600,
186 | TextAlign.center,
187 | TextOverflow.clip),
188 | )),
189 | ),
190 | const SizedBox(
191 | width: 20,
192 | ),
193 | Expanded(
194 | child: ElevatedButton(
195 | style: ButtonStyle(
196 | foregroundColor:
197 | MaterialStateProperty.all(
198 | Colors.white),
199 | backgroundColor:
200 | MaterialStateProperty.all(
201 | kPrimaryColor),
202 | shape: MaterialStateProperty.all<
203 | RoundedRectangleBorder>(
204 | RoundedRectangleBorder(
205 | borderRadius: BorderRadius.circular(
206 | 10), // Adjust the radius as needed
207 | ),
208 | ),
209 | ),
210 | onPressed: () {
211 | final String taskId = DateTime.now()
212 | .millisecondsSinceEpoch
213 | .toString();
214 | var taskModel = TaskModel(
215 | id: taskId,
216 | title: title.text,
217 | description: description.text,
218 | startDateTime: _rangeStart,
219 | stopDateTime: _rangeEnd);
220 | context.read().add(
221 | AddNewTaskEvent(
222 | taskModel: taskModel));
223 | },
224 | child: Padding(
225 | padding: const EdgeInsets.all(15),
226 | child: buildText(
227 | 'Save',
228 | kWhiteColor,
229 | textMedium,
230 | FontWeight.w600,
231 | TextAlign.center,
232 | TextOverflow.clip),
233 | )),
234 | ),
235 | ],
236 | )
237 | ],
238 | );
239 | })))));
240 | }
241 | }
242 |
--------------------------------------------------------------------------------
/lib/tasks/presentation/pages/tasks_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter/services.dart';
4 | import 'package:flutter_bloc/flutter_bloc.dart';
5 | import 'package:flutter_svg/svg.dart';
6 | import 'package:task_manager_app/components/custom_app_bar.dart';
7 | import 'package:task_manager_app/tasks/presentation/bloc/tasks_bloc.dart';
8 | import 'package:task_manager_app/components/build_text_field.dart';
9 | import 'package:task_manager_app/tasks/presentation/widget/task_item_view.dart';
10 | import 'package:task_manager_app/utils/color_palette.dart';
11 | import 'package:task_manager_app/utils/util.dart';
12 |
13 | import '../../../components/widgets.dart';
14 | import '../../../routes/pages.dart';
15 | import '../../../utils/font_sizes.dart';
16 |
17 | class TasksScreen extends StatefulWidget {
18 | const TasksScreen({super.key});
19 |
20 | @override
21 | State createState() => _TasksScreenState();
22 | }
23 |
24 | class _TasksScreenState extends State {
25 | TextEditingController searchController = TextEditingController();
26 |
27 | @override
28 | void initState() {
29 | context.read().add(FetchTaskEvent());
30 | super.initState();
31 | }
32 |
33 | @override
34 | Widget build(BuildContext context) {
35 | var size = MediaQuery.of(context).size;
36 | return AnnotatedRegion(
37 | value: const SystemUiOverlayStyle(
38 | statusBarColor: Colors.transparent,
39 | ),
40 | child: ScaffoldMessenger(
41 | child: Scaffold(
42 | backgroundColor: kWhiteColor,
43 | appBar: CustomAppBar(
44 | title: 'Hi Jerome',
45 | showBackArrow: false,
46 | actionWidgets: [
47 | PopupMenuButton(
48 | shape: RoundedRectangleBorder(
49 | borderRadius: BorderRadius.circular(10.0),
50 | ),
51 | elevation: 1,
52 | onSelected: (value) {
53 | switch (value) {
54 | case 0:
55 | {
56 | context
57 | .read()
58 | .add(SortTaskEvent(sortOption: 0));
59 | break;
60 | }
61 | case 1:
62 | {
63 | context
64 | .read()
65 | .add(SortTaskEvent(sortOption: 1));
66 | break;
67 | }
68 | case 2:
69 | {
70 | context
71 | .read()
72 | .add(SortTaskEvent(sortOption: 2));
73 | break;
74 | }
75 | }
76 | },
77 | itemBuilder: (BuildContext context) {
78 | return [
79 | PopupMenuItem(
80 | value: 0,
81 | child: Row(
82 | children: [
83 | SvgPicture.asset(
84 | 'assets/svgs/calender.svg',
85 | width: 15,
86 | ),
87 | const SizedBox(
88 | width: 10,
89 | ),
90 | buildText(
91 | 'Sort by date',
92 | kBlackColor,
93 | textSmall,
94 | FontWeight.normal,
95 | TextAlign.start,
96 | TextOverflow.clip)
97 | ],
98 | ),
99 | ),
100 | PopupMenuItem(
101 | value: 1,
102 | child: Row(
103 | children: [
104 | SvgPicture.asset(
105 | 'assets/svgs/task_checked.svg',
106 | width: 15,
107 | ),
108 | const SizedBox(
109 | width: 10,
110 | ),
111 | buildText(
112 | 'Completed tasks',
113 | kBlackColor,
114 | textSmall,
115 | FontWeight.normal,
116 | TextAlign.start,
117 | TextOverflow.clip)
118 | ],
119 | ),
120 | ),
121 | PopupMenuItem(
122 | value: 2,
123 | child: Row(
124 | children: [
125 | SvgPicture.asset(
126 | 'assets/svgs/task.svg',
127 | width: 15,
128 | ),
129 | const SizedBox(
130 | width: 10,
131 | ),
132 | buildText(
133 | 'Pending tasks',
134 | kBlackColor,
135 | textSmall,
136 | FontWeight.normal,
137 | TextAlign.start,
138 | TextOverflow.clip)
139 | ],
140 | ),
141 | ),
142 | ];
143 | },
144 | child: Padding(
145 | padding: const EdgeInsets.only(right: 20),
146 | child: SvgPicture.asset('assets/svgs/filter.svg'),
147 | ),
148 | ),
149 | ],
150 | ),
151 | body: GestureDetector(
152 | behavior: HitTestBehavior.opaque,
153 | onTap: () => FocusScope.of(context).unfocus(),
154 | child: Padding(
155 | padding: const EdgeInsets.all(20),
156 | child: BlocConsumer(
157 | listener: (context, state) {
158 | if (state is LoadTaskFailure) {
159 | ScaffoldMessenger.of(context)
160 | .showSnackBar(getSnackBar(state.error, kRed));
161 | }
162 |
163 | if (state is AddTaskFailure || state is UpdateTaskFailure) {
164 | context.read().add(FetchTaskEvent());
165 | }
166 | }, builder: (context, state) {
167 | if (state is TasksLoading) {
168 | return const Center(
169 | child: CupertinoActivityIndicator(),
170 | );
171 | }
172 |
173 | if (state is LoadTaskFailure) {
174 | return Center(
175 | child: buildText(
176 | state.error,
177 | kBlackColor,
178 | textMedium,
179 | FontWeight.normal,
180 | TextAlign.center,
181 | TextOverflow.clip),
182 | );
183 | }
184 |
185 | if (state is FetchTasksSuccess) {
186 | return state.tasks.isNotEmpty || state.isSearching
187 | ? Column(
188 | children: [
189 | BuildTextField(
190 | hint: "Search recent task",
191 | controller: searchController,
192 | inputType: TextInputType.text,
193 | prefixIcon: const Icon(
194 | Icons.search,
195 | color: kGrey2,
196 | ),
197 | fillColor: kWhiteColor,
198 | onChange: (value) {
199 | context.read().add(
200 | SearchTaskEvent(keywords: value));
201 | }),
202 | const SizedBox(
203 | height: 20,
204 | ),
205 | Expanded(
206 | child: ListView.separated(
207 | shrinkWrap: true,
208 | itemCount: state.tasks.length,
209 | itemBuilder: (context, index) {
210 | return TaskItemView(
211 | taskModel: state.tasks[index]);
212 | },
213 | separatorBuilder:
214 | (BuildContext context, int index) {
215 | return const Divider(
216 | color: kGrey3,
217 | );
218 | },
219 | ))
220 | ],
221 | )
222 | : Center(
223 | child: Column(
224 | crossAxisAlignment: CrossAxisAlignment.center,
225 | mainAxisAlignment: MainAxisAlignment.center,
226 | children: [
227 | SvgPicture.asset(
228 | 'assets/svgs/tasks.svg',
229 | height: size.height * .20,
230 | width: size.width,
231 | ),
232 | const SizedBox(
233 | height: 50,
234 | ),
235 | buildText(
236 | 'Schedule your tasks',
237 | kBlackColor,
238 | textBold,
239 | FontWeight.w600,
240 | TextAlign.center,
241 | TextOverflow.clip),
242 | buildText(
243 | 'Manage your task schedule easily\nand efficiently',
244 | kBlackColor.withOpacity(.5),
245 | textSmall,
246 | FontWeight.normal,
247 | TextAlign.center,
248 | TextOverflow.clip),
249 | ],
250 | ),
251 | );
252 | }
253 | return Container();
254 | }))),
255 | floatingActionButton: FloatingActionButton(
256 | child: const Icon(
257 | Icons.add_circle,
258 | color: kPrimaryColor,
259 | ),
260 | onPressed: () {
261 | Navigator.pushNamed(context, Pages.createNewTask);
262 | }),
263 | )));
264 | }
265 | }
266 |
--------------------------------------------------------------------------------
/lib/tasks/presentation/pages/update_task_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/services.dart';
3 | import 'package:flutter_bloc/flutter_bloc.dart';
4 | import 'package:table_calendar/table_calendar.dart';
5 | import 'package:task_manager_app/components/widgets.dart';
6 | import 'package:task_manager_app/tasks/data/local/model/task_model.dart';
7 | import 'package:task_manager_app/utils/font_sizes.dart';
8 |
9 | import '../../../components/custom_app_bar.dart';
10 | import '../../../utils/color_palette.dart';
11 | import '../../../utils/util.dart';
12 | import '../bloc/tasks_bloc.dart';
13 | import '../../../components/build_text_field.dart';
14 |
15 | class UpdateTaskScreen extends StatefulWidget {
16 | final TaskModel taskModel;
17 |
18 | const UpdateTaskScreen({super.key, required this.taskModel});
19 |
20 | @override
21 | State createState() => _UpdateTaskScreenState();
22 | }
23 |
24 | class _UpdateTaskScreenState extends State {
25 | TextEditingController title = TextEditingController();
26 | TextEditingController description = TextEditingController();
27 |
28 | CalendarFormat _calendarFormat = CalendarFormat.month;
29 | DateTime _focusedDay = DateTime.now();
30 | DateTime? _selectedDay;
31 | DateTime? _rangeStart;
32 | DateTime? _rangeEnd;
33 |
34 | _onRangeSelected(DateTime? start, DateTime? end, DateTime focusDay) {
35 | setState(() {
36 | _selectedDay = null;
37 | _focusedDay = focusDay;
38 | _rangeStart = start;
39 | _rangeEnd = end;
40 | });
41 | }
42 |
43 | @override
44 | void dispose() {
45 | title.dispose();
46 | description.dispose();
47 | super.dispose();
48 | }
49 |
50 | @override
51 | void initState() {
52 | title.text = widget.taskModel.title;
53 | description.text = widget.taskModel.description;
54 | _selectedDay = _focusedDay;
55 | _rangeStart = widget.taskModel.startDateTime;
56 | _rangeEnd = widget.taskModel.stopDateTime;
57 | super.initState();
58 | }
59 |
60 | @override
61 | Widget build(BuildContext context) {
62 | var size = MediaQuery.of(context).size;
63 | return AnnotatedRegion(
64 | value: const SystemUiOverlayStyle(
65 | statusBarColor: Colors.transparent,
66 | ),
67 | child: Scaffold(
68 | backgroundColor: kWhiteColor,
69 | appBar: const CustomAppBar(
70 | title: 'Update Task',
71 | ),
72 | body: GestureDetector(
73 | behavior: HitTestBehavior.opaque,
74 | onTap: () => FocusScope.of(context).unfocus(),
75 | child: Padding(
76 | padding: const EdgeInsets.all(20),
77 | child: BlocConsumer(
78 | listener: (context, state) {
79 | if (state is UpdateTaskFailure) {
80 | ScaffoldMessenger.of(context).showSnackBar(
81 | getSnackBar(state.error, kRed));
82 | }
83 | if (state is UpdateTaskSuccess) {
84 | Navigator.pop(context);
85 | }
86 | }, builder: (context, state) {
87 | return ListView(
88 | children: [
89 | TableCalendar(
90 | calendarFormat: _calendarFormat,
91 | startingDayOfWeek: StartingDayOfWeek.monday,
92 | availableCalendarFormats: const {
93 | CalendarFormat.month: 'Month',
94 | CalendarFormat.week: 'Week',
95 | },
96 | rangeSelectionMode: RangeSelectionMode.toggledOn,
97 | focusedDay: _focusedDay,
98 | firstDay: DateTime.utc(2023, 1, 1),
99 | lastDay: DateTime.utc(2030, 1, 1),
100 | onPageChanged: (focusDay) {
101 | _focusedDay = focusDay;
102 | },
103 | selectedDayPredicate: (day) =>
104 | isSameDay(_selectedDay, day),
105 | rangeStartDay: _rangeStart,
106 | rangeEndDay: _rangeEnd,
107 | onFormatChanged: (format) {
108 | if (_calendarFormat != format) {
109 | setState(() {
110 | _calendarFormat = format;
111 | });
112 | }
113 | },
114 | onRangeSelected: _onRangeSelected,
115 | ),
116 | const SizedBox(height: 20),
117 | Container(
118 | padding: const EdgeInsets.symmetric(
119 | vertical: 10, horizontal: 20),
120 | decoration: BoxDecoration(
121 | color: kPrimaryColor.withOpacity(.1),
122 | borderRadius:
123 | const BorderRadius.all(Radius.circular(5))),
124 | child: buildText(
125 | _rangeStart != null && _rangeEnd != null
126 | ? 'Task starting at ${formatDate(dateTime: _rangeStart.toString())} - ${formatDate(dateTime: _rangeEnd.toString())}'
127 | : 'Select a date range',
128 | kPrimaryColor,
129 | textSmall,
130 | FontWeight.w400,
131 | TextAlign.start,
132 | TextOverflow.clip),
133 | ),
134 | const SizedBox(height: 20),
135 | buildText(
136 | 'Title',
137 | kBlackColor,
138 | textMedium,
139 | FontWeight.bold,
140 | TextAlign.start,
141 | TextOverflow.clip),
142 | const SizedBox(
143 | height: 10,
144 | ),
145 | BuildTextField(
146 | hint: "Task Title",
147 | controller: title,
148 | inputType: TextInputType.text,
149 | fillColor: kWhiteColor,
150 | onChange: (value) {}),
151 | const SizedBox(
152 | height: 20,
153 | ),
154 | buildText(
155 | 'Description',
156 | kBlackColor,
157 | textMedium,
158 | FontWeight.bold,
159 | TextAlign.start,
160 | TextOverflow.clip),
161 | const SizedBox(
162 | height: 10,
163 | ),
164 | BuildTextField(
165 | hint: "Task Description",
166 | controller: description,
167 | inputType: TextInputType.multiline,
168 | fillColor: kWhiteColor,
169 | onChange: (value) {}),
170 | const SizedBox(height: 20),
171 | SizedBox(
172 | width: size.width,
173 | child: ElevatedButton(
174 | style: ButtonStyle(
175 | foregroundColor:
176 | MaterialStateProperty.all(
177 | Colors.white),
178 | backgroundColor:
179 | MaterialStateProperty.all(
180 | kPrimaryColor),
181 | shape: MaterialStateProperty.all<
182 | RoundedRectangleBorder>(
183 | RoundedRectangleBorder(
184 | borderRadius: BorderRadius.circular(
185 | 10), // Adjust the radius as needed
186 | ),
187 | ),
188 | ),
189 | onPressed: () {
190 | var taskModel = TaskModel(
191 | id: widget.taskModel.id,
192 | title: title.text,
193 | description: description.text,
194 | completed: widget.taskModel.completed,
195 | startDateTime: _rangeStart,
196 | stopDateTime: _rangeEnd);
197 | context.read().add(
198 | UpdateTaskEvent(taskModel: taskModel));
199 | },
200 | child: Padding(
201 | padding: const EdgeInsets.all(15),
202 | child: buildText(
203 | 'Update',
204 | kWhiteColor,
205 | textMedium,
206 | FontWeight.w600,
207 | TextAlign.center,
208 | TextOverflow.clip),
209 | )),
210 | ),
211 | ],
212 | );
213 | })))));
214 | }
215 | }
216 |
--------------------------------------------------------------------------------
/lib/tasks/presentation/widget/task_item_view.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 | import 'package:flutter_svg/svg.dart';
4 | import '../../../components/widgets.dart';
5 | import '../../../routes/pages.dart';
6 | import '../../../utils/color_palette.dart';
7 | import '../../../utils/font_sizes.dart';
8 | import '../../../utils/util.dart';
9 | import '../../data/local/model/task_model.dart';
10 | import '../bloc/tasks_bloc.dart';
11 |
12 | class TaskItemView extends StatefulWidget {
13 | final TaskModel taskModel;
14 | const TaskItemView({super.key, required this.taskModel});
15 |
16 | @override
17 | State createState() => _TaskItemViewState();
18 | }
19 |
20 | class _TaskItemViewState extends State {
21 | @override
22 | Widget build(BuildContext context) {
23 | return Container(
24 | margin: const EdgeInsets.only(bottom: 10),
25 | padding: const EdgeInsets.all(0),
26 | child: Row(
27 | mainAxisSize: MainAxisSize.min,
28 | crossAxisAlignment: CrossAxisAlignment.center,
29 | children: [
30 | Checkbox(
31 | value: widget.taskModel.completed,
32 | onChanged: (value) {
33 | var taskModel = TaskModel(
34 | id: widget.taskModel.id,
35 | title: widget.taskModel.title,
36 | description: widget.taskModel.description,
37 | completed: !widget.taskModel.completed,
38 | startDateTime: widget.taskModel.startDateTime,
39 | stopDateTime: widget.taskModel.stopDateTime);
40 | context.read().add(
41 | UpdateTaskEvent(taskModel: taskModel));
42 | }),
43 | Expanded(
44 | child: Column(
45 | crossAxisAlignment:
46 | CrossAxisAlignment.start,
47 | children: [
48 | Row(
49 | crossAxisAlignment: CrossAxisAlignment.start,
50 | children: [
51 | Expanded(child: buildText(
52 | widget.taskModel.title,
53 | kBlackColor,
54 | textMedium,
55 | FontWeight.w500,
56 | TextAlign.start,
57 | TextOverflow.clip)),
58 | PopupMenuButton(
59 | shape: RoundedRectangleBorder(
60 | borderRadius: BorderRadius.circular(10.0),
61 | ),
62 | color: kWhiteColor,
63 | elevation: 1,
64 | onSelected: (value) {
65 | switch (value) {
66 | case 0:
67 | {
68 | Navigator.pushNamed(context, Pages.updateTask, arguments: widget.taskModel);
69 | break;
70 | }
71 | case 1:
72 | {
73 | context.read().add(
74 | DeleteTaskEvent(taskModel: widget.taskModel));
75 | break;
76 | }
77 | }
78 | },
79 | itemBuilder: (BuildContext context) {
80 | return [
81 | PopupMenuItem(
82 | value: 0,
83 | child: Row(
84 | children: [
85 | SvgPicture.asset(
86 | 'assets/svgs/edit.svg',
87 | width: 20,
88 | ),
89 | const SizedBox(
90 | width: 10,
91 | ),
92 | buildText(
93 | 'Edit task',
94 | kBlackColor,
95 | textMedium,
96 | FontWeight.normal,
97 | TextAlign.start,
98 | TextOverflow.clip)
99 | ],
100 | ),
101 | ),
102 | PopupMenuItem(
103 | value: 1,
104 | child: Row(
105 | children: [
106 | SvgPicture.asset(
107 | 'assets/svgs/delete.svg',
108 | width: 20,
109 | ),
110 | const SizedBox(
111 | width: 10,
112 | ),
113 | buildText(
114 | 'Delete task',
115 | kRed,
116 | textMedium,
117 | FontWeight.normal,
118 | TextAlign.start,
119 | TextOverflow.clip)
120 | ],
121 | ),
122 | ),
123 | ];
124 | },
125 | child: SvgPicture.asset('assets/svgs/vertical_menu.svg'),
126 | ),
127 | ],
128 | ),
129 | const SizedBox(height: 5,),
130 | buildText(
131 | widget.taskModel
132 | .description,
133 | kGrey1,
134 | textSmall,
135 | FontWeight.normal,
136 | TextAlign.start,
137 | TextOverflow.clip),
138 | const SizedBox(height: 15,),
139 | Container(
140 | padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 20),
141 | decoration: BoxDecoration(
142 | color: kPrimaryColor.withOpacity(.1),
143 | borderRadius: const BorderRadius.all(Radius.circular(5))
144 | ),
145 | child: Row(
146 | children: [
147 | SvgPicture.asset('assets/svgs/calender.svg', width: 12,),
148 | const SizedBox(width: 10,),
149 | Expanded(child: buildText(
150 | '${formatDate(dateTime: widget.taskModel
151 | .startDateTime.toString())} - ${formatDate(dateTime: widget.taskModel
152 | .stopDateTime.toString())}', kBlackColor, textTiny,
153 | FontWeight.w400, TextAlign.start, TextOverflow.clip),)
154 | ],
155 | )
156 | ),
157 | ],
158 | ),
159 | ),
160 | const SizedBox(width: 10,),
161 | ],
162 | ));
163 | }
164 | }
165 |
--------------------------------------------------------------------------------
/lib/utils/color_palette.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | const Color kWhiteColor = Color(0xffffffff);
4 | const Color kBlackColor = Color(0xff000000);
5 |
6 | const Color kGrey0 = Color(0xff555555);
7 | const Color kGrey1 = Color(0xff8D9091);
8 | const Color kGrey2 = Color(0xffCCCCCC);
9 | const Color kGrey3 = Color(0xffEFEFEF);
10 |
11 | const Color kPrimaryColor = Color(0xFF3F37C9);
12 |
13 | const Color kRed = Color(0xffC5292A);
--------------------------------------------------------------------------------
/lib/utils/constants.dart:
--------------------------------------------------------------------------------
1 | class Constants{
2 | static const String taskKey = 'tasks';
3 | }
--------------------------------------------------------------------------------
/lib/utils/exception_handler.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | String handleException(dynamic exception) {
4 | if (exception is FormatException) {
5 | return 'Invalid data format. Please check your input.';
6 | } else if (exception is PathAccessException) {
7 | return 'Unable to load storage';
8 | } else {
9 | return 'An unexpected error occurred. Please try again later.';
10 | }
11 | }
--------------------------------------------------------------------------------
/lib/utils/font_sizes.dart:
--------------------------------------------------------------------------------
1 | const double textTiny = 10.0;
2 | const double textSmall = 12.0;
3 | const double textMedium = 14.0;
4 | const double textExtraLarge = 18.0;
5 | const double textXExtraLarge = 20.0;
6 | const double textBold = 30.0;
--------------------------------------------------------------------------------
/lib/utils/util.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:intl/intl.dart';
3 | import 'package:task_manager_app/utils/font_sizes.dart';
4 |
5 | DateTime toDate({required String dateTime}) {
6 | final utcDateTime = DateTime.parse(dateTime);
7 | return utcDateTime.toLocal();
8 | }
9 |
10 | String formatDate({
11 | required String dateTime,
12 | format = "dd MMM, yyyy"
13 | }) {
14 | final localDateTime = toDate(dateTime: dateTime);
15 | return DateFormat(format).format(localDateTime);
16 | }
17 |
18 | SnackBar getSnackBar(String message, Color backgroundColor) {
19 | SnackBar snackBar = SnackBar(
20 | content: Text(message,
21 | style: const TextStyle(fontSize: textMedium)),
22 | backgroundColor: backgroundColor,
23 | dismissDirection: DismissDirection.up,
24 | behavior: SnackBarBehavior.floating,
25 | );
26 | return snackBar;
27 | }
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | args:
5 | dependency: transitive
6 | description:
7 | name: args
8 | sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596
9 | url: "https://pub.dev"
10 | source: hosted
11 | version: "2.4.2"
12 | async:
13 | dependency: transitive
14 | description:
15 | name: async
16 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
17 | url: "https://pub.dev"
18 | source: hosted
19 | version: "2.11.0"
20 | bloc:
21 | dependency: transitive
22 | description:
23 | name: bloc
24 | sha256: "3820f15f502372d979121de1f6b97bfcf1630ebff8fe1d52fb2b0bfa49be5b49"
25 | url: "https://pub.dev"
26 | source: hosted
27 | version: "8.1.2"
28 | bloc_concurrency:
29 | dependency: "direct main"
30 | description:
31 | name: bloc_concurrency
32 | sha256: d945b33641a3c3f12fa12a1437e77f784444dd9a3a66a3a4f5aaa6e049154d36
33 | url: "https://pub.dev"
34 | source: hosted
35 | version: "0.2.3"
36 | boolean_selector:
37 | dependency: transitive
38 | description:
39 | name: boolean_selector
40 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
41 | url: "https://pub.dev"
42 | source: hosted
43 | version: "2.1.1"
44 | characters:
45 | dependency: transitive
46 | description:
47 | name: characters
48 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
49 | url: "https://pub.dev"
50 | source: hosted
51 | version: "1.3.0"
52 | clock:
53 | dependency: transitive
54 | description:
55 | name: clock
56 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
57 | url: "https://pub.dev"
58 | source: hosted
59 | version: "1.1.1"
60 | collection:
61 | dependency: transitive
62 | description:
63 | name: collection
64 | sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
65 | url: "https://pub.dev"
66 | source: hosted
67 | version: "1.18.0"
68 | connectivity_plus:
69 | dependency: transitive
70 | description:
71 | name: connectivity_plus
72 | sha256: "224a77051d52a11fbad53dd57827594d3bd24f945af28bd70bab376d68d437f0"
73 | url: "https://pub.dev"
74 | source: hosted
75 | version: "5.0.2"
76 | connectivity_plus_platform_interface:
77 | dependency: transitive
78 | description:
79 | name: connectivity_plus_platform_interface
80 | sha256: cf1d1c28f4416f8c654d7dc3cd638ec586076255d407cef3ddbdaf178272a71a
81 | url: "https://pub.dev"
82 | source: hosted
83 | version: "1.2.4"
84 | cupertino_icons:
85 | dependency: "direct main"
86 | description:
87 | name: cupertino_icons
88 | sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
89 | url: "https://pub.dev"
90 | source: hosted
91 | version: "1.0.6"
92 | dbus:
93 | dependency: transitive
94 | description:
95 | name: dbus
96 | sha256: "365c771ac3b0e58845f39ec6deebc76e3276aa9922b0cc60840712094d9047ac"
97 | url: "https://pub.dev"
98 | source: hosted
99 | version: "0.7.10"
100 | fake_async:
101 | dependency: transitive
102 | description:
103 | name: fake_async
104 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
105 | url: "https://pub.dev"
106 | source: hosted
107 | version: "1.3.1"
108 | ffi:
109 | dependency: transitive
110 | description:
111 | name: ffi
112 | sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878"
113 | url: "https://pub.dev"
114 | source: hosted
115 | version: "2.1.0"
116 | file:
117 | dependency: transitive
118 | description:
119 | name: file
120 | sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c"
121 | url: "https://pub.dev"
122 | source: hosted
123 | version: "7.0.0"
124 | flutter:
125 | dependency: "direct main"
126 | description: flutter
127 | source: sdk
128 | version: "0.0.0"
129 | flutter_bloc:
130 | dependency: "direct main"
131 | description:
132 | name: flutter_bloc
133 | sha256: e74efb89ee6945bcbce74a5b3a5a3376b088e5f21f55c263fc38cbdc6237faae
134 | url: "https://pub.dev"
135 | source: hosted
136 | version: "8.1.3"
137 | flutter_lints:
138 | dependency: "direct dev"
139 | description:
140 | name: flutter_lints
141 | sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04
142 | url: "https://pub.dev"
143 | source: hosted
144 | version: "2.0.3"
145 | flutter_svg:
146 | dependency: "direct main"
147 | description:
148 | name: flutter_svg
149 | sha256: "6ff9fa12892ae074092de2fa6a9938fb21dbabfdaa2ff57dc697ff912fc8d4b2"
150 | url: "https://pub.dev"
151 | source: hosted
152 | version: "1.1.6"
153 | flutter_test:
154 | dependency: "direct dev"
155 | description: flutter
156 | source: sdk
157 | version: "0.0.0"
158 | flutter_web_plugins:
159 | dependency: transitive
160 | description: flutter
161 | source: sdk
162 | version: "0.0.0"
163 | fluttertoast:
164 | dependency: transitive
165 | description:
166 | name: fluttertoast
167 | sha256: dfdde255317af381bfc1c486ed968d5a43a2ded9c931e87cbecd88767d6a71c1
168 | url: "https://pub.dev"
169 | source: hosted
170 | version: "8.2.4"
171 | http:
172 | dependency: transitive
173 | description:
174 | name: http
175 | sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525"
176 | url: "https://pub.dev"
177 | source: hosted
178 | version: "1.1.0"
179 | http_parser:
180 | dependency: transitive
181 | description:
182 | name: http_parser
183 | sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
184 | url: "https://pub.dev"
185 | source: hosted
186 | version: "4.0.2"
187 | intl:
188 | dependency: "direct main"
189 | description:
190 | name: intl
191 | sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d"
192 | url: "https://pub.dev"
193 | source: hosted
194 | version: "0.18.1"
195 | js:
196 | dependency: transitive
197 | description:
198 | name: js
199 | sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
200 | url: "https://pub.dev"
201 | source: hosted
202 | version: "0.6.7"
203 | leak_tracker:
204 | dependency: transitive
205 | description:
206 | name: leak_tracker
207 | sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa"
208 | url: "https://pub.dev"
209 | source: hosted
210 | version: "10.0.0"
211 | leak_tracker_flutter_testing:
212 | dependency: transitive
213 | description:
214 | name: leak_tracker_flutter_testing
215 | sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0
216 | url: "https://pub.dev"
217 | source: hosted
218 | version: "2.0.1"
219 | leak_tracker_testing:
220 | dependency: transitive
221 | description:
222 | name: leak_tracker_testing
223 | sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47
224 | url: "https://pub.dev"
225 | source: hosted
226 | version: "2.0.1"
227 | lints:
228 | dependency: transitive
229 | description:
230 | name: lints
231 | sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
232 | url: "https://pub.dev"
233 | source: hosted
234 | version: "2.1.1"
235 | matcher:
236 | dependency: transitive
237 | description:
238 | name: matcher
239 | sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
240 | url: "https://pub.dev"
241 | source: hosted
242 | version: "0.12.16+1"
243 | material_color_utilities:
244 | dependency: transitive
245 | description:
246 | name: material_color_utilities
247 | sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
248 | url: "https://pub.dev"
249 | source: hosted
250 | version: "0.8.0"
251 | meta:
252 | dependency: transitive
253 | description:
254 | name: meta
255 | sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
256 | url: "https://pub.dev"
257 | source: hosted
258 | version: "1.11.0"
259 | mocktail:
260 | dependency: "direct dev"
261 | description:
262 | name: mocktail
263 | sha256: f603ebd85a576e5914870b02e5839fc5d0243b867bf710651cf239a28ebb365e
264 | url: "https://pub.dev"
265 | source: hosted
266 | version: "1.0.2"
267 | nb_utils:
268 | dependency: "direct main"
269 | description:
270 | name: nb_utils
271 | sha256: bd777b58f9abc1f4873018d9ac3fd05cb05e04b1bb361256ecb188e18bb9a679
272 | url: "https://pub.dev"
273 | source: hosted
274 | version: "6.1.0"
275 | nested:
276 | dependency: transitive
277 | description:
278 | name: nested
279 | sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20"
280 | url: "https://pub.dev"
281 | source: hosted
282 | version: "1.0.0"
283 | nm:
284 | dependency: transitive
285 | description:
286 | name: nm
287 | sha256: "2c9aae4127bdc8993206464fcc063611e0e36e72018696cd9631023a31b24254"
288 | url: "https://pub.dev"
289 | source: hosted
290 | version: "0.5.0"
291 | path:
292 | dependency: transitive
293 | description:
294 | name: path
295 | sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
296 | url: "https://pub.dev"
297 | source: hosted
298 | version: "1.9.0"
299 | path_drawing:
300 | dependency: transitive
301 | description:
302 | name: path_drawing
303 | sha256: bbb1934c0cbb03091af082a6389ca2080345291ef07a5fa6d6e078ba8682f977
304 | url: "https://pub.dev"
305 | source: hosted
306 | version: "1.0.1"
307 | path_parsing:
308 | dependency: transitive
309 | description:
310 | name: path_parsing
311 | sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf
312 | url: "https://pub.dev"
313 | source: hosted
314 | version: "1.0.1"
315 | path_provider_linux:
316 | dependency: transitive
317 | description:
318 | name: path_provider_linux
319 | sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279
320 | url: "https://pub.dev"
321 | source: hosted
322 | version: "2.2.1"
323 | path_provider_platform_interface:
324 | dependency: transitive
325 | description:
326 | name: path_provider_platform_interface
327 | sha256: "94b1e0dd80970c1ce43d5d4e050a9918fce4f4a775e6142424c30a29a363265c"
328 | url: "https://pub.dev"
329 | source: hosted
330 | version: "2.1.1"
331 | path_provider_windows:
332 | dependency: transitive
333 | description:
334 | name: path_provider_windows
335 | sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170"
336 | url: "https://pub.dev"
337 | source: hosted
338 | version: "2.2.1"
339 | petitparser:
340 | dependency: transitive
341 | description:
342 | name: petitparser
343 | sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750
344 | url: "https://pub.dev"
345 | source: hosted
346 | version: "5.4.0"
347 | platform:
348 | dependency: transitive
349 | description:
350 | name: platform
351 | sha256: "0a279f0707af40c890e80b1e9df8bb761694c074ba7e1d4ab1bc4b728e200b59"
352 | url: "https://pub.dev"
353 | source: hosted
354 | version: "3.1.3"
355 | plugin_platform_interface:
356 | dependency: transitive
357 | description:
358 | name: plugin_platform_interface
359 | sha256: f4f88d4a900933e7267e2b353594774fc0d07fb072b47eedcd5b54e1ea3269f8
360 | url: "https://pub.dev"
361 | source: hosted
362 | version: "2.1.7"
363 | provider:
364 | dependency: transitive
365 | description:
366 | name: provider
367 | sha256: "9a96a0a19b594dbc5bf0f1f27d2bc67d5f95957359b461cd9feb44ed6ae75096"
368 | url: "https://pub.dev"
369 | source: hosted
370 | version: "6.1.1"
371 | shared_preferences:
372 | dependency: "direct main"
373 | description:
374 | name: shared_preferences
375 | sha256: "81429e4481e1ccfb51ede496e916348668fd0921627779233bd24cc3ff6abd02"
376 | url: "https://pub.dev"
377 | source: hosted
378 | version: "2.2.2"
379 | shared_preferences_android:
380 | dependency: transitive
381 | description:
382 | name: shared_preferences_android
383 | sha256: "8568a389334b6e83415b6aae55378e158fbc2314e074983362d20c562780fb06"
384 | url: "https://pub.dev"
385 | source: hosted
386 | version: "2.2.1"
387 | shared_preferences_foundation:
388 | dependency: transitive
389 | description:
390 | name: shared_preferences_foundation
391 | sha256: "7bf53a9f2d007329ee6f3df7268fd498f8373602f943c975598bbb34649b62a7"
392 | url: "https://pub.dev"
393 | source: hosted
394 | version: "2.3.4"
395 | shared_preferences_linux:
396 | dependency: transitive
397 | description:
398 | name: shared_preferences_linux
399 | sha256: "9f2cbcf46d4270ea8be39fa156d86379077c8a5228d9dfdb1164ae0bb93f1faa"
400 | url: "https://pub.dev"
401 | source: hosted
402 | version: "2.3.2"
403 | shared_preferences_platform_interface:
404 | dependency: transitive
405 | description:
406 | name: shared_preferences_platform_interface
407 | sha256: d4ec5fc9ebb2f2e056c617112aa75dcf92fc2e4faaf2ae999caa297473f75d8a
408 | url: "https://pub.dev"
409 | source: hosted
410 | version: "2.3.1"
411 | shared_preferences_web:
412 | dependency: transitive
413 | description:
414 | name: shared_preferences_web
415 | sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf
416 | url: "https://pub.dev"
417 | source: hosted
418 | version: "2.2.1"
419 | shared_preferences_windows:
420 | dependency: transitive
421 | description:
422 | name: shared_preferences_windows
423 | sha256: "841ad54f3c8381c480d0c9b508b89a34036f512482c407e6df7a9c4aa2ef8f59"
424 | url: "https://pub.dev"
425 | source: hosted
426 | version: "2.3.2"
427 | simple_gesture_detector:
428 | dependency: transitive
429 | description:
430 | name: simple_gesture_detector
431 | sha256: "86d08f85f1f58583b7b4b941d989f48ea6ce08c1724a1d10954a277c2ec36592"
432 | url: "https://pub.dev"
433 | source: hosted
434 | version: "0.2.0"
435 | sky_engine:
436 | dependency: transitive
437 | description: flutter
438 | source: sdk
439 | version: "0.0.99"
440 | source_span:
441 | dependency: transitive
442 | description:
443 | name: source_span
444 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
445 | url: "https://pub.dev"
446 | source: hosted
447 | version: "1.10.0"
448 | stack_trace:
449 | dependency: transitive
450 | description:
451 | name: stack_trace
452 | sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
453 | url: "https://pub.dev"
454 | source: hosted
455 | version: "1.11.1"
456 | stream_channel:
457 | dependency: transitive
458 | description:
459 | name: stream_channel
460 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
461 | url: "https://pub.dev"
462 | source: hosted
463 | version: "2.1.2"
464 | stream_transform:
465 | dependency: transitive
466 | description:
467 | name: stream_transform
468 | sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f"
469 | url: "https://pub.dev"
470 | source: hosted
471 | version: "2.1.0"
472 | string_scanner:
473 | dependency: transitive
474 | description:
475 | name: string_scanner
476 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
477 | url: "https://pub.dev"
478 | source: hosted
479 | version: "1.2.0"
480 | table_calendar:
481 | dependency: "direct main"
482 | description:
483 | name: table_calendar
484 | sha256: "1e3521a3e6d3fc7f645a58b135ab663d458ab12504f1ea7f9b4b81d47086c478"
485 | url: "https://pub.dev"
486 | source: hosted
487 | version: "3.0.9"
488 | term_glyph:
489 | dependency: transitive
490 | description:
491 | name: term_glyph
492 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
493 | url: "https://pub.dev"
494 | source: hosted
495 | version: "1.2.1"
496 | test_api:
497 | dependency: transitive
498 | description:
499 | name: test_api
500 | sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
501 | url: "https://pub.dev"
502 | source: hosted
503 | version: "0.6.1"
504 | typed_data:
505 | dependency: transitive
506 | description:
507 | name: typed_data
508 | sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
509 | url: "https://pub.dev"
510 | source: hosted
511 | version: "1.3.2"
512 | vector_math:
513 | dependency: transitive
514 | description:
515 | name: vector_math
516 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
517 | url: "https://pub.dev"
518 | source: hosted
519 | version: "2.1.4"
520 | vm_service:
521 | dependency: transitive
522 | description:
523 | name: vm_service
524 | sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
525 | url: "https://pub.dev"
526 | source: hosted
527 | version: "13.0.0"
528 | win32:
529 | dependency: transitive
530 | description:
531 | name: win32
532 | sha256: b0f37db61ba2f2e9b7a78a1caece0052564d1bc70668156cf3a29d676fe4e574
533 | url: "https://pub.dev"
534 | source: hosted
535 | version: "5.1.1"
536 | xdg_directories:
537 | dependency: transitive
538 | description:
539 | name: xdg_directories
540 | sha256: "589ada45ba9e39405c198fe34eb0f607cddb2108527e658136120892beac46d2"
541 | url: "https://pub.dev"
542 | source: hosted
543 | version: "1.0.3"
544 | xml:
545 | dependency: transitive
546 | description:
547 | name: xml
548 | sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84"
549 | url: "https://pub.dev"
550 | source: hosted
551 | version: "6.3.0"
552 | sdks:
553 | dart: ">=3.2.0-0 <4.0.0"
554 | flutter: ">=3.7.0"
555 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: task_manager_app
2 | description: A new Flutter project.
3 | # The following line prevents the package from being accidentally published to
4 | # pub.dev using `flutter pub publish`. This is preferred for private packages.
5 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
6 |
7 | # The following defines the version and build number for your application.
8 | # A version number is three numbers separated by dots, like 1.2.43
9 | # followed by an optional build number separated by a +.
10 | # Both the version and the builder number may be overridden in flutter
11 | # build by specifying --build-name and --build-number, respectively.
12 | # In Android, build-name is used as versionName while build-number used as versionCode.
13 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
14 | # In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
15 | # Read more about iOS versioning at
16 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
17 | # In Windows, build-name is used as the major, minor, and patch parts
18 | # of the product and file versions while build-number is used as the build suffix.
19 | version: 1.0.0+1
20 |
21 | environment:
22 | sdk: '>=3.1.0 <4.0.0'
23 |
24 | # Dependencies specify other packages that your package needs in order to work.
25 | # To automatically upgrade your package dependencies to the latest versions
26 | # consider running `flutter pub upgrade --major-versions`. Alternatively,
27 | # dependencies can be manually updated by changing the version numbers below to
28 | # the latest version available on pub.dev. To see which dependencies have newer
29 | # versions available, run `flutter pub outdated`.
30 | dependencies:
31 | flutter:
32 | sdk: flutter
33 |
34 |
35 | # The following adds the Cupertino Icons font to your application.
36 | # Use with the CupertinoIcons class for iOS style icons.
37 | cupertino_icons: ^1.0.2
38 | nb_utils: ^6.0.4
39 | flutter_svg: ^1.0.0
40 | table_calendar: ^3.0.9
41 | intl: ^0.18.1
42 |
43 |
44 | # state management
45 | flutter_bloc: ^8.1.3
46 | bloc_concurrency: ^0.2.3
47 | shared_preferences: ^2.2.2
48 |
49 | dev_dependencies:
50 | flutter_test:
51 | sdk: flutter
52 | mocktail: ^1.0.1
53 |
54 | # The "flutter_lints" package below contains a set of recommended lints to
55 | # encourage good coding practices. The lint set provided by the package is
56 | # activated in the `analysis_options.yaml` file located at the root of your
57 | # package. See that file for information about deactivating specific lint
58 | # rules and activating additional ones.
59 | flutter_lints: ^2.0.0
60 |
61 | # For information on the generic Dart part of this file, see the
62 | # following page: https://dart.dev/tools/pub/pubspec
63 |
64 | # The following section is specific to Flutter packages.
65 | flutter:
66 |
67 | # The following line ensures that the Material Icons font is
68 | # included with your application, so that you can use the icons in
69 | # the material Icons class.
70 | uses-material-design: true
71 |
72 | assets:
73 | - assets/images/
74 | - assets/svgs/
75 | - assets/images/
76 |
77 | fonts:
78 | - family: Sora
79 | fonts:
80 | - asset: assets/fonts/Sora-Light.ttf
81 | - asset: assets/fonts/Sora-Regular.ttf
82 | - asset: assets/fonts/Sora-Medium.ttf
83 | weight: 300
84 | - asset: assets/fonts/Sora-Bold.ttf
85 | - asset: assets/fonts/Sora-ExtraLight.ttf
86 | - asset: assets/fonts/Sora-ExtraBold.ttf
87 | weight: 700
88 |
--------------------------------------------------------------------------------
/test/functionality_test.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_test/flutter_test.dart';
2 | import 'package:mocktail/mocktail.dart';
3 | import 'package:nb_utils/nb_utils.dart';
4 | import 'package:task_manager_app/tasks/data/local/data_sources/tasks_data_provider.dart';
5 | import 'package:task_manager_app/tasks/data/local/model/task_model.dart';
6 |
7 | class MockDataProvider extends Mock implements TaskDataProvider {}
8 |
9 | class MockSharedPreferences extends Mock implements SharedPreferences {}
10 |
11 | void main() {
12 | late TaskDataProvider sut;
13 | late SharedPreferences mockPrefs;
14 |
15 | setUp(() async {
16 | mockPrefs = MockSharedPreferences();
17 | SharedPreferences.setMockInitialValues({});
18 | sut = TaskDataProvider(mockPrefs);
19 | });
20 |
21 | test(
22 | "initial values are correct",
23 | () {
24 | sut.getTasks();
25 | expect(sut.tasks, []);
26 | },
27 | );
28 |
29 | group('Task', () {
30 | test('Add new task', () async {
31 | final SharedPreferences sharedPreferences =
32 | await SharedPreferences.getInstance();
33 | sut = TaskDataProvider(sharedPreferences);
34 | final task = TaskModel(
35 | id: 'id',
36 | title: 'title',
37 | description: 'description',
38 | startDateTime: DateTime.now(),
39 | stopDateTime: DateTime.now());
40 | expect(sut.tasks.length, 0);
41 | await sut.createTask(task);
42 | expect(sut.tasks.length, 1);
43 | });
44 |
45 | test('Update task', () async {
46 | final SharedPreferences sharedPreferences =
47 | await SharedPreferences.getInstance();
48 | sut = TaskDataProvider(sharedPreferences);
49 | final task = TaskModel(
50 | id: 'id',
51 | title: 'title',
52 | description: 'description',
53 | startDateTime: DateTime.now(),
54 | stopDateTime: DateTime.now());
55 | sut.createTask(task);
56 | expect(sut.tasks[0].title, 'title');
57 | final updatedTask = TaskModel(
58 | id: 'id',
59 | title: 'new title',
60 | description: 'new description',
61 | startDateTime: DateTime.now(),
62 | stopDateTime: DateTime.now());
63 | sut.updateTask(updatedTask);
64 | expect(sut.tasks[0].title, 'new title');
65 | expect(sut.tasks[0].description, 'new description');
66 | });
67 |
68 | test('Delete task', () async {
69 | final SharedPreferences sharedPreferences =
70 | await SharedPreferences.getInstance();
71 | sut = TaskDataProvider(sharedPreferences);
72 | final task = TaskModel(
73 | id: 'delete_task_id',
74 | title: 'delete_task_title',
75 | description: 'delete_task_description',
76 | startDateTime: DateTime.now(),
77 | stopDateTime: DateTime.now());
78 | sut.createTask(task);
79 | expect(sut.tasks.length, 1);
80 | expect(sut.tasks[0].id, 'delete_task_id');
81 | sut.deleteTask(task);
82 | expect(sut.tasks.length, 0);
83 | });
84 | });
85 | }
86 |
--------------------------------------------------------------------------------