├── .gitignore ├── .metadata ├── LICENSE ├── README.md ├── analysis_options.yaml ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── to_do_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 ├── icons │ ├── menu.svg │ └── search.svg └── images │ ├── back1.jpg │ ├── back2.jpg │ ├── back3.jpg │ └── splash.png ├── demo.png ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings ├── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ └── LaunchImage.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ └── README.md │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h └── RunnerTests │ └── RunnerTests.swift ├── lib ├── data │ ├── network │ │ └── firebase │ │ │ └── firebase_services.dart │ └── shared pref │ │ └── shared_pref.dart ├── main.dart ├── model │ └── task_model.dart ├── res │ ├── app_color.dart │ ├── assets │ │ ├── app_icons.dart │ │ └── app_images.dart │ └── routes │ │ ├── app_routes.dart │ │ └── routes.dart ├── utils │ └── utils.dart ├── view model │ ├── DbHelper │ │ └── db_helper.dart │ ├── controller │ │ ├── add_task_controller.dart │ │ ├── home_controller.dart │ │ ├── signin_controller.dart │ │ └── signup_controller.dart │ └── services │ │ └── splash_services.dart └── view │ ├── common widgets │ └── back_button.dart │ ├── home page │ ├── components │ │ ├── progress_container.dart │ │ ├── progress_task.dart │ │ └── search_field.dart │ └── home_page.dart │ ├── new task │ ├── components │ │ ├── add_fild.dart │ │ ├── addtask_body.dart │ │ ├── date_time_container.dart │ │ ├── datetime_row.dart │ │ ├── image_container.dart │ │ ├── image_container_list.dart │ │ ├── periority_container.dart │ │ ├── progress_picker.dart │ │ ├── title.dart │ │ └── upper_body.dart │ └── new_task.dart │ ├── sign in │ ├── components │ │ ├── signin_bar.dart │ │ ├── signin_body.dart │ │ └── signin_input_form.dart │ └── sign_in.dart │ ├── sign up │ ├── components │ │ ├── appbar.dart │ │ ├── button.dart │ │ ├── icon_container.dart │ │ ├── input_form.dart │ │ ├── signup_body.dart │ │ ├── signup_options.dart │ │ ├── text_field.dart │ │ └── textfield_sufiix.dart │ └── sign_up.dart │ └── splash │ └── splash_screen.dart ├── pubspec.lock ├── pubspec.yaml └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 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 | -------------------------------------------------------------------------------- /.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. 5 | 6 | version: 7 | revision: 9cd3d0d9ff05768afa249e036acc66e8abe93bff 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: 9cd3d0d9ff05768afa249e036acc66e8abe93bff 17 | base_revision: 9cd3d0d9ff05768afa249e036acc66e8abe93bff 18 | - platform: android 19 | create_revision: 9cd3d0d9ff05768afa249e036acc66e8abe93bff 20 | base_revision: 9cd3d0d9ff05768afa249e036acc66e8abe93bff 21 | - platform: ios 22 | create_revision: 9cd3d0d9ff05768afa249e036acc66e8abe93bff 23 | base_revision: 9cd3d0d9ff05768afa249e036acc66e8abe93bff 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: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Hamad Anwar 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Beautiful Task Scheduler App 2 | 3 | Welcome to the Beautiful Task Scheduler App repository! This Flutter-based task management application combines elegant design with a robust backend, ensuring a seamless and organized task management experience. From stunning UI to real-time synchronization, this app has you covered. 4 | 5 | ## Screenshots 6 | 7 | 8 | 9 | ## Features 10 | 11 | - **Stunning UI**: Immerse yourself in a visually captivating user interface designed to enhance your task management experience. 12 | 13 | - **Optimized Backend**: The app's backend is finely tuned for optimal performance, ensuring smooth navigation and operation. 14 | 15 | - **Offline Access**: With Sqflite integration, the app remains fully functional even when offline, so you can manage tasks without interruptions. 16 | 17 | - **Real-time Sync**: The Firebase Realtime Database powers real-time synchronization of tasks across multiple devices, making sure your tasks are up-to-date everywhere. 18 | 19 | - **Multi-Device Experience**: Create, update, or delete tasks on one device and see the changes instantly reflected on all devices linked to your account. 20 | 21 | - **Secure Authentication**: Firebase Authentication ensures the security of your tasks and data, allowing you to manage your to-dos with peace of mind. 22 | 23 | - **Authentication and Session Management**: Utilizing Firebase Authentication and the `firebase_auth` package, the app provides a robust user authentication system. The session management is handled seamlessly, allowing users to securely access their tasks. 24 | 25 | ## Installation 26 | 27 | 1. Clone this repository using `git clone https://github.com/Hamad-Anwar/Task-Sync-Pro-Flutter.git 28 | 2. Navigate to the project directory: `cd task-scheduler-app` 29 | 3. Install dependencies: `flutter pub get` 30 | 4. **Add `google-services.json`:** For Firebase setup, each developer needs to add their own `google-services.json` file obtained from their Firebase project. Place this file in the `android/app` directory. 31 | 32 | 5. **Set Up Firebase Authentication:** 33 | - Go to the Firebase Console and create a project. 34 | - Enable the Email/Password sign-in method. 35 | - Add your Android app to the project and download the `google-services.json` file. 36 | - Add your iOS app if needed and download the `GoogleService-Info.plist` file. 37 | 38 | 6. **Set Up Firebase Realtime Database:** 39 | - In the Firebase Console, create a Realtime Database. 40 | - Set up security rules as per your requirements. 41 | - Update the Firebase configuration in your Flutter app code. 42 | 43 | 7. Run the app: `flutter run` 44 | 45 | ## Dependencies 46 | 47 | This app utilizes the following dependencies: 48 | 49 | - **google_fonts: ^5.1.0**: Provides easy access to a wide range of Google Fonts for consistent and appealing typography in the app. 50 | 51 | - **get: ^4.6.5**: Offers a clean and reactive state management solution for your Flutter app, simplifying UI updates and interactions. 52 | 53 | - **email_validator: ^2.1.17**: Allows you to validate email addresses, ensuring accurate input during user registration and login. 54 | 55 | - **font_awesome_flutter: ^10.5.0**: Grants access to a comprehensive library of FontAwesome icons to enhance the visual elements of your app. 56 | 57 | - **firebase_core: ^2.15.1**: Essential for initializing and connecting your Flutter app with Firebase services. 58 | 59 | - **firebase_auth: ^4.7.3**: Enables robust user authentication using various methods, enhancing app security. 60 | 61 | - **firebase_database: ^10.2.5**: Provides integration with the Firebase Realtime Database for real-time synchronization of tasks. 62 | 63 | - **shared_preferences: ^2.2.0**: Allows you to store simple key-value pairs on the device, facilitating data persistence. 64 | 65 | - **google_sign_in: ^6.1.4**: Streamlines the integration of Google Sign-In functionality for user authentication. 66 | 67 | - **sign_in_with_apple: ^5.0.0**: Simplifies the process of adding Apple Sign-In as an authentication option in your app. 68 | 69 | - **flutter_svg: ^2.0.7**: Renders SVG images, offering a scalable and resolution-independent solution for graphics. 70 | 71 | - **intl: ^0.18.1**: Provides internationalization and localization support, making your app accessible to users from different regions. 72 | 73 | - **sqflite: ^2.3.0**: Offers local database capabilities, enabling offline access and data storage even when the app is not connected to the internet. 74 | 75 | - **connectivity: ^3.0.6**: Monitors network connectivity, allowing you to adapt your app's behavior based on the user's internet status. 76 | 77 | ## Contributions 78 | 79 | Contributions are welcome! If you find a bug or want to add new features, feel free to open an issue or submit a pull request. Please follow our [contribution guidelines](/CONTRIBUTING.md). 80 | 81 | ## License 82 | 83 | This project is licensed under the [MIT License](/LICENSE). 84 | 85 | --- 86 | 87 | ### Designed and developed with ❤️ by [Hamad Anwar](https://www.linkedin.com/in/hamad-anwar/). 88 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /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 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | namespace "com.example.to_do_app" 30 | compileSdkVersion flutter.compileSdkVersion 31 | ndkVersion flutter.ndkVersion 32 | 33 | compileOptions { 34 | sourceCompatibility JavaVersion.VERSION_1_8 35 | targetCompatibility JavaVersion.VERSION_1_8 36 | } 37 | 38 | kotlinOptions { 39 | jvmTarget = '1.8' 40 | } 41 | 42 | sourceSets { 43 | main.java.srcDirs += 'src/main/kotlin' 44 | } 45 | 46 | defaultConfig { 47 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 48 | applicationId "com.codsoft.to_do_app" 49 | // You can update the following values to match your application needs. 50 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. 51 | minSdkVersion 19 52 | targetSdkVersion flutter.targetSdkVersion 53 | versionCode flutterVersionCode.toInteger() 54 | versionName flutterVersionName 55 | multiDexEnabled true 56 | } 57 | 58 | buildTypes { 59 | release { 60 | // TODO: Add your own signing config for the release build. 61 | // Signing with the debug keys for now, so `flutter run --release` works. 62 | signingConfig signingConfigs.debug 63 | } 64 | } 65 | } 66 | 67 | flutter { 68 | source '../..' 69 | } 70 | 71 | apply plugin: "com.android.application" 72 | apply plugin: "com.google.gms.google-services" 73 | dependencies { 74 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 75 | implementation(platform("com.google.firebase:firebase-bom:32.2.2")) 76 | implementation("com.google.firebase:firebase-analytics-ktx") 77 | } 78 | -------------------------------------------------------------------------------- /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/to_do_app/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.to_do_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/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/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 | classpath 'com.google.gms:google-services:4.3.15' 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | rootProject.buildDir = '../build' 23 | subprojects { 24 | project.buildDir = "${rootProject.buildDir}/${project.name}" 25 | } 26 | subprojects { 27 | project.evaluationDependsOn(':app') 28 | } 29 | 30 | tasks.register("clean", Delete) { 31 | delete rootProject.buildDir 32 | } 33 | -------------------------------------------------------------------------------- /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 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /assets/icons/menu.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /assets/icons/search.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /assets/images/back1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/assets/images/back1.jpg -------------------------------------------------------------------------------- /assets/images/back2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/assets/images/back2.jpg -------------------------------------------------------------------------------- /assets/images/back3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/assets/images/back3.jpg -------------------------------------------------------------------------------- /assets/images/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/assets/images/splash.png -------------------------------------------------------------------------------- /demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/demo.png -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 11.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.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 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 97C146E61CF9000F007C117D /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 97C146ED1CF9000F007C117D; 25 | remoteInfo = Runner; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXCopyFilesBuildPhase section */ 30 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 31 | isa = PBXCopyFilesBuildPhase; 32 | buildActionMask = 2147483647; 33 | dstPath = ""; 34 | dstSubfolderSpec = 10; 35 | files = ( 36 | ); 37 | name = "Embed Frameworks"; 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXCopyFilesBuildPhase section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 44 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 45 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 46 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 47 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 48 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 49 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 50 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 51 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 57 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 9740EEB11CF90186004384FC /* Flutter */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 75 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 76 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 77 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 78 | ); 79 | name = Flutter; 80 | sourceTree = ""; 81 | }; 82 | 331C8082294A63A400263BE5 /* RunnerTests */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | 331C807B294A618700263BE5 /* RunnerTests.swift */, 86 | ); 87 | path = RunnerTests; 88 | sourceTree = ""; 89 | }; 90 | 97C146E51CF9000F007C117D = { 91 | isa = PBXGroup; 92 | children = ( 93 | 9740EEB11CF90186004384FC /* Flutter */, 94 | 97C146F01CF9000F007C117D /* Runner */, 95 | 97C146EF1CF9000F007C117D /* Products */, 96 | 331C8082294A63A400263BE5 /* RunnerTests */, 97 | ); 98 | sourceTree = ""; 99 | }; 100 | 97C146EF1CF9000F007C117D /* Products */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 97C146EE1CF9000F007C117D /* Runner.app */, 104 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */, 105 | ); 106 | name = Products; 107 | sourceTree = ""; 108 | }; 109 | 97C146F01CF9000F007C117D /* Runner */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 113 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 114 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 115 | 97C147021CF9000F007C117D /* Info.plist */, 116 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 117 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 118 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 119 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 120 | ); 121 | path = Runner; 122 | sourceTree = ""; 123 | }; 124 | /* End PBXGroup section */ 125 | 126 | /* Begin PBXNativeTarget section */ 127 | 331C8080294A63A400263BE5 /* RunnerTests */ = { 128 | isa = PBXNativeTarget; 129 | buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; 130 | buildPhases = ( 131 | 331C807D294A63A400263BE5 /* Sources */, 132 | 331C807E294A63A400263BE5 /* Frameworks */, 133 | 331C807F294A63A400263BE5 /* Resources */, 134 | ); 135 | buildRules = ( 136 | ); 137 | dependencies = ( 138 | 331C8086294A63A400263BE5 /* PBXTargetDependency */, 139 | ); 140 | name = RunnerTests; 141 | productName = RunnerTests; 142 | productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; 143 | productType = "com.apple.product-type.bundle.unit-test"; 144 | }; 145 | 97C146ED1CF9000F007C117D /* Runner */ = { 146 | isa = PBXNativeTarget; 147 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 148 | buildPhases = ( 149 | 9740EEB61CF901F6004384FC /* Run Script */, 150 | 97C146EA1CF9000F007C117D /* Sources */, 151 | 97C146EB1CF9000F007C117D /* Frameworks */, 152 | 97C146EC1CF9000F007C117D /* Resources */, 153 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 154 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 155 | ); 156 | buildRules = ( 157 | ); 158 | dependencies = ( 159 | ); 160 | name = Runner; 161 | productName = Runner; 162 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 163 | productType = "com.apple.product-type.application"; 164 | }; 165 | /* End PBXNativeTarget section */ 166 | 167 | /* Begin PBXProject section */ 168 | 97C146E61CF9000F007C117D /* Project object */ = { 169 | isa = PBXProject; 170 | attributes = { 171 | LastUpgradeCheck = 1300; 172 | ORGANIZATIONNAME = ""; 173 | TargetAttributes = { 174 | 331C8080294A63A400263BE5 = { 175 | CreatedOnToolsVersion = 14.0; 176 | TestTargetID = 97C146ED1CF9000F007C117D; 177 | }; 178 | 97C146ED1CF9000F007C117D = { 179 | CreatedOnToolsVersion = 7.3.1; 180 | LastSwiftMigration = 1100; 181 | }; 182 | }; 183 | }; 184 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 185 | compatibilityVersion = "Xcode 9.3"; 186 | developmentRegion = en; 187 | hasScannedForEncodings = 0; 188 | knownRegions = ( 189 | en, 190 | Base, 191 | ); 192 | mainGroup = 97C146E51CF9000F007C117D; 193 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 194 | projectDirPath = ""; 195 | projectRoot = ""; 196 | targets = ( 197 | 97C146ED1CF9000F007C117D /* Runner */, 198 | 331C8080294A63A400263BE5 /* RunnerTests */, 199 | ); 200 | }; 201 | /* End PBXProject section */ 202 | 203 | /* Begin PBXResourcesBuildPhase section */ 204 | 331C807F294A63A400263BE5 /* Resources */ = { 205 | isa = PBXResourcesBuildPhase; 206 | buildActionMask = 2147483647; 207 | files = ( 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | }; 211 | 97C146EC1CF9000F007C117D /* Resources */ = { 212 | isa = PBXResourcesBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 216 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 217 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 218 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | /* End PBXResourcesBuildPhase section */ 223 | 224 | /* Begin PBXShellScriptBuildPhase section */ 225 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 226 | isa = PBXShellScriptBuildPhase; 227 | alwaysOutOfDate = 1; 228 | buildActionMask = 2147483647; 229 | files = ( 230 | ); 231 | inputPaths = ( 232 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", 233 | ); 234 | name = "Thin Binary"; 235 | outputPaths = ( 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | shellPath = /bin/sh; 239 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 240 | }; 241 | 9740EEB61CF901F6004384FC /* Run Script */ = { 242 | isa = PBXShellScriptBuildPhase; 243 | alwaysOutOfDate = 1; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | ); 247 | inputPaths = ( 248 | ); 249 | name = "Run Script"; 250 | outputPaths = ( 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | shellPath = /bin/sh; 254 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 255 | }; 256 | /* End PBXShellScriptBuildPhase section */ 257 | 258 | /* Begin PBXSourcesBuildPhase section */ 259 | 331C807D294A63A400263BE5 /* Sources */ = { 260 | isa = PBXSourcesBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, 264 | ); 265 | runOnlyForDeploymentPostprocessing = 0; 266 | }; 267 | 97C146EA1CF9000F007C117D /* Sources */ = { 268 | isa = PBXSourcesBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 272 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | }; 276 | /* End PBXSourcesBuildPhase section */ 277 | 278 | /* Begin PBXTargetDependency section */ 279 | 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { 280 | isa = PBXTargetDependency; 281 | target = 97C146ED1CF9000F007C117D /* Runner */; 282 | targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; 283 | }; 284 | /* End PBXTargetDependency section */ 285 | 286 | /* Begin PBXVariantGroup section */ 287 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 288 | isa = PBXVariantGroup; 289 | children = ( 290 | 97C146FB1CF9000F007C117D /* Base */, 291 | ); 292 | name = Main.storyboard; 293 | sourceTree = ""; 294 | }; 295 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 296 | isa = PBXVariantGroup; 297 | children = ( 298 | 97C147001CF9000F007C117D /* Base */, 299 | ); 300 | name = LaunchScreen.storyboard; 301 | sourceTree = ""; 302 | }; 303 | /* End PBXVariantGroup section */ 304 | 305 | /* Begin XCBuildConfiguration section */ 306 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 307 | isa = XCBuildConfiguration; 308 | buildSettings = { 309 | ALWAYS_SEARCH_USER_PATHS = NO; 310 | CLANG_ANALYZER_NONNULL = YES; 311 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 312 | CLANG_CXX_LIBRARY = "libc++"; 313 | CLANG_ENABLE_MODULES = YES; 314 | CLANG_ENABLE_OBJC_ARC = YES; 315 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 316 | CLANG_WARN_BOOL_CONVERSION = YES; 317 | CLANG_WARN_COMMA = YES; 318 | CLANG_WARN_CONSTANT_CONVERSION = YES; 319 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 320 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 321 | CLANG_WARN_EMPTY_BODY = YES; 322 | CLANG_WARN_ENUM_CONVERSION = YES; 323 | CLANG_WARN_INFINITE_RECURSION = YES; 324 | CLANG_WARN_INT_CONVERSION = YES; 325 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 326 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 327 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 328 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 329 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 330 | CLANG_WARN_STRICT_PROTOTYPES = YES; 331 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 332 | CLANG_WARN_UNREACHABLE_CODE = YES; 333 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 334 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 335 | COPY_PHASE_STRIP = NO; 336 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 337 | ENABLE_NS_ASSERTIONS = NO; 338 | ENABLE_STRICT_OBJC_MSGSEND = YES; 339 | GCC_C_LANGUAGE_STANDARD = gnu99; 340 | GCC_NO_COMMON_BLOCKS = YES; 341 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 342 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 343 | GCC_WARN_UNDECLARED_SELECTOR = YES; 344 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 345 | GCC_WARN_UNUSED_FUNCTION = YES; 346 | GCC_WARN_UNUSED_VARIABLE = YES; 347 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 348 | MTL_ENABLE_DEBUG_INFO = NO; 349 | SDKROOT = iphoneos; 350 | SUPPORTED_PLATFORMS = iphoneos; 351 | TARGETED_DEVICE_FAMILY = "1,2"; 352 | VALIDATE_PRODUCT = YES; 353 | }; 354 | name = Profile; 355 | }; 356 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 357 | isa = XCBuildConfiguration; 358 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 359 | buildSettings = { 360 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 361 | CLANG_ENABLE_MODULES = YES; 362 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 363 | ENABLE_BITCODE = NO; 364 | INFOPLIST_FILE = Runner/Info.plist; 365 | LD_RUNPATH_SEARCH_PATHS = ( 366 | "$(inherited)", 367 | "@executable_path/Frameworks", 368 | ); 369 | PRODUCT_BUNDLE_IDENTIFIER = com.example.toDoApp; 370 | PRODUCT_NAME = "$(TARGET_NAME)"; 371 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 372 | SWIFT_VERSION = 5.0; 373 | VERSIONING_SYSTEM = "apple-generic"; 374 | }; 375 | name = Profile; 376 | }; 377 | 331C8088294A63A400263BE5 /* Debug */ = { 378 | isa = XCBuildConfiguration; 379 | baseConfigurationReference = AE0B7B92F70575B8D7E0D07E /* Pods-RunnerTests.debug.xcconfig */; 380 | buildSettings = { 381 | BUNDLE_LOADER = "$(TEST_HOST)"; 382 | CODE_SIGN_STYLE = Automatic; 383 | CURRENT_PROJECT_VERSION = 1; 384 | GENERATE_INFOPLIST_FILE = YES; 385 | MARKETING_VERSION = 1.0; 386 | PRODUCT_BUNDLE_IDENTIFIER = com.example.toDoApp.RunnerTests; 387 | PRODUCT_NAME = "$(TARGET_NAME)"; 388 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 389 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 390 | SWIFT_VERSION = 5.0; 391 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 392 | }; 393 | name = Debug; 394 | }; 395 | 331C8089294A63A400263BE5 /* Release */ = { 396 | isa = XCBuildConfiguration; 397 | baseConfigurationReference = 89B67EB44CE7B6631473024E /* Pods-RunnerTests.release.xcconfig */; 398 | buildSettings = { 399 | BUNDLE_LOADER = "$(TEST_HOST)"; 400 | CODE_SIGN_STYLE = Automatic; 401 | CURRENT_PROJECT_VERSION = 1; 402 | GENERATE_INFOPLIST_FILE = YES; 403 | MARKETING_VERSION = 1.0; 404 | PRODUCT_BUNDLE_IDENTIFIER = com.example.toDoApp.RunnerTests; 405 | PRODUCT_NAME = "$(TARGET_NAME)"; 406 | SWIFT_VERSION = 5.0; 407 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 408 | }; 409 | name = Release; 410 | }; 411 | 331C808A294A63A400263BE5 /* Profile */ = { 412 | isa = XCBuildConfiguration; 413 | baseConfigurationReference = 640959BDD8F10B91D80A66BE /* Pods-RunnerTests.profile.xcconfig */; 414 | buildSettings = { 415 | BUNDLE_LOADER = "$(TEST_HOST)"; 416 | CODE_SIGN_STYLE = Automatic; 417 | CURRENT_PROJECT_VERSION = 1; 418 | GENERATE_INFOPLIST_FILE = YES; 419 | MARKETING_VERSION = 1.0; 420 | PRODUCT_BUNDLE_IDENTIFIER = com.example.toDoApp.RunnerTests; 421 | PRODUCT_NAME = "$(TARGET_NAME)"; 422 | SWIFT_VERSION = 5.0; 423 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 424 | }; 425 | name = Profile; 426 | }; 427 | 97C147031CF9000F007C117D /* Debug */ = { 428 | isa = XCBuildConfiguration; 429 | buildSettings = { 430 | ALWAYS_SEARCH_USER_PATHS = NO; 431 | CLANG_ANALYZER_NONNULL = YES; 432 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 433 | CLANG_CXX_LIBRARY = "libc++"; 434 | CLANG_ENABLE_MODULES = YES; 435 | CLANG_ENABLE_OBJC_ARC = YES; 436 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 437 | CLANG_WARN_BOOL_CONVERSION = YES; 438 | CLANG_WARN_COMMA = YES; 439 | CLANG_WARN_CONSTANT_CONVERSION = YES; 440 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 441 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 442 | CLANG_WARN_EMPTY_BODY = YES; 443 | CLANG_WARN_ENUM_CONVERSION = YES; 444 | CLANG_WARN_INFINITE_RECURSION = YES; 445 | CLANG_WARN_INT_CONVERSION = YES; 446 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 447 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 448 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 449 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 450 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 451 | CLANG_WARN_STRICT_PROTOTYPES = YES; 452 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 453 | CLANG_WARN_UNREACHABLE_CODE = YES; 454 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 455 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 456 | COPY_PHASE_STRIP = NO; 457 | DEBUG_INFORMATION_FORMAT = dwarf; 458 | ENABLE_STRICT_OBJC_MSGSEND = YES; 459 | ENABLE_TESTABILITY = YES; 460 | GCC_C_LANGUAGE_STANDARD = gnu99; 461 | GCC_DYNAMIC_NO_PIC = NO; 462 | GCC_NO_COMMON_BLOCKS = YES; 463 | GCC_OPTIMIZATION_LEVEL = 0; 464 | GCC_PREPROCESSOR_DEFINITIONS = ( 465 | "DEBUG=1", 466 | "$(inherited)", 467 | ); 468 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 469 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 470 | GCC_WARN_UNDECLARED_SELECTOR = YES; 471 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 472 | GCC_WARN_UNUSED_FUNCTION = YES; 473 | GCC_WARN_UNUSED_VARIABLE = YES; 474 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 475 | MTL_ENABLE_DEBUG_INFO = YES; 476 | ONLY_ACTIVE_ARCH = YES; 477 | SDKROOT = iphoneos; 478 | TARGETED_DEVICE_FAMILY = "1,2"; 479 | }; 480 | name = Debug; 481 | }; 482 | 97C147041CF9000F007C117D /* Release */ = { 483 | isa = XCBuildConfiguration; 484 | buildSettings = { 485 | ALWAYS_SEARCH_USER_PATHS = NO; 486 | CLANG_ANALYZER_NONNULL = YES; 487 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 488 | CLANG_CXX_LIBRARY = "libc++"; 489 | CLANG_ENABLE_MODULES = YES; 490 | CLANG_ENABLE_OBJC_ARC = YES; 491 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 492 | CLANG_WARN_BOOL_CONVERSION = YES; 493 | CLANG_WARN_COMMA = YES; 494 | CLANG_WARN_CONSTANT_CONVERSION = YES; 495 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 496 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 497 | CLANG_WARN_EMPTY_BODY = YES; 498 | CLANG_WARN_ENUM_CONVERSION = YES; 499 | CLANG_WARN_INFINITE_RECURSION = YES; 500 | CLANG_WARN_INT_CONVERSION = YES; 501 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 502 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 503 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 504 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 505 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 506 | CLANG_WARN_STRICT_PROTOTYPES = YES; 507 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 508 | CLANG_WARN_UNREACHABLE_CODE = YES; 509 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 510 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 511 | COPY_PHASE_STRIP = NO; 512 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 513 | ENABLE_NS_ASSERTIONS = NO; 514 | ENABLE_STRICT_OBJC_MSGSEND = YES; 515 | GCC_C_LANGUAGE_STANDARD = gnu99; 516 | GCC_NO_COMMON_BLOCKS = YES; 517 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 518 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 519 | GCC_WARN_UNDECLARED_SELECTOR = YES; 520 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 521 | GCC_WARN_UNUSED_FUNCTION = YES; 522 | GCC_WARN_UNUSED_VARIABLE = YES; 523 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 524 | MTL_ENABLE_DEBUG_INFO = NO; 525 | SDKROOT = iphoneos; 526 | SUPPORTED_PLATFORMS = iphoneos; 527 | SWIFT_COMPILATION_MODE = wholemodule; 528 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 529 | TARGETED_DEVICE_FAMILY = "1,2"; 530 | VALIDATE_PRODUCT = YES; 531 | }; 532 | name = Release; 533 | }; 534 | 97C147061CF9000F007C117D /* Debug */ = { 535 | isa = XCBuildConfiguration; 536 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 537 | buildSettings = { 538 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 539 | CLANG_ENABLE_MODULES = YES; 540 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 541 | ENABLE_BITCODE = NO; 542 | INFOPLIST_FILE = Runner/Info.plist; 543 | LD_RUNPATH_SEARCH_PATHS = ( 544 | "$(inherited)", 545 | "@executable_path/Frameworks", 546 | ); 547 | PRODUCT_BUNDLE_IDENTIFIER = com.example.toDoApp; 548 | PRODUCT_NAME = "$(TARGET_NAME)"; 549 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 550 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 551 | SWIFT_VERSION = 5.0; 552 | VERSIONING_SYSTEM = "apple-generic"; 553 | }; 554 | name = Debug; 555 | }; 556 | 97C147071CF9000F007C117D /* Release */ = { 557 | isa = XCBuildConfiguration; 558 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 559 | buildSettings = { 560 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 561 | CLANG_ENABLE_MODULES = YES; 562 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 563 | ENABLE_BITCODE = NO; 564 | INFOPLIST_FILE = Runner/Info.plist; 565 | LD_RUNPATH_SEARCH_PATHS = ( 566 | "$(inherited)", 567 | "@executable_path/Frameworks", 568 | ); 569 | PRODUCT_BUNDLE_IDENTIFIER = com.example.toDoApp; 570 | PRODUCT_NAME = "$(TARGET_NAME)"; 571 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 572 | SWIFT_VERSION = 5.0; 573 | VERSIONING_SYSTEM = "apple-generic"; 574 | }; 575 | name = Release; 576 | }; 577 | /* End XCBuildConfiguration section */ 578 | 579 | /* Begin XCConfigurationList section */ 580 | 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { 581 | isa = XCConfigurationList; 582 | buildConfigurations = ( 583 | 331C8088294A63A400263BE5 /* Debug */, 584 | 331C8089294A63A400263BE5 /* Release */, 585 | 331C808A294A63A400263BE5 /* Profile */, 586 | ); 587 | defaultConfigurationIsVisible = 0; 588 | defaultConfigurationName = Release; 589 | }; 590 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 591 | isa = XCConfigurationList; 592 | buildConfigurations = ( 593 | 97C147031CF9000F007C117D /* Debug */, 594 | 97C147041CF9000F007C117D /* Release */, 595 | 249021D3217E4FDB00AE95B9 /* Profile */, 596 | ); 597 | defaultConfigurationIsVisible = 0; 598 | defaultConfigurationName = Release; 599 | }; 600 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 601 | isa = XCConfigurationList; 602 | buildConfigurations = ( 603 | 97C147061CF9000F007C117D /* Debug */, 604 | 97C147071CF9000F007C117D /* Release */, 605 | 249021D4217E4FDB00AE95B9 /* Profile */, 606 | ); 607 | defaultConfigurationIsVisible = 0; 608 | defaultConfigurationName = Release; 609 | }; 610 | /* End XCConfigurationList section */ 611 | }; 612 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 613 | } 614 | -------------------------------------------------------------------------------- /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 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hamad-Anwar/Task-Sync-Pro-Flutter/86456f2723e72ef8ff30b043769ee3c4cb94d2f1/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 | To Do App 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | to_do_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 | UIViewControllerBasedStatusBarAppearance 45 | 46 | CADisableMinimumFrameDurationOnPhone 47 | 48 | UIApplicationSupportsIndirectInputEvents 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /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/data/network/firebase/firebase_services.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_auth/firebase_auth.dart'; 2 | import 'package:firebase_database/firebase_database.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 5 | import 'package:get/get.dart'; 6 | import 'package:to_do_app/Data/shared%20pref/shared_pref.dart'; 7 | import 'package:to_do_app/model/task_model.dart'; 8 | import 'package:to_do_app/utils/utils.dart'; 9 | import 'package:google_sign_in/google_sign_in.dart'; 10 | import 'package:to_do_app/view%20model/controller/signin_controller.dart'; 11 | import 'package:to_do_app/view/home%20page/home_page.dart'; 12 | import '../../../view model/controller/signup_controller.dart'; 13 | 14 | 15 | class FirebaseService { 16 | static final FirebaseAuth auth = FirebaseAuth.instance; 17 | static final FirebaseDatabase database = FirebaseDatabase.instance; 18 | static final signInController = Get.put(SignInController()); 19 | static final signUpController = Get.put(SignupController()); 20 | 21 | 22 | 23 | static Future insertData(TaskModel model)async{ 24 | String str = auth.currentUser!.email.toString(); 25 | String node = str.substring(0, str.indexOf('@')); 26 | database.ref('Tasks').child(node).child(model.key!).set({ 27 | 'key' : model.key, 28 | 'title' : model.title, 29 | 'description' : model.description, 30 | 'category' : model.category, 31 | 'date' : model.date, 32 | 'time' : model.time, 33 | 'image' : model.image, 34 | 'periority' : model.periority, 35 | 'show' : model.show, 36 | }).then((value) { 37 | 38 | }).onError((error, stackTrace){ 39 | 40 | }); 41 | } 42 | static Future createAccount() async { 43 | try { 44 | signUpController.setLoading(true); 45 | final String str = signUpController.email.value.text.toString(); 46 | final String node = str.substring(0, str.indexOf('@')); 47 | database.ref('Accounts').child(node).set({ 48 | 'name': '${signUpController.name.value.text} ', 49 | 'email': signUpController.email.value.text.toString(), 50 | 'password': signUpController.password.value.text.toString(), 51 | }).then((value) { 52 | auth 53 | .createUserWithEmailAndPassword( 54 | email: signUpController.email.value.text.toString(), 55 | password: signUpController.password.value.text.toString()) 56 | .then((value) { 57 | UserPref.setUser( 58 | '${signUpController.name.value.text} ', 59 | signUpController.email.value.text.toString(), 60 | signUpController.password.value.text.toString(), 61 | node, 62 | value.user!.uid.toString()); 63 | Utils.showSnackBar( 64 | 'Sign up', 65 | "Account is successfully created", 66 | const Icon( 67 | Icons.done, 68 | color: Colors.white, 69 | )); 70 | Get.to(HomePage()); 71 | signUpController.setLoading(false); 72 | }).onError((error, stackTrace) { 73 | Utils.showSnackBar( 74 | 'Error', 75 | Utils.extractFirebaseError(error.toString()), 76 | const Icon( 77 | FontAwesomeIcons.triangleExclamation, 78 | color: Colors.red, 79 | )); 80 | signUpController.setLoading(false); 81 | }); 82 | }).onError((error, stackTrace) { 83 | Utils.showSnackBar( 84 | 'Error', 85 | Utils.extractFirebaseError(error.toString()), 86 | const Icon( 87 | FontAwesomeIcons.triangleExclamation, 88 | color: Colors.red, 89 | )); 90 | signUpController.setLoading(false); 91 | }); 92 | } catch (e) { 93 | Utils.showSnackBar( 94 | 'Error', 95 | Utils.extractFirebaseError(e.toString()), 96 | const Icon( 97 | FontAwesomeIcons.triangleExclamation, 98 | color: Colors.red, 99 | )); 100 | signUpController.setLoading(true); 101 | } 102 | } 103 | static Future loginAccount() async { 104 | try { 105 | signInController.setLoading(true); 106 | auth 107 | .signInWithEmailAndPassword( 108 | email: signInController.email.value.text.toString(), 109 | password: signInController.password.value.text.toString(), 110 | ) 111 | .then((value) { 112 | String node = 113 | value.user!.email!.substring(0, value.user!.email!.indexOf('@')); 114 | database.ref('Accounts').child(node).onValue.listen((event) { 115 | UserPref.setUser( 116 | event.snapshot.child('name').value.toString(), 117 | event.snapshot.child('email').value.toString(), 118 | event.snapshot.child('password').value.toString(), 119 | node, 120 | value.toString(), 121 | ); 122 | Utils.showSnackBar( 123 | 'Sign up', 124 | "Successfully Login.Welcome Back!", 125 | const Icon( 126 | Icons.done, 127 | color: Colors.white, 128 | )); 129 | Get.to(HomePage()); 130 | signInController.setLoading(false); 131 | }).onError((error, stackTrace) { 132 | Utils.showSnackBar( 133 | 'Error', 134 | Utils.extractFirebaseError(error.toString()), 135 | const Icon( 136 | FontAwesomeIcons.triangleExclamation, 137 | color: Colors.red, 138 | )); 139 | signInController.setLoading(false); 140 | }); 141 | }).onError((error, stackTrace) { 142 | Utils.showSnackBar( 143 | 'Error', 144 | Utils.extractFirebaseError(error.toString()), 145 | const Icon( 146 | FontAwesomeIcons.triangleExclamation, 147 | color: Colors.red, 148 | )); 149 | signInController.setLoading(false); 150 | }); 151 | } catch (e) { 152 | Utils.showSnackBar( 153 | 'Error', 154 | Utils.extractFirebaseError(e.toString()), 155 | const Icon( 156 | FontAwesomeIcons.triangleExclamation, 157 | color: Colors.red, 158 | )); 159 | signInController.setLoading(true); 160 | } 161 | } 162 | static Future signInwWithGoogle()async{ 163 | try{ 164 | final GoogleSignIn googleSignIn = GoogleSignIn(); 165 | googleSignIn.signIn().then((GoogleSignInAccount? googleSignInAccount) async { 166 | if (googleSignInAccount != null) { 167 | // Get the GoogleSignInAuthentication object 168 | final GoogleSignInAuthentication googleSignInAuthentication = 169 | await googleSignInAccount.authentication; 170 | // Create an AuthCredential object 171 | final AuthCredential credential = GoogleAuthProvider.credential( 172 | idToken: googleSignInAuthentication.idToken, 173 | accessToken: googleSignInAuthentication.accessToken, 174 | ); 175 | 176 | await auth.signInWithCredential(credential).then((value) { 177 | final String str = value.user!.email.toString(); 178 | final String node = str.substring(0, str.indexOf('@')); 179 | database.ref('Accounts').child(node).set({ 180 | 'name' : value.user!.displayName, 181 | 'email' : value.user!.email, 182 | }).then((val) { 183 | Utils.showSnackBar( 184 | 'Login', 185 | 'Successfully Login', 186 | const Icon( 187 | FontAwesomeIcons.triangleExclamation, 188 | color: Colors.red, 189 | )); 190 | UserPref.setUser( 191 | value.user!.displayName!, 192 | value.user!.email!, 193 | "NOPASSWORD", 194 | node, 195 | value.user!.uid); 196 | }).onError((error, stackTrace) { 197 | Utils.showSnackBar( 198 | 'Error', 199 | Utils.extractFirebaseError(error.toString()), 200 | const Icon( 201 | FontAwesomeIcons.triangleExclamation, 202 | color: Colors.red, 203 | )); 204 | return; 205 | }); 206 | }).onError((error, stackTrace) { 207 | Utils.showSnackBar( 208 | 'Error', 209 | Utils.extractFirebaseError(error.toString()), 210 | const Icon( 211 | FontAwesomeIcons.triangleExclamation, 212 | color: Colors.red, 213 | )); 214 | return; 215 | }); 216 | } 217 | }).onError((error, stackTrace) { 218 | Utils.showSnackBar( 219 | 'Error', 220 | Utils.extractFirebaseError(error.toString()), 221 | const Icon( 222 | FontAwesomeIcons.triangleExclamation, 223 | color: Colors.red, 224 | )); 225 | return; 226 | }); 227 | }catch(e){ 228 | Utils.showSnackBar( 229 | 'Error', 230 | Utils.extractFirebaseError(e.toString()), 231 | const Icon( 232 | FontAwesomeIcons.triangleExclamation, 233 | color: Colors.red, 234 | )); 235 | } 236 | } 237 | static Future signInWithApple()async{ 238 | } 239 | static Future childCount()async{ 240 | String str = auth.currentUser!.email.toString(); 241 | String node = str.substring(0, str.indexOf('@')); 242 | return database.ref('Tasks').child(node).once().then((value){ 243 | return value.snapshot.children.length; 244 | }); 245 | } 246 | static Future update(String key,String updateKey,String updateValue) async{ 247 | String str = auth.currentUser!.email.toString(); 248 | String node = str.substring(0, str.indexOf('@')); 249 | database.ref('Tasks').child(node).child(key).update({ 250 | updateKey : updateValue 251 | }); 252 | } 253 | 254 | 255 | } 256 | -------------------------------------------------------------------------------- /lib/data/shared pref/shared_pref.dart: -------------------------------------------------------------------------------- 1 | import 'package:shared_preferences/shared_preferences.dart'; 2 | 3 | class UserPref{ 4 | static Future setUser(String name,String email,String password,String node,String token) async { 5 | 6 | SharedPreferences pref=await SharedPreferences.getInstance(); 7 | pref.setString('NAME', name); 8 | pref.setString('EMAIL', email); 9 | pref.setString('PASSWORD', password); 10 | pref.setString('NODE', node); 11 | pref.setString('TOKEN', token); 12 | 13 | 14 | // print(name); 15 | // print(email); 16 | // print(password); 17 | // print(node); 18 | // print(token); 19 | 20 | 21 | } 22 | 23 | static Future> getUser() async { 24 | SharedPreferences pref=await SharedPreferences.getInstance(); 25 | return { 26 | 'NAME' : pref.getString('NAME')!, 27 | 'EMAIL' : pref.getString('EMAIL')!, 28 | 'PASSWORD' : pref.getString('PASSWORD')!, 29 | 'NODE' : pref.getString('NODE')!, 30 | 'TOKEN' : pref.getString('TOKEN')!, 31 | }; 32 | } 33 | 34 | 35 | 36 | } -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_core/firebase_core.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | import 'package:to_do_app/res/routes/app_routes.dart'; 5 | void main()async{ 6 | WidgetsFlutterBinding.ensureInitialized(); 7 | await Firebase.initializeApp(); 8 | runApp(const MyApp()); 9 | } 10 | class MyApp extends StatelessWidget { 11 | const MyApp({super.key}); 12 | @override 13 | Widget build(BuildContext context) { 14 | return GetMaterialApp( 15 | debugShowCheckedModeBanner: false, 16 | theme: ThemeData( 17 | colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), 18 | useMaterial3: true, 19 | ), 20 | getPages: AppRoutes.routes(), 21 | ); 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /lib/model/task_model.dart: -------------------------------------------------------------------------------- 1 | import 'dart:core'; 2 | 3 | class TaskModel { 4 | String? key; 5 | String? title; 6 | String? category; 7 | String? description; 8 | String? image; 9 | String? periority; 10 | String? time; 11 | String? date; 12 | String? show; 13 | String? progress; 14 | String? status; 15 | 16 | TaskModel( 17 | {required this.key, 18 | required this.time, 19 | required this.date, 20 | required this.periority, 21 | required this.description, 22 | required this.category, 23 | required this.title, 24 | required this.image, 25 | required this.show, 26 | required this.progress, 27 | required this.status}); 28 | 29 | TaskModel.fromMap(Map res) { 30 | key = res['key']; 31 | title = res['title']; 32 | category = res['category']; 33 | description = res['description']; 34 | image = res['image']; 35 | periority = res['periority']; 36 | show = res['show']; 37 | time = res['time']; 38 | date = res['date']; 39 | progress=res['progress']; 40 | status=res['status']; 41 | } 42 | 43 | Map toMap() { 44 | return { 45 | 'key': key, 46 | 'title': title, 47 | 'category': category, 48 | 'description': description, 49 | 'image': image, 50 | 'periority': periority, 51 | 'time': time, 52 | 'date': date, 53 | 'show': show, 54 | 'status' : status, 55 | 'progress' : progress, 56 | }; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /lib/res/app_color.dart: -------------------------------------------------------------------------------- 1 | import 'dart:ui'; 2 | 3 | const primaryColor = Color(0xff151414); 4 | const black = Color(0xff0C090A); -------------------------------------------------------------------------------- /lib/res/assets/app_icons.dart: -------------------------------------------------------------------------------- 1 | class AppIcon{ 2 | static const menu='assets/icons/menu.svg'; 3 | static const search='assets/icons/search.svg'; 4 | } -------------------------------------------------------------------------------- /lib/res/assets/app_images.dart: -------------------------------------------------------------------------------- 1 | class AppImage { 2 | static const back1='assets/images/back1.jpg'; 3 | static const back2='assets/images/back2.jpg'; 4 | static const back3='assets/images/back3.jpg'; 5 | static const splash='assets/images/splash.png'; 6 | } -------------------------------------------------------------------------------- /lib/res/routes/app_routes.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | import 'package:to_do_app/res/routes/routes.dart'; 3 | import 'package:to_do_app/view/home%20page/home_page.dart'; 4 | import 'package:to_do_app/view/sign%20in/sign_in.dart'; 5 | import 'package:to_do_app/view/sign%20up/sign_up.dart'; 6 | import 'package:to_do_app/view/splash/splash_screen.dart'; 7 | 8 | class AppRoutes{ 9 | static List routes(){ 10 | return [ 11 | GetPage(name: Routes.splashScreen, page: ()=>const SplashScreen()), 12 | GetPage(name: Routes.signUpScreen, page: ()=>const SignUp()), 13 | GetPage(name: Routes.signInScreen, page: ()=>const SignIn()), 14 | GetPage(name: Routes.homePage, page: ()=> HomePage()), 15 | ]; 16 | } 17 | } -------------------------------------------------------------------------------- /lib/res/routes/routes.dart: -------------------------------------------------------------------------------- 1 | class Routes{ 2 | static const splashScreen='/'; 3 | static const signUpScreen='/signUpScreen'; 4 | static const signInScreen='/signInScreen'; 5 | static const homePage='/homePage'; 6 | } -------------------------------------------------------------------------------- /lib/utils/utils.dart: -------------------------------------------------------------------------------- 1 | import 'package:email_validator/email_validator.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | import 'package:intl/intl.dart'; 5 | import 'package:to_do_app/res/app_color.dart'; 6 | class Utils{ 7 | 8 | 9 | static bool validateEmail(String email){ 10 | return EmailValidator.validate(email); 11 | } 12 | static String extractFirebaseError(String error){ 13 | return error.substring(error.indexOf(']')+1); 14 | } 15 | static void showSnackBar(String title,String message,Widget icon){ 16 | Get.showSnackbar( 17 | GetSnackBar( 18 | backgroundColor: primaryColor.withOpacity(.4), 19 | title: title, 20 | isDismissible: true, 21 | duration: const Duration(milliseconds: 2000), 22 | icon: icon, 23 | message: message, 24 | snackPosition: SnackPosition.BOTTOM, 25 | borderRadius: 20, 26 | margin: const EdgeInsets.symmetric(horizontal: 10,vertical: 10), 27 | padding: const EdgeInsets.symmetric(horizontal: 20,vertical: 5), 28 | snackStyle: SnackStyle.GROUNDED, 29 | barBlur: 30, 30 | ) 31 | ); 32 | } 33 | static String formateDate(DateTime date){ 34 | String formattedDate = DateFormat('d MMM y').format(date); 35 | return formattedDate; 36 | } 37 | static String formatDate(){ 38 | String formattedDate = DateFormat('EEEE, d').format(DateTime.now()); 39 | return formattedDate; 40 | } 41 | static Map getImage(){ 42 | return { 43 | 1 : 'assets/images/back2.jpg', 44 | 2 : 'assets/images/back3.jpg', 45 | 3 : 'assets/images/back1.jpg', 46 | }; 47 | } 48 | static String getDaysDiffirece(String dateString){ 49 | DateFormat dateFormat = DateFormat('dd MMM yyyy'); 50 | DateTime date = dateFormat.parse(dateString); 51 | DateTime now = DateTime.now(); 52 | Duration difference = now.difference(date); 53 | return (-1 * difference.inDays).toString(); 54 | 55 | } 56 | 57 | 58 | static Future showWarningDailog(BuildContext context,VoidCallback onConfirm) async { 59 | await showDialog( 60 | context: context, 61 | builder: (context) { 62 | return AlertDialog( 63 | title: const Text('Remove Task'), 64 | content: const Text('Are you sure you want to delete this Task?'), 65 | actions: [ 66 | TextButton( 67 | child: const Text('Cancel'), 68 | onPressed: () { 69 | Navigator.of(context).pop(); 70 | }, 71 | ), 72 | TextButton( 73 | child: const Text('Remove'), 74 | onPressed: () { 75 | onConfirm(); 76 | Navigator.pop(context); 77 | }, 78 | ), 79 | ], 80 | ); 81 | }, 82 | ); 83 | } 84 | 85 | 86 | } 87 | 88 | -------------------------------------------------------------------------------- /lib/view model/DbHelper/db_helper.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:connectivity/connectivity.dart'; 4 | import 'package:path_provider/path_provider.dart'; 5 | import 'package:sqflite/sqflite.dart'; 6 | import 'package:path/path.dart'; 7 | import 'package:to_do_app/model/task_model.dart'; 8 | import '../../data/network/firebase/firebase_services.dart'; 9 | class DbHelper 10 | { 11 | Database? _db; 12 | Future get db 13 | async { 14 | if(_db!=null) 15 | { 16 | return _db; 17 | } 18 | final directory = Platform.isAndroid 19 | ? await getExternalStorageDirectory() 20 | : await getApplicationSupportDirectory(); 21 | String path=join(directory!.path,'db'); 22 | var db=await openDatabase(path,version: 1,onCreate: (db, version) { 23 | db.execute("CREATE TABLE Tasks(key TEXT PRIMARY KEY,title TEXT,category TEXT,description TEXT,image TEXT,date TEXT,time,periority TEXT,show TEXT,progress TEXT,status,TEXT)"); 24 | db.execute("CREATE TABLE PendingUploads(key TEXT PRIMARY KEY,title TEXT,category TEXT,description TEXT,image TEXT,date TEXT,time,periority TEXT,show TEXT,progress TEXT,status,TEXT)"); 25 | db.execute("CREATE TABLE PendingDeletes(key TEXT PRIMARY KEY,title TEXT,category TEXT,description TEXT,image TEXT,date TEXT,time,periority TEXT,show TEXT,progress TEXT,status,TEXT)"); 26 | 27 | },); 28 | return db; 29 | } 30 | 31 | 32 | 33 | Future insert(TaskModel model) async { 34 | var dbClient=await db; 35 | final Connectivity connectivity=Connectivity(); 36 | var connection=await connectivity.checkConnectivity(); 37 | if(connection==ConnectivityResult.wifi || connection==ConnectivityResult.mobile){ 38 | dbClient!.insert('Tasks',model.toMap()).then((value) { 39 | FirebaseService.insertData(model); 40 | },).onError((error, stackTrace) { 41 | },); 42 | 43 | return model; 44 | } 45 | dbClient!.insert('PendingUploads', model.toMap()).then((value) { 46 | 47 | }); 48 | 49 | return model; 50 | } 51 | 52 | 53 | Future removeFromList(TaskModel model) async { 54 | var dbClient=await db; 55 | final Connectivity connectivity=Connectivity(); 56 | var connection=await connectivity.checkConnectivity(); 57 | await dbClient!.update( 58 | 'Tasks', 59 | {'show' : 'no'}, 60 | where: 'key = ?', 61 | whereArgs: [model.key!]).then((value) { 62 | }); 63 | if(connection==ConnectivityResult.wifi || connection==ConnectivityResult.mobile){ 64 | FirebaseService.update(model.key!, 'show', 'no'); 65 | }else{ 66 | dbClient.insert('PendingDeletes',model.toMap()); 67 | } 68 | } 69 | 70 | 71 | 72 | Future update(TaskModel model)async{ 73 | var dbClient=await db; 74 | await dbClient!.update( 75 | 'Tasks', 76 | model.toMap(), 77 | where: 'key = ?', 78 | whereArgs: [model.key!]); 79 | } 80 | 81 | 82 | 83 | 84 | 85 | 86 | Future delete (String id,String table) async { 87 | var dbClient=await db; 88 | return await dbClient!.delete( 89 | table, 90 | where: 'key = ?', 91 | whereArgs: [id]); 92 | } 93 | Future> getData() async { 94 | var dbClient = await db; 95 | final List> queryResult = await dbClient!.query('Tasks'); 96 | return queryResult.map((e) => TaskModel.fromMap(e)).toList(); 97 | } 98 | Future> getPendingUploads() async { 99 | var dbClient = await db; 100 | final List> queryResult = await dbClient!.query('PendingUploads'); 101 | return queryResult.map((e) => TaskModel.fromMap(e)).toList(); 102 | } 103 | Future> getPendingDeletes() async { 104 | var dbClient = await db; 105 | final List> queryResult = await dbClient!.query('PendingDeletes'); 106 | return queryResult.map((e) => TaskModel.fromMap(e)).toList(); 107 | } 108 | Future isRowExists(String id, String table) async { 109 | var dbClient = await db; 110 | var count = await dbClient!.query( 111 | table, 112 | where: 'key = ?', 113 | whereArgs: [id]); 114 | 115 | return count.isNotEmpty; 116 | } 117 | 118 | } -------------------------------------------------------------------------------- /lib/view model/controller/add_task_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:get/get.dart'; 4 | import 'package:intl/intl.dart'; 5 | import 'package:to_do_app/model/task_model.dart'; 6 | import 'package:to_do_app/utils/utils.dart'; 7 | import 'package:to_do_app/view%20model/DbHelper/db_helper.dart'; 8 | import 'package:to_do_app/view%20model/controller/home_controller.dart'; 9 | import 'package:to_do_app/view/new%20task/components/progress_picker.dart'; 10 | 11 | class AddTaskController extends GetxController{ 12 | final DbHelper database=DbHelper(); 13 | final controller=Get.put(HomeController()); 14 | RxInt selectedImageIndex=1.obs; 15 | RxBool lowPeriority=true.obs; 16 | RxBool titleFocus=false.obs; 17 | RxBool categoryFocus=false.obs; 18 | RxBool descriptionFocus=false.obs; 19 | RxBool loading=false.obs; 20 | RxDouble progress=0.0.obs; 21 | Rx title=TextEditingController().obs; 22 | Rx description=TextEditingController().obs; 23 | Rx category=TextEditingController().obs; 24 | RxString time=''.obs; 25 | RxString date=''.obs; 26 | 27 | 28 | 29 | insertDataInDatabase() async { 30 | try{ 31 | loading.value=true; 32 | await database.insert(TaskModel( 33 | progress: progress.value.toInt().toString(), 34 | status: 'unComplete', 35 | key: DateTime.now().microsecondsSinceEpoch.toString(), 36 | time: time.value, 37 | date: date.value, 38 | periority: lowPeriority.value ? 'High' : 'Low', 39 | description: description.value.text.toString(), 40 | category: category.value.text.toString(), 41 | title: title.value.text.toString(), 42 | image: Utils.getImage()[selectedImageIndex.value], 43 | show: 'yes' 44 | )).then((value) async { 45 | controller.getTaskData(); 46 | title.value.clear(); 47 | category.value.clear(); 48 | date.value=''; 49 | time.value=''; 50 | progress.value=0.0; 51 | selectedImageIndex.value=1; 52 | await Future.delayed(const Duration(milliseconds: 700)); 53 | loading.value=false; 54 | 55 | Get.back(); 56 | }).onError((error, stackTrace){ 57 | loading.value=false; 58 | }); 59 | 60 | }catch(e){ 61 | loading.value=false; 62 | Utils.showSnackBar('Warning', e.toString(), const Icon(FontAwesomeIcons.triangleExclamation,color: Colors.pinkAccent,)); 63 | } 64 | } 65 | showProgressPicker(BuildContext context){ 66 | if(title.value.text.toString().isEmpty){ 67 | Utils.showSnackBar('Warning', 'Add title of your task', const Icon(FontAwesomeIcons.triangleExclamation,color: Colors.pinkAccent,)); 68 | return; 69 | } 70 | if(category.value.text.toString().isEmpty){ 71 | Utils.showSnackBar('Warning', 'Add category of your task', const Icon(FontAwesomeIcons.triangleExclamation,color: Colors.pinkAccent,)); 72 | return; 73 | } 74 | if(date.value.isEmpty){ 75 | Utils.showSnackBar('Warning', 'Add date for your task', const Icon(FontAwesomeIcons.triangleExclamation,color: Colors.pinkAccent,)); 76 | return; 77 | } 78 | if(int.parse(Utils.getDaysDiffirece(date.value))<0){ 79 | Utils.showSnackBar('Warning', 'Please select correct date', const Icon(FontAwesomeIcons.triangleExclamation,color: Colors.pinkAccent,)); 80 | return; 81 | } 82 | ProgressPicker(context); 83 | } 84 | pickDate(BuildContext context)async{ 85 | var pickedDate=await showDatePicker( 86 | context: context, 87 | initialDate: DateTime.now(), 88 | firstDate: DateTime(2023), 89 | lastDate: DateTime(2025), 90 | ); 91 | if(pickedDate!=null){ 92 | date.value=Utils.formateDate(pickedDate); 93 | } 94 | } 95 | picTime(BuildContext context)async{ 96 | TimeOfDay? pickedTime=await showTimePicker(context: context, initialTime: TimeOfDay.now()); 97 | if(pickedTime!=null){ 98 | DateFormat dateFormat = DateFormat('hh:mm a'); 99 | time.value=dateFormat.format(DateTime(2323,1,1,pickedTime.hour,pickedTime.minute,)); 100 | } 101 | } 102 | setTitleFocus(){ 103 | titleFocus.value=true; 104 | categoryFocus.value=false; 105 | descriptionFocus.value=false; 106 | } 107 | setCategoryFocus(){ 108 | titleFocus.value=false; 109 | categoryFocus.value=true; 110 | descriptionFocus.value=false; 111 | } 112 | setDescriptionFocus(){ 113 | titleFocus.value=false; 114 | categoryFocus.value=false; 115 | descriptionFocus.value=true; 116 | } 117 | setPeriority(bool value){ 118 | lowPeriority.value=value; 119 | } 120 | setImage(int index){ 121 | selectedImageIndex.value=index; 122 | } 123 | onTapOutside(){ 124 | titleFocus.value=false; 125 | categoryFocus.value=false; 126 | descriptionFocus.value=false; 127 | } 128 | 129 | 130 | } -------------------------------------------------------------------------------- /lib/view model/controller/home_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:connectivity/connectivity.dart'; 2 | import 'package:firebase_database/firebase_database.dart'; 3 | import 'package:flutter/cupertino.dart'; 4 | import 'package:get/get.dart'; 5 | import 'package:to_do_app/Data/network/firebase/firebase_services.dart'; 6 | import 'package:to_do_app/Data/shared%20pref/shared_pref.dart'; 7 | import 'package:to_do_app/utils/utils.dart'; 8 | import 'package:to_do_app/view%20model/DbHelper/db_helper.dart'; 9 | import '../../model/task_model.dart'; 10 | 11 | class HomeController extends GetxController { 12 | RxMap userData = {}.obs; 13 | RxString name = ''.obs; 14 | RxBool focus = false.obs; 15 | RxBool hasText = false.obs; 16 | RxInt taskCount = 0.obs; 17 | RxBool hasData = false.obs; 18 | final DbHelper db = DbHelper(); 19 | RxList list = [].obs; 20 | Connectivity? connectivity; 21 | final searchController = TextEditingController().obs; 22 | HomeController() { 23 | // if name not loaded 24 | if (userData['NAME'] == null) { 25 | getUserData(); 26 | } 27 | // check for set listeners only for one time 28 | if (connectivity == null) { 29 | String str = FirebaseService.auth.currentUser!.email.toString(); 30 | String node = str.substring(0, str.indexOf('@')); 31 | // listener for changing live database 32 | FirebaseDatabase.instance 33 | .ref('Tasks') 34 | .child(node) 35 | .onValue 36 | .listen((event) async { 37 | int count = await FirebaseService.childCount(); 38 | // check if live database has more child than local 39 | 40 | getTaskData(); 41 | for (var element in event.snapshot.children) { 42 | if (!await db.isRowExists( 43 | element.child('key').value.toString(), 'Tasks')) { 44 | db 45 | .insert( 46 | TaskModel( 47 | key: element.child('key').value.toString(), 48 | time: element.child('time').value.toString(), 49 | progress: element.child('progress').value.toString(), 50 | status: element.child('status').value.toString(), 51 | date: element.child('date').value.toString(), 52 | periority: element.child('periority').value.toString(), 53 | description: element.child('description').value.toString(), 54 | category: element.child('category').value.toString(), 55 | title: element.child('title').value.toString(), 56 | image: element.child('image').value.toString(), 57 | show: element.child('show').value.toString()), 58 | ) 59 | .then((value) { 60 | getTaskData(); 61 | }); 62 | } 63 | } 64 | }); 65 | 66 | FirebaseDatabase.instance 67 | .ref('Tasks') 68 | .child(node) 69 | .onChildChanged 70 | .listen((event) async { 71 | int count = await FirebaseService.childCount(); 72 | 73 | // check if live database has more child than local 74 | getTaskData(); 75 | for (var element in event.snapshot.children) { 76 | db 77 | .update(TaskModel( 78 | progress: element.child('progress').value.toString(), 79 | status: element.child('status').value.toString(), 80 | key: element.child('key').value.toString(), 81 | time: element.child('time').value.toString(), 82 | date: element.child('date').value.toString(), 83 | periority: element.child('periority').value.toString(), 84 | description: element.child('description').value.toString(), 85 | category: element.child('category').value.toString(), 86 | title: element.child('title').value.toString(), 87 | image: element.child('image').value.toString(), 88 | show: element.child('show').value.toString())) 89 | .then((value) { 90 | getTaskData(); 91 | }); 92 | } 93 | }); 94 | connectivity = Connectivity(); 95 | // listener for internet state 96 | connectivity!.onConnectivityChanged.listen((event) async { 97 | if (event == ConnectivityResult.mobile || 98 | event == ConnectivityResult.wifi) { 99 | var list = await db.getPendingUploads(); 100 | for (int i = 0; i < list.length; i++) { 101 | db.insert(list[i]); 102 | db.delete(list[i].key!, 'PendingUploads'); 103 | } 104 | list.clear(); 105 | list = await db.getPendingDeletes(); 106 | for (int i = 0; i < list.length; i++) { 107 | FirebaseService.update(list[i].key!, 'show', 'no'); 108 | db.delete(list[i].key!, 'PendingDeletes'); 109 | } 110 | getTaskData(); 111 | } 112 | }); 113 | } 114 | getTaskData(); 115 | } 116 | checkData() { 117 | int count = 0; 118 | for (int i = 0; i < list.length; i++) { 119 | if (list[i].show == 'yes') { 120 | count++; 121 | } 122 | } 123 | if (count > 0) { 124 | hasData.value = true; 125 | taskCount.value = count; 126 | } else { 127 | hasData.value = false; 128 | taskCount.value = 0; 129 | } 130 | } 131 | popupMenuSelected(int value, int index, BuildContext context) async { 132 | if (value == 2) { 133 | Utils.showWarningDailog(context, () => removeFromList(index)); 134 | } 135 | } 136 | getTaskData() async { 137 | list.value = await db.getData(); 138 | var tempList = await db.getPendingUploads(); 139 | for (int i = 0; i < tempList.length; i++) { 140 | list.add(tempList[i]); 141 | } 142 | checkData(); 143 | } 144 | Future> getFututeData() { 145 | return db.getData(); 146 | } 147 | onClear(BuildContext context) { 148 | searchController.value.text = ''; 149 | hasText.value = false; 150 | onTapOutside(context); 151 | } 152 | onTapOutside(BuildContext context) { 153 | focus.value = false; 154 | FocusScope.of(context).unfocus(); 155 | } 156 | checkText() { 157 | hasText.value = searchController.value.text.toString().isNotEmpty; 158 | } 159 | onTapField() { 160 | focus.value = true; 161 | } 162 | getUserData() async { 163 | userData.value = await UserPref.getUser(); 164 | getName(); 165 | } 166 | getName() { 167 | name.value = userData['NAME'] 168 | .toString() 169 | .substring(0, userData['NAME'].toString().indexOf(' ')); 170 | } 171 | removeFromList(int index) { 172 | db 173 | .removeFromList(TaskModel( 174 | key: list[index].key, 175 | status: list[index].status, 176 | progress: list[index].progress, 177 | time: list[index].time, 178 | date: list[index].date, 179 | periority: list[index].periority, 180 | description: list[index].description, 181 | category: list[index].category, 182 | title: list[index].title, 183 | image: list[index].image, 184 | show: 'no')) 185 | .then((value) { 186 | getTaskData(); 187 | }); 188 | } 189 | } 190 | -------------------------------------------------------------------------------- /lib/view model/controller/signin_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:get/get.dart'; 4 | import '../../data/network/firebase/firebase_services.dart'; 5 | import '../../utils/utils.dart'; 6 | 7 | class SignInController extends GetxController{ 8 | RxBool emailFocus=false.obs; 9 | RxBool passwordFocus=false.obs; 10 | RxBool correctEmail=false.obs; 11 | RxBool showPassword=true.obs; 12 | RxBool loading=false.obs; 13 | final email=TextEditingController().obs; 14 | final password=TextEditingController().obs; 15 | 16 | 17 | void loginAccount(){ 18 | if(!correctEmail.value){ 19 | Utils.showSnackBar('Warning', 'Enter Correct Email', const Icon(FontAwesomeIcons.triangleExclamation,color: Colors.pink,)); 20 | return; 21 | } 22 | if(password.value.text.toString().length<6){ 23 | Utils.showSnackBar('Warning', 'Password length should greater than 5', const Icon(FontAwesomeIcons.triangleExclamation,color: Colors.pink,)); 24 | return; 25 | } 26 | 27 | 28 | FirebaseService.loginAccount(); 29 | 30 | 31 | } 32 | 33 | void setLoading(bool value){ 34 | loading.value=value; 35 | } 36 | void validateEmail(){ 37 | correctEmail.value=Utils.validateEmail(email.value.text.toString()); 38 | } 39 | 40 | 41 | void onFocusEmail(){ 42 | emailFocus.value=true; 43 | passwordFocus.value=false; 44 | } 45 | void onFocusPassword(){ 46 | emailFocus.value=false; 47 | passwordFocus.value=true; 48 | } 49 | void onTapOutside(BuildContext context){ 50 | emailFocus.value=false; 51 | passwordFocus.value=false; 52 | FocusScope.of(context).unfocus(); 53 | } 54 | } -------------------------------------------------------------------------------- /lib/view model/controller/signup_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:get/get.dart'; 4 | import 'package:to_do_app/utils/utils.dart'; 5 | import '../../data/network/firebase/firebase_services.dart'; 6 | 7 | class SignupController extends GetxController{ 8 | RxBool nameFocus=false.obs; 9 | RxBool emailFocus=false.obs; 10 | RxBool passwordFocus=false.obs; 11 | RxBool correctEmail=false.obs; 12 | RxBool correctName=false.obs; 13 | RxBool showPassword=true.obs; 14 | RxBool loading=false.obs; 15 | // final FirebaseServices firebase=FirebaseServices(); 16 | final email=TextEditingController().obs; 17 | final name=TextEditingController().obs; 18 | final password=TextEditingController().obs; 19 | void validateEmail(){ 20 | correctEmail.value=Utils.validateEmail(email.value.text.toString()); 21 | } 22 | void validateName(){ 23 | correctName.value=name.value.text.toString().length>5; 24 | } 25 | void setLoading(bool value){ 26 | loading.value=value; 27 | } 28 | void createAccount(){ 29 | if(!correctName.value){ 30 | Utils.showSnackBar('Warning', 'Enter Correct Name', const Icon(FontAwesomeIcons.triangleExclamation,color: Colors.pink,)); 31 | return; 32 | } 33 | if(!correctEmail.value){ 34 | Utils.showSnackBar('Warning', 'Enter Correct Email', const Icon(FontAwesomeIcons.triangleExclamation,color: Colors.pink,)); 35 | return; 36 | } 37 | if(password.value.text.toString().length<6){ 38 | Utils.showSnackBar('Warning', 'Password length should greater than 5', const Icon(FontAwesomeIcons.triangleExclamation,color: Colors.pink,)); 39 | return; 40 | } 41 | FirebaseService.createAccount(); 42 | } 43 | 44 | void onFocusEmail(){ 45 | emailFocus.value=true; 46 | nameFocus.value=false; 47 | passwordFocus.value=false; 48 | } 49 | void onFocusName(){ 50 | emailFocus.value=false; 51 | nameFocus.value=true; 52 | passwordFocus.value=false; 53 | } 54 | void onFocusPassword(){ 55 | emailFocus.value=false; 56 | nameFocus.value=false; 57 | passwordFocus.value=true; 58 | } 59 | void onTapOutside(BuildContext context){ 60 | emailFocus.value=false; 61 | nameFocus.value=false; 62 | passwordFocus.value=false; 63 | FocusScope.of(context).unfocus(); 64 | } 65 | 66 | 67 | 68 | } 69 | -------------------------------------------------------------------------------- /lib/view model/services/splash_services.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:get/get.dart'; 4 | import 'package:shared_preferences/shared_preferences.dart'; 5 | import 'package:to_do_app/res/routes/routes.dart'; 6 | 7 | class SplashServices{ 8 | static void checkLogin()async{ 9 | SharedPreferences pref=await SharedPreferences.getInstance(); 10 | String? uid=pref.getString('TOKEN'); 11 | Timer(const Duration(milliseconds: 2000), () { 12 | if(uid==null){ 13 | Get.toNamed(Routes.signUpScreen); 14 | }else{ 15 | Get.toNamed(Routes.homePage); 16 | } 17 | }); 18 | 19 | } 20 | } -------------------------------------------------------------------------------- /lib/view/common widgets/back_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '../../res/app_color.dart'; 4 | 5 | class CustomBackButton extends StatelessWidget { 6 | final double height; 7 | final double width; 8 | final double radius; 9 | final Widget widget; 10 | const CustomBackButton({super.key,this.width=40,this.height=40,this.radius=12,this.widget=const Icon( 11 | Icons.arrow_back_ios_new_rounded, 12 | color: Colors.white70, 13 | size: 18, 14 | )}); 15 | @override 16 | Widget build(BuildContext context) { 17 | return Container( 18 | height: height, 19 | width: width, 20 | decoration: BoxDecoration( 21 | borderRadius: BorderRadius.circular(radius), 22 | color: black, 23 | boxShadow: [ 24 | BoxShadow( 25 | color: Colors.grey.withOpacity(.2), 26 | offset: const Offset(1, 0)), 27 | BoxShadow( 28 | color: Colors.grey.withOpacity(.2), 29 | offset: const Offset(0, 1)), 30 | BoxShadow( 31 | color: Colors.grey.withOpacity(.2), 32 | offset: const Offset(-1, 0)), 33 | BoxShadow( 34 | color: Colors.grey.withOpacity(.2), 35 | offset: const Offset(0, -1)), 36 | ]), 37 | child: widget, 38 | ); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /lib/view/home page/components/progress_container.dart: -------------------------------------------------------------------------------- 1 | import 'dart:ui'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:get/get.dart'; 5 | 6 | import '../../../res/app_color.dart'; 7 | import '../../../utils/utils.dart'; 8 | import '../../../view model/controller/home_controller.dart'; 9 | import '../../common widgets/back_button.dart'; 10 | 11 | class ProgressContainer extends StatelessWidget { 12 | final int index; 13 | ProgressContainer({super.key, required this.index}); 14 | final controller = Get.put(HomeController()); 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return Container( 19 | height: 200, 20 | width: 160, 21 | margin: const EdgeInsets.only(left: 20), 22 | child: Stack( 23 | children: [ 24 | Positioned.fill( 25 | child: ClipRRect( 26 | borderRadius: BorderRadius.circular(20), 27 | child: Container( 28 | decoration: BoxDecoration( 29 | image: DecorationImage( 30 | image: AssetImage(controller.list[index].image), 31 | fit: BoxFit.cover)), 32 | ), 33 | )), 34 | Positioned( 35 | height: 150, 36 | width: 150, 37 | top: 1, 38 | child: ClipRRect( 39 | borderRadius: BorderRadius.circular(20), 40 | child: BackdropFilter( 41 | filter: ImageFilter.blur(sigmaY: 1, sigmaX: 1), 42 | child: const SizedBox(), 43 | ))), 44 | Container( 45 | padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 10), 46 | child: Column( 47 | children: [ 48 | // SizedBox(height: 10,), 49 | Row( 50 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 51 | children: [ 52 | Text( 53 | controller.list[index].date, 54 | style: const TextStyle( 55 | color: Colors.white, 56 | fontWeight: FontWeight.bold, 57 | fontSize: 12), 58 | ), 59 | // Icon(Icons.more_vert_rounded,color: Colors.white,size: 20,) 60 | SizedBox( 61 | height: 15, 62 | width: 20, 63 | child: PopupMenuButton( 64 | padding: EdgeInsets.zero, 65 | color: primaryColor, 66 | position: PopupMenuPosition.under, 67 | onSelected: (value) { 68 | controller.popupMenuSelected(value, index, context); 69 | }, 70 | icon: const Icon( 71 | Icons.more_vert_rounded, 72 | color: Colors.white, 73 | size: 20, 74 | ), 75 | itemBuilder: (context) { 76 | return [ 77 | const PopupMenuItem( 78 | value: 1, 79 | child: Row( 80 | children: [ 81 | Icon( 82 | Icons.edit, 83 | color: Colors.pinkAccent, 84 | ), 85 | Text( 86 | " Edit", 87 | style: TextStyle( 88 | color: Colors.white, 89 | fontWeight: FontWeight.bold), 90 | ) 91 | ], 92 | )), 93 | const PopupMenuItem( 94 | value: 2, 95 | child: Row( 96 | children: [ 97 | Icon( 98 | Icons.delete_outline, 99 | color: Colors.pinkAccent, 100 | ), 101 | Text( 102 | " Delete", 103 | style: TextStyle( 104 | color: Colors.white, 105 | fontWeight: FontWeight.bold), 106 | ) 107 | ], 108 | )) 109 | ]; 110 | }, 111 | ), 112 | ) 113 | ], 114 | ), 115 | const SizedBox( 116 | height: 20, 117 | ), 118 | Text( 119 | controller.list[index].title, 120 | style: const TextStyle( 121 | color: Colors.white, 122 | fontSize: 17, 123 | fontWeight: FontWeight.bold), 124 | ), 125 | Text( 126 | controller.list[index].category, 127 | style: const TextStyle( 128 | color: Colors.white, 129 | fontSize: 20, 130 | fontWeight: FontWeight.bold), 131 | ), 132 | const SizedBox( 133 | height: 10, 134 | ), 135 | Row( 136 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 137 | children: [ 138 | const Text( 139 | 'Progress', 140 | style: TextStyle( 141 | color: Colors.white70, 142 | fontWeight: FontWeight.bold, 143 | fontSize: 12), 144 | ), 145 | Text( 146 | '60%', 147 | style: const TextStyle( 148 | color: Colors.white70, 149 | fontWeight: FontWeight.bold, 150 | fontSize: 12), 151 | ), 152 | ], 153 | ), 154 | const SizedBox( 155 | height: 6, 156 | ), 157 | ClipRRect( 158 | borderRadius: BorderRadius.circular(10), 159 | child: LinearProgressIndicator( 160 | value: 0.6, 161 | // double.parse(controller.list[index].progress)/100.0 162 | backgroundColor: Colors.deepPurple, 163 | color: Colors.white, 164 | ), 165 | ), 166 | const Spacer(), 167 | Row( 168 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 169 | children: [ 170 | const CustomBackButton( 171 | height: 30, 172 | width: 30, 173 | radius: 30, 174 | widget: Center( 175 | child: Padding( 176 | padding: EdgeInsets.all(10.0), 177 | child: FlutterLogo(), 178 | ), 179 | ), 180 | ), 181 | Container( 182 | alignment: Alignment.center, 183 | height: 30, 184 | width: 100, 185 | decoration: BoxDecoration( 186 | color: Colors.white, 187 | borderRadius: BorderRadius.circular(20)), 188 | child: Text( 189 | '${Utils.getDaysDiffirece(controller.list[index].date)} Days Left', 190 | style: const TextStyle( 191 | color: Colors.black, 192 | fontWeight: FontWeight.bold, 193 | fontSize: 12), 194 | ), 195 | ), 196 | ], 197 | ) 198 | ], 199 | ), 200 | ) 201 | ], 202 | ), 203 | ); 204 | } 205 | } 206 | -------------------------------------------------------------------------------- /lib/view/home page/components/progress_task.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:to_do_app/view%20model/controller/home_controller.dart'; 4 | import 'package:to_do_app/view/home%20page/components/progress_container.dart'; 5 | 6 | class ProgressTask extends StatelessWidget { 7 | final controller = Get.put(HomeController()); 8 | 9 | ProgressTask({super.key}); 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return SizedBox( 14 | height: 210, 15 | width: MediaQuery.sizeOf(context).width, 16 | child: Obx( 17 | () => ListView.builder( 18 | scrollDirection: Axis.horizontal, 19 | itemCount: controller.list.length, 20 | itemBuilder: (context, index) { 21 | if (controller.list[index].show == 'yes') { 22 | return GestureDetector( 23 | onTap: () { 24 | // controller.removeFromList(index); 25 | }, 26 | child: ProgressContainer(index: index) 27 | ); 28 | } else { 29 | return const SizedBox(); 30 | } 31 | }, 32 | ), 33 | )); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /lib/view/home page/components/search_field.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_svg/svg.dart'; 4 | import 'package:get/get.dart'; 5 | import 'package:to_do_app/view%20model/controller/home_controller.dart'; 6 | 7 | import '../../../res/app_color.dart'; 8 | import '../../../res/assets/app_icons.dart'; 9 | import '../../sign up/components/textfield_sufiix.dart'; 10 | 11 | class SearchField extends StatelessWidget { 12 | SearchField({super.key}); 13 | final controller=Get.put(HomeController()); 14 | @override 15 | Widget build(BuildContext context) { 16 | return AnimatedContainer( 17 | margin: EdgeInsets.symmetric(horizontal: 20), 18 | duration: const Duration(milliseconds: 500), 19 | padding: const EdgeInsets.all(1), 20 | decoration: BoxDecoration( 21 | borderRadius: BorderRadius.circular(15), 22 | gradient: controller.focus.value 23 | ? const LinearGradient(colors: [ 24 | Colors.purpleAccent, 25 | Colors.pink, 26 | ]) 27 | : null, 28 | ), 29 | child: TextFormField( 30 | controller: controller.searchController.value, 31 | onTap:controller.onTapField, 32 | onTapOutside: (event) { 33 | controller.onTapOutside(context); 34 | }, 35 | onChanged: (value) { 36 | controller.checkText(); 37 | }, 38 | style: 39 | const TextStyle(color: Colors.white, fontWeight: FontWeight.w400), 40 | decoration: InputDecoration( 41 | filled: true, 42 | prefixIcon: Container( 43 | margin: const EdgeInsets.symmetric(horizontal: 10), 44 | padding: const EdgeInsets.symmetric(vertical: 10,horizontal: 10), 45 | child: SvgPicture.asset(AppIcon.search,height: 20,width: 20,color: Colors.grey,), 46 | ), 47 | suffixIcon: Obx(()=> controller.hasText.value ?GestureDetector( 48 | onTap: () => controller.onClear(context), 49 | child: const TextFieldSufix( 50 | icon: Icons.clear,), 51 | ): const SizedBox() ), 52 | fillColor: primaryColor, 53 | border: OutlineInputBorder( 54 | borderRadius: BorderRadius.circular(15), 55 | borderSide: BorderSide.none), 56 | hoverColor: Colors.pinkAccent, 57 | contentPadding: 58 | const EdgeInsets.symmetric(horizontal: 30, vertical: 20), 59 | hintText: 'Search ...', 60 | hintStyle: const TextStyle( 61 | color: Colors.grey, fontWeight: FontWeight.normal, fontSize: 12), 62 | ), 63 | ), 64 | ); 65 | } 66 | } -------------------------------------------------------------------------------- /lib/view/home page/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:to_do_app/res/app_color.dart'; 4 | import 'package:flutter_svg/flutter_svg.dart'; 5 | import 'package:to_do_app/res/assets/app_icons.dart'; 6 | import 'package:to_do_app/utils/utils.dart'; 7 | import 'package:to_do_app/view%20model/controller/home_controller.dart'; 8 | import 'package:to_do_app/view/common%20widgets/back_button.dart'; 9 | import 'package:to_do_app/view/home%20page/components/progress_task.dart'; 10 | import 'package:to_do_app/view/home%20page/components/search_field.dart'; 11 | import 'package:to_do_app/view/new%20task/new_task.dart'; 12 | class HomePage extends StatelessWidget { 13 | HomePage({super.key}); 14 | final controller = Get.put(HomeController()); 15 | @override 16 | Widget build(BuildContext context) { 17 | return Scaffold( 18 | backgroundColor: black, 19 | floatingActionButton: GestureDetector( 20 | onTap: () => NewTask(MediaQuery.sizeOf(context)), 21 | child: Container( 22 | height: 65, 23 | width: 65, 24 | margin: const EdgeInsets.only(right: 20, bottom: 20), 25 | decoration: BoxDecoration( 26 | borderRadius: BorderRadius.circular(70), 27 | gradient: const LinearGradient(colors: [ 28 | Colors.pinkAccent, 29 | Colors.purpleAccent, 30 | ])), 31 | child: const Center( 32 | child: Icon( 33 | Icons.add, 34 | color: Colors.white, 35 | ), 36 | ), 37 | ), 38 | ), 39 | body: SafeArea( 40 | child: Column( 41 | crossAxisAlignment: CrossAxisAlignment.start, 42 | children: [ 43 | const SizedBox( 44 | height: 20, 45 | ), 46 | Padding( 47 | padding: const EdgeInsets.symmetric(horizontal: 20), 48 | child: Row( 49 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 50 | children: [ 51 | SvgPicture.asset( 52 | AppIcon.menu, 53 | color: Colors.white, 54 | height: 30, 55 | width: 30, 56 | ), 57 | Column( 58 | children: [ 59 | Obx( 60 | () => Text( 61 | 'Hi, ${controller.name}', 62 | style: const TextStyle( 63 | color: Colors.grey, 64 | fontWeight: FontWeight.bold, 65 | fontSize: 13), 66 | ), 67 | ), 68 | Text( 69 | Utils.formatDate(), 70 | style: const TextStyle( 71 | color: Colors.white, 72 | fontWeight: FontWeight.bold, 73 | fontSize: 20), 74 | ), 75 | ], 76 | ), 77 | const CustomBackButton( 78 | height: 40, 79 | width: 40, 80 | radius: 40, 81 | widget: Center( 82 | child: Padding( 83 | padding: EdgeInsets.all(10.0), 84 | child: FlutterLogo(), 85 | ), 86 | ), 87 | ) 88 | ], 89 | ), 90 | ), 91 | const SizedBox( 92 | height: 30, 93 | ), 94 | SearchField(), 95 | const SizedBox( 96 | height: 30, 97 | ), 98 | Padding( 99 | padding: const EdgeInsets.symmetric(horizontal: 30), 100 | child: Obx(() => controller.hasData.value? RichText( 101 | text: TextSpan(children: [ 102 | const TextSpan( 103 | text: 'Progress ', 104 | style: TextStyle( 105 | color: Colors.white, 106 | fontWeight: FontWeight.w800, 107 | fontSize: 16), 108 | ), 109 | TextSpan( 110 | text: '(${controller.taskCount}) ', 111 | style: const TextStyle( 112 | color: Colors.white70, 113 | fontWeight: FontWeight.normal, 114 | fontSize: 16), 115 | ), 116 | ])): const SizedBox()), 117 | ), 118 | const SizedBox( 119 | height: 15, 120 | ), 121 | ProgressTask(), 122 | const SizedBox( 123 | height: 30, 124 | ), 125 | Padding( 126 | padding: const EdgeInsets.symmetric(horizontal: 30), 127 | child: Obx(() =>controller.hasData.value? const Text( 128 | 'Tasks', 129 | style: TextStyle( 130 | color: Colors.white, 131 | fontWeight: FontWeight.w800, 132 | fontSize: 16), 133 | ) : const SizedBox(),) 134 | ), 135 | const SizedBox( 136 | height: 30, 137 | ), 138 | Expanded(child: Obx(()=> ListView.builder( 139 | itemCount: controller.list.length, 140 | itemBuilder: (context, index){ 141 | if(controller.list[index].show=='yes'){ 142 | return Column( 143 | children: [ 144 | Container( 145 | height: 70, 146 | width: double.infinity, 147 | padding: const EdgeInsets.symmetric(horizontal: 20), 148 | margin: const EdgeInsets.symmetric(horizontal: 30), 149 | decoration: BoxDecoration( 150 | color: primaryColor, 151 | borderRadius: BorderRadius.circular(30), 152 | ), 153 | child: Row( 154 | crossAxisAlignment: CrossAxisAlignment.center, 155 | children: [ 156 | Container( 157 | alignment: Alignment.center, 158 | height: 20, 159 | width: 20, 160 | decoration: BoxDecoration( 161 | shape: BoxShape.circle, 162 | color: Colors.pinkAccent, 163 | border: Border.all(color: Colors.white)), 164 | child: const Icon( 165 | Icons.done, 166 | color: Colors.white, 167 | size: 15, 168 | ), 169 | ), 170 | const SizedBox( 171 | width: 20, 172 | ), 173 | Text( 174 | 'Create ${controller.list[index].title} for\n${controller.list[index].category}', 175 | style: const TextStyle( 176 | color: Colors.white, 177 | fontSize: 14, 178 | fontWeight: FontWeight.w700), 179 | ), 180 | const Spacer(), 181 | const CircleAvatar( 182 | radius: 5, 183 | backgroundColor: Colors.purpleAccent, 184 | ) 185 | ], 186 | ), 187 | ), 188 | const SizedBox( 189 | height: 20, 190 | ), 191 | ], 192 | ); 193 | }else{ 194 | return const SizedBox(); 195 | } 196 | }, 197 | ))) 198 | ], 199 | ), 200 | )); 201 | } 202 | } 203 | -------------------------------------------------------------------------------- /lib/view/new task/components/add_fild.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '../../../res/app_color.dart'; 3 | 4 | class AddInputField extends StatelessWidget { 5 | final bool focus; 6 | final VoidCallback onTap; 7 | final VoidCallback onTapOutSide; 8 | final String hint; 9 | final double? width; 10 | final TextEditingController? controller; 11 | 12 | const AddInputField( 13 | {super.key, 14 | required this.focus, 15 | required this.onTap, 16 | required this.onTapOutSide, 17 | required this.hint, 18 | required this.width, 19 | this.controller}); 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | return AnimatedContainer( 24 | width: width, 25 | duration: const Duration(milliseconds: 500), 26 | padding: const EdgeInsets.all(1), 27 | decoration: BoxDecoration( 28 | borderRadius: BorderRadius.circular(15), 29 | gradient: focus 30 | ? const LinearGradient(colors: [ 31 | Colors.purpleAccent, 32 | Colors.pink, 33 | ]) 34 | : null, 35 | ), 36 | child: TextFormField( 37 | controller: controller, 38 | onTap: onTap, 39 | onTapOutside: (event) { 40 | FocusScope.of(context).unfocus(); 41 | onTapOutSide(); 42 | }, 43 | onChanged: (value) {}, 44 | style: 45 | const TextStyle(color: Colors.white, fontWeight: FontWeight.w400), 46 | decoration: InputDecoration( 47 | filled: true, 48 | fillColor: primaryColor, 49 | border: OutlineInputBorder( 50 | borderRadius: BorderRadius.circular(15), 51 | borderSide: BorderSide.none), 52 | hoverColor: Colors.pinkAccent, 53 | contentPadding: 54 | const EdgeInsets.symmetric(horizontal: 30, vertical: 20), 55 | hintText: hint, 56 | hintStyle: const TextStyle( 57 | color: Colors.grey, fontWeight: FontWeight.normal, fontSize: 12), 58 | ), 59 | ), 60 | ); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /lib/view/new task/components/addtask_body.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:to_do_app/view%20model/controller/add_task_controller.dart'; 4 | import 'package:to_do_app/view/new%20task/components/title.dart'; 5 | import 'package:to_do_app/view/new%20task/components/upper_body.dart'; 6 | import '../../sign up/components/button.dart'; 7 | import 'add_fild.dart'; 8 | import 'datetime_row.dart'; 9 | import 'image_container_list.dart'; 10 | 11 | class TaskBody extends StatelessWidget { 12 | TaskBody({super.key}); 13 | final controller=Get.put(AddTaskController()); 14 | @override 15 | Widget build(BuildContext context) { 16 | var size = MediaQuery.sizeOf(context); 17 | return Container( 18 | height: 750, 19 | padding: const EdgeInsets.symmetric(horizontal: 20), 20 | child: SingleChildScrollView( 21 | child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [ 22 | const UpperBody(), 23 | ImageContainerList(), 24 | const SizedBox( 25 | height: 20, 26 | ), 27 | TitlePeriority(), 28 | const SizedBox( 29 | height: 20, 30 | ), 31 | const Text( 32 | 'Category', 33 | style: TextStyle( 34 | color: Colors.white, fontWeight: FontWeight.bold, fontSize: 17), 35 | ), 36 | const SizedBox( 37 | height: 10, 38 | ), 39 | Obx( 40 | ()=> AddInputField( 41 | controller: controller.category.value, 42 | focus: controller.categoryFocus.value, 43 | onTap: ()=>controller.setCategoryFocus(), 44 | onTapOutSide: ()=>controller.onTapOutside(), 45 | hint: 'Pick a Category', 46 | width: size.width, 47 | ), 48 | ), 49 | const SizedBox( 50 | height: 20, 51 | ), 52 | const Text( 53 | 'Description', 54 | style: TextStyle( 55 | color: Colors.white, fontWeight: FontWeight.bold, fontSize: 17), 56 | ), 57 | const SizedBox( 58 | height: 10, 59 | ), 60 | Obx(() => AddInputField( 61 | controller: controller.description.value, 62 | focus: controller.descriptionFocus.value, 63 | onTap: ()=>controller.setDescriptionFocus(), 64 | onTapOutSide: ()=>controller.onTapOutside(), 65 | hint: 'Enter description of your task (optional)', 66 | width: size.width, 67 | ),), 68 | const SizedBox( 69 | height: 20, 70 | ), 71 | DateTimeRow(), 72 | const SizedBox( 73 | height: 20, 74 | ), 75 | Obx(() => AccountButton( 76 | text: 'Create Task', 77 | loading: controller.loading.value, 78 | onTap: () async { 79 | // controller.insertDataInDatabase(); 80 | controller.showProgressPicker(context); 81 | }, 82 | )) 83 | ]), 84 | ), 85 | ); 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /lib/view/new task/components/date_time_container.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '../../../res/app_color.dart'; 3 | 4 | class DateTimeContainer extends StatelessWidget { 5 | final String text; 6 | final Widget icon; 7 | final VoidCallback onTap; 8 | const DateTimeContainer({super.key, required this.text, required this.icon, required this.onTap}); 9 | @override 10 | Widget build(BuildContext context) { 11 | var size=MediaQuery.sizeOf(context); 12 | return GestureDetector( 13 | onTap: onTap, 14 | child: Container( 15 | height: 60, 16 | width: size.width / 2.5, 17 | decoration: BoxDecoration( 18 | color: primaryColor, 19 | borderRadius: BorderRadius.circular(20)), 20 | child: Row( 21 | mainAxisAlignment: MainAxisAlignment.center, 22 | crossAxisAlignment: CrossAxisAlignment.center, 23 | children: [ 24 | icon, 25 | // Icon( 26 | // FontAwesomeIcons.calendar, 27 | // color: Colors.white24, 28 | // size: 20, 29 | // ), 30 | const SizedBox( 31 | width: 10, 32 | ), 33 | Text( 34 | text, 35 | style: 36 | const TextStyle(color: Colors.white, fontSize: 14), 37 | ), 38 | ], 39 | ), 40 | ), 41 | ); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /lib/view/new task/components/datetime_row.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:get/get.dart'; 4 | import 'package:to_do_app/view%20model/controller/add_task_controller.dart'; 5 | import 'date_time_container.dart'; 6 | class DateTimeRow extends StatelessWidget { 7 | final controller=Get.put(AddTaskController()); 8 | DateTimeRow({super.key}); 9 | @override 10 | Widget build(BuildContext context) { 11 | return Row( 12 | mainAxisAlignment: MainAxisAlignment.spaceAround, 13 | children: [ 14 | Column( 15 | crossAxisAlignment: CrossAxisAlignment.start, 16 | children: [ 17 | const Text( 18 | 'Date', 19 | style: TextStyle( 20 | color: Colors.white, 21 | fontWeight: FontWeight.bold, 22 | fontSize: 17), 23 | ), 24 | const SizedBox( 25 | height: 10, 26 | ), 27 | Obx(() => DateTimeContainer(text: controller.date.value.isEmpty? 'dd/mm/yyyy' : controller.date.value, icon: const Icon( 28 | FontAwesomeIcons.calendar, 29 | color: Colors.white24, 30 | size: 20, 31 | ), onTap: () { 32 | controller.pickDate(context); 33 | },)) 34 | ], 35 | ), 36 | Column( 37 | crossAxisAlignment: CrossAxisAlignment.start, 38 | children: [ 39 | RichText( 40 | text: const TextSpan(children: [ 41 | TextSpan( 42 | text: 'Time', 43 | style: TextStyle( 44 | color: Colors.white, 45 | fontWeight: FontWeight.bold, 46 | fontSize: 17), 47 | ), 48 | TextSpan( 49 | text: ' (optional)', 50 | style: TextStyle(color: Colors.white30, fontSize: 13), 51 | ) 52 | ])), 53 | const SizedBox( 54 | height: 10, 55 | ), 56 | 57 | Obx(() => DateTimeContainer(text:controller.time.value.isEmpty? 'hh/mm' : controller.time.value, icon: const Icon( 58 | Icons.watch, 59 | color: Colors.white24, 60 | size: 20, 61 | ), onTap: () { 62 | controller.picTime(context); 63 | },)) 64 | ], 65 | ) 66 | ], 67 | ); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /lib/view/new task/components/image_container.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | class ImageContainer extends StatelessWidget { 3 | final String image; 4 | final VoidCallback onTap; 5 | final bool focus; 6 | const ImageContainer({super.key, required this.image, required this.onTap, required this.focus}); 7 | @override 8 | Widget build(BuildContext context) { 9 | return GestureDetector( 10 | onTap: onTap, 11 | child: Container( 12 | height: 100, 13 | width: 100, 14 | padding: EdgeInsets.all(2), 15 | decoration: BoxDecoration( 16 | borderRadius: BorderRadius.circular(10), 17 | gradient: focus? LinearGradient(colors: [ 18 | Colors.purpleAccent, 19 | Colors.pinkAccent, 20 | ]): null), 21 | child: ClipRRect( 22 | borderRadius: BorderRadius.circular(10), 23 | child: Image.asset( 24 | image, 25 | fit: BoxFit.cover, 26 | ), 27 | ), 28 | ), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/view/new task/components/image_container_list.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:to_do_app/view%20model/controller/add_task_controller.dart'; 4 | import '../../../res/assets/app_images.dart'; 5 | import 'image_container.dart'; 6 | 7 | class ImageContainerList extends StatelessWidget { 8 | ImageContainerList({super.key}); 9 | final controller=Get.put(AddTaskController()); 10 | @override 11 | Widget build(BuildContext context) { 12 | return Row( 13 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 14 | children: [ 15 | Obx(() => ImageContainer( 16 | onTap: ()=>controller.setImage(1), 17 | image: AppImage.back2, focus: controller.selectedImageIndex.value==1, 18 | ),), 19 | Obx(() => ImageContainer( 20 | focus: controller.selectedImageIndex.value==2, 21 | onTap: ()=>controller.setImage(2), 22 | image: AppImage.back3, 23 | ),), 24 | Obx(() => ImageContainer( 25 | focus: controller.selectedImageIndex.value==3, 26 | onTap: ()=>controller.setImage(3), 27 | image: AppImage.back1, 28 | ),), 29 | ], 30 | ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /lib/view/new task/components/periority_container.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '../../../res/app_color.dart'; 4 | 5 | class PeriorityContainer extends StatelessWidget { 6 | final VoidCallback onTap; 7 | final bool focus; 8 | final String type; 9 | const PeriorityContainer({super.key, required this.onTap, required this.focus, required this.type}); 10 | @override 11 | Widget build(BuildContext context) { 12 | return GestureDetector( 13 | onTap: onTap, 14 | child: Container( 15 | height: 43, 16 | width: 73, 17 | margin: const EdgeInsets.only(top: 10), 18 | decoration: BoxDecoration( 19 | borderRadius: BorderRadius.circular(20), 20 | gradient: focus? const LinearGradient(colors: [ 21 | Colors.purpleAccent, 22 | Colors.pinkAccent 23 | ]) : null), 24 | child: Padding( 25 | padding: const EdgeInsets.all(3.0), 26 | child: Container( 27 | height: 40, 28 | width: 70, 29 | alignment: Alignment.center, 30 | decoration: BoxDecoration( 31 | borderRadius: BorderRadius.circular(20), 32 | color: primaryColor), 33 | child: Text( 34 | type, 35 | style: TextStyle( 36 | color: Colors.white, 37 | fontWeight: FontWeight.bold), 38 | ), 39 | ), 40 | ), 41 | ), 42 | ); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /lib/view/new task/components/progress_picker.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:to_do_app/view%20model/controller/add_task_controller.dart'; 4 | 5 | import '../../../res/app_color.dart'; 6 | 7 | class ProgressPicker { 8 | ProgressPicker(BuildContext context) { 9 | final controller = Get.put(AddTaskController()); 10 | showDialog( 11 | context: context, 12 | builder: (context) { 13 | return SimpleDialog( 14 | backgroundColor: primaryColor, 15 | children: [ 16 | const Padding( 17 | padding: EdgeInsets.symmetric(horizontal: 20, vertical: 20), 18 | child: Text( 19 | 'Set Progress', 20 | style: TextStyle( 21 | color: Colors.white, 22 | fontWeight: FontWeight.bold, 23 | fontSize: 17), 24 | ), 25 | ), 26 | Padding( 27 | padding: const EdgeInsets.symmetric(horizontal: 20), 28 | child: Row( 29 | children: [ 30 | const Text( 31 | 'Progress', 32 | style: TextStyle( 33 | color: Colors.white70, fontWeight: FontWeight.bold), 34 | ), 35 | const Spacer(), 36 | Obx( 37 | () => Text( 38 | '${controller.progress.value.toInt()}%', 39 | style: const TextStyle( 40 | color: Colors.white70, fontWeight: FontWeight.bold), 41 | ), 42 | ) 43 | ], 44 | ), 45 | ), 46 | Obx(() => Slider( 47 | min: 0.0, 48 | max: 100.0, 49 | activeColor: Colors.pinkAccent, 50 | value: controller.progress.value, 51 | onChanged: (value) { 52 | controller.progress.value = value; 53 | }, 54 | )), 55 | const SizedBox( 56 | height: 10, 57 | ), 58 | Padding( 59 | padding: const EdgeInsets.symmetric(horizontal: 20), 60 | child: Row( 61 | children: [ 62 | const Spacer(), 63 | TextButton( 64 | onPressed: () { 65 | Get.back(); 66 | }, 67 | child: const Text( 68 | "Cancel", 69 | style: TextStyle(color: Colors.white), 70 | )), 71 | TextButton( 72 | onPressed: () { 73 | Get.back(); 74 | controller.insertDataInDatabase(); 75 | }, 76 | child: const Text( 77 | "Create", 78 | style: TextStyle(color: Colors.white), 79 | )) 80 | ], 81 | ), 82 | ) 83 | ], 84 | ); 85 | }, 86 | ); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /lib/view/new task/components/title.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:to_do_app/view%20model/controller/add_task_controller.dart'; 4 | import 'package:to_do_app/view/new%20task/components/periority_container.dart'; 5 | import 'add_fild.dart'; 6 | class TitlePeriority extends StatelessWidget { 7 | final controller = Get.put(AddTaskController()); 8 | TitlePeriority({super.key}); 9 | @override 10 | Widget build(BuildContext context) { 11 | var size = MediaQuery.sizeOf(context); 12 | return Row( 13 | crossAxisAlignment: CrossAxisAlignment.center, 14 | children: [ 15 | Column( 16 | crossAxisAlignment: CrossAxisAlignment.start, 17 | children: [ 18 | const Text( 19 | 'Title', 20 | style: TextStyle( 21 | color: Colors.white, 22 | fontWeight: FontWeight.bold, 23 | fontSize: 17), 24 | ), 25 | const SizedBox( 26 | height: 10, 27 | ), 28 | Obx( 29 | () => AddInputField( 30 | controller: controller.title.value, 31 | focus: controller.titleFocus.value, 32 | onTap: ()=>controller.setTitleFocus(), 33 | onTapOutSide: ()=> controller.onTapOutside(), 34 | hint: 'Enter task title', 35 | width: size.width / 2.2, 36 | ), 37 | ) 38 | ], 39 | ), 40 | const SizedBox( 41 | width: 10, 42 | ), 43 | Column( 44 | crossAxisAlignment: CrossAxisAlignment.start, 45 | children: [ 46 | const Text( 47 | 'Periority', 48 | style: TextStyle( 49 | color: Colors.white, 50 | fontWeight: FontWeight.bold, 51 | fontSize: 17), 52 | ), 53 | Row( 54 | crossAxisAlignment: CrossAxisAlignment.center, 55 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 56 | children: [ 57 | Obx( 58 | () => PeriorityContainer( 59 | onTap: ()=> controller.setPeriority(true), focus: controller.lowPeriority.value, type: "Low"), 60 | ), 61 | const SizedBox( 62 | width: 10, 63 | ), 64 | Obx(()=> PeriorityContainer(onTap: ()=>controller.setPeriority(false), focus: !controller.lowPeriority.value, type: "High")), 65 | ], 66 | ), 67 | ], 68 | ) 69 | ], 70 | ); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /lib/view/new task/components/upper_body.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class UpperBody extends StatelessWidget { 4 | const UpperBody({super.key}); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Column( 9 | crossAxisAlignment: CrossAxisAlignment.start, 10 | children: [ 11 | const SizedBox( 12 | height: 20, 13 | ), 14 | Align( 15 | alignment: Alignment.topCenter, 16 | child: Container( 17 | height: 3, 18 | width: 100, 19 | decoration: BoxDecoration( 20 | borderRadius: BorderRadius.circular(20), 21 | color: Colors.white12, 22 | ), 23 | ), 24 | ), 25 | const SizedBox( 26 | height: 20, 27 | ), 28 | const Text( 29 | 'Style', 30 | style: TextStyle( 31 | color: Colors.white, 32 | fontWeight: FontWeight.bold, 33 | fontSize: 17), 34 | ), 35 | const SizedBox( 36 | height: 10, 37 | ), 38 | ], 39 | ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /lib/view/new task/new_task.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:to_do_app/res/app_color.dart'; 4 | import 'package:to_do_app/view/new%20task/components/addtask_body.dart'; 5 | 6 | class NewTask { 7 | NewTask(Size size) { 8 | Get.bottomSheet( 9 | backgroundColor: black, 10 | isScrollControlled: true, 11 | TaskBody()); 12 | 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /lib/view/sign in/components/signin_bar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:to_do_app/view/common%20widgets/back_button.dart'; 3 | class SignInBar extends StatelessWidget { 4 | const SignInBar({super.key}); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return const Row( 9 | children: [ 10 | CustomBackButton(), 11 | SizedBox( 12 | width: 20, 13 | ), 14 | Text( 15 | 'Sign in', 16 | style: TextStyle( 17 | fontSize: 30, 18 | fontWeight: FontWeight.bold, 19 | color: Colors.white), 20 | ) 21 | ], 22 | ); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /lib/view/sign in/components/signin_body.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:to_do_app/res/routes/routes.dart'; 4 | import 'package:to_do_app/view%20model/controller/signin_controller.dart'; 5 | import 'package:to_do_app/view/sign%20in/components/signin_bar.dart'; 6 | import 'package:to_do_app/view/sign%20in/components/signin_input_form.dart'; 7 | import '../../sign up/components/button.dart'; 8 | import '../../sign up/components/signup_options.dart'; 9 | 10 | class SignInBody extends StatelessWidget { 11 | SignInBody({super.key}); 12 | final controller = Get.put(SignInController()); 13 | @override 14 | Widget build(BuildContext context) { 15 | return SingleChildScrollView( 16 | child: Padding( 17 | padding: const EdgeInsets.symmetric(horizontal: 20), 18 | child: Column( 19 | crossAxisAlignment: CrossAxisAlignment.start, 20 | children: [ 21 | const SizedBox( 22 | height: 30, 23 | ), 24 | const SignInBar(), 25 | const SizedBox( 26 | height: 50, 27 | ), 28 | const Text( 29 | 'Sign in with one of the following options.', 30 | style: TextStyle(color: Colors.grey), 31 | ), 32 | const SizedBox( 33 | height: 20, 34 | ), 35 | const SignUpOptions(), 36 | SignInForm(), 37 | Obx( 38 | () => AccountButton( 39 | text: "Login Account", 40 | loading: controller.loading.value, 41 | onTap: () { 42 | controller.loginAccount(); 43 | }, 44 | ), 45 | ), 46 | const SizedBox( 47 | height: 40, 48 | ), 49 | Align( 50 | alignment: Alignment.center, 51 | child: GestureDetector( 52 | onTap: () => Get.toNamed(Routes.signUpScreen), 53 | child: RichText( 54 | text: const TextSpan(children: [ 55 | TextSpan( 56 | text: 'Don\'t have an account? ', 57 | style: TextStyle( 58 | color: Colors.grey, 59 | )), 60 | TextSpan( 61 | text: 'Sign up', 62 | style: TextStyle( 63 | color: Colors.white, 64 | )) 65 | ])), 66 | )) 67 | ], 68 | ), 69 | ), 70 | ); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /lib/view/sign in/components/signin_input_form.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:to_do_app/view%20model/controller/signin_controller.dart'; 4 | 5 | import '../../sign up/components/text_field.dart'; 6 | 7 | class SignInForm extends StatelessWidget { 8 | SignInForm({super.key}); 9 | final controller=Get.put(SignInController()); 10 | @override 11 | Widget build(BuildContext context) { 12 | return Column( 13 | crossAxisAlignment: CrossAxisAlignment.start, 14 | children: [ 15 | const SizedBox( 16 | height: 40, 17 | ), 18 | const Text( 19 | ' Email', 20 | style: TextStyle( 21 | color: Colors.white, 22 | fontWeight: FontWeight.w400, 23 | fontSize: 17), 24 | ), 25 | const SizedBox( 26 | height: 10, 27 | ), 28 | Obx(() => InputField( 29 | onTap: () => controller.onFocusEmail(), 30 | focus: controller.emailFocus.value, 31 | hint: "tim@gmail.com", 32 | controller: controller.email.value, 33 | correct: controller.correctEmail.value, 34 | onChange: controller.validateEmail, 35 | )), 36 | const SizedBox( 37 | height: 20, 38 | ), 39 | const Text( 40 | ' Password', 41 | style: TextStyle( 42 | color: Colors.white, 43 | fontWeight: FontWeight.w400, 44 | fontSize: 17), 45 | ), 46 | const SizedBox( 47 | height: 10, 48 | ), 49 | Obx( 50 | () => InputField( 51 | onTap: () => controller.onFocusPassword(), 52 | focus: controller.passwordFocus.value, 53 | hint: "Pick a strong password", 54 | controller: controller.password.value, 55 | hideText: controller.showPassword.value, 56 | onChange: () { 57 | }, 58 | showPass: () => controller.showPassword.toggle(), 59 | ), 60 | ), 61 | const SizedBox( 62 | height: 40, 63 | ), 64 | ], 65 | ); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /lib/view/sign in/sign_in.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:to_do_app/view/sign%20in/components/signin_body.dart'; 3 | 4 | import '../../res/app_color.dart'; 5 | 6 | class SignIn extends StatelessWidget { 7 | const SignIn({super.key}); 8 | @override 9 | Widget build(BuildContext context) { 10 | return Scaffold( 11 | backgroundColor: black, 12 | body: SafeArea( 13 | child: SignInBody(), 14 | ), 15 | ); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/view/sign up/components/appbar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:to_do_app/view/common%20widgets/back_button.dart'; 3 | 4 | 5 | class SignUpBar extends StatelessWidget { 6 | const SignUpBar({super.key}); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return const Row( 11 | children: [ 12 | CustomBackButton(), 13 | SizedBox( 14 | width: 20, 15 | ), 16 | Text( 17 | 'Sign up', 18 | style: TextStyle( 19 | fontSize: 30, 20 | fontWeight: FontWeight.bold, 21 | color: Colors.white), 22 | ) 23 | ], 24 | ); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /lib/view/sign up/components/button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class AccountButton extends StatelessWidget { 4 | final String text; 5 | final bool loading; 6 | final VoidCallback onTap; 7 | final String? tag; 8 | const AccountButton({super.key, required this.text, required this.loading, required this.onTap,this.tag}); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return Hero( 13 | tag: tag?? "TAG", 14 | child: GestureDetector( 15 | onTap: onTap, 16 | child: Container( 17 | height: 65, 18 | width: double.infinity, 19 | alignment: Alignment.center, 20 | margin: const EdgeInsets.symmetric(horizontal: 10), 21 | decoration: BoxDecoration( 22 | borderRadius: BorderRadius.circular(15), 23 | gradient: const LinearGradient( 24 | colors: [Colors.purpleAccent, Colors.pinkAccent])), 25 | child: loading 26 | ? const SizedBox( 27 | height: 15, 28 | width: 15, 29 | child: CircularProgressIndicator( 30 | color: Colors.white, 31 | ), 32 | ) 33 | : Material( 34 | color: Colors.transparent, 35 | child: Text( 36 | text, 37 | style: const TextStyle( 38 | color: Colors.white, 39 | fontSize: 16, 40 | fontWeight: FontWeight.bold), 41 | ), 42 | ), 43 | ), 44 | ), 45 | ); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /lib/view/sign up/components/icon_container.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '../../../res/app_color.dart'; 4 | 5 | class IconContainer extends StatelessWidget { 6 | final Widget widget; 7 | const IconContainer({super.key, required this.widget}); 8 | @override 9 | Widget build(BuildContext context) { 10 | var size=MediaQuery.sizeOf(context); 11 | return Container( 12 | height: 60, 13 | width: size.width * 0.43, 14 | alignment: Alignment.center, 15 | decoration: BoxDecoration( 16 | color: primaryColor, 17 | borderRadius: BorderRadius.circular(14), 18 | boxShadow: [ 19 | BoxShadow( 20 | color: Colors.white.withOpacity(.2), 21 | offset: const Offset(1,0) 22 | ), 23 | BoxShadow( 24 | color: Colors.white.withOpacity(.2), 25 | offset: const Offset(0,1) 26 | ), 27 | BoxShadow( 28 | color: Colors.white.withOpacity(.2), 29 | offset: const Offset(-1,0) 30 | ), 31 | BoxShadow( 32 | color: Colors.white.withOpacity(.2), 33 | offset: const Offset(0,-1) 34 | ), 35 | ] 36 | ), 37 | child: widget, 38 | ); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /lib/view/sign up/components/input_form.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | import '../../../view model/controller/signup_controller.dart'; 5 | import 'text_field.dart'; 6 | 7 | class InputForm extends StatelessWidget { 8 | InputForm({super.key}); 9 | final controller = Get.put(SignupController()); 10 | @override 11 | Widget build(BuildContext context) { 12 | return Column( 13 | crossAxisAlignment: CrossAxisAlignment.start, 14 | children: [ 15 | const SizedBox( 16 | height: 40, 17 | ), 18 | const Text( 19 | ' Name', 20 | style: TextStyle( 21 | color: Colors.white, 22 | fontWeight: FontWeight.w400, 23 | fontSize: 17), 24 | ), 25 | const SizedBox( 26 | height: 10, 27 | ), 28 | Obx(() => InputField( 29 | onTap: () => controller.onFocusName(), 30 | focus: controller.nameFocus.value, 31 | hint: "Enter Your Name", 32 | controller: controller.name.value, 33 | correct: controller.correctName.value, 34 | onChange: controller.validateName, 35 | ), 36 | ), 37 | const SizedBox( 38 | height: 20, 39 | ), 40 | const Text( 41 | ' Email', 42 | style: TextStyle( 43 | color: Colors.white, 44 | fontWeight: FontWeight.w400, 45 | fontSize: 17), 46 | ), 47 | const SizedBox( 48 | height: 10, 49 | ), 50 | Obx(() => InputField( 51 | onTap: () => controller.onFocusEmail(), 52 | focus: controller.emailFocus.value, 53 | hint: "tim@gmail.com", 54 | controller: controller.email.value, 55 | correct: controller.correctEmail.value, 56 | onChange: controller.validateEmail, 57 | )), 58 | const SizedBox( 59 | height: 20, 60 | ), 61 | const Text( 62 | ' Password', 63 | style: TextStyle( 64 | color: Colors.white, 65 | fontWeight: FontWeight.w400, 66 | fontSize: 17), 67 | ), 68 | const SizedBox( 69 | height: 10, 70 | ), 71 | Obx( 72 | () => InputField( 73 | onTap: () => controller.onFocusPassword(), 74 | focus: controller.passwordFocus.value, 75 | hint: "Pick a strong password", 76 | controller: controller.password.value, 77 | hideText: controller.showPassword.value, 78 | onChange: () { 79 | }, 80 | showPass: () => controller.showPassword.toggle(), 81 | ), 82 | ), 83 | const SizedBox( 84 | height: 40, 85 | ), 86 | ], 87 | ); 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /lib/view/sign up/components/signup_body.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:to_do_app/res/routes/routes.dart'; 4 | import 'package:to_do_app/view%20model/controller/signup_controller.dart'; 5 | import 'package:to_do_app/view/sign%20in/sign_in.dart'; 6 | import 'package:to_do_app/view/sign%20up/components/signup_options.dart'; 7 | 8 | import 'appbar.dart'; 9 | import 'button.dart'; 10 | import 'input_form.dart'; 11 | 12 | class SignupBody extends StatelessWidget { 13 | SignupBody({super.key}); 14 | 15 | final controller = Get.put(SignupController()); 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return SingleChildScrollView( 20 | child: Padding( 21 | padding: const EdgeInsets.symmetric(horizontal: 20), 22 | child: Column( 23 | crossAxisAlignment: CrossAxisAlignment.start, 24 | children: [ 25 | const SizedBox( 26 | height: 30, 27 | ), 28 | const SignUpBar(), 29 | const SizedBox( 30 | height: 50, 31 | ), 32 | const Text( 33 | 'Sign up with one of the following options.', 34 | style: TextStyle(color: Colors.grey), 35 | ), 36 | const SizedBox( 37 | height: 20, 38 | ), 39 | const SignUpOptions(), 40 | InputForm(), 41 | Obx( 42 | () => AccountButton( 43 | text: "Create Account", 44 | loading: controller.loading.value, 45 | onTap: () { 46 | controller.createAccount(); 47 | }, 48 | ), 49 | ), 50 | const SizedBox( 51 | height: 40, 52 | ), 53 | Align( 54 | alignment: Alignment.center, 55 | child: GestureDetector( 56 | onTap: () => Get.toNamed(Routes.signInScreen), 57 | child: RichText( 58 | text: const TextSpan(children: [ 59 | TextSpan( 60 | text: 'Already have an account? ', 61 | style: TextStyle( 62 | color: Colors.grey, 63 | )), 64 | TextSpan( 65 | text: 'Login', 66 | style: TextStyle( 67 | color: Colors.white, 68 | )) 69 | ])), 70 | )) 71 | ], 72 | ), 73 | ), 74 | ); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /lib/view/sign up/components/signup_options.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:to_do_app/Data/network/firebase/firebase_services.dart'; 4 | 5 | import 'icon_container.dart'; 6 | 7 | class SignUpOptions extends StatelessWidget { 8 | const SignUpOptions({super.key}); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return Row( 13 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 14 | children: [ 15 | GestureDetector( 16 | onTap: () => FirebaseService.signInwWithGoogle(), 17 | child: const IconContainer( 18 | widget: Icon( 19 | FontAwesomeIcons.google, 20 | size: 18, 21 | color: Colors.white, 22 | )), 23 | ), 24 | const IconContainer( 25 | widget: Icon( 26 | Icons.apple_rounded, 27 | color: Colors.white, 28 | )), 29 | ], 30 | ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /lib/view/sign up/components/text_field.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 3 | import 'package:get/get.dart'; 4 | import 'package:to_do_app/view%20model/controller/signin_controller.dart'; 5 | import 'package:to_do_app/view%20model/controller/signup_controller.dart'; 6 | import 'package:to_do_app/view/sign%20up/components/textfield_sufiix.dart'; 7 | import '../../../res/app_color.dart'; 8 | 9 | class InputField extends StatelessWidget { 10 | InputField( 11 | {super.key, 12 | required this.onTap, 13 | required this.focus, 14 | required this.hint, 15 | required this.controller, 16 | this.correct, 17 | required this.onChange, 18 | this.hideText, 19 | this.showPass, 20 | this.prefix 21 | }); 22 | 23 | final bool focus; 24 | final String hint; 25 | final TextEditingController controller; 26 | final VoidCallback onTap; 27 | final VoidCallback onChange; 28 | final VoidCallback? showPass; 29 | final bool? hideText; 30 | final bool? correct; 31 | final Widget? prefix; 32 | final _signUpController = Get.put(SignupController()); 33 | final _signInController = Get.put(SignInController()); 34 | 35 | @override 36 | Widget build(BuildContext context) { 37 | return AnimatedContainer( 38 | duration: const Duration(milliseconds: 500), 39 | padding: const EdgeInsets.all(1), 40 | decoration: BoxDecoration( 41 | borderRadius: BorderRadius.circular(15), 42 | gradient: focus 43 | ? const LinearGradient(colors: [ 44 | Colors.purpleAccent, 45 | Colors.pink, 46 | ]) 47 | : null, 48 | ), 49 | child: TextFormField( 50 | controller: controller, 51 | onTap: onTap, 52 | onTapOutside: (event) { 53 | _signUpController.onTapOutside(context); 54 | _signInController.onTapOutside(context); 55 | }, 56 | onChanged: (value) { 57 | onChange(); 58 | }, 59 | obscureText: hideText ?? false, 60 | style: 61 | const TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 62 | decoration: InputDecoration( 63 | filled: true, 64 | prefixIcon: prefix, 65 | suffixIcon: hideText == null 66 | ? correct == true 67 | ? const TextFieldSufix( 68 | icon: Icons.done, 69 | ) 70 | : null 71 | : _signUpController.password.value.text.toString().isNotEmpty 72 | ? GestureDetector( 73 | onTap: showPass, 74 | child: hideText! 75 | ? const TextFieldSufix( 76 | icon: FontAwesomeIcons.eye, 77 | size: 13, 78 | ) 79 | : const TextFieldSufix( 80 | icon: FontAwesomeIcons.eyeLowVision, 81 | size: 13, 82 | ), 83 | ) 84 | : const SizedBox(), 85 | fillColor: primaryColor, 86 | border: OutlineInputBorder( 87 | borderRadius: BorderRadius.circular(15), 88 | borderSide: BorderSide.none), 89 | hoverColor: Colors.pinkAccent, 90 | contentPadding: 91 | const EdgeInsets.symmetric(horizontal: 30, vertical: 20), 92 | hintText: hint, 93 | hintStyle: const TextStyle( 94 | color: Colors.grey, fontWeight: FontWeight.normal, fontSize: 12), 95 | ), 96 | ), 97 | ); 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /lib/view/sign up/components/textfield_sufiix.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '../../../res/app_color.dart'; 3 | class TextFieldSufix extends StatelessWidget { 4 | const TextFieldSufix({super.key, required this.icon,this.size=18}); 5 | final IconData icon; 6 | final double size; 7 | @override 8 | Widget build(BuildContext context) { 9 | return Padding( 10 | padding: const EdgeInsets.symmetric(horizontal: 10,vertical: 10), 11 | child: Container( 12 | height: 40, 13 | width: 40, 14 | decoration: BoxDecoration( 15 | borderRadius: BorderRadius.circular(12), 16 | color: black, 17 | boxShadow: [ 18 | BoxShadow( 19 | color: Colors.pinkAccent.withOpacity(.2), 20 | offset: const Offset(1, 0)), 21 | BoxShadow( 22 | color: Colors.pinkAccent.withOpacity(.2), 23 | offset: const Offset(0, 1)), 24 | BoxShadow( 25 | color: Colors.pinkAccent.withOpacity(.2), 26 | offset: const Offset(-1, 0)), 27 | BoxShadow( 28 | color: Colors.pinkAccent.withOpacity(.2), 29 | offset: const Offset(0, -1)), 30 | ]), 31 | child: Icon( 32 | icon, 33 | color: Colors.white70, 34 | size: size, 35 | ), 36 | ), 37 | ); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/view/sign up/sign_up.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:to_do_app/view/sign%20up/components/signup_body.dart'; 3 | import '../../res/app_color.dart'; 4 | class SignUp extends StatefulWidget { 5 | const SignUp({super.key}); 6 | @override 7 | State createState() => _SignUpState(); 8 | } 9 | class _SignUpState extends State { 10 | @override 11 | Widget build(BuildContext context) { 12 | return Scaffold( 13 | backgroundColor: black, 14 | body: SafeArea( 15 | child: SignupBody(), 16 | ), 17 | ); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /lib/view/splash/splash_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:to_do_app/res/assets/app_images.dart'; 3 | import '../../res/app_color.dart'; 4 | import '../../view model/services/splash_services.dart'; 5 | class SplashScreen extends StatefulWidget { 6 | const SplashScreen({super.key}); 7 | @override 8 | State createState() => _SplashScreenState(); 9 | } 10 | class _SplashScreenState extends State { 11 | @override 12 | void initState() { 13 | super.initState(); 14 | SplashServices.checkLogin(); 15 | } 16 | @override 17 | Widget build(BuildContext context) { 18 | return Scaffold( 19 | backgroundColor: black, 20 | body: Center( 21 | child: Container( 22 | alignment: Alignment.center, 23 | height: 150, 24 | width: 150, 25 | decoration: BoxDecoration( 26 | borderRadius: BorderRadius.circular(100), 27 | color: primaryColor, 28 | boxShadow: [ 29 | BoxShadow( 30 | color: Colors.grey.withOpacity(.2), 31 | offset: const Offset(1, 1) 32 | ), 33 | BoxShadow( 34 | color: Colors.grey.withOpacity(.2), 35 | offset: const Offset(-1, -1) 36 | ) 37 | ] 38 | ), 39 | child: Padding( 40 | padding: const EdgeInsets.all(20.0), 41 | child: Image.asset(AppImage.splash), 42 | ) 43 | ), 44 | ), 45 | ); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _flutterfire_internals: 5 | dependency: transitive 6 | description: 7 | name: _flutterfire_internals 8 | sha256: "1a5e13736d59235ce0139621b4bbe29bc89839e202409081bc667eb3cd20674c" 9 | url: "https://pub.dev" 10 | source: hosted 11 | version: "1.3.5" 12 | args: 13 | dependency: transitive 14 | description: 15 | name: args 16 | sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 17 | url: "https://pub.dev" 18 | source: hosted 19 | version: "2.4.2" 20 | async: 21 | dependency: transitive 22 | description: 23 | name: async 24 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" 25 | url: "https://pub.dev" 26 | source: hosted 27 | version: "2.11.0" 28 | boolean_selector: 29 | dependency: transitive 30 | description: 31 | name: boolean_selector 32 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" 33 | url: "https://pub.dev" 34 | source: hosted 35 | version: "2.1.1" 36 | characters: 37 | dependency: transitive 38 | description: 39 | name: characters 40 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" 41 | url: "https://pub.dev" 42 | source: hosted 43 | version: "1.3.0" 44 | clock: 45 | dependency: transitive 46 | description: 47 | name: clock 48 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf 49 | url: "https://pub.dev" 50 | source: hosted 51 | version: "1.1.1" 52 | collection: 53 | dependency: transitive 54 | description: 55 | name: collection 56 | sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" 57 | url: "https://pub.dev" 58 | source: hosted 59 | version: "1.17.1" 60 | connectivity: 61 | dependency: "direct main" 62 | description: 63 | name: connectivity 64 | sha256: a8e91263cf3e25fb5cc95e19dfde4999e32a648ac3b9e8a558a28165731678f8 65 | url: "https://pub.dev" 66 | source: hosted 67 | version: "3.0.6" 68 | connectivity_for_web: 69 | dependency: transitive 70 | description: 71 | name: connectivity_for_web 72 | sha256: "01a390c1d5adc2ed1fa1f52d120c07fe9fd01166a93f965a832fd6cfc0ea6482" 73 | url: "https://pub.dev" 74 | source: hosted 75 | version: "0.4.0+1" 76 | connectivity_macos: 77 | dependency: transitive 78 | description: 79 | name: connectivity_macos 80 | sha256: "51ae08d5162eca9669b9d8951ed83ce19c5355a81149f94e4dee2740beb93628" 81 | url: "https://pub.dev" 82 | source: hosted 83 | version: "0.2.1+2" 84 | connectivity_platform_interface: 85 | dependency: transitive 86 | description: 87 | name: connectivity_platform_interface 88 | sha256: "2d82e942df9d49f29a24bb07fb5ce085d4a53e47818c62364d2b6deb9e0d7a8e" 89 | url: "https://pub.dev" 90 | source: hosted 91 | version: "2.0.1" 92 | crypto: 93 | dependency: transitive 94 | description: 95 | name: crypto 96 | sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab 97 | url: "https://pub.dev" 98 | source: hosted 99 | version: "3.0.3" 100 | cupertino_icons: 101 | dependency: "direct main" 102 | description: 103 | name: cupertino_icons 104 | sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be 105 | url: "https://pub.dev" 106 | source: hosted 107 | version: "1.0.5" 108 | email_validator: 109 | dependency: "direct main" 110 | description: 111 | name: email_validator 112 | sha256: e9a90f27ab2b915a27d7f9c2a7ddda5dd752d6942616ee83529b686fc086221b 113 | url: "https://pub.dev" 114 | source: hosted 115 | version: "2.1.17" 116 | fake_async: 117 | dependency: transitive 118 | description: 119 | name: fake_async 120 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" 121 | url: "https://pub.dev" 122 | source: hosted 123 | version: "1.3.1" 124 | ffi: 125 | dependency: transitive 126 | description: 127 | name: ffi 128 | sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" 129 | url: "https://pub.dev" 130 | source: hosted 131 | version: "2.1.0" 132 | file: 133 | dependency: transitive 134 | description: 135 | name: file 136 | sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" 137 | url: "https://pub.dev" 138 | source: hosted 139 | version: "6.1.4" 140 | firebase_auth: 141 | dependency: "direct main" 142 | description: 143 | name: firebase_auth 144 | sha256: ae8029eee0ed24a0ae4a9bcc94c5ef9c2e0c31066c5132c56575da929dd14a46 145 | url: "https://pub.dev" 146 | source: hosted 147 | version: "4.7.3" 148 | firebase_auth_platform_interface: 149 | dependency: transitive 150 | description: 151 | name: firebase_auth_platform_interface 152 | sha256: cb099fbd3d48f7983c8d7cea45947d98d36174fb7d611e4ff08f802491e8a945 153 | url: "https://pub.dev" 154 | source: hosted 155 | version: "6.16.2" 156 | firebase_auth_web: 157 | dependency: transitive 158 | description: 159 | name: firebase_auth_web 160 | sha256: d35abf4c6c77c9e7be5d7a637e6e07765b70426015800ba031257f382bff5f83 161 | url: "https://pub.dev" 162 | source: hosted 163 | version: "5.6.3" 164 | firebase_core: 165 | dependency: "direct main" 166 | description: 167 | name: firebase_core 168 | sha256: c78132175edda4bc532a71e01a32964e4b4fcf53de7853a422d96dac3725f389 169 | url: "https://pub.dev" 170 | source: hosted 171 | version: "2.15.1" 172 | firebase_core_platform_interface: 173 | dependency: transitive 174 | description: 175 | name: firebase_core_platform_interface 176 | sha256: b63e3be6c96ef5c33bdec1aab23c91eb00696f6452f0519401d640938c94cba2 177 | url: "https://pub.dev" 178 | source: hosted 179 | version: "4.8.0" 180 | firebase_core_web: 181 | dependency: transitive 182 | description: 183 | name: firebase_core_web 184 | sha256: "4cf4d2161530332ddc3c562f19823fb897ff37a9a774090d28df99f47370e973" 185 | url: "https://pub.dev" 186 | source: hosted 187 | version: "2.7.0" 188 | firebase_database: 189 | dependency: "direct main" 190 | description: 191 | name: firebase_database 192 | sha256: "61d4f75599382194e5a5617e606f61ea5fe092315c61976fab9d3bd7b291e23c" 193 | url: "https://pub.dev" 194 | source: hosted 195 | version: "10.2.5" 196 | firebase_database_platform_interface: 197 | dependency: transitive 198 | description: 199 | name: firebase_database_platform_interface 200 | sha256: "951738c448a01a9aca2b72b59bf9ebd769a59e49cbae8a5b376e9bdd0ccba3de" 201 | url: "https://pub.dev" 202 | source: hosted 203 | version: "0.2.5+5" 204 | firebase_database_web: 205 | dependency: transitive 206 | description: 207 | name: firebase_database_web 208 | sha256: fcbd0fc83cabd529b88723d6721d10d7a88d10480fd93904513e60e32c5016d1 209 | url: "https://pub.dev" 210 | source: hosted 211 | version: "0.2.3+5" 212 | flutter: 213 | dependency: "direct main" 214 | description: flutter 215 | source: sdk 216 | version: "0.0.0" 217 | flutter_lints: 218 | dependency: "direct dev" 219 | description: 220 | name: flutter_lints 221 | sha256: "2118df84ef0c3ca93f96123a616ae8540879991b8b57af2f81b76a7ada49b2a4" 222 | url: "https://pub.dev" 223 | source: hosted 224 | version: "2.0.2" 225 | flutter_svg: 226 | dependency: "direct main" 227 | description: 228 | name: flutter_svg 229 | sha256: "8c5d68a82add3ca76d792f058b186a0599414f279f00ece4830b9b231b570338" 230 | url: "https://pub.dev" 231 | source: hosted 232 | version: "2.0.7" 233 | flutter_test: 234 | dependency: "direct dev" 235 | description: flutter 236 | source: sdk 237 | version: "0.0.0" 238 | flutter_web_plugins: 239 | dependency: transitive 240 | description: flutter 241 | source: sdk 242 | version: "0.0.0" 243 | font_awesome_flutter: 244 | dependency: "direct main" 245 | description: 246 | name: font_awesome_flutter 247 | sha256: "5fb789145cae1f4c3245c58b3f8fb287d055c26323879eab57a7bf0cfd1e45f3" 248 | url: "https://pub.dev" 249 | source: hosted 250 | version: "10.5.0" 251 | get: 252 | dependency: "direct main" 253 | description: 254 | name: get 255 | sha256: "2ba20a47c8f1f233bed775ba2dd0d3ac97b4cf32fc17731b3dfc672b06b0e92a" 256 | url: "https://pub.dev" 257 | source: hosted 258 | version: "4.6.5" 259 | google_fonts: 260 | dependency: "direct main" 261 | description: 262 | name: google_fonts 263 | sha256: e20ff62b158b96f392bfc8afe29dee1503c94fbea2cbe8186fd59b756b8ae982 264 | url: "https://pub.dev" 265 | source: hosted 266 | version: "5.1.0" 267 | google_identity_services_web: 268 | dependency: transitive 269 | description: 270 | name: google_identity_services_web 271 | sha256: "7940fdc3b1035db4d65d387c1bdd6f9574deaa6777411569c05ecc25672efacd" 272 | url: "https://pub.dev" 273 | source: hosted 274 | version: "0.2.1" 275 | google_sign_in: 276 | dependency: "direct main" 277 | description: 278 | name: google_sign_in 279 | sha256: aab6fdc41374014494f9e9026b9859e7309639d50a0bf4a2a412467a5ae4abc6 280 | url: "https://pub.dev" 281 | source: hosted 282 | version: "6.1.4" 283 | google_sign_in_android: 284 | dependency: transitive 285 | description: 286 | name: google_sign_in_android 287 | sha256: "8d60a787b29cb7d2bcf29230865f4a91f17323c6ac5b6b9027a6418e48d9ffc3" 288 | url: "https://pub.dev" 289 | source: hosted 290 | version: "6.1.18" 291 | google_sign_in_ios: 292 | dependency: transitive 293 | description: 294 | name: google_sign_in_ios 295 | sha256: "6ec0e13a4c5c646471b9f6a25ceb3ae76d339889d4c0f79b729bf0714215a63e" 296 | url: "https://pub.dev" 297 | source: hosted 298 | version: "5.6.2" 299 | google_sign_in_platform_interface: 300 | dependency: transitive 301 | description: 302 | name: google_sign_in_platform_interface 303 | sha256: e69553c0fc6a76216e9d06a8c3767e291ad9be42171f879aab7ab708569d4393 304 | url: "https://pub.dev" 305 | source: hosted 306 | version: "2.4.1" 307 | google_sign_in_web: 308 | dependency: transitive 309 | description: 310 | name: google_sign_in_web 311 | sha256: "69b9ce0e760945ff52337921a8b5871592b74c92f85e7632293310701eea68cc" 312 | url: "https://pub.dev" 313 | source: hosted 314 | version: "0.12.0+2" 315 | http: 316 | dependency: transitive 317 | description: 318 | name: http 319 | sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525" 320 | url: "https://pub.dev" 321 | source: hosted 322 | version: "1.1.0" 323 | http_parser: 324 | dependency: transitive 325 | description: 326 | name: http_parser 327 | sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" 328 | url: "https://pub.dev" 329 | source: hosted 330 | version: "4.0.2" 331 | intl: 332 | dependency: "direct main" 333 | description: 334 | name: intl 335 | sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" 336 | url: "https://pub.dev" 337 | source: hosted 338 | version: "0.18.1" 339 | js: 340 | dependency: transitive 341 | description: 342 | name: js 343 | sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 344 | url: "https://pub.dev" 345 | source: hosted 346 | version: "0.6.7" 347 | lints: 348 | dependency: transitive 349 | description: 350 | name: lints 351 | sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" 352 | url: "https://pub.dev" 353 | source: hosted 354 | version: "2.1.1" 355 | matcher: 356 | dependency: transitive 357 | description: 358 | name: matcher 359 | sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" 360 | url: "https://pub.dev" 361 | source: hosted 362 | version: "0.12.15" 363 | material_color_utilities: 364 | dependency: transitive 365 | description: 366 | name: material_color_utilities 367 | sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 368 | url: "https://pub.dev" 369 | source: hosted 370 | version: "0.2.0" 371 | meta: 372 | dependency: transitive 373 | description: 374 | name: meta 375 | sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" 376 | url: "https://pub.dev" 377 | source: hosted 378 | version: "1.9.1" 379 | path: 380 | dependency: transitive 381 | description: 382 | name: path 383 | sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" 384 | url: "https://pub.dev" 385 | source: hosted 386 | version: "1.8.3" 387 | path_parsing: 388 | dependency: transitive 389 | description: 390 | name: path_parsing 391 | sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf 392 | url: "https://pub.dev" 393 | source: hosted 394 | version: "1.0.1" 395 | path_provider: 396 | dependency: transitive 397 | description: 398 | name: path_provider 399 | sha256: "909b84830485dbcd0308edf6f7368bc8fd76afa26a270420f34cabea2a6467a0" 400 | url: "https://pub.dev" 401 | source: hosted 402 | version: "2.1.0" 403 | path_provider_android: 404 | dependency: transitive 405 | description: 406 | name: path_provider_android 407 | sha256: "5d44fc3314d969b84816b569070d7ace0f1dea04bd94a83f74c4829615d22ad8" 408 | url: "https://pub.dev" 409 | source: hosted 410 | version: "2.1.0" 411 | path_provider_foundation: 412 | dependency: transitive 413 | description: 414 | name: path_provider_foundation 415 | sha256: "1b744d3d774e5a879bb76d6cd1ecee2ba2c6960c03b1020cd35212f6aa267ac5" 416 | url: "https://pub.dev" 417 | source: hosted 418 | version: "2.3.0" 419 | path_provider_linux: 420 | dependency: transitive 421 | description: 422 | name: path_provider_linux 423 | sha256: ba2b77f0c52a33db09fc8caf85b12df691bf28d983e84cf87ff6d693cfa007b3 424 | url: "https://pub.dev" 425 | source: hosted 426 | version: "2.2.0" 427 | path_provider_platform_interface: 428 | dependency: transitive 429 | description: 430 | name: path_provider_platform_interface 431 | sha256: bced5679c7df11190e1ddc35f3222c858f328fff85c3942e46e7f5589bf9eb84 432 | url: "https://pub.dev" 433 | source: hosted 434 | version: "2.1.0" 435 | path_provider_windows: 436 | dependency: transitive 437 | description: 438 | name: path_provider_windows 439 | sha256: ee0e0d164516b90ae1f970bdf29f726f1aa730d7cfc449ecc74c495378b705da 440 | url: "https://pub.dev" 441 | source: hosted 442 | version: "2.2.0" 443 | petitparser: 444 | dependency: transitive 445 | description: 446 | name: petitparser 447 | sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750 448 | url: "https://pub.dev" 449 | source: hosted 450 | version: "5.4.0" 451 | platform: 452 | dependency: transitive 453 | description: 454 | name: platform 455 | sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76" 456 | url: "https://pub.dev" 457 | source: hosted 458 | version: "3.1.0" 459 | plugin_platform_interface: 460 | dependency: transitive 461 | description: 462 | name: plugin_platform_interface 463 | sha256: "43798d895c929056255600343db8f049921cbec94d31ec87f1dc5c16c01935dd" 464 | url: "https://pub.dev" 465 | source: hosted 466 | version: "2.1.5" 467 | quiver: 468 | dependency: transitive 469 | description: 470 | name: quiver 471 | sha256: b1c1ac5ce6688d77f65f3375a9abb9319b3cb32486bdc7a1e0fdf004d7ba4e47 472 | url: "https://pub.dev" 473 | source: hosted 474 | version: "3.2.1" 475 | shared_preferences: 476 | dependency: "direct main" 477 | description: 478 | name: shared_preferences 479 | sha256: "0344316c947ffeb3a529eac929e1978fcd37c26be4e8468628bac399365a3ca1" 480 | url: "https://pub.dev" 481 | source: hosted 482 | version: "2.2.0" 483 | shared_preferences_android: 484 | dependency: transitive 485 | description: 486 | name: shared_preferences_android 487 | sha256: fe8401ec5b6dcd739a0fe9588802069e608c3fdbfd3c3c93e546cf2f90438076 488 | url: "https://pub.dev" 489 | source: hosted 490 | version: "2.2.0" 491 | shared_preferences_foundation: 492 | dependency: transitive 493 | description: 494 | name: shared_preferences_foundation 495 | sha256: d29753996d8eb8f7619a1f13df6ce65e34bc107bef6330739ed76f18b22310ef 496 | url: "https://pub.dev" 497 | source: hosted 498 | version: "2.3.3" 499 | shared_preferences_linux: 500 | dependency: transitive 501 | description: 502 | name: shared_preferences_linux 503 | sha256: "71d6806d1449b0a9d4e85e0c7a917771e672a3d5dc61149cc9fac871115018e1" 504 | url: "https://pub.dev" 505 | source: hosted 506 | version: "2.3.0" 507 | shared_preferences_platform_interface: 508 | dependency: transitive 509 | description: 510 | name: shared_preferences_platform_interface 511 | sha256: "23b052f17a25b90ff2b61aad4cc962154da76fb62848a9ce088efe30d7c50ab1" 512 | url: "https://pub.dev" 513 | source: hosted 514 | version: "2.3.0" 515 | shared_preferences_web: 516 | dependency: transitive 517 | description: 518 | name: shared_preferences_web 519 | sha256: "7347b194fb0bbeb4058e6a4e87ee70350b6b2b90f8ac5f8bd5b3a01548f6d33a" 520 | url: "https://pub.dev" 521 | source: hosted 522 | version: "2.2.0" 523 | shared_preferences_windows: 524 | dependency: transitive 525 | description: 526 | name: shared_preferences_windows 527 | sha256: f95e6a43162bce43c9c3405f3eb6f39e5b5d11f65fab19196cf8225e2777624d 528 | url: "https://pub.dev" 529 | source: hosted 530 | version: "2.3.0" 531 | sign_in_with_apple: 532 | dependency: "direct main" 533 | description: 534 | name: sign_in_with_apple 535 | sha256: "0975c23b9f8b30a80e27d5659a75993a093d4cb5f4eb7d23a9ccc586fea634e0" 536 | url: "https://pub.dev" 537 | source: hosted 538 | version: "5.0.0" 539 | sign_in_with_apple_platform_interface: 540 | dependency: transitive 541 | description: 542 | name: sign_in_with_apple_platform_interface 543 | sha256: a5883edee09ed6be19de19e7d9f618a617fe41a6fa03f76d082dfb787e9ea18d 544 | url: "https://pub.dev" 545 | source: hosted 546 | version: "1.0.0" 547 | sign_in_with_apple_web: 548 | dependency: transitive 549 | description: 550 | name: sign_in_with_apple_web 551 | sha256: "44b66528f576e77847c14999d5e881e17e7223b7b0625a185417829e5306f47a" 552 | url: "https://pub.dev" 553 | source: hosted 554 | version: "1.0.1" 555 | sky_engine: 556 | dependency: transitive 557 | description: flutter 558 | source: sdk 559 | version: "0.0.99" 560 | source_span: 561 | dependency: transitive 562 | description: 563 | name: source_span 564 | sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 565 | url: "https://pub.dev" 566 | source: hosted 567 | version: "1.9.1" 568 | sqflite: 569 | dependency: "direct main" 570 | description: 571 | name: sqflite 572 | sha256: "591f1602816e9c31377d5f008c2d9ef7b8aca8941c3f89cc5fd9d84da0c38a9a" 573 | url: "https://pub.dev" 574 | source: hosted 575 | version: "2.3.0" 576 | sqflite_common: 577 | dependency: transitive 578 | description: 579 | name: sqflite_common 580 | sha256: "1b92f368f44b0dee2425bb861cfa17b6f6cf3961f762ff6f941d20b33355660a" 581 | url: "https://pub.dev" 582 | source: hosted 583 | version: "2.5.0" 584 | stack_trace: 585 | dependency: transitive 586 | description: 587 | name: stack_trace 588 | sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 589 | url: "https://pub.dev" 590 | source: hosted 591 | version: "1.11.0" 592 | stream_channel: 593 | dependency: transitive 594 | description: 595 | name: stream_channel 596 | sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" 597 | url: "https://pub.dev" 598 | source: hosted 599 | version: "2.1.1" 600 | string_scanner: 601 | dependency: transitive 602 | description: 603 | name: string_scanner 604 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" 605 | url: "https://pub.dev" 606 | source: hosted 607 | version: "1.2.0" 608 | synchronized: 609 | dependency: transitive 610 | description: 611 | name: synchronized 612 | sha256: "5fcbd27688af6082f5abd611af56ee575342c30e87541d0245f7ff99faa02c60" 613 | url: "https://pub.dev" 614 | source: hosted 615 | version: "3.1.0" 616 | term_glyph: 617 | dependency: transitive 618 | description: 619 | name: term_glyph 620 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 621 | url: "https://pub.dev" 622 | source: hosted 623 | version: "1.2.1" 624 | test_api: 625 | dependency: transitive 626 | description: 627 | name: test_api 628 | sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb 629 | url: "https://pub.dev" 630 | source: hosted 631 | version: "0.5.1" 632 | typed_data: 633 | dependency: transitive 634 | description: 635 | name: typed_data 636 | sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c 637 | url: "https://pub.dev" 638 | source: hosted 639 | version: "1.3.2" 640 | vector_graphics: 641 | dependency: transitive 642 | description: 643 | name: vector_graphics 644 | sha256: "670f6e07aca990b4a2bcdc08a784193c4ccdd1932620244c3a86bb72a0eac67f" 645 | url: "https://pub.dev" 646 | source: hosted 647 | version: "1.1.7" 648 | vector_graphics_codec: 649 | dependency: transitive 650 | description: 651 | name: vector_graphics_codec 652 | sha256: "7451721781d967db9933b63f5733b1c4533022c0ba373a01bdd79d1a5457f69f" 653 | url: "https://pub.dev" 654 | source: hosted 655 | version: "1.1.7" 656 | vector_graphics_compiler: 657 | dependency: transitive 658 | description: 659 | name: vector_graphics_compiler 660 | sha256: "80a13c613c8bde758b1464a1755a7b3a8f2b6cec61fbf0f5a53c94c30f03ba2e" 661 | url: "https://pub.dev" 662 | source: hosted 663 | version: "1.1.7" 664 | vector_math: 665 | dependency: transitive 666 | description: 667 | name: vector_math 668 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" 669 | url: "https://pub.dev" 670 | source: hosted 671 | version: "2.1.4" 672 | win32: 673 | dependency: transitive 674 | description: 675 | name: win32 676 | sha256: f2add6fa510d3ae152903412227bda57d0d5a8da61d2c39c1fb022c9429a41c0 677 | url: "https://pub.dev" 678 | source: hosted 679 | version: "5.0.6" 680 | xdg_directories: 681 | dependency: transitive 682 | description: 683 | name: xdg_directories 684 | sha256: f0c26453a2d47aa4c2570c6a033246a3fc62da2fe23c7ffdd0a7495086dc0247 685 | url: "https://pub.dev" 686 | source: hosted 687 | version: "1.0.2" 688 | xml: 689 | dependency: transitive 690 | description: 691 | name: xml 692 | sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84" 693 | url: "https://pub.dev" 694 | source: hosted 695 | version: "6.3.0" 696 | sdks: 697 | dart: ">=3.0.2 <4.0.0" 698 | flutter: ">=3.7.6" 699 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: to_do_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.0.2 <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 | google_fonts: ^5.1.0 39 | get: ^4.6.5 40 | email_validator: ^2.1.17 41 | font_awesome_flutter: ^10.5.0 42 | firebase_core: ^2.15.1 43 | firebase_auth: ^4.7.3 44 | firebase_database: ^10.2.5 45 | shared_preferences: ^2.2.0 46 | google_sign_in: ^6.1.4 47 | sign_in_with_apple: ^5.0.0 48 | flutter_svg: ^2.0.7 49 | intl: ^0.18.1 50 | sqflite: ^2.3.0 51 | connectivity: ^3.0.6 52 | 53 | dev_dependencies: 54 | flutter_test: 55 | sdk: flutter 56 | 57 | # The "flutter_lints" package below contains a set of recommended lints to 58 | # encourage good coding practices. The lint set provided by the package is 59 | # activated in the `analysis_options.yaml` file located at the root of your 60 | # package. See that file for information about deactivating specific lint 61 | # rules and activating additional ones. 62 | flutter_lints: ^2.0.0 63 | 64 | # For information on the generic Dart part of this file, see the 65 | # following page: https://dart.dev/tools/pub/pubspec 66 | 67 | # The following section is specific to Flutter packages. 68 | flutter: 69 | 70 | # The following line ensures that the Material Icons font is 71 | # included with your application, so that you can use the icons in 72 | # the material Icons class. 73 | uses-material-design: true 74 | 75 | # To add assets to your application, add an assets section, like this: 76 | assets: 77 | - assets/icons/ 78 | - assets/images/ 79 | # - images/a_dot_ham.jpeg 80 | 81 | # An image asset can refer to one or more resolution-specific "variants", see 82 | # https://flutter.dev/assets-and-images/#resolution-aware 83 | 84 | # For details regarding adding assets from package dependencies, see 85 | # https://flutter.dev/assets-and-images/#from-packages 86 | 87 | # To add custom fonts to your application, add a fonts section here, 88 | # in this "flutter" section. Each entry in this list should have a 89 | # "family" key with the font family name, and a "fonts" key with a 90 | # list giving the asset and other descriptors for the font. For 91 | # example: 92 | # fonts: 93 | # - family: Schyler 94 | # fonts: 95 | # - asset: fonts/Schyler-Regular.ttf 96 | # - asset: fonts/Schyler-Italic.ttf 97 | # style: italic 98 | # - family: Trajan Pro 99 | # fonts: 100 | # - asset: fonts/TrajanPro.ttf 101 | # - asset: fonts/TrajanPro_Bold.ttf 102 | # weight: 700 103 | # 104 | # For details regarding fonts from package dependencies, 105 | # see https://flutter.dev/custom-fonts/#from-packages 106 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility in the flutter_test package. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:to_do_app/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(const MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | --------------------------------------------------------------------------------