├── .gitignore ├── .metadata ├── README.md ├── analysis_options.yaml ├── android ├── .gitignore ├── app │ ├── build.gradle │ ├── google-services.json │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── todo_tasks_with_alert │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-v21 │ │ │ └── launch_background.xml │ │ │ ├── drawable │ │ │ ├── launch_background.xml │ │ │ └── launcher_icon.png │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── launcher_icon.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── launcher_icon.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── launcher_icon.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── launcher_icon.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── launcher_icon.png │ │ │ ├── values-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── archived_task_svg.svg ├── default profile.png ├── done_task_svg.svg ├── flutter.png ├── my_event.png └── new_task_svg.svg ├── 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 ├── lib ├── layout │ ├── todo_layout.dart │ └── todo_layoutcontroller.dart ├── main.dart ├── model │ ├── event.dart │ └── event_data_source.dart ├── modules │ ├── add_event_screen │ │ └── add_event_screen.dart │ ├── archive_events │ │ └── archive_task.dart │ ├── clear_data │ │ └── clear_data.dart │ ├── done_events │ │ └── done_events.dart │ ├── my_events │ │ └── my_event_screen.dart │ └── search_events │ │ ├── search_controller.dart │ │ └── search_events.dart └── shared │ ├── componets │ ├── componets.dart │ └── constants.dart │ ├── network │ ├── local │ │ ├── TodoDbHelper.dart │ │ ├── cashhelper.dart │ │ └── notification.dart │ └── remote │ │ └── diohelper.dart │ └── styles │ ├── styles.dart │ └── thems.dart ├── pubspec.lock ├── pubspec.yaml └── web ├── favicon.png ├── icons ├── Icon-192.png ├── Icon-512.png ├── Icon-maskable-192.png └── Icon-maskable-512.png ├── index.html └── manifest.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 77d935af4db863f6abd0b9c31c7e6df2a13de57b 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Todo Events Or Tasks with local notification for each Event - Demo 2 | 3 | - Light/Dark Theme 4 | - SQFlite database 5 | - Getx State Management 6 | - Syncfusion Calendar 7 | - flutter local notification 8 | 9 | 10 | 11 | 12 | 13 | ![ezgif com-gif-maker](https://user-images.githubusercontent.com/78031951/157430155-31326f52-489a-4989-98e6-bd5710bdbcea.gif) 14 | ![ezgif com-gif-maker](https://user-images.githubusercontent.com/78031951/157837268-0942788e-867e-4cbf-8bfa-c1de959a87c6.gif) 15 | 16 | 17 | -------------------------------------------------------------------------------- /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 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: 'com.google.gms.google-services' 26 | apply plugin: 'kotlin-android' 27 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 28 | 29 | android { 30 | minSdkVersion flutter.minSdkVersion 31 | targetSdkVersion flutter.targetSdkVersion 32 | versionCode flutterVersionCode.toInteger() 33 | versionName flutterVersionName 34 | compileOptions { 35 | sourceCompatibility JavaVersion.VERSION_1_8 36 | targetCompatibility JavaVersion.VERSION_1_8 37 | } 38 | 39 | kotlinOptions { 40 | jvmTarget = '1.8' 41 | } 42 | 43 | 44 | //! What went wrong: 45 | //! Execution failed for task ':app:lintVitalRelease'. without this line of code an error happen 46 | lintOptions { 47 | checkReleaseBuilds false //<- add this line 48 | } 49 | 50 | 51 | sourceSets { 52 | main.java.srcDirs += 'src/main/kotlin' 53 | } 54 | 55 | defaultConfig { 56 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 57 | applicationId "com.example.todo_tasks_with_alert" 58 | minSdkVersion 21 59 | targetSdkVersion 31 60 | versionCode flutterVersionCode.toInteger() 61 | versionName flutterVersionName 62 | } 63 | 64 | buildTypes { 65 | release { 66 | // TODO: Add your own signing config for the release build. 67 | // Signing with the debug keys for now, so `flutter run --release` works. 68 | signingConfig signingConfigs.debug 69 | } 70 | } 71 | } 72 | 73 | flutter { 74 | source '../..' 75 | } 76 | 77 | dependencies { 78 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 79 | } 80 | -------------------------------------------------------------------------------- /android/app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "879999883643", 4 | "project_id": "my-events-37c56", 5 | "storage_bucket": "my-events-37c56.appspot.com" 6 | }, 7 | "client": [ 8 | { 9 | "client_info": { 10 | "mobilesdk_app_id": "1:879999883643:android:371639d1a6d19c6422c5de", 11 | "android_client_info": { 12 | "package_name": "com.example.todo_tasks_with_alert" 13 | } 14 | }, 15 | "oauth_client": [ 16 | { 17 | "client_id": "879999883643-5uqh5equmil68p22f7j7r6b1rj47hjc5.apps.googleusercontent.com", 18 | "client_type": 1, 19 | "android_info": { 20 | "package_name": "com.example.todo_tasks_with_alert", 21 | "certificate_hash": "952cb7c18fcf503d966691a00dd0cf5a1c66bf74" 22 | } 23 | }, 24 | { 25 | "client_id": "879999883643-uiftevv2ano6i9hs92n3hkl16h43s6md.apps.googleusercontent.com", 26 | "client_type": 3 27 | } 28 | ], 29 | "api_key": [ 30 | { 31 | "current_key": "AIzaSyBpYLSTyMihqHt3Xc4Tc2D2i_CeDbxZylQ" 32 | } 33 | ], 34 | "services": { 35 | "appinvite_service": { 36 | "other_platform_oauth_client": [ 37 | { 38 | "client_id": "879999883643-uiftevv2ano6i9hs92n3hkl16h43s6md.apps.googleusercontent.com", 39 | "client_type": 3 40 | } 41 | ] 42 | } 43 | } 44 | } 45 | ], 46 | "configuration_version": "1" 47 | } -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 10 | 18 | 22 | 26 | 27 | 28 | 29 | 30 | // NOTE this intent to handle notification in background 31 | 32 | 33 | 34 | 35 | 41 | 42 | 44 | 45 | 47 | 50 | 51 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/todo_tasks_with_alert/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.todo_tasks_with_alert 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/drawable/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/android/app/src/main/res/drawable/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/android/app/src/main/res/mipmap-hdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/android/app/src/main/res/mipmap-mdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.6.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.2.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | classpath 'com.google.gms:google-services:4.3.10' 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 | task clean(type: 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 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /assets/archived_task_svg.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/default profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/assets/default profile.png -------------------------------------------------------------------------------- /assets/done_task_svg.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/flutter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/assets/flutter.png -------------------------------------------------------------------------------- /assets/my_event.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/assets/my_event.png -------------------------------------------------------------------------------- /assets/new_task_svg.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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 | 9.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 = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1300; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | INFOPLIST_FILE = Runner/Info.plist; 293 | LD_RUNPATH_SEARCH_PATHS = ( 294 | "$(inherited)", 295 | "@executable_path/Frameworks", 296 | ); 297 | PRODUCT_BUNDLE_IDENTIFIER = com.example.todoTasksWithAlert; 298 | PRODUCT_NAME = "$(TARGET_NAME)"; 299 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 300 | SWIFT_VERSION = 5.0; 301 | VERSIONING_SYSTEM = "apple-generic"; 302 | }; 303 | name = Profile; 304 | }; 305 | 97C147031CF9000F007C117D /* Debug */ = { 306 | isa = XCBuildConfiguration; 307 | buildSettings = { 308 | ALWAYS_SEARCH_USER_PATHS = NO; 309 | CLANG_ANALYZER_NONNULL = YES; 310 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 311 | CLANG_CXX_LIBRARY = "libc++"; 312 | CLANG_ENABLE_MODULES = YES; 313 | CLANG_ENABLE_OBJC_ARC = YES; 314 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 315 | CLANG_WARN_BOOL_CONVERSION = YES; 316 | CLANG_WARN_COMMA = YES; 317 | CLANG_WARN_CONSTANT_CONVERSION = YES; 318 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 319 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 320 | CLANG_WARN_EMPTY_BODY = YES; 321 | CLANG_WARN_ENUM_CONVERSION = YES; 322 | CLANG_WARN_INFINITE_RECURSION = YES; 323 | CLANG_WARN_INT_CONVERSION = YES; 324 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 325 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 326 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 327 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 328 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 329 | CLANG_WARN_STRICT_PROTOTYPES = YES; 330 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 331 | CLANG_WARN_UNREACHABLE_CODE = YES; 332 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 333 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 334 | COPY_PHASE_STRIP = NO; 335 | DEBUG_INFORMATION_FORMAT = dwarf; 336 | ENABLE_STRICT_OBJC_MSGSEND = YES; 337 | ENABLE_TESTABILITY = YES; 338 | GCC_C_LANGUAGE_STANDARD = gnu99; 339 | GCC_DYNAMIC_NO_PIC = NO; 340 | GCC_NO_COMMON_BLOCKS = YES; 341 | GCC_OPTIMIZATION_LEVEL = 0; 342 | GCC_PREPROCESSOR_DEFINITIONS = ( 343 | "DEBUG=1", 344 | "$(inherited)", 345 | ); 346 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 347 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 348 | GCC_WARN_UNDECLARED_SELECTOR = YES; 349 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 350 | GCC_WARN_UNUSED_FUNCTION = YES; 351 | GCC_WARN_UNUSED_VARIABLE = YES; 352 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 353 | MTL_ENABLE_DEBUG_INFO = YES; 354 | ONLY_ACTIVE_ARCH = YES; 355 | SDKROOT = iphoneos; 356 | TARGETED_DEVICE_FAMILY = "1,2"; 357 | }; 358 | name = Debug; 359 | }; 360 | 97C147041CF9000F007C117D /* Release */ = { 361 | isa = XCBuildConfiguration; 362 | buildSettings = { 363 | ALWAYS_SEARCH_USER_PATHS = NO; 364 | CLANG_ANALYZER_NONNULL = YES; 365 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 366 | CLANG_CXX_LIBRARY = "libc++"; 367 | CLANG_ENABLE_MODULES = YES; 368 | CLANG_ENABLE_OBJC_ARC = YES; 369 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 370 | CLANG_WARN_BOOL_CONVERSION = YES; 371 | CLANG_WARN_COMMA = YES; 372 | CLANG_WARN_CONSTANT_CONVERSION = YES; 373 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 374 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 375 | CLANG_WARN_EMPTY_BODY = YES; 376 | CLANG_WARN_ENUM_CONVERSION = YES; 377 | CLANG_WARN_INFINITE_RECURSION = YES; 378 | CLANG_WARN_INT_CONVERSION = YES; 379 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 380 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 381 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 382 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 383 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 384 | CLANG_WARN_STRICT_PROTOTYPES = YES; 385 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 386 | CLANG_WARN_UNREACHABLE_CODE = YES; 387 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 388 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 389 | COPY_PHASE_STRIP = NO; 390 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 391 | ENABLE_NS_ASSERTIONS = NO; 392 | ENABLE_STRICT_OBJC_MSGSEND = YES; 393 | GCC_C_LANGUAGE_STANDARD = gnu99; 394 | GCC_NO_COMMON_BLOCKS = YES; 395 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 396 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 397 | GCC_WARN_UNDECLARED_SELECTOR = YES; 398 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 399 | GCC_WARN_UNUSED_FUNCTION = YES; 400 | GCC_WARN_UNUSED_VARIABLE = YES; 401 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 402 | MTL_ENABLE_DEBUG_INFO = NO; 403 | SDKROOT = iphoneos; 404 | SUPPORTED_PLATFORMS = iphoneos; 405 | SWIFT_COMPILATION_MODE = wholemodule; 406 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 407 | TARGETED_DEVICE_FAMILY = "1,2"; 408 | VALIDATE_PRODUCT = YES; 409 | }; 410 | name = Release; 411 | }; 412 | 97C147061CF9000F007C117D /* Debug */ = { 413 | isa = XCBuildConfiguration; 414 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 415 | buildSettings = { 416 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 417 | CLANG_ENABLE_MODULES = YES; 418 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 419 | ENABLE_BITCODE = NO; 420 | INFOPLIST_FILE = Runner/Info.plist; 421 | LD_RUNPATH_SEARCH_PATHS = ( 422 | "$(inherited)", 423 | "@executable_path/Frameworks", 424 | ); 425 | PRODUCT_BUNDLE_IDENTIFIER = com.example.todoTasksWithAlert; 426 | PRODUCT_NAME = "$(TARGET_NAME)"; 427 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 428 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 429 | SWIFT_VERSION = 5.0; 430 | VERSIONING_SYSTEM = "apple-generic"; 431 | }; 432 | name = Debug; 433 | }; 434 | 97C147071CF9000F007C117D /* Release */ = { 435 | isa = XCBuildConfiguration; 436 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 437 | buildSettings = { 438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 439 | CLANG_ENABLE_MODULES = YES; 440 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 441 | ENABLE_BITCODE = NO; 442 | INFOPLIST_FILE = Runner/Info.plist; 443 | LD_RUNPATH_SEARCH_PATHS = ( 444 | "$(inherited)", 445 | "@executable_path/Frameworks", 446 | ); 447 | PRODUCT_BUNDLE_IDENTIFIER = com.example.todoTasksWithAlert; 448 | PRODUCT_NAME = "$(TARGET_NAME)"; 449 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 450 | SWIFT_VERSION = 5.0; 451 | VERSIONING_SYSTEM = "apple-generic"; 452 | }; 453 | name = Release; 454 | }; 455 | /* End XCBuildConfiguration section */ 456 | 457 | /* Begin XCConfigurationList section */ 458 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 97C147031CF9000F007C117D /* Debug */, 462 | 97C147041CF9000F007C117D /* Release */, 463 | 249021D3217E4FDB00AE95B9 /* Profile */, 464 | ); 465 | defaultConfigurationIsVisible = 0; 466 | defaultConfigurationName = Release; 467 | }; 468 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 469 | isa = XCConfigurationList; 470 | buildConfigurations = ( 471 | 97C147061CF9000F007C117D /* Debug */, 472 | 97C147071CF9000F007C117D /* Release */, 473 | 249021D4217E4FDB00AE95B9 /* Profile */, 474 | ); 475 | defaultConfigurationIsVisible = 0; 476 | defaultConfigurationName = Release; 477 | }; 478 | /* End XCConfigurationList section */ 479 | }; 480 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 481 | } 482 | -------------------------------------------------------------------------------- /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 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/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 | Todo Tasks With Alert 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | todo_tasks_with_alert 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 | 47 | 48 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/layout/todo_layout.dart: -------------------------------------------------------------------------------- 1 | import 'package:date_picker_timeline/extra/color.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | import 'package:sqflite/sqflite.dart'; 5 | import 'package:intl/intl.dart'; 6 | import 'package:todo_tasks_with_alert/layout/todo_layoutcontroller.dart'; 7 | import 'package:todo_tasks_with_alert/model/event.dart'; 8 | import 'package:todo_tasks_with_alert/modules/add_event_screen/add_event_screen.dart'; 9 | import 'package:todo_tasks_with_alert/modules/clear_data/clear_data.dart'; 10 | import 'package:todo_tasks_with_alert/modules/search_events/search_events.dart'; 11 | import 'package:todo_tasks_with_alert/shared/componets/componets.dart'; 12 | import 'package:date_picker_timeline/date_picker_timeline.dart'; 13 | import 'package:todo_tasks_with_alert/shared/network/local/notification.dart'; 14 | import 'package:todo_tasks_with_alert/shared/styles/styles.dart'; 15 | import 'package:todo_tasks_with_alert/shared/styles/thems.dart'; 16 | 17 | class TodoLayout extends StatelessWidget { 18 | GlobalKey _scaffoldkey = GlobalKey(); 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | return GetBuilder( 23 | init: Get.find(), 24 | builder: (todocontroller) => Scaffold( 25 | drawer: _drawer(context), 26 | key: _scaffoldkey, 27 | // NOTE App Bar 28 | appBar: _appbar(todocontroller, context), 29 | 30 | //NOTE Body 31 | body: Obx( 32 | () => todocontroller.isloading.value 33 | ? Center(child: CircularProgressIndicator()) 34 | : Container( 35 | margin: EdgeInsets.only(top: 5, left: 10, right: 10), 36 | child: Column( 37 | crossAxisAlignment: CrossAxisAlignment.start, 38 | children: [ 39 | Row( 40 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 41 | children: [ 42 | Column( 43 | crossAxisAlignment: CrossAxisAlignment.start, 44 | children: [ 45 | Text( 46 | DateFormat.yMMMMd().format(DateTime.parse( 47 | todocontroller.currentSelectedDate)), 48 | style: subHeaderStyle, 49 | ), 50 | SizedBox( 51 | height: 2, 52 | ), 53 | Text( 54 | todocontroller.currentSelectedDate != 55 | DateTime.now() 56 | .toString() 57 | .split(' ') 58 | .first 59 | ? DateFormat.E().format(DateTime.parse( 60 | todocontroller.currentSelectedDate)) 61 | : "Today", 62 | style: headerStyle, 63 | ), 64 | ], 65 | ), 66 | defaultButton( 67 | text: "Add Event", 68 | width: 100, 69 | onpress: () { 70 | Get.to(() => AddEventScreen()); 71 | }, 72 | gradient: orangeGradient, 73 | radius: 15), 74 | ], 75 | ), 76 | SizedBox( 77 | height: 10, 78 | ), 79 | //NOTE timeline datepicker ------------- 80 | Container( 81 | child: DatePicker( 82 | DateTime.now(), 83 | height: 80, 84 | width: 60, 85 | initialSelectedDate: DateTime.now(), 86 | selectionColor: defaultLightColor, 87 | selectedTextColor: Colors.white, 88 | dayTextStyle: TextStyle( 89 | color: Get.isDarkMode ? Colors.white : Colors.black, 90 | ), 91 | dateTextStyle: TextStyle( 92 | color: Colors.grey, 93 | fontWeight: FontWeight.bold, 94 | fontSize: 16), 95 | monthTextStyle: TextStyle( 96 | color: Get.isDarkMode ? Colors.white : Colors.black, 97 | ), 98 | onDateChange: (value) { 99 | var selecteddate = value.toString().split(' '); 100 | print(selecteddate[0]); 101 | todocontroller.onchangeselectedate(selecteddate[0]); 102 | }, 103 | ), 104 | ), 105 | SizedBox( 106 | height: 10, 107 | ), 108 | // NOTE list Of Tasks 109 | Expanded( 110 | child: todocontroller 111 | .screens[todocontroller.currentIndex]), 112 | ], 113 | ), 114 | ), 115 | ), 116 | 117 | //NOTE bottom navigation 118 | bottomNavigationBar: BottomNavigationBar( 119 | type: BottomNavigationBarType.fixed, 120 | currentIndex: todocontroller.currentIndex, 121 | onTap: (index) { 122 | todocontroller.onchangeIndex(index); 123 | }, 124 | items: todocontroller.bottomItems, 125 | ), 126 | ), 127 | ); 128 | } 129 | 130 | _appbar(TodoLayoutController todocontroller, BuildContext context) => AppBar( 131 | title: Text( 132 | todocontroller.appbar_title[todocontroller.currentIndex], 133 | style: Theme.of(context).textTheme.headline5, 134 | ), 135 | actions: [ 136 | IconButton( 137 | onPressed: () { 138 | //TODO: search screen 139 | Get.to(() => SearchEvents()); 140 | //NotificationApi.shownotification(); 141 | }, 142 | icon: Icon( 143 | Get.isDarkMode ? Icons.search : Icons.search, 144 | size: 30, 145 | ), 146 | ), 147 | IconButton( 148 | onPressed: () { 149 | todocontroller.onchangeThem(); 150 | }, 151 | icon: Icon( 152 | Get.isDarkMode ? Icons.wb_sunny : Icons.mode_night, 153 | size: 30, 154 | ), 155 | ), 156 | SizedBox( 157 | width: 20, 158 | ) 159 | ], 160 | ); 161 | 162 | _drawer(BuildContext context) => Drawer( 163 | child: Column( 164 | children: [ 165 | Container( 166 | decoration: BoxDecoration(gradient: orangeGradient), 167 | padding: EdgeInsets.only(left: 15, right: 15, top: 40), 168 | height: 160, 169 | child: Column( 170 | mainAxisAlignment: MainAxisAlignment.start, 171 | crossAxisAlignment: CrossAxisAlignment.start, 172 | children: [ 173 | Container( 174 | child: Row( 175 | children: [ 176 | CircleAvatar( 177 | backgroundImage: 178 | AssetImage('assets/default profile.png')), 179 | SizedBox( 180 | width: 10, 181 | ), 182 | Spacer(), 183 | IconButton( 184 | onPressed: () {}, 185 | icon: Icon(Icons.cloud), 186 | color: Colors.grey.shade200, 187 | ) 188 | ], 189 | ), 190 | ), 191 | SizedBox( 192 | height: 15, 193 | ), 194 | Text( 195 | "SIGN IN", 196 | style: TextStyle( 197 | letterSpacing: 2, fontWeight: FontWeight.bold), 198 | ), 199 | Text( 200 | "Synchronization disabled...", 201 | ), 202 | ], 203 | ), 204 | ), 205 | ListTile( 206 | onTap: () { 207 | Get.to(ClearData()); 208 | }, 209 | leading: Icon(Icons.delete), 210 | title: Text("Clear Data"), 211 | ), 212 | Divider(), 213 | ListTile( 214 | onTap: () {}, 215 | leading: Icon(Icons.search), 216 | title: Text("Search"), 217 | ), 218 | ], 219 | ), 220 | ); 221 | } 222 | -------------------------------------------------------------------------------- /lib/layout/todo_layoutcontroller.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_messaging/firebase_messaging.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | import 'package:intl/intl.dart'; 5 | import 'package:sqflite/sqflite.dart'; 6 | import 'package:todo_tasks_with_alert/model/event.dart'; 7 | import 'package:todo_tasks_with_alert/modules/archive_events/archive_task.dart'; 8 | import 'package:todo_tasks_with_alert/modules/done_events/done_events.dart'; 9 | import 'package:todo_tasks_with_alert/modules/my_events/my_event_screen.dart'; 10 | import 'package:todo_tasks_with_alert/shared/componets/constants.dart'; 11 | import 'package:todo_tasks_with_alert/shared/network/local/TodoDbHelper.dart'; 12 | import 'package:todo_tasks_with_alert/shared/network/local/cashhelper.dart'; 13 | import 'package:todo_tasks_with_alert/shared/network/local/notification.dart'; 14 | import 'package:todo_tasks_with_alert/shared/styles/thems.dart'; 15 | import 'package:uuid/uuid.dart'; 16 | 17 | class TodoLayoutController extends GetxController { 18 | List _neweventList = []; 19 | List get neweventList => _neweventList; 20 | List _doneeventList = []; 21 | List get doneeventList => _doneeventList; 22 | List _archiveeventList = []; 23 | List get archiveeventList => _archiveeventList; 24 | int _currentIndex = 0; 25 | int get currentIndex => _currentIndex; 26 | 27 | String currentSelectedDate = DateTime.now().toString().split(' ').first; 28 | 29 | final screens = [MyEventScreen(), DoneEventScreen(), ArchiveEventScreen()]; 30 | List bottomItems = [ 31 | BottomNavigationBarItem(icon: Icon(Icons.menu), label: "Events"), 32 | BottomNavigationBarItem( 33 | icon: Icon(Icons.check_circle_outline), label: "Done"), 34 | BottomNavigationBarItem( 35 | icon: Icon(Icons.archive_outlined), 36 | label: "Archive", 37 | ), 38 | ]; 39 | 40 | final appbar_title = ["My Events", "Done Events", "Archive Events"]; 41 | 42 | TodoDbHelper dbHelper = TodoDbHelper.db; 43 | 44 | var isloading = true.obs; 45 | bool ishasdevicekey_in_cash = false; 46 | 47 | @override 48 | void onInit() async { 49 | ishasdevicekey_in_cash = CashHelper.getData(key: "deviceToken") ?? false; 50 | 51 | await dbHelper.createDatabase(); 52 | await getDatabasesPath().then((value) => print(value + "/event.db")); 53 | await getalleventsInDay(); 54 | print(_neweventList.length); 55 | 56 | super.onInit(); 57 | } 58 | 59 | @override 60 | Future onReady() async { 61 | // TODO: implement onReady 62 | devicetoken = await FirebaseMessaging.instance.getToken() ?? null; 63 | print("token messaging -- " + devicetoken.toString()); 64 | 65 | // NOTE check if token not set so i set it to used in fcm notification 66 | if (devicetoken != null && ishasdevicekey_in_cash) { 67 | CashHelper.saveData(key: "deviceToken", value: true); 68 | print('token saved'); 69 | } else { 70 | print("token already saved"); 71 | } 72 | super.onReady(); 73 | } 74 | 75 | // Future> inserteventToDatabase( 76 | // {required String title, 77 | // required String date, 78 | // required String time}) async { 79 | // database.transaction((txn) => txn 80 | // .rawInsert( 81 | // 'insert into $eventTable(title,date,time,status) values("$title","$date","$time","new")') 82 | // .then((value) async { 83 | // print('inserted successfully'); 84 | // }).catchError((error) { 85 | // print(error.toString()); 86 | // })); 87 | 88 | // return await GetDataFromDatabase(); 89 | // } 90 | 91 | // NOTE on select date in time line 92 | void onchangeselectedate(selecteddate) { 93 | currentSelectedDate = selecteddate; 94 | getalleventsInDay(); 95 | } 96 | 97 | //NOTE on change remind list 98 | var selectedRemindItem = "5".obs; 99 | onchangeremindlist(value) { 100 | selectedRemindItem.value = value; 101 | } 102 | 103 | Future getalleventsInDay() async { 104 | print(isloading.value); 105 | _neweventList = []; 106 | _doneeventList = []; 107 | _archiveeventList = []; 108 | isloading.value = true; 109 | await dbHelper.database 110 | .rawQuery( 111 | "select * from $eventTable where date='${currentSelectedDate}'") 112 | .then((value) { 113 | value.forEach((element) { 114 | if (element['status'] == "new") 115 | _neweventList.add(Event.fromJson(element)); 116 | else if (element['status'] == "done") 117 | _doneeventList.add(Event.fromJson(element)); 118 | else if (element['status'] == "archive") 119 | _archiveeventList.add(Event.fromJson(element)); 120 | }); 121 | _neweventList.length > 1 122 | //NOTE if does not have any new event 123 | ? _neweventList.sort((a, b) { 124 | return DateTime.parse( 125 | a.date.toString() + " " + a.starttime.toString()) 126 | .compareTo(DateTime.parse( 127 | b.date.toString() + " " + b.starttime.toString())); 128 | }) 129 | : []; 130 | 131 | // print("N " + _neweventListMap.length.toString()); 132 | // print("D " + _doneeventListMap.length.toString()); 133 | // print("A " + _archiveeventListMap.length.toString()); 134 | }).then((value) { 135 | isloading.value = false; 136 | print(isloading.value); 137 | update(); 138 | }); 139 | } 140 | 141 | //NOTE on change index of bottom navigation 142 | void onchangeIndex(int index) { 143 | _currentIndex = index; 144 | update(); 145 | } 146 | 147 | // add event by model 148 | Future inserteventByModel({required Event model}) async { 149 | var dbclient = await dbHelper.database; 150 | //! if i need random id 151 | // var uuid = Uuid(); 152 | // model.id = uuid.v1(); 153 | // print(model.toJson()); 154 | int id = await dbclient.insert(eventTable, model.toJson()); 155 | await dbHelper.database 156 | .rawQuery("select * from $eventTable where id='${id}'") 157 | .then((value) { 158 | value.forEach((element) { 159 | if (DateTime.parse(model.date.toString()) 160 | .compareTo(DateTime.parse(currentSelectedDate.toString())) == 161 | 0) _neweventList.add(Event.fromJson(element)); 162 | // order by date time 163 | _neweventList.sort((a, b) { 164 | return DateTime.parse( 165 | a.date.toString() + " " + a.starttime.toString()) 166 | .compareTo(DateTime.parse( 167 | b.date.toString() + " " + b.starttime.toString())); 168 | }); 169 | update(); 170 | }); 171 | }); 172 | return id; 173 | } 174 | 175 | updatestatusevent({required String eventId, required String status}) async { 176 | var dbclient = await dbHelper.database; 177 | await dbclient 178 | .rawUpdate( 179 | "UPDATE $eventTable SET status= '$status' where id='$eventId'") 180 | .then((value) async { 181 | // NOTE if current index ==0 i have two option done or archive 182 | if (currentIndex == 0) { 183 | Event event = 184 | _neweventList.where((element) => element.id == eventId).first; 185 | if (!event.isBlank!) _neweventList.remove(event); 186 | if (status == "done") { 187 | event.status = "done"; 188 | _doneeventList.add(event); 189 | } else { 190 | event.status = "archive"; 191 | _archiveeventList.add(event); 192 | } 193 | //NOTE cancel notification if archived or finished 194 | await NotificationApi.notifications.cancel(int.parse(eventId)); 195 | } 196 | // NOTE if current index ==1 i have one option archive 197 | if (currentIndex == 1) { 198 | Event event = 199 | _doneeventList.where((element) => element.id == eventId).first; 200 | // NOTE if exist remove it from _done and add to archive and update her status in archive 201 | if (!event.isBlank!) _doneeventList.remove(event); 202 | 203 | event.status = "archive"; 204 | _archiveeventList.add(event); 205 | 206 | //NOTE cancel notification if archived 207 | await NotificationApi.notifications.cancel(int.parse(eventId)); 208 | } 209 | 210 | update(); 211 | }).catchError((error) { 212 | print(error.toString()); 213 | }); 214 | 215 | print("Updated"); 216 | //getalltasks(); 217 | } 218 | 219 | deleteEvent({required String eventId}) async { 220 | var dbclient = await dbHelper.database; 221 | await dbclient 222 | .rawDelete("DELETE FROM $eventTable where id='$eventId'") 223 | .then((value) async { 224 | //NOTE if i am in new event 225 | // screen 226 | if (currentIndex == 0) { 227 | Event event = 228 | _neweventList.where((element) => element.id == eventId).first; 229 | //NOTE check if new event contain eventId 230 | if (!event.isBlank!) _neweventList.remove(event); 231 | } 232 | 233 | //NOTE if i am in done event 234 | // screen 235 | if (currentIndex == 1) { 236 | Event event = 237 | _doneeventList.where((element) => element.id == eventId).first; 238 | //NOTE check if done event contain eventId 239 | if (!event.isBlank!) _doneeventList.remove(event); 240 | } 241 | //NOTE if i am in Archive event 242 | // screen 243 | if (currentIndex == 2) { 244 | Event event = 245 | _archiveeventList.where((element) => element.id == eventId).first; 246 | //NOTE check if done event contain eventId 247 | if (!event.isBlank!) _archiveeventList.remove(event); 248 | } 249 | // to delete scheduled notification for this event 250 | await NotificationApi.notifications.cancel(int.parse(eventId)); 251 | update(); 252 | }).catchError((error) { 253 | print(error.toString()); 254 | }); 255 | print("deleted"); 256 | } 257 | 258 | //NOTE For multi them ------------------------- 259 | var isDarkMode = false.obs; 260 | 261 | void onchangeThem() { 262 | // isDarkMode.value = !isDarkMode.value; 263 | // CashHelper.setTheme(key: "isdark", value: isDarkMode.value).then((value) { 264 | // print("Theme is ${isDarkMode == true ? "black" : "white"}"); 265 | // }); 266 | // update(); 267 | //! using Get 268 | if (Get.isDarkMode) { 269 | Get.changeTheme(Themes.lightTheme); 270 | print("light"); 271 | CashHelper.setTheme(key: "isdark", value: false); 272 | } else { 273 | Get.changeTheme(Themes.darkThem); 274 | print("dark"); 275 | CashHelper.setTheme(key: "isdark", value: true); 276 | } 277 | } 278 | 279 | Future deleteAllEventBefor(DateTime date) async { 280 | var dbclient = await dbHelper.database; 281 | await dbclient.rawDelete("DELETE FROM $eventTable where date< ?", 282 | ['${date.toString().split(' ').first}']).then((value) { 283 | print('events deleted'); 284 | getalleventsInDay(); 285 | }).catchError((error) { 286 | print(error.toString()); 287 | }); 288 | } 289 | } 290 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_local_notifications/flutter_local_notifications.dart'; 3 | import 'package:get/get.dart'; 4 | import 'package:todo_tasks_with_alert/layout/todo_layout.dart'; 5 | import 'package:todo_tasks_with_alert/layout/todo_layoutcontroller.dart'; 6 | import 'package:todo_tasks_with_alert/shared/network/local/cashhelper.dart'; 7 | import 'package:todo_tasks_with_alert/shared/network/local/notification.dart'; 8 | import 'package:todo_tasks_with_alert/shared/styles/thems.dart'; 9 | import 'package:firebase_messaging/firebase_messaging.dart'; 10 | import 'package:firebase_core/firebase_core.dart'; 11 | 12 | void main() async { 13 | WidgetsFlutterBinding.ensureInitialized(); 14 | await Firebase.initializeApp(); 15 | 16 | // NOTE : catch notification with parameter while app is closed and when on press notification 17 | FirebaseMessaging.onMessageOpenedApp.listen((message) { 18 | print("message data opened " + message.data.toString()); 19 | //showToast(message: "on message opened", status: ToastStatus.Success); 20 | }); 21 | 22 | await CashHelper.init(); 23 | 24 | // NOTE Notification 25 | await NotificationApi.init(); 26 | 27 | // NOTE check cash theme and set it to Get 28 | bool? isdarkcashedthem = CashHelper.getThem(key: "isdark"); 29 | print("cash theme " + isdarkcashedthem.toString()); 30 | if (isdarkcashedthem != null) { 31 | Get.changeTheme(isdarkcashedthem ? Themes.darkThem : Themes.lightTheme); 32 | } 33 | 34 | Get.put(TodoLayoutController()); 35 | 36 | runApp(MyApp()); 37 | } 38 | 39 | class MyApp extends StatelessWidget { 40 | // This widget is the root of your application. 41 | TodoLayoutController todoController = Get.find(); 42 | 43 | @override 44 | @override 45 | Widget build(BuildContext context) { 46 | return GetMaterialApp( 47 | //NOTE to use 24 hour format 48 | builder: (context, child) => MediaQuery( 49 | data: MediaQuery.of(context).copyWith(alwaysUse24HourFormat: false), 50 | child: child!), 51 | debugShowCheckedModeBanner: false, 52 | theme: Themes.lightTheme, 53 | darkTheme: Themes.darkThem, 54 | themeMode: Get.isDarkMode ? ThemeMode.dark : ThemeMode.light, 55 | home: TodoLayout(), 56 | ); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /lib/model/event.dart: -------------------------------------------------------------------------------- 1 | class Event { 2 | late String id, title, date, starttime, endtime, status; 3 | late int remind; 4 | Event( 5 | {required this.title, 6 | required this.date, 7 | required this.starttime, 8 | required this.endtime, 9 | required this.status, 10 | required this.remind}); 11 | 12 | Event.CustomConstructor( 13 | {required String title, required this.starttime, required this.endtime}); 14 | 15 | Event.fromJson(Map map) { 16 | if (map == null) return; 17 | 18 | id = map['id'].toString(); 19 | title = map['title']; 20 | date = map['date']; 21 | starttime = map['starttime']; 22 | endtime = map['endtime']; 23 | status = map['status']; 24 | remind = map['remind']; 25 | } 26 | 27 | toJson() { 28 | return { 29 | // 'id': id, 30 | 'title': title, 31 | 'date': date, 32 | 'starttime': starttime, 33 | 'endtime': endtime, 34 | 'status': status, 35 | 'remind': remind, 36 | }; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /lib/model/event_data_source.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:syncfusion_flutter_calendar/calendar.dart'; 3 | import 'package:todo_tasks_with_alert/model/event.dart'; 4 | 5 | class EventDataSource extends CalendarDataSource { 6 | EventDataSource(List appointments) { 7 | this.appointments = appointments; 8 | } 9 | 10 | Event getEvent(int index) => appointments![index] as Event; 11 | 12 | @override 13 | DateTime getStartTime(int index) { 14 | return DateTime.parse( 15 | getEvent(index).date.toString() + " " + getEvent(index).starttime); 16 | } 17 | 18 | @override 19 | DateTime getEndTime(int index) { 20 | return DateTime.parse( 21 | getEvent(index).date.toString() + " " + getEvent(index).endtime); 22 | } 23 | 24 | @override 25 | String getSubject(int index) { 26 | return getEvent(index).title; 27 | } 28 | 29 | // @override 30 | // Color getColor(int index) { 31 | // return Colors.accents; 32 | // } 33 | 34 | // @override 35 | // bool isAllDay(int index) { 36 | // return _getMeetingData(index).isAllDay; 37 | // } 38 | } 39 | -------------------------------------------------------------------------------- /lib/modules/add_event_screen/add_event_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:intl/intl.dart'; 4 | import 'package:todo_tasks_with_alert/layout/todo_layoutcontroller.dart'; 5 | import 'package:todo_tasks_with_alert/model/event.dart'; 6 | import 'package:todo_tasks_with_alert/shared/componets/componets.dart'; 7 | import 'package:todo_tasks_with_alert/shared/network/local/notification.dart'; 8 | import 'package:todo_tasks_with_alert/shared/styles/styles.dart'; 9 | import 'package:todo_tasks_with_alert/shared/styles/thems.dart'; 10 | 11 | class AddEventScreen extends StatelessWidget { 12 | GlobalKey _formkey = GlobalKey(); 13 | 14 | var titlecontroller = TextEditingController(); 15 | var datecontroller = TextEditingController(); 16 | var starttimecontroller = TextEditingController(); 17 | var endtimecontroller = TextEditingController(); 18 | var remindcontroller = TextEditingController(); 19 | List remindList = [5, 10, 15, 20]; 20 | 21 | TodoLayoutController todocontroller = Get.find(); 22 | 23 | @override 24 | Widget build(BuildContext context) { 25 | return Scaffold( 26 | appBar: _appbar(), 27 | body: _buildFromAddTask(context), 28 | ); 29 | } 30 | 31 | _buildFromAddTask(BuildContext context) => SingleChildScrollView( 32 | reverse: true, 33 | child: Padding( 34 | padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 20), 35 | child: Column( 36 | crossAxisAlignment: CrossAxisAlignment.start, 37 | children: [ 38 | Text( 39 | 'Add Event', 40 | style: headerStyle, 41 | ), 42 | SizedBox( 43 | height: 10, 44 | ), 45 | Container( 46 | child: Form( 47 | key: _formkey, 48 | child: Column( 49 | mainAxisSize: MainAxisSize.min, 50 | children: [ 51 | defaultTextFormField( 52 | controller: titlecontroller, 53 | inputtype: TextInputType.text, 54 | ontap: () {}, 55 | onvalidate: (value) { 56 | if (value!.isEmpty) { 57 | return "title must not be empty"; 58 | } 59 | }, 60 | text: "Event Name"), 61 | SizedBox( 62 | height: 10, 63 | ), 64 | defaultTextFormField( 65 | readonly: true, 66 | controller: datecontroller, 67 | inputtype: TextInputType.datetime, 68 | prefixIcon: Icon(Icons.date_range), 69 | ontap: () { 70 | showDatePicker( 71 | context: context, 72 | initialDate: DateTime.now(), 73 | firstDate: DateTime.parse('2010-01-01'), 74 | lastDate: DateTime.parse('2030-01-01')) 75 | .then((value) { 76 | //Todo: handle date to string 77 | //print(DateFormat.yMMMd().format(value!)); 78 | var tdate = value.toString().split(' '); 79 | datecontroller.text = tdate[0]; 80 | }); 81 | }, 82 | onvalidate: (value) { 83 | if (value!.isEmpty) { 84 | return "date must not be empty"; 85 | } 86 | }, 87 | text: "date"), 88 | SizedBox( 89 | height: 10, 90 | ), 91 | Row( 92 | children: [ 93 | Expanded( 94 | child: defaultTextFormField( 95 | readonly: true, 96 | controller: starttimecontroller, 97 | inputtype: TextInputType.number, 98 | prefixIcon: Icon(Icons.watch_later_outlined), 99 | ontap: () { 100 | showTimePicker( 101 | context: context, 102 | initialTime: TimeOfDay.now()) 103 | .then((value) { 104 | // print(value!.format(context).toString()); 105 | starttimecontroller.text = 106 | value!.format(context).toString(); 107 | print(starttimecontroller.text); 108 | //! 1970-01-01 time selected:00.000 109 | // print(DateFormat("hh:mm a") 110 | // .parse(timecontroller.text.toString())); 111 | }); 112 | }, 113 | onvalidate: (value) { 114 | if (value!.isEmpty) { 115 | return "time must not be empty"; 116 | } 117 | }, 118 | text: "From"), 119 | ), 120 | SizedBox( 121 | width: 5, 122 | ), 123 | Expanded( 124 | child: defaultTextFormField( 125 | readonly: true, 126 | controller: endtimecontroller, 127 | inputtype: TextInputType.number, 128 | prefixIcon: Icon(Icons.watch_later_outlined), 129 | ontap: () { 130 | showTimePicker( 131 | context: context, 132 | initialTime: TimeOfDay.now()) 133 | .then((value) { 134 | endtimecontroller.text = 135 | value!.format(context).toString(); 136 | //! 1970-01-01 time selected:00.000 137 | // print(DateFormat("hh:mm a") 138 | // .parse(timecontroller.text.toString())); 139 | }); 140 | }, 141 | onvalidate: (value) { 142 | if (value!.isEmpty) { 143 | return "time must not be empty"; 144 | } 145 | }, 146 | text: "To"), 147 | ), 148 | ], 149 | ), 150 | SizedBox( 151 | height: 10, 152 | ), 153 | //NOTE Remind 154 | Container( 155 | width: double.infinity, 156 | height: 60, 157 | child: DropdownButtonFormField( 158 | value: todocontroller.selectedRemindItem.value, 159 | decoration: InputDecoration( 160 | enabledBorder: OutlineInputBorder( 161 | borderSide: 162 | BorderSide(width: 1, color: Colors.grey), 163 | ), 164 | ), 165 | items: remindList 166 | .map((e) => DropdownMenuItem( 167 | value: e.toString(), 168 | child: Text(e.toString() + " min early"), 169 | )) 170 | .toList(), 171 | onChanged: (value) { 172 | todocontroller.onchangeremindlist(value); 173 | print(todocontroller.selectedRemindItem.value); 174 | }, 175 | ), 176 | ), 177 | // Obx( 178 | // () => defaultTextFormField( 179 | // readonly: true, 180 | // hinttext: 181 | // "${todocontroller.selectedRemindItem.value} minutes early", 182 | // controller: remindcontroller, 183 | // inputtype: TextInputType.name, 184 | // suffixIcon: DropdownButton( 185 | // underline: Container( 186 | // height: 0, 187 | // ), 188 | // icon: Icon(Icons.keyboard_arrow_down, 189 | // color: Colors.grey), 190 | // iconSize: 25, 191 | // elevation: 4, 192 | // items: remindList 193 | // .map>((int value) { 194 | // return DropdownMenuItem( 195 | // value: value.toString(), 196 | // child: Text(value.toString())); 197 | // }).toList(), 198 | // onChanged: (value) { 199 | // todocontroller.onchangeremindlist(value); 200 | // print(todocontroller.selectedRemindItem.value); 201 | // }, 202 | // //! to display number beside the arrow 203 | // // value: todocontroller.selectedRemindItem.value, 204 | // ), 205 | // ), 206 | // ), 207 | SizedBox( 208 | height: 10, 209 | ), 210 | ], 211 | ), 212 | ), 213 | ), 214 | ], 215 | ), 216 | ), 217 | ); 218 | 219 | _appbar() { 220 | return AppBar( 221 | backgroundColor: defaultLightColor, 222 | leading: IconButton( 223 | icon: Icon( 224 | Icons.close, 225 | color: Colors.white, 226 | ), 227 | onPressed: () { 228 | Get.back(); 229 | }), 230 | actions: [ 231 | ElevatedButton.icon( 232 | onPressed: () async { 233 | if (_formkey.currentState!.validate()) { 234 | //NOTE am pm to 24 hours 235 | DateTime date2start = DateFormat("hh:mm a") 236 | .parse(starttimecontroller.text.toString()); 237 | DateTime date2end = DateFormat("hh:mm a") 238 | .parse(endtimecontroller.text.toString()); 239 | String starttime = 240 | DateFormat("HH:mm").format(date2start).toString(); 241 | String endtime = DateFormat("HH:mm").format(date2end).toString(); 242 | 243 | //NOTE compare two time 244 | var format = DateFormat("HH:mm"); 245 | var start = format.parse(starttime); 246 | var end = format.parse(endtime); 247 | if (start.isBefore(end)) { 248 | await todocontroller 249 | .inserteventByModel( 250 | model: new Event( 251 | title: titlecontroller.text, 252 | date: datecontroller.text, 253 | starttime: starttime, 254 | endtime: endtime, 255 | status: "new", 256 | remind: int.parse( 257 | todocontroller.selectedRemindItem.value))) 258 | // .insertTask( 259 | // title: titlecontroller.text, 260 | // date: datecontroller.text, 261 | // time: timecontroller.text) 262 | .then((eventId) { 263 | print("eventId " + eventId.toString()); 264 | //NOTE set Notification for event 265 | NotificationApi.scheduleNotification( 266 | DateTime.parse( 267 | datecontroller.text + " " + starttime.toString()) 268 | .subtract(Duration( 269 | minutes: int.parse( 270 | todocontroller.selectedRemindItem.value))), 271 | eventId, 272 | titlecontroller.text, 273 | starttimecontroller.text); 274 | // NotificationApi.createNotification( 275 | // titlecontroller.text, 276 | // DateTime.parse( 277 | // datecontroller.text + " " + starttime.toString()) 278 | // .subtract(Duration( 279 | // minutes: int.parse( 280 | // todocontroller.selectedRemindItem.value))), 281 | // starttimecontroller.text); 282 | titlecontroller.text = ""; 283 | datecontroller.text = ""; 284 | starttimecontroller.text = ""; 285 | 286 | Get.back(); 287 | }); 288 | } else { 289 | Get.snackbar('an error occured', 290 | '"start Time" Must be less then "end time"', 291 | snackPosition: SnackPosition.BOTTOM, 292 | backgroundColor: defaultLightColor, 293 | colorText: Colors.white); 294 | } 295 | } 296 | }, 297 | icon: Icon( 298 | Icons.done, 299 | color: Colors.white, 300 | ), 301 | label: Text("Save"), 302 | ) 303 | ], 304 | ); 305 | } 306 | } 307 | -------------------------------------------------------------------------------- /lib/modules/archive_events/archive_task.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:todo_tasks_with_alert/layout/todo_layoutcontroller.dart'; 4 | import 'package:todo_tasks_with_alert/shared/componets/componets.dart'; 5 | 6 | class ArchiveEventScreen extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return GetBuilder( 10 | init: Get.find(), 11 | builder: (todoController) => eventsBuilder( 12 | tasks: todoController.archiveeventList, 13 | message: "No Archived Events ", 14 | svgimage: "assets/archived_task_svg.svg", 15 | context: context), 16 | ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/modules/clear_data/clear_data.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:todo_tasks_with_alert/layout/todo_layout.dart'; 4 | import 'package:todo_tasks_with_alert/layout/todo_layoutcontroller.dart'; 5 | import 'package:todo_tasks_with_alert/shared/componets/componets.dart'; 6 | import 'package:todo_tasks_with_alert/shared/styles/thems.dart'; 7 | 8 | class ClearData extends StatefulWidget { 9 | @override 10 | State createState() => _ClearDataState(); 11 | } 12 | 13 | class _ClearDataState extends State { 14 | var datecontroller = TextEditingController(); 15 | var todocontroller = Get.find(); 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Scaffold( 20 | appBar: AppBar( 21 | title: Text("Clear Data"), 22 | ), 23 | body: Padding( 24 | padding: const EdgeInsets.all(10.0), 25 | child: Column( 26 | children: [ 27 | Row( 28 | children: [ 29 | Icon( 30 | Icons.warning_amber, 31 | color: Colors.red, 32 | ), 33 | SizedBox( 34 | width: 10, 35 | ), 36 | Text( 37 | "delete all events befor this date", 38 | style: TextStyle(color: Colors.red), 39 | ), 40 | ], 41 | ), 42 | SizedBox( 43 | height: 15, 44 | ), 45 | defaultTextFormField( 46 | readonly: true, 47 | controller: datecontroller, 48 | inputtype: TextInputType.datetime, 49 | prefixIcon: Icon(Icons.date_range), 50 | ontap: () { 51 | showDatePicker( 52 | context: context, 53 | initialDate: DateTime.now(), 54 | firstDate: DateTime.parse('2010-01-01'), 55 | lastDate: DateTime.parse('2030-01-01')) 56 | .then((value) { 57 | //Todo: handle date to string 58 | //print(DateFormat.yMMMd().format(value!)); 59 | datecontroller.text = value.toString().split(' ').first; 60 | }); 61 | }, 62 | onvalidate: (value) { 63 | if (value!.isEmpty) { 64 | return "date must not be empty"; 65 | } 66 | }, 67 | text: "date"), 68 | SizedBox( 69 | height: 10, 70 | ), 71 | defaultButton( 72 | text: "Delete", 73 | background: Colors.red, 74 | onpress: () async { 75 | if (datecontroller.text.isEmpty || 76 | datecontroller.text.toString() == 'null') { 77 | Get.snackbar('an error occured', 'Date must be not empty', 78 | snackPosition: SnackPosition.BOTTOM, 79 | backgroundColor: defaultLightColor, 80 | colorText: Colors.white); 81 | } else { 82 | await todocontroller 83 | .deleteAllEventBefor( 84 | DateTime.parse(datecontroller.text.toString())) 85 | .then((value) { 86 | Get.back(); 87 | Get.snackbar('Events Deleted Successfully', 88 | 'All events befor ${datecontroller.text} are Deleted', 89 | snackPosition: SnackPosition.BOTTOM, 90 | backgroundColor: Colors.green.shade600, 91 | colorText: Colors.white); 92 | }); 93 | } 94 | }), 95 | ], 96 | ), 97 | ), 98 | ); 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /lib/modules/done_events/done_events.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:todo_tasks_with_alert/layout/todo_layoutcontroller.dart'; 4 | import 'package:todo_tasks_with_alert/shared/componets/componets.dart'; 5 | 6 | class DoneEventScreen extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return GetBuilder( 10 | init: Get.find(), 11 | builder: (todoController) => eventsBuilder( 12 | tasks: todoController.doneeventList, 13 | message: "No Finished Events", 14 | svgimage: "assets/done_task_svg.svg", 15 | context: context), 16 | ); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/modules/my_events/my_event_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:todo_tasks_with_alert/layout/todo_layoutcontroller.dart'; 4 | import 'package:todo_tasks_with_alert/shared/componets/componets.dart'; 5 | 6 | class MyEventScreen extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return GetBuilder( 10 | init: Get.find(), 11 | builder: (todoController) => eventsBuilder( 12 | tasks: todoController.neweventList, 13 | context: context, 14 | message: "No Events yet", 15 | svgimage: "assets/new_task_svg.svg", 16 | ), 17 | ); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /lib/modules/search_events/search_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:syncfusion_flutter_calendar/calendar.dart'; 4 | import 'package:todo_tasks_with_alert/model/event.dart'; 5 | import 'package:todo_tasks_with_alert/shared/componets/constants.dart'; 6 | import 'package:todo_tasks_with_alert/shared/network/local/TodoDbHelper.dart'; 7 | 8 | class SearchController extends GetxController { 9 | List _all_event = []; 10 | List get all_event => _all_event; 11 | var isloading = true.obs; 12 | TodoDbHelper dbHelper = TodoDbHelper.db; 13 | 14 | @override 15 | void onInit() async { 16 | super.onInit(); 17 | //getallevents().then((value) {}); 18 | } 19 | 20 | Future getallevents( 21 | {DateTime? firstVisibleDate, DateTime? lastVisibleDate}) async { 22 | String startdate; // this is the first visibile date in calendar 23 | String enddate; // this is the last visibile date in calendar 24 | 25 | if (firstVisibleDate != null && lastVisibleDate != null) { 26 | startdate = firstVisibleDate.toString().split(' ').first; 27 | enddate = lastVisibleDate.toString().split(' ').first; 28 | } else { 29 | DateTime currentDate = DateTime.now(); 30 | 31 | startdate = new DateTime(currentDate.year, currentDate.month, 1) 32 | .toString() 33 | .split(' ') 34 | .first; 35 | enddate = new DateTime(currentDate.year, currentDate.month + 1, 0) 36 | .toString() 37 | .split(' ') 38 | .first; 39 | } 40 | 41 | print('firstDay ' + startdate); 42 | print('lastDay ' + enddate); 43 | 44 | print(isloading.value); 45 | _all_event = []; 46 | isloading.value = true; 47 | await dbHelper.database.rawQuery( 48 | "select * from $eventTable where date >= ? and date<=?", 49 | ['$startdate', '$enddate']).then((value) { 50 | value.forEach((element) { 51 | all_event.add(Event.fromJson(element)); 52 | }); 53 | 54 | all_event.forEach((element) { 55 | print(element.toJson()); 56 | }); 57 | isloading.value = false; 58 | print(isloading.value); 59 | update(); 60 | }); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /lib/modules/search_events/search_events.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:syncfusion_flutter_calendar/calendar.dart'; 4 | import 'package:todo_tasks_with_alert/model/event.dart'; 5 | import 'package:todo_tasks_with_alert/model/event_data_source.dart'; 6 | import 'package:todo_tasks_with_alert/modules/search_events/search_controller.dart'; 7 | import 'package:todo_tasks_with_alert/shared/componets/componets.dart'; 8 | import 'package:todo_tasks_with_alert/shared/styles/styles.dart'; 9 | 10 | class SearchEvents extends StatelessWidget { 11 | @override 12 | Widget build(BuildContext context) { 13 | return GetBuilder( 14 | init: SearchController(), 15 | builder: (searchController) { 16 | return Scaffold( 17 | appBar: AppBar( 18 | title: Text( 19 | 'Events Calendar', 20 | style: eventheaderStyle, 21 | ), 22 | // actions: [ 23 | // _dropdown_menu_item(), 24 | // ], 25 | ), 26 | body: SfCalendar( 27 | showDatePickerButton: true, 28 | allowedViews: [ 29 | CalendarView.day, 30 | CalendarView.week, 31 | // CalendarView.workWeek, 32 | CalendarView.month, 33 | CalendarView.schedule 34 | ], 35 | dataSource: EventDataSource(searchController.all_event), 36 | view: CalendarView.month, 37 | firstDayOfWeek: 1, 38 | monthViewSettings: const MonthViewSettings( 39 | showAgenda: true, 40 | //NOTE to show events title not dot 41 | appointmentDisplayMode: 42 | MonthAppointmentDisplayMode.appointment), 43 | onTap: (CalendarTapDetails calendarTapDetails) { 44 | print(calendarTapDetails.date.toString()); 45 | }, 46 | onViewChanged: (viewChangedDetails) { 47 | // print(viewChangedDetails.visibleDates); 48 | searchController.getallevents( 49 | firstVisibleDate: viewChangedDetails.visibleDates.first, 50 | lastVisibleDate: viewChangedDetails.visibleDates.last); 51 | // print(viewChangedDetails.visibleDates.first.toString() + 52 | // " " + 53 | // viewChangedDetails.visibleDates.last.toString()); 54 | }, 55 | )); 56 | }); 57 | } 58 | 59 | // _dropdown_menu_item() { 60 | // return PopupMenuButton( 61 | // onSelected: (value) {}, 62 | // icon: const Icon(Icons.calendar_month), 63 | // itemBuilder: (context) => [ 64 | // ...list_of_menuItem.map((e) => PopupMenuItem( 65 | // textStyle: Theme.of(context).textTheme.subtitle2, 66 | // child: Text(e.toString()), 67 | // value: e, 68 | // )), 69 | // ], 70 | // ); 71 | // } 72 | } 73 | -------------------------------------------------------------------------------- /lib/shared/componets/componets.dart: -------------------------------------------------------------------------------- 1 | //NOTE ----------Build Task Item ----------------------------- 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_staggered_animations/flutter_staggered_animations.dart'; 4 | import 'package:get/get.dart'; 5 | import 'package:intl/intl.dart'; 6 | import 'package:todo_tasks_with_alert/layout/todo_layoutcontroller.dart'; 7 | import 'package:todo_tasks_with_alert/model/event.dart'; 8 | import 'package:todo_tasks_with_alert/shared/styles/styles.dart'; 9 | import 'package:todo_tasks_with_alert/shared/styles/thems.dart'; 10 | import 'package:flutter_svg/flutter_svg.dart'; 11 | 12 | Widget buildEventItem(Event task, BuildContext context) => 13 | GetBuilder( 14 | init: Get.find(), 15 | // NOTE Dismissible to 16 | builder: (todocontroller) => InkWell( 17 | onTap: () { 18 | print("On Tapped " + task.id.toString()); 19 | _showBottomSheet(context, task); 20 | }, 21 | child: Row( 22 | children: [ 23 | Expanded( 24 | child: Stack( 25 | alignment: AlignmentDirectional.topEnd, 26 | children: [ 27 | Container( 28 | decoration: BoxDecoration( 29 | borderRadius: BorderRadius.circular(10), 30 | gradient: orangeGradient), 31 | child: Padding( 32 | padding: const EdgeInsets.all(12.0), 33 | child: Column( 34 | crossAxisAlignment: CrossAxisAlignment.start, 35 | mainAxisSize: MainAxisSize.min, 36 | children: [ 37 | Row( 38 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 39 | children: [ 40 | Expanded( 41 | child: Text( 42 | "${task.title}", 43 | style: titleofTaskitem, 44 | ), 45 | ), 46 | ], 47 | ), 48 | Divider( 49 | color: Colors.grey.shade400, 50 | ), 51 | SizedBox( 52 | height: 20, 53 | ), 54 | Row( 55 | children: [ 56 | Icon( 57 | Icons.date_range_rounded, 58 | color: Colors.white, 59 | ), 60 | SizedBox(width: 10), 61 | Text( 62 | "${DateFormat.yMMMd().format(DateTime.parse(task.date.toString().split(' ').first))}", 63 | style: TextStyle( 64 | fontSize: 15, color: Colors.white), 65 | ), 66 | ], 67 | ), 68 | SizedBox( 69 | height: 7, 70 | ), 71 | Row( 72 | children: [ 73 | Icon( 74 | Icons.watch_later_outlined, 75 | color: Colors.white, 76 | ), 77 | SizedBox(width: 10), 78 | //NOTE 24 hours to am pm 79 | Text( 80 | "${DateFormat("h:mm a").format(DateTime.parse("2022-10-10 " + task.starttime.toString())).toString()} - ${DateFormat("h:mm a").format(DateTime.parse("2022-10-10 " + task.endtime.toString())).toString()}", 81 | style: TextStyle( 82 | fontSize: 15, color: Colors.white), 83 | ), 84 | ], 85 | ), 86 | ], 87 | ), 88 | ), 89 | ), 90 | Padding( 91 | padding: const EdgeInsets.all(8.0), 92 | child: Icon(Icons.more_horiz, color: Colors.white), 93 | ), 94 | ], 95 | ), 96 | ), 97 | ], 98 | ), 99 | ), 100 | ); 101 | 102 | //NOTE ----------Build Task Builder ----------------------------- 103 | // circular indicator then show list of tasks or archived taks or finished task 104 | Widget eventsBuilder({ 105 | required List tasks, 106 | required String message, 107 | required BuildContext context, 108 | required String svgimage, 109 | }) => 110 | tasks.length == 0 111 | ? Column( 112 | mainAxisAlignment: MainAxisAlignment.center, 113 | children: [ 114 | Container( 115 | height: MediaQuery.of(context).size.height * 0.24, 116 | child: SvgPicture.asset(svgimage)), 117 | SizedBox( 118 | height: 10, 119 | ), 120 | Text( 121 | "$message", 122 | style: TextStyle(fontSize: 23, color: Colors.grey), 123 | ), 124 | ], 125 | ) 126 | : ListView.separated( 127 | itemBuilder: (context, index) { 128 | return AnimationConfiguration.staggeredList( 129 | position: index, 130 | duration: const Duration(milliseconds: 1500), 131 | child: SlideAnimation( 132 | horizontalOffset: 50.0, 133 | child: FadeInAnimation( 134 | child: buildEventItem(tasks[index], context), 135 | ), 136 | ), 137 | ); 138 | }, 139 | separatorBuilder: (context, index) => SizedBox( 140 | height: 10, 141 | ), 142 | itemCount: tasks.length); 143 | 144 | _showBottomSheet(BuildContext context, Event event) { 145 | Get.bottomSheet( 146 | Container( 147 | padding: EdgeInsets.all(25), 148 | height: event.status == "new" 149 | ? MediaQuery.of(context).size.height * 0.32 150 | : event.status == "done" 151 | ? MediaQuery.of(context).size.height * 0.24 152 | // if archived 153 | : MediaQuery.of(context).size.height * 0.15, 154 | color: Get.isDarkMode ? darkmodeColor : Colors.white, 155 | child: _bottomSheetbuttons(event), 156 | ), 157 | ); 158 | } 159 | 160 | _bottomSheetbuttons(Event event) { 161 | TodoLayoutController todocontroller = Get.find(); 162 | return event.status == "new" 163 | ? Column( 164 | mainAxisAlignment: MainAxisAlignment.spaceAround, 165 | children: [ 166 | defaultButton( 167 | text: 'Done', 168 | background: Colors.blue.shade400, 169 | radius: 15, 170 | onpress: () { 171 | todocontroller.updatestatusevent( 172 | eventId: event.id.toString(), status: "done"); 173 | Get.back(); 174 | }), 175 | defaultButton( 176 | text: 'Archive', 177 | background: Colors.grey.shade400, 178 | radius: 15, 179 | onpress: () { 180 | todocontroller.updatestatusevent( 181 | eventId: event.id.toString(), status: "archive"); 182 | Get.back(); 183 | }), 184 | defaultButton( 185 | text: 'Delete', 186 | background: Colors.red.shade400, 187 | radius: 15, 188 | onpress: () { 189 | todocontroller.deleteEvent(eventId: event.id); 190 | Get.back(); 191 | }), 192 | ], 193 | ) 194 | : event.status == "done" 195 | ? Column( 196 | mainAxisAlignment: MainAxisAlignment.spaceAround, 197 | children: [ 198 | defaultButton( 199 | text: 'Archive', 200 | background: Colors.grey.shade400, 201 | radius: 15, 202 | onpress: () { 203 | todocontroller.updatestatusevent( 204 | eventId: event.id.toString(), status: "archive"); 205 | Get.back(); 206 | }), 207 | defaultButton( 208 | text: 'Delete', 209 | background: Colors.red.shade400, 210 | radius: 15, 211 | onpress: () { 212 | todocontroller.deleteEvent(eventId: event.id); 213 | Get.back(); 214 | }), 215 | ], 216 | ) 217 | : Column( 218 | mainAxisAlignment: MainAxisAlignment.spaceAround, 219 | children: [ 220 | defaultButton( 221 | text: 'Delete', 222 | background: Colors.red.shade400, 223 | radius: 15, 224 | onpress: () { 225 | todocontroller.deleteEvent(eventId: event.id); 226 | Get.back(); 227 | }), 228 | ], 229 | ); 230 | } 231 | 232 | //NOTE ----------My Divider ----------------------------- 233 | Widget myDivider() => Container( 234 | color: Colors.grey, 235 | width: double.infinity, 236 | height: 1, 237 | ); 238 | 239 | Widget defaultTextFormField( 240 | {required TextEditingController controller, 241 | required TextInputType inputtype, 242 | Function(String?)? onfieldsubmit, 243 | VoidCallback? ontap, 244 | String? Function(String?)? onvalidate, 245 | Function(String?)? onchange, 246 | String? text, 247 | Widget? prefixIcon, 248 | Widget? suffixIcon, 249 | bool obscure = false, 250 | InputBorder? border, 251 | String? hinttext, 252 | int? maxligne, 253 | bool readonly = false}) => 254 | TextFormField( 255 | controller: controller, 256 | keyboardType: inputtype, 257 | onFieldSubmitted: onfieldsubmit, 258 | onTap: ontap, 259 | maxLines: maxligne ?? 1, 260 | readOnly: readonly, 261 | obscureText: obscure, 262 | onChanged: onchange, 263 | style: TextStyle( 264 | fontWeight: FontWeight.normal, 265 | ), 266 | decoration: InputDecoration( 267 | labelText: text, 268 | hintText: hinttext ?? null, 269 | prefixIcon: prefixIcon, 270 | suffixIcon: suffixIcon, 271 | border: border ?? OutlineInputBorder(), 272 | ), 273 | validator: onvalidate); 274 | 275 | //NOTE ----------default Button ----------------------------- 276 | Widget defaultButton( 277 | {double width = double.infinity, 278 | Color background = Colors.blue, 279 | VoidCallback? onpress, 280 | required String text, 281 | double radius = 0, 282 | double height = 40, 283 | LinearGradient? gradient, 284 | bool? isUppercase}) => 285 | Container( 286 | width: width, 287 | child: MaterialButton( 288 | height: height, 289 | onPressed: onpress, 290 | child: Text( 291 | (isUppercase != null && isUppercase) ? text.toUpperCase() : text, 292 | style: TextStyle( 293 | color: Colors.white, 294 | ), 295 | ), 296 | ), 297 | decoration: BoxDecoration( 298 | borderRadius: BorderRadius.circular(radius), 299 | color: background, 300 | gradient: gradient), 301 | ); 302 | -------------------------------------------------------------------------------- /lib/shared/componets/constants.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | final String eventTable = "events"; 4 | String? devicetoken = ""; 5 | String API_FCM_KEY = 6 | "AAAAzOQUmXs:APA91bH_-4wN-NQ6vrootxn4u6ZlySVuU3N0qNZRJK6ejBR3Sv9qiYJuTmRDkXlRjvp6kGJ2jXaYEJKEJFN-js2KxBmlog2JFfg3Ae8xrCjjrrLzSCmC4dzErzgCr-Y9JuP1VnkyBkko"; 7 | 8 | //NOTE ----------Get Date Formated For Task ----------------------------- 9 | String getDateFormated(String date) { 10 | List listdate = date.split("T"); 11 | List list1date = listdate[1].split(":"); 12 | 13 | return list1date[0] + ":" + list1date[1] + " " + listdate[0]; 14 | } 15 | 16 | 17 | 18 | // NOTE: style 19 | /// NAME SIZE WEIGHT SPACING 20 | /// headline1 96.0 light -1.5 21 | /// headline2 60.0 light -0.5 22 | /// headline3 48.0 regular 0.0 23 | /// headline4 34.0 regular 0.25 24 | /// headline5 24.0 regular 0.0 25 | /// headline6 20.0 medium 0.15 26 | /// subtitle1 16.0 regular 0.15 27 | /// subtitle2 14.0 medium 0.1 28 | /// body1 16.0 regular 0.5 (bodyText1) 29 | /// body2 14.0 regular 0.25 (bodyText2) 30 | /// button 14.0 medium 1.25 31 | /// caption 12.0 regular 0.4 32 | /// overline 10.0 regular 1.5 -------------------------------------------------------------------------------- /lib/shared/network/local/TodoDbHelper.dart: -------------------------------------------------------------------------------- 1 | import 'package:sqflite/sqflite.dart'; 2 | 3 | class TodoDbHelper { 4 | TodoDbHelper._(); 5 | static final TodoDbHelper db = TodoDbHelper._(); 6 | late Database database; 7 | 8 | Future createDatabase() async { 9 | database = await openDatabase( 10 | 'todo.db', 11 | version: 1, 12 | onCreate: (db, version) { 13 | print("database created"); 14 | db 15 | .execute( 16 | "Create Table events(id INTEGER PRIMARY KEY AUTOINCREMENT,title TEXT,date TEXT , starttime TEXT , endtime TEXT , status TEXT , remind INTEGER)") 17 | .then((value) => print('table created')) 18 | .catchError((onError) => print(onError.toString())); 19 | }, 20 | onOpen: (database) { 21 | print('database opened'); 22 | }, 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /lib/shared/network/local/cashhelper.dart: -------------------------------------------------------------------------------- 1 | import 'package:shared_preferences/shared_preferences.dart'; 2 | 3 | class CashHelper { 4 | static SharedPreferences? sharedPreferences; 5 | 6 | static init() async { 7 | sharedPreferences = await SharedPreferences.getInstance(); 8 | } 9 | 10 | static Future setTheme({required String key, required dynamic value}) async { 11 | await sharedPreferences!.setBool(key, value); 12 | } 13 | 14 | static bool? getThem({required String key}) { 15 | return sharedPreferences!.getBool(key); 16 | } 17 | 18 | static Future saveData( 19 | {required String key, required dynamic value}) async { 20 | if (value is String) return await sharedPreferences!.setString(key, value); 21 | if (value is int) return await sharedPreferences!.setInt(key, value); 22 | if (value is bool) return await sharedPreferences!.setBool(key, value); 23 | 24 | return await sharedPreferences!.setDouble(key, value); 25 | } 26 | 27 | static dynamic getData({required String key}) { 28 | return sharedPreferences!.get(key); 29 | } 30 | 31 | static Future removeDatabykey({required String key}) async { 32 | return await sharedPreferences!.remove(key); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /lib/shared/network/local/notification.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_local_notifications/flutter_local_notifications.dart'; 3 | import 'package:timezone/timezone.dart' as tz; 4 | import 'package:timezone/data/latest.dart' as tz; 5 | import 'package:todo_tasks_with_alert/shared/componets/constants.dart'; 6 | import 'package:todo_tasks_with_alert/shared/network/remote/diohelper.dart'; 7 | 8 | class NotificationApi { 9 | static var notifications; 10 | static String? selectedNotificationPayload; 11 | 12 | static late AndroidInitializationSettings initializationSettingsAndroid; 13 | static late InitializationSettings initializationSettings; 14 | 15 | //NOTE initialize notification 16 | static Future init() async { 17 | notifications = FlutterLocalNotificationsPlugin(); 18 | initializationSettingsAndroid = 19 | AndroidInitializationSettings("@mipmap/launcher_icon"); 20 | initializationSettings = InitializationSettings( 21 | android: NotificationApi.initializationSettingsAndroid, 22 | ); 23 | 24 | tz.initializeTimeZones(); 25 | } 26 | 27 | static Future _notificationDetails(channelId) async { 28 | return NotificationDetails( 29 | android: AndroidNotificationDetails( 30 | //NOTE each task has channel so channel id is the task id 31 | '$channelId', 32 | '$channelId Notifications', 33 | channelDescription: '$channelId Description', 34 | importance: Importance.max, 35 | priority: Priority.high, 36 | ), 37 | ); 38 | } 39 | 40 | static Future shownotification( 41 | {int id = 0, String? title, String? body, String? payload}) async { 42 | notifications.show( 43 | id, title, body, await _notificationDetails("channel Id"), 44 | payload: payload); 45 | } 46 | 47 | static Future scheduleNotification( 48 | DateTime scheduleDate, taskChannelId, String title, String time) async { 49 | notifications = FlutterLocalNotificationsPlugin(); 50 | await notifications.initialize(initializationSettings, 51 | onSelectNotification: (String? payload) async { 52 | if (payload != null) { 53 | // debugPrint('notification payload: $payload'); 54 | // selectedNotificationPayload = taskChannelId.toString().trim(); 55 | // print('payload :' + selectedNotificationPayload.toString()); 56 | // //NOTE when click on notification i cancel it cz it remind every day same time 57 | // // to delete scheduled notification for this event 58 | // await NotificationApi.notifications 59 | // .cancel(int.parse(selectedNotificationPayload.toString())); 60 | } 61 | // 62 | }); 63 | await notifications.zonedSchedule( 64 | taskChannelId, 65 | title, 66 | "You have a Event At " + time, 67 | await tz.TZDateTime.from(scheduleDate, tz.local), 68 | await _notificationDetails(taskChannelId), 69 | androidAllowWhileIdle: true, 70 | uiLocalNotificationDateInterpretation: 71 | UILocalNotificationDateInterpretation.absoluteTime, 72 | matchDateTimeComponents: DateTimeComponents.time); 73 | } 74 | 75 | // // NOTE push notification when a friend like my post a new post 76 | // static void createNotification( 77 | // String title, DateTime scheduleDate, String time) { 78 | // DioHelper.postData(url: 'https://fcm.googleapis.com/fcm/send', data: { 79 | // "to": "$devicetoken", 80 | // "notification": { 81 | // "body": "see details", 82 | // "title": " Like Your post", 83 | // "sound": "default" 84 | // }, 85 | // "android": { 86 | // "priortiy": "HIGH", 87 | // "notification": { 88 | // "notification_priority": "PRIORITY_MAX", 89 | // "sound": "default", 90 | // "default_vibrate_timings": true, 91 | // "default_light_settings": true 92 | // } 93 | // }, 94 | // "data": { 95 | // "click_action": "FLUTTER_NOTIFICATION_CLICK", 96 | // "id": "87", 97 | // "type": "order" 98 | // } 99 | // }).then((value) { 100 | // print("notification pushed"); 101 | // }).catchError((error) { 102 | // print(error.toString()); 103 | // }); 104 | // } 105 | } 106 | -------------------------------------------------------------------------------- /lib/shared/network/remote/diohelper.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:dio/adapter.dart'; 4 | import 'package:dio/dio.dart'; 5 | import 'package:todo_tasks_with_alert/shared/componets/constants.dart'; 6 | 7 | class DioHelper { 8 | static Dio? dio; 9 | 10 | static Future init() async { 11 | dio = Dio(BaseOptions( 12 | baseUrl: ' https://fcm.googleapis.com/fcm/send', 13 | receiveDataWhenStatusError: true)); 14 | 15 | // erooooorrrr befor added this 16 | //DioError [DioErrorType.other]: HandshakeException: Handshake error in client (OS Error: I/flutter ( 9085): 17 | // CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:359)) 18 | 19 | (dio!.httpClientAdapter as DefaultHttpClientAdapter).onHttpClientCreate = 20 | (HttpClient client) { 21 | client.badCertificateCallback = 22 | (X509Certificate cert, String host, int port) => true; 23 | return client; 24 | }; 25 | } 26 | 27 | static Future getData( 28 | {required String url, required Map query}) async { 29 | return await dio!.get(url, queryParameters: query); 30 | } 31 | 32 | static Future postData({ 33 | required String url, 34 | Map? query, 35 | required Map data, 36 | }) async { 37 | dio!.options.headers = { 38 | 'Authorization': 'key=$API_FCM_KEY', 39 | 'Content-Type': 'application/json', 40 | }; 41 | 42 | return dio!.post( 43 | url, 44 | queryParameters: query, 45 | data: data, 46 | ); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /lib/shared/styles/styles.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | import 'package:todo_tasks_with_alert/shared/styles/thems.dart'; 5 | 6 | TextStyle get subHeaderStyle { 7 | return TextStyle( 8 | color: Get.isDarkMode ? Colors.grey.shade400 : Colors.grey, 9 | fontWeight: FontWeight.bold, 10 | fontSize: 25, 11 | ); 12 | } 13 | 14 | TextStyle get headerStyle { 15 | return TextStyle( 16 | fontWeight: FontWeight.bold, 17 | fontSize: 24, 18 | color: Get.isDarkMode ? Colors.white : Colors.black); 19 | } 20 | 21 | TextStyle get eventheaderStyle { 22 | return TextStyle( 23 | fontWeight: FontWeight.bold, 24 | fontSize: 24, 25 | color: Get.isDarkMode ? Colors.white : defaultLightColor); 26 | } 27 | 28 | TextStyle get titleofTaskitem { 29 | return TextStyle( 30 | fontWeight: FontWeight.bold, fontSize: 24, color: Colors.white); 31 | } 32 | 33 | LinearGradient get orangeGradient { 34 | return LinearGradient( 35 | begin: Alignment.topCenter, 36 | end: Alignment.bottomCenter, 37 | colors: [ 38 | Colors.deepOrange, 39 | Colors.deepOrange.shade400, 40 | Colors.deepOrange.shade300, 41 | ], 42 | ); 43 | } 44 | -------------------------------------------------------------------------------- /lib/shared/styles/thems.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart'; 3 | import 'package:hexcolor/hexcolor.dart'; 4 | 5 | const defaultLightColor = Colors.deepOrange; 6 | const defaultDarkColor = Colors.white; 7 | const defaultWidgetColor = Colors.deepOrange; 8 | const darkmodeColor = Color(0xFF121212); 9 | 10 | class Themes { 11 | static ThemeData darkThem = ThemeData( 12 | brightness: Brightness.dark, 13 | scaffoldBackgroundColor: darkmodeColor, 14 | primaryColor: defaultDarkColor, 15 | primarySwatch: defaultLightColor, 16 | appBarTheme: AppBarTheme( 17 | iconTheme: IconThemeData(color: Colors.white), 18 | backgroundColor: darkmodeColor, 19 | elevation: 0, 20 | actionsIconTheme: IconThemeData(color: Colors.white), 21 | backwardsCompatibility: false, 22 | titleTextStyle: TextStyle( 23 | color: Colors.white, fontWeight: FontWeight.bold, fontSize: 25), 24 | systemOverlayStyle: SystemUiOverlayStyle( 25 | statusBarColor: darkmodeColor, 26 | statusBarIconBrightness: Brightness.light, 27 | )), 28 | floatingActionButtonTheme: 29 | FloatingActionButtonThemeData(backgroundColor: defaultDarkColor), 30 | bottomNavigationBarTheme: BottomNavigationBarThemeData( 31 | backgroundColor: darkmodeColor.withOpacity(0.8), 32 | selectedItemColor: defaultDarkColor, 33 | unselectedItemColor: Colors.grey.withOpacity(0.6)), 34 | 35 | //NOTE : set default bodytext1 36 | textTheme: TextTheme( 37 | bodyText1: TextStyle( 38 | color: Colors.white, fontSize: 18, fontWeight: FontWeight.bold), 39 | subtitle1: TextStyle(color: Colors.white, fontWeight: FontWeight.bold), 40 | bodyText2: TextStyle( 41 | color: Colors.white, 42 | ), 43 | headline5: 44 | TextStyle(color: defaultDarkColor, fontWeight: FontWeight.bold), 45 | ), 46 | ); 47 | 48 | static ThemeData lightTheme = ThemeData( 49 | brightness: Brightness.light, 50 | primaryColor: defaultLightColor, 51 | primarySwatch: defaultLightColor, 52 | appBarTheme: AppBarTheme( 53 | iconTheme: IconThemeData(color: Colors.black), 54 | backgroundColor: Colors.white, 55 | elevation: 0, 56 | actionsIconTheme: IconThemeData(color: Colors.black), 57 | backwardsCompatibility: false, 58 | titleTextStyle: TextStyle( 59 | color: Colors.black, fontWeight: FontWeight.bold, fontSize: 25), 60 | systemOverlayStyle: SystemUiOverlayStyle( 61 | statusBarColor: Colors.white, 62 | statusBarIconBrightness: Brightness.dark, 63 | )), 64 | bottomNavigationBarTheme: BottomNavigationBarThemeData(elevation: 10), 65 | floatingActionButtonTheme: 66 | FloatingActionButtonThemeData(backgroundColor: defaultLightColor), 67 | 68 | //NOTE : set default bodytext1 69 | textTheme: TextTheme( 70 | bodyText1: TextStyle( 71 | color: Colors.black, fontSize: 18, fontWeight: FontWeight.bold), 72 | bodyText2: TextStyle( 73 | color: Colors.black, 74 | ), 75 | subtitle1: TextStyle(color: Colors.black, fontWeight: FontWeight.bold), 76 | headline5: 77 | TextStyle(color: defaultLightColor, fontWeight: FontWeight.bold)), 78 | ); 79 | } 80 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | sha256: "0c8368c9b3f0abbc193b9d6133649a614204b528982bebc7026372d61677ce3a" 9 | url: "https://pub.dev" 10 | source: hosted 11 | version: "3.3.7" 12 | args: 13 | dependency: transitive 14 | description: 15 | name: args 16 | sha256: c372bb384f273f0c2a8aaaa226dad84dc27c8519a691b888725dec59518ad53a 17 | url: "https://pub.dev" 18 | source: hosted 19 | version: "2.4.1" 20 | async: 21 | dependency: transitive 22 | description: 23 | name: async 24 | sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0 25 | url: "https://pub.dev" 26 | source: hosted 27 | version: "2.10.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: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c 41 | url: "https://pub.dev" 42 | source: hosted 43 | version: "1.2.1" 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: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0 57 | url: "https://pub.dev" 58 | source: hosted 59 | version: "1.17.0" 60 | convert: 61 | dependency: transitive 62 | description: 63 | name: convert 64 | sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" 65 | url: "https://pub.dev" 66 | source: hosted 67 | version: "3.1.1" 68 | crypto: 69 | dependency: transitive 70 | description: 71 | name: crypto 72 | sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab 73 | url: "https://pub.dev" 74 | source: hosted 75 | version: "3.0.3" 76 | cupertino_icons: 77 | dependency: "direct main" 78 | description: 79 | name: cupertino_icons 80 | sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be 81 | url: "https://pub.dev" 82 | source: hosted 83 | version: "1.0.5" 84 | date_picker_timeline: 85 | dependency: "direct main" 86 | description: 87 | name: date_picker_timeline 88 | sha256: d92956ddd6eb3070f5637b1514201342e739b6ed1ad830c365d64f9349f4f682 89 | url: "https://pub.dev" 90 | source: hosted 91 | version: "1.2.3" 92 | dbus: 93 | dependency: transitive 94 | description: 95 | name: dbus 96 | sha256: "6f07cba3f7b3448d42d015bfd3d53fe12e5b36da2423f23838efc1d5fb31a263" 97 | url: "https://pub.dev" 98 | source: hosted 99 | version: "0.7.8" 100 | dio: 101 | dependency: "direct main" 102 | description: 103 | name: dio 104 | sha256: "7d328c4d898a61efc3cd93655a0955858e29a0aa647f0f9e02d59b3bb275e2e8" 105 | url: "https://pub.dev" 106 | source: hosted 107 | version: "4.0.6" 108 | fake_async: 109 | dependency: transitive 110 | description: 111 | name: fake_async 112 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" 113 | url: "https://pub.dev" 114 | source: hosted 115 | version: "1.3.1" 116 | ffi: 117 | dependency: transitive 118 | description: 119 | name: ffi 120 | sha256: ed5337a5660c506388a9f012be0288fb38b49020ce2b45fe1f8b8323fe429f99 121 | url: "https://pub.dev" 122 | source: hosted 123 | version: "2.0.2" 124 | file: 125 | dependency: transitive 126 | description: 127 | name: file 128 | sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" 129 | url: "https://pub.dev" 130 | source: hosted 131 | version: "6.1.4" 132 | firebase_core: 133 | dependency: "direct main" 134 | description: 135 | name: firebase_core 136 | sha256: "4f1d7c13a909e82ff026679c9b8493cdeb35a9c76bc46c42bf9e2240c9e57e80" 137 | url: "https://pub.dev" 138 | source: hosted 139 | version: "1.24.0" 140 | firebase_core_platform_interface: 141 | dependency: transitive 142 | description: 143 | name: firebase_core_platform_interface 144 | sha256: b63e3be6c96ef5c33bdec1aab23c91eb00696f6452f0519401d640938c94cba2 145 | url: "https://pub.dev" 146 | source: hosted 147 | version: "4.8.0" 148 | firebase_core_web: 149 | dependency: transitive 150 | description: 151 | name: firebase_core_web 152 | sha256: "839f1b48032a61962792cea1225fae030d4f27163867f181d6d2072dd40acbee" 153 | url: "https://pub.dev" 154 | source: hosted 155 | version: "1.7.3" 156 | firebase_messaging: 157 | dependency: "direct main" 158 | description: 159 | name: firebase_messaging 160 | sha256: "446a59243da7eb27924f3a5a594185564a4483c33fe922b13f593a92391760a0" 161 | url: "https://pub.dev" 162 | source: hosted 163 | version: "11.4.4" 164 | firebase_messaging_platform_interface: 165 | dependency: transitive 166 | description: 167 | name: firebase_messaging_platform_interface 168 | sha256: "3e85a7578b47e08a39e318832dbb795d70c95733bc925b9596b5cc9656eaa127" 169 | url: "https://pub.dev" 170 | source: hosted 171 | version: "3.5.4" 172 | firebase_messaging_web: 173 | dependency: transitive 174 | description: 175 | name: firebase_messaging_web 176 | sha256: "918d17ad2df94284b71f843e420f8f3257b12c67ae2b33c2931a88d0b7a182fd" 177 | url: "https://pub.dev" 178 | source: hosted 179 | version: "2.4.4" 180 | flutter: 181 | dependency: "direct main" 182 | description: flutter 183 | source: sdk 184 | version: "0.0.0" 185 | flutter_launcher_icons: 186 | dependency: "direct dev" 187 | description: 188 | name: flutter_launcher_icons 189 | sha256: "559c600f056e7c704bd843723c21e01b5fba47e8824bd02422165bcc02a5de1d" 190 | url: "https://pub.dev" 191 | source: hosted 192 | version: "0.9.3" 193 | flutter_local_notifications: 194 | dependency: "direct main" 195 | description: 196 | name: flutter_local_notifications 197 | sha256: "57d0012730780fe137260dd180e072c18a73fbeeb924cdc029c18aaa0f338d64" 198 | url: "https://pub.dev" 199 | source: hosted 200 | version: "9.9.1" 201 | flutter_local_notifications_linux: 202 | dependency: transitive 203 | description: 204 | name: flutter_local_notifications_linux 205 | sha256: b472bfc173791b59ede323661eae20f7fff0b6908fea33dd720a6ef5d576bae8 206 | url: "https://pub.dev" 207 | source: hosted 208 | version: "0.5.1" 209 | flutter_local_notifications_platform_interface: 210 | dependency: transitive 211 | description: 212 | name: flutter_local_notifications_platform_interface 213 | sha256: "21bceee103a66a53b30ea9daf677f990e5b9e89b62f222e60dd241cd08d63d3a" 214 | url: "https://pub.dev" 215 | source: hosted 216 | version: "5.0.0" 217 | flutter_staggered_animations: 218 | dependency: "direct main" 219 | description: 220 | name: flutter_staggered_animations 221 | sha256: "81d3c816c9bb0dca9e8a5d5454610e21ffb068aedb2bde49d2f8d04f75538351" 222 | url: "https://pub.dev" 223 | source: hosted 224 | version: "1.1.1" 225 | flutter_svg: 226 | dependency: "direct main" 227 | description: 228 | name: flutter_svg 229 | sha256: "6ff9fa12892ae074092de2fa6a9938fb21dbabfdaa2ff57dc697ff912fc8d4b2" 230 | url: "https://pub.dev" 231 | source: hosted 232 | version: "1.1.6" 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 | get: 244 | dependency: "direct main" 245 | description: 246 | name: get 247 | sha256: "2ba20a47c8f1f233bed775ba2dd0d3ac97b4cf32fc17731b3dfc672b06b0e92a" 248 | url: "https://pub.dev" 249 | source: hosted 250 | version: "4.6.5" 251 | hexcolor: 252 | dependency: "direct main" 253 | description: 254 | name: hexcolor 255 | sha256: e572c3346f4b26422a281dc4c10f83022131f56f7364837671b50f53c7adc5e7 256 | url: "https://pub.dev" 257 | source: hosted 258 | version: "2.0.7" 259 | http_parser: 260 | dependency: transitive 261 | description: 262 | name: http_parser 263 | sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" 264 | url: "https://pub.dev" 265 | source: hosted 266 | version: "4.0.2" 267 | image: 268 | dependency: transitive 269 | description: 270 | name: image 271 | sha256: "8e9d133755c3e84c73288363e6343157c383a0c6c56fc51afcc5d4d7180306d6" 272 | url: "https://pub.dev" 273 | source: hosted 274 | version: "3.3.0" 275 | intl: 276 | dependency: "direct main" 277 | description: 278 | name: intl 279 | sha256: "910f85bce16fb5c6f614e117efa303e85a1731bb0081edf3604a2ae6e9a3cc91" 280 | url: "https://pub.dev" 281 | source: hosted 282 | version: "0.17.0" 283 | js: 284 | dependency: transitive 285 | description: 286 | name: js 287 | sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7" 288 | url: "https://pub.dev" 289 | source: hosted 290 | version: "0.6.5" 291 | matcher: 292 | dependency: transitive 293 | description: 294 | name: matcher 295 | sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72" 296 | url: "https://pub.dev" 297 | source: hosted 298 | version: "0.12.13" 299 | material_color_utilities: 300 | dependency: transitive 301 | description: 302 | name: material_color_utilities 303 | sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 304 | url: "https://pub.dev" 305 | source: hosted 306 | version: "0.2.0" 307 | meta: 308 | dependency: transitive 309 | description: 310 | name: meta 311 | sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42" 312 | url: "https://pub.dev" 313 | source: hosted 314 | version: "1.8.0" 315 | path: 316 | dependency: transitive 317 | description: 318 | name: path 319 | sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b 320 | url: "https://pub.dev" 321 | source: hosted 322 | version: "1.8.2" 323 | path_drawing: 324 | dependency: transitive 325 | description: 326 | name: path_drawing 327 | sha256: bbb1934c0cbb03091af082a6389ca2080345291ef07a5fa6d6e078ba8682f977 328 | url: "https://pub.dev" 329 | source: hosted 330 | version: "1.0.1" 331 | path_parsing: 332 | dependency: transitive 333 | description: 334 | name: path_parsing 335 | sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf 336 | url: "https://pub.dev" 337 | source: hosted 338 | version: "1.0.1" 339 | path_provider_linux: 340 | dependency: transitive 341 | description: 342 | name: path_provider_linux 343 | sha256: ffbb8cc9ed2c9ec0e4b7a541e56fd79b138e8f47d2fb86815f15358a349b3b57 344 | url: "https://pub.dev" 345 | source: hosted 346 | version: "2.1.11" 347 | path_provider_platform_interface: 348 | dependency: transitive 349 | description: 350 | name: path_provider_platform_interface 351 | sha256: "57585299a729335f1298b43245842678cb9f43a6310351b18fb577d6e33165ec" 352 | url: "https://pub.dev" 353 | source: hosted 354 | version: "2.0.6" 355 | path_provider_windows: 356 | dependency: transitive 357 | description: 358 | name: path_provider_windows 359 | sha256: d3f80b32e83ec208ac95253e0cd4d298e104fbc63cb29c5c69edaed43b0c69d6 360 | url: "https://pub.dev" 361 | source: hosted 362 | version: "2.1.6" 363 | petitparser: 364 | dependency: transitive 365 | description: 366 | name: petitparser 367 | sha256: "49392a45ced973e8d94a85fdb21293fbb40ba805fc49f2965101ae748a3683b4" 368 | url: "https://pub.dev" 369 | source: hosted 370 | version: "5.1.0" 371 | platform: 372 | dependency: transitive 373 | description: 374 | name: platform 375 | sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76" 376 | url: "https://pub.dev" 377 | source: hosted 378 | version: "3.1.0" 379 | plugin_platform_interface: 380 | dependency: transitive 381 | description: 382 | name: plugin_platform_interface 383 | sha256: "6a2128648c854906c53fa8e33986fc0247a1116122f9534dd20e3ab9e16a32bc" 384 | url: "https://pub.dev" 385 | source: hosted 386 | version: "2.1.4" 387 | pointycastle: 388 | dependency: transitive 389 | description: 390 | name: pointycastle 391 | sha256: "7c1e5f0d23c9016c5bbd8b1473d0d3fb3fc851b876046039509e18e0c7485f2c" 392 | url: "https://pub.dev" 393 | source: hosted 394 | version: "3.7.3" 395 | process: 396 | dependency: transitive 397 | description: 398 | name: process 399 | sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09" 400 | url: "https://pub.dev" 401 | source: hosted 402 | version: "4.2.4" 403 | shared_preferences: 404 | dependency: "direct main" 405 | description: 406 | name: shared_preferences 407 | sha256: "16d3fb6b3692ad244a695c0183fca18cf81fd4b821664394a781de42386bf022" 408 | url: "https://pub.dev" 409 | source: hosted 410 | version: "2.1.1" 411 | shared_preferences_android: 412 | dependency: transitive 413 | description: 414 | name: shared_preferences_android 415 | sha256: "6478c6bbbecfe9aced34c483171e90d7c078f5883558b30ec3163cf18402c749" 416 | url: "https://pub.dev" 417 | source: hosted 418 | version: "2.1.4" 419 | shared_preferences_foundation: 420 | dependency: transitive 421 | description: 422 | name: shared_preferences_foundation 423 | sha256: e014107bb79d6d3297196f4f2d0db54b5d1f85b8ea8ff63b8e8b391a02700feb 424 | url: "https://pub.dev" 425 | source: hosted 426 | version: "2.2.2" 427 | shared_preferences_linux: 428 | dependency: transitive 429 | description: 430 | name: shared_preferences_linux 431 | sha256: "9d387433ca65717bbf1be88f4d5bb18f10508917a8fa2fb02e0fd0d7479a9afa" 432 | url: "https://pub.dev" 433 | source: hosted 434 | version: "2.2.0" 435 | shared_preferences_platform_interface: 436 | dependency: transitive 437 | description: 438 | name: shared_preferences_platform_interface 439 | sha256: fb5cf25c0235df2d0640ac1b1174f6466bd311f621574997ac59018a6664548d 440 | url: "https://pub.dev" 441 | source: hosted 442 | version: "2.2.0" 443 | shared_preferences_web: 444 | dependency: transitive 445 | description: 446 | name: shared_preferences_web 447 | sha256: "74083203a8eae241e0de4a0d597dbedab3b8fef5563f33cf3c12d7e93c655ca5" 448 | url: "https://pub.dev" 449 | source: hosted 450 | version: "2.1.0" 451 | shared_preferences_windows: 452 | dependency: transitive 453 | description: 454 | name: shared_preferences_windows 455 | sha256: "5e588e2efef56916a3b229c3bfe81e6a525665a454519ca51dbcc4236a274173" 456 | url: "https://pub.dev" 457 | source: hosted 458 | version: "2.2.0" 459 | sky_engine: 460 | dependency: transitive 461 | description: flutter 462 | source: sdk 463 | version: "0.0.99" 464 | source_span: 465 | dependency: transitive 466 | description: 467 | name: source_span 468 | sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 469 | url: "https://pub.dev" 470 | source: hosted 471 | version: "1.9.1" 472 | sqflite: 473 | dependency: "direct main" 474 | description: 475 | name: sqflite 476 | sha256: b4d6710e1200e96845747e37338ea8a819a12b51689a3bcf31eff0003b37a0b9 477 | url: "https://pub.dev" 478 | source: hosted 479 | version: "2.2.8+4" 480 | sqflite_common: 481 | dependency: transitive 482 | description: 483 | name: sqflite_common 484 | sha256: e77abf6ff961d69dfef41daccbb66b51e9983cdd5cb35bf30733598057401555 485 | url: "https://pub.dev" 486 | source: hosted 487 | version: "2.4.5" 488 | stack_trace: 489 | dependency: transitive 490 | description: 491 | name: stack_trace 492 | sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 493 | url: "https://pub.dev" 494 | source: hosted 495 | version: "1.11.0" 496 | stream_channel: 497 | dependency: transitive 498 | description: 499 | name: stream_channel 500 | sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" 501 | url: "https://pub.dev" 502 | source: hosted 503 | version: "2.1.1" 504 | string_scanner: 505 | dependency: transitive 506 | description: 507 | name: string_scanner 508 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" 509 | url: "https://pub.dev" 510 | source: hosted 511 | version: "1.2.0" 512 | syncfusion_flutter_calendar: 513 | dependency: "direct main" 514 | description: 515 | name: syncfusion_flutter_calendar 516 | sha256: "7940ef6bb3a619e26542e52ecbb4b987ea229789e6bc59d730b6186c6f9c902d" 517 | url: "https://pub.dev" 518 | source: hosted 519 | version: "19.4.56" 520 | syncfusion_flutter_core: 521 | dependency: transitive 522 | description: 523 | name: syncfusion_flutter_core 524 | sha256: "9be1bb9bbdb42823439a18da71484f1964c14dbe1c255ab1b931932b12fa96e8" 525 | url: "https://pub.dev" 526 | source: hosted 527 | version: "19.4.56" 528 | syncfusion_flutter_datepicker: 529 | dependency: transitive 530 | description: 531 | name: syncfusion_flutter_datepicker 532 | sha256: ff428c4e2ebd753c2f8f3b2aa60e96e014c9ca2653ce7007c7a603e560973f34 533 | url: "https://pub.dev" 534 | source: hosted 535 | version: "19.4.56" 536 | synchronized: 537 | dependency: transitive 538 | description: 539 | name: synchronized 540 | sha256: "5fcbd27688af6082f5abd611af56ee575342c30e87541d0245f7ff99faa02c60" 541 | url: "https://pub.dev" 542 | source: hosted 543 | version: "3.1.0" 544 | term_glyph: 545 | dependency: transitive 546 | description: 547 | name: term_glyph 548 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 549 | url: "https://pub.dev" 550 | source: hosted 551 | version: "1.2.1" 552 | test_api: 553 | dependency: transitive 554 | description: 555 | name: test_api 556 | sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206 557 | url: "https://pub.dev" 558 | source: hosted 559 | version: "0.4.16" 560 | timezone: 561 | dependency: transitive 562 | description: 563 | name: timezone 564 | sha256: "57b35f6e8ef731f18529695bffc62f92c6189fac2e52c12d478dec1931afb66e" 565 | url: "https://pub.dev" 566 | source: hosted 567 | version: "0.8.0" 568 | typed_data: 569 | dependency: transitive 570 | description: 571 | name: typed_data 572 | sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c 573 | url: "https://pub.dev" 574 | source: hosted 575 | version: "1.3.2" 576 | uuid: 577 | dependency: "direct main" 578 | description: 579 | name: uuid 580 | sha256: "648e103079f7c64a36dc7d39369cabb358d377078a051d6ae2ad3aa539519313" 581 | url: "https://pub.dev" 582 | source: hosted 583 | version: "3.0.7" 584 | vector_math: 585 | dependency: transitive 586 | description: 587 | name: vector_math 588 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" 589 | url: "https://pub.dev" 590 | source: hosted 591 | version: "2.1.4" 592 | win32: 593 | dependency: transitive 594 | description: 595 | name: win32 596 | sha256: "5a751eddf9db89b3e5f9d50c20ab8612296e4e8db69009788d6c8b060a84191c" 597 | url: "https://pub.dev" 598 | source: hosted 599 | version: "4.1.4" 600 | xdg_directories: 601 | dependency: transitive 602 | description: 603 | name: xdg_directories 604 | sha256: bd512f03919aac5f1313eb8249f223bacf4927031bf60b02601f81f687689e86 605 | url: "https://pub.dev" 606 | source: hosted 607 | version: "0.2.0+3" 608 | xml: 609 | dependency: transitive 610 | description: 611 | name: xml 612 | sha256: "979ee37d622dec6365e2efa4d906c37470995871fe9ae080d967e192d88286b5" 613 | url: "https://pub.dev" 614 | source: hosted 615 | version: "6.2.2" 616 | yaml: 617 | dependency: transitive 618 | description: 619 | name: yaml 620 | sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" 621 | url: "https://pub.dev" 622 | source: hosted 623 | version: "3.1.2" 624 | sdks: 625 | dart: ">=2.19.0 <3.0.0" 626 | flutter: ">=3.3.0" 627 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: todo_tasks_with_alert 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `flutter pub publish`. This is preferred for private packages. 6 | publish_to: "none" # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.15.1 <3.0.0" 22 | 23 | # Dependencies specify other packages that your package needs in order to work. 24 | # To automatically upgrade your package dependencies to the latest versions 25 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 26 | # dependencies can be manually updated by changing the version numbers below to 27 | # the latest version available on pub.dev. To see which dependencies have newer 28 | # versions available, run `flutter pub outdated`. 29 | dependencies: 30 | get: ^4.5.1 31 | intl: ^0.17.0 32 | sqflite: ^2.0.1 33 | uuid: ^3.0.5 34 | hexcolor: ^2.0.5 35 | shared_preferences: ^2.0.11 36 | date_picker_timeline: ^1.2.3 37 | flutter_staggered_animations: ^1.0.0 38 | flutter_local_notifications: ^9.2.0 39 | flutter_svg: ^1.0.3 40 | syncfusion_flutter_calendar: ^19.4.54 41 | dio: ^4.0.4 42 | 43 | #Firebase 44 | firebase_core: ^1.10.6 45 | firebase_messaging: ^11.2.5 46 | 47 | flutter: 48 | sdk: flutter 49 | 50 | # The following adds the Cupertino Icons font to your application. 51 | # Use with the CupertinoIcons class for iOS style icons. 52 | cupertino_icons: ^1.0.2 53 | 54 | dev_dependencies: 55 | flutter_test: 56 | sdk: flutter 57 | flutter_launcher_icons: "^0.9.2" 58 | 59 | flutter_icons: 60 | android: "launcher_icon" 61 | image_path: "assets/my_event.png" 62 | 63 | # The "flutter_lints" package below contains a set of recommended lints to 64 | # encourage good coding practices. The lint set provided by the package is 65 | # activated in the `analysis_options.yaml` file located at the root of your 66 | # package. See that file for information about deactivating specific lint 67 | # rules and activating additional ones. 68 | #flutter_lints: ^1.0.0 69 | 70 | # For information on the generic Dart part of this file, see the 71 | # following page: https://dart.dev/tools/pub/pubspec 72 | 73 | # The following section is specific to Flutter. 74 | flutter: 75 | # The following line ensures that the Material Icons font is 76 | # included with your application, so that you can use the icons in 77 | # the material Icons class. 78 | uses-material-design: true 79 | 80 | # To add assets to your application, add an assets section, like this: 81 | assets: 82 | - assets/ 83 | 84 | # An image asset can refer to one or more resolution-specific "variants", see 85 | # https://flutter.dev/assets-and-images/#resolution-aware. 86 | 87 | # For details regarding adding assets from package dependencies, see 88 | # https://flutter.dev/assets-and-images/#from-packages 89 | 90 | # To add custom fonts to your application, add a fonts section here, 91 | # in this "flutter" section. Each entry in this list should have a 92 | # "family" key with the font family name, and a "fonts" key with a 93 | # list giving the asset and other descriptors for the font. For 94 | # example: 95 | # fonts: 96 | # - family: Schyler 97 | # fonts: 98 | # - asset: fonts/Schyler-Regular.ttf 99 | # - asset: fonts/Schyler-Italic.ttf 100 | # style: italic 101 | # - family: Trajan Pro 102 | # fonts: 103 | # - asset: fonts/TrajanPro.ttf 104 | # - asset: fonts/TrajanPro_Bold.ttf 105 | # weight: 700 106 | # 107 | # For details regarding fonts from package dependencies, 108 | # see https://flutter.dev/custom-fonts/#from-packages 109 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/web/icons/Icon-512.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/samih93/Todo-Tasks-with-Alert/83f23f67927b3f26a985ade48ec976a9ad410b45/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | todo_tasks_with_alert 33 | 34 | 35 | 36 | 39 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "todo_tasks_with_alert", 3 | "short_name": "todo_tasks_with_alert", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | --------------------------------------------------------------------------------