[
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "content": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Describe the bug**\nA clear and concise description of what the bug is.\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. Go to '...'\n2. Click on '....'\n3. Scroll down to '....'\n4. See error\n\n**Expected behavior**\nA clear and concise description of what you expected to happen.\n\n**Screenshots**\nIf applicable, add screenshots to help explain your problem.\n\n**Smartphone (please complete the following information):**\n - Device: [e.g. iPhone6]\n - OS: [e.g. iOS8.1]\n - Version [e.g. 22]\n\n**Additional context**\nAdd any other context about the problem here.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "content": "---\nname: Feature request\nabout: Suggest an idea for this project\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Is your feature request related to a problem? Please describe.**\nA clear and concise description of what the problem is. Ex. I'm always frustrated when [...]\n\n**Describe the solution you'd like**\nA clear and concise description of what you want to happen.\n\n**Describe alternatives you've considered**\nA clear and concise description of any alternative solutions or features you've considered.\n\n**Additional context**\nAdd any other context or screenshots about the feature request here.\n"
  },
  {
    "path": ".gitignore",
    "content": "# Miscellaneous\n*.class\n*.log\n*.pyc\n*.swp\n.DS_Store\n.atom/\n.buildlog/\n.history\n.svn/\nmigrate_working_dir/\n\n# IntelliJ related\n*.iml\n*.ipr\n*.iws\n.idea/\n*.jks\n\n# The .vscode folder contains launch configuration and tasks you configure in\n# VS Code which you may wish to be included in version control, so this line\n# is commented out by default.\n.vscode/\n\n# Flutter/Dart/Pub related\n**/doc/api/\n**/ios/Flutter/.last_build_id\n.dart_tool/\n.flutter-plugins\n.flutter-plugins-dependencies\n.packages\n.pub-cache/\n.pub/\n/build/\n\n# Web related\nlib/generated_plugin_registrant.dart\n\n# Symbolication related\napp.*.symbols\n\n# Obfuscation related\napp.*.map.json\n\n# Android Studio will place build artifacts here\n/android/app/debug\n/android/app/profile\n/android/app/release\n"
  },
  {
    "path": ".metadata",
    "content": "# This file tracks properties of this Flutter project.\n# Used by Flutter tool to assess capabilities and perform upgrades etc.\n#\n# This file should be version controlled.\n\nversion:\n  revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n  channel: stable\n\nproject_type: app\n\n# Tracks metadata for the flutter migrate command\nmigration:\n  platforms:\n    - platform: root\n      create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n      base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n    - platform: android\n      create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n      base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n    - platform: ios\n      create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n      base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n    - platform: linux\n      create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n      base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n    - platform: macos\n      create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n      base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n    - platform: web\n      create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n      base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n    - platform: windows\n      create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n      base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268\n\n  # User provided section\n\n  # List of Local paths (relative to this file) that should be\n  # ignored by the migrate tool.\n  #\n  # Files that are not part of the templates will be ignored by default.\n  unmanaged_files:\n    - 'lib/main.dart'\n    - 'ios/Runner.xcodeproj/project.pbxproj'\n"
  },
  {
    "path": "CODE_OF_CONDUCT.md",
    "content": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nWe as members, contributors, and leaders pledge to make participation in our\ncommunity a harassment-free experience for everyone, regardless of age, body\nsize, visible or invisible disability, ethnicity, sex characteristics, gender\nidentity and expression, level of experience, education, socio-economic status,\nnationality, personal appearance, race, religion, or sexual identity\nand orientation.\n\nWe pledge to act and interact in ways that contribute to an open, welcoming,\ndiverse, inclusive, and healthy community.\n\n## Our Standards\n\nExamples of behavior that contributes to a positive environment for our\ncommunity include:\n\n* Demonstrating empathy and kindness toward other people\n* Being respectful of differing opinions, viewpoints, and experiences\n* Giving and gracefully accepting constructive feedback\n* Accepting responsibility and apologizing to those affected by our mistakes,\n  and learning from the experience\n* Focusing on what is best not just for us as individuals, but for the\n  overall community\n\nExamples of unacceptable behavior include:\n\n* The use of sexualized language or imagery, and sexual attention or\n  advances of any kind\n* Trolling, insulting or derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or email\n  address, without their explicit permission\n* Other conduct which could reasonably be considered inappropriate in a\n  professional setting\n\n## Enforcement Responsibilities\n\nCommunity leaders are responsible for clarifying and enforcing our standards of\nacceptable behavior and will take appropriate and fair corrective action in\nresponse to any behavior that they deem inappropriate, threatening, offensive,\nor harmful.\n\nCommunity leaders have the right and responsibility to remove, edit, or reject\ncomments, commits, code, wiki edits, issues, and other contributions that are\nnot aligned to this Code of Conduct, and will communicate reasons for moderation\ndecisions when appropriate.\n\n## Scope\n\nThis Code of Conduct applies within all community spaces, and also applies when\nan individual is officially representing the community in public spaces.\nExamples of representing our community include using an official e-mail address,\nposting via an official social media account, or acting as an appointed\nrepresentative at an online or offline event.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be\nreported to the community leaders responsible for enforcement at\n.\nAll complaints will be reviewed and investigated promptly and fairly.\n\nAll community leaders are obligated to respect the privacy and security of the\nreporter of any incident.\n\n## Enforcement Guidelines\n\nCommunity leaders will follow these Community Impact Guidelines in determining\nthe consequences for any action they deem in violation of this Code of Conduct:\n\n### 1. Correction\n\n**Community Impact**: Use of inappropriate language or other behavior deemed\nunprofessional or unwelcome in the community.\n\n**Consequence**: A private, written warning from community leaders, providing\nclarity around the nature of the violation and an explanation of why the\nbehavior was inappropriate. A public apology may be requested.\n\n### 2. Warning\n\n**Community Impact**: A violation through a single incident or series\nof actions.\n\n**Consequence**: A warning with consequences for continued behavior. No\ninteraction with the people involved, including unsolicited interaction with\nthose enforcing the Code of Conduct, for a specified period of time. This\nincludes avoiding interactions in community spaces as well as external channels\nlike social media. Violating these terms may lead to a temporary or\npermanent ban.\n\n### 3. Temporary Ban\n\n**Community Impact**: A serious violation of community standards, including\nsustained inappropriate behavior.\n\n**Consequence**: A temporary ban from any sort of interaction or public\ncommunication with the community for a specified period of time. No public or\nprivate interaction with the people involved, including unsolicited interaction\nwith those enforcing the Code of Conduct, is allowed during this period.\nViolating these terms may lead to a permanent ban.\n\n### 4. Permanent Ban\n\n**Community Impact**: Demonstrating a pattern of violation of community\nstandards, including sustained inappropriate behavior,  harassment of an\nindividual, or aggression toward or disparagement of classes of individuals.\n\n**Consequence**: A permanent ban from any sort of public interaction within\nthe community.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage],\nversion 2.0, available at\nhttps://www.contributor-covenant.org/version/2/0/code_of_conduct.html.\n\nCommunity Impact Guidelines were inspired by [Mozilla's code of conduct\nenforcement ladder](https://github.com/mozilla/diversity).\n\n[homepage]: https://www.contributor-covenant.org\n\nFor answers to common questions about this code of conduct, see the FAQ at\nhttps://www.contributor-covenant.org/faq. Translations are available at\nhttps://www.contributor-covenant.org/translations.\n"
  },
  {
    "path": "LICENSE.md",
    "content": "Copyright 2021 Mazahir\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# Koduko\n\nYet another Habit tracker made with flutter.\n\n\n## ❓ About\n\nIt's an open source and free app where you can manage your daily or weekly habits.\n\n\n\n## 📢 Getting Started\n\nYou can install the latest APK from the [Releases tab](https://github.com/Mazahir26/koduko/releases/latest). You can also download the latest APK from [IzzyOnDroid repo](https://apt.izzysoft.de/fdroid/index/apk/com.example.koduko) within a F-Droid client.\n\nAlternatively you can build the app yourself. See below for further information.\n\n## 🔨 Build\n\n- Clone the repo using `git clone https://github.com/Mazahir26/koduko.git`\n\n- Install all the dependencies `flutter pub get`\n\n- To test it out locally you can check this [guide](https://docs.flutter.dev/development/tools/vs-code)\n\n- To build the apk follow this [guide](https://docs.flutter.dev/deployment/android)\n\n## 👀 Preview \n\n<img src=\"github_assets/image1.png \" alt=\"ScreenShort 1\" width=\"300\"/><img src=\"github_assets/image2.png \" alt=\"ScreenShort 2\" width=\"300\"/><img src=\"github_assets/image3.png \" alt=\"ScreenShort 3\" width=\"300\"/>\n\n## ⛩️ Features \n\n- Notification Support,\n- Material 3 Design,\n- No ads,\n- Insightful stats,\n- And much more..\n\n## 🐞 Found a Bug \n\n\n\nIf you found any bugs, please open an issue\n or [contact me](http://mazahir26.github.io/)\n \n_The app has only been tested on Android._\n## 📝 License \n\nThis project is licensed under the [MIT License](LICENSE.md).\n\n## ❤️ Thank You \n\nThanks for checking out my project, I would love to hear feedback, you can [contact](http://mazahir26.github.io/) me via Mail or Telegram.\n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/mazahir)\n"
  },
  {
    "path": "analysis_options.yaml",
    "content": "# This file configures the analyzer, which statically analyzes Dart code to\n# check for errors, warnings, and lints.\n#\n# The issues identified by the analyzer are surfaced in the UI of Dart-enabled\n# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be\n# invoked from the command line by running `flutter analyze`.\n\n# The following line activates a set of recommended lints for Flutter apps,\n# packages, and plugins designed to encourage good coding practices.\ninclude: package:flutter_lints/flutter.yaml\n\nlinter:\n  # The lint rules applied to this project can be customized in the\n  # section below to disable rules from the `package:flutter_lints/flutter.yaml`\n  # included above or to enable additional rules. A list of all available lints\n  # and their documentation is published at\n  # https://dart-lang.github.io/linter/lints/index.html.\n  #\n  # Instead of disabling a lint rule for the entire project in the\n  # section below, it can also be suppressed for a single line of code\n  # or a specific dart file by using the `// ignore: name_of_lint` and\n  # `// ignore_for_file: name_of_lint` syntax on the line or in the file\n  # producing the lint.\n  rules:\n    # avoid_print: false  # Uncomment to disable the `avoid_print` rule\n    # prefer_single_quotes: true  # Uncomment to enable the `prefer_single_quotes` rule\n    # require_trailing_commas: true\n# Additional information about this file can be found at\n# https://dart.dev/guides/language/analysis-options\n"
  },
  {
    "path": "android/.gitignore",
    "content": "gradle-wrapper.jar\n/.gradle\n/captures/\n/gradlew\n/gradlew.bat\n/local.properties\nGeneratedPluginRegistrant.java\n\n# Remember to never publicly share your keystore.\n# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app\nkey.properties\n**/*.keystore\n**/*.jks\n"
  },
  {
    "path": "android/app/build.gradle",
    "content": "plugins {\n    id \"com.android.application\"\n    id \"kotlin-android\"\n    id \"dev.flutter.flutter-gradle-plugin\"\n}\n\ndef localProperties = new Properties()\ndef localPropertiesFile = rootProject.file('local.properties')\nif (localPropertiesFile.exists()) {\n    localPropertiesFile.withReader('UTF-8') { reader ->\n        localProperties.load(reader)\n    }\n}\n\ndef keyStoreProperties= new Properties()\ndef keyStorePropertiesFile = rootProject.file('key.properties')\nif (keyStorePropertiesFile.exists()) {\n    keyStorePropertiesFile.withReader('UTF-8') {reader -> \n        keyStoreProperties.load(reader)\n    } \n}\n\ndef flutterVersionCode = localProperties.getProperty('flutter.versionCode')\nif (flutterVersionCode == null) {\n    flutterVersionCode = '1'\n}\n\ndef flutterVersionName = localProperties.getProperty('flutter.versionName')\nif (flutterVersionName == null) {\n    flutterVersionName = '1.0'\n}\n\n\n\nandroid {\n    compileSdkVersion flutter.compileSdkVersion\n    ndkVersion flutter.ndkVersion\n\n    compileOptions {\n        sourceCompatibility JavaVersion.VERSION_1_8\n        targetCompatibility JavaVersion.VERSION_1_8\n    }\n\n    kotlinOptions {\n        jvmTarget = '1.8'\n    }\n\n    sourceSets {\n        main.java.srcDirs += 'src/main/kotlin'\n    }\n\n    defaultConfig {\n        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).\n        applicationId \"com.example.koduko\"\n        // You can update the following values to match your application needs.\n        // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.\n        minSdkVersion flutter.minSdkVersion\n        targetSdkVersion flutter.targetSdkVersion\n        versionCode flutterVersionCode.toInteger()\n        versionName flutterVersionName\n    }\n\n    signingConfigs {\n       release {\n            storeFile file(keyStoreProperties['storeFile'])\n            storePassword keyStoreProperties['storePassword']\n            keyAlias keyStoreProperties['keyAlias']\n            keyPassword keyStoreProperties['keyPassword']\n            v1SigningEnabled true\n            v2SigningEnabled true\n            enableV3Signing true\n            enableV4Signing true\n          }\n     }\n\n     buildTypes {\n         release {\n             signingConfig signingConfigs.release\n         }\n     }\n    // buildTypes {\n    //     release {\n    //         // TODO: Add your own signing config for the release build.\n    //         // Signing with the debug keys for now, so `flutter run --release` works.\n    //         signingConfig signingConfigs.debug\n    //         shrinkResources false\n    //     }\n    // }\n}\n\nflutter {\n    source '../..'\n}\n\ndependencies {\n}\n"
  },
  {
    "path": "android/app/src/debug/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.example.koduko\">\n    <!-- The INTERNET permission is required for development. Specifically,\n         the Flutter tool needs it to communicate with the running application\n         to allow setting breakpoints, to provide hot reload, etc.\n    -->\n    <uses-permission android:name=\"android.permission.INTERNET\"/>\n</manifest>\n"
  },
  {
    "path": "android/app/src/main/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.example.koduko\">\n   <application\n        android:label=\"koduko\"\n        android:name=\"${applicationName}\"\n        android:icon=\"@mipmap/launcher_icon\">\n        <activity\n            android:name=\".MainActivity\"\n            android:exported=\"true\"\n            android:launchMode=\"singleTop\"\n            android:theme=\"@style/LaunchTheme\"\n            android:configChanges=\"orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode\"\n            android:hardwareAccelerated=\"true\"\n            android:windowSoftInputMode=\"adjustResize\">\n            <!-- Specifies an Android theme to apply to this Activity as soon as\n                 the Android process has started. This theme is visible to the user\n                 while the Flutter UI initializes. After that, this theme continues\n                 to determine the Window background behind the Flutter UI. -->\n            <meta-data\n              android:name=\"io.flutter.embedding.android.NormalTheme\"\n              android:resource=\"@style/NormalTheme\"\n              />\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\"/>\n                <category android:name=\"android.intent.category.LAUNCHER\"/>\n            </intent-filter>\n        </activity>\n        <!-- Don't delete the meta-data below.\n             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->\n        <meta-data\n            android:name=\"flutterEmbedding\"\n            android:value=\"2\" />\n    </application>\n</manifest>\n"
  },
  {
    "path": "android/app/src/main/kotlin/com/example/koduko/MainActivity.kt",
    "content": "package com.example.koduko\n\nimport io.flutter.embedding.android.FlutterActivity\n\nclass MainActivity: FlutterActivity() {\n}\n"
  },
  {
    "path": "android/app/src/main/res/drawable/launch_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Modify this file to customize your launch splash screen -->\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item android:drawable=\"@android:color/white\" />\n\n    <!-- You can insert your own image assets here -->\n    <!-- <item>\n        <bitmap\n            android:gravity=\"center\"\n            android:src=\"@mipmap/launch_image\" />\n    </item> -->\n</layer-list>\n"
  },
  {
    "path": "android/app/src/main/res/drawable-v21/launch_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Modify this file to customize your launch splash screen -->\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item android:drawable=\"?android:colorBackground\" />\n\n    <!-- You can insert your own image assets here -->\n    <!-- <item>\n        <bitmap\n            android:gravity=\"center\"\n            android:src=\"@mipmap/launch_image\" />\n    </item> -->\n</layer-list>\n"
  },
  {
    "path": "android/app/src/main/res/values/styles.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->\n    <style name=\"LaunchTheme\" parent=\"@android:style/Theme.Light.NoTitleBar\">\n        <!-- Show a splash screen on the activity. Automatically removed when\n             the Flutter engine draws its first frame -->\n        <item name=\"android:windowBackground\">@drawable/launch_background</item>\n    </style>\n    <!-- Theme applied to the Android Window as soon as the process has started.\n         This theme determines the color of the Android Window while your\n         Flutter UI initializes, as well as behind your Flutter UI while its\n         running.\n\n         This Theme is only used starting with V2 of Flutter's Android embedding. -->\n    <style name=\"NormalTheme\" parent=\"@android:style/Theme.Light.NoTitleBar\">\n        <item name=\"android:windowBackground\">?android:colorBackground</item>\n    </style>\n</resources>\n"
  },
  {
    "path": "android/app/src/main/res/values-night/styles.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->\n    <style name=\"LaunchTheme\" parent=\"@android:style/Theme.Black.NoTitleBar\">\n        <!-- Show a splash screen on the activity. Automatically removed when\n             the Flutter engine draws its first frame -->\n        <item name=\"android:windowBackground\">@drawable/launch_background</item>\n    </style>\n    <!-- Theme applied to the Android Window as soon as the process has started.\n         This theme determines the color of the Android Window while your\n         Flutter UI initializes, as well as behind your Flutter UI while its\n         running.\n\n         This Theme is only used starting with V2 of Flutter's Android embedding. -->\n    <style name=\"NormalTheme\" parent=\"@android:style/Theme.Black.NoTitleBar\">\n        <item name=\"android:windowBackground\">?android:colorBackground</item>\n    </style>\n</resources>\n"
  },
  {
    "path": "android/app/src/profile/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.example.koduko\">\n    <!-- The INTERNET permission is required for development. Specifically,\n         the Flutter tool needs it to communicate with the running application\n         to allow setting breakpoints, to provide hot reload, etc.\n    -->\n    <uses-permission android:name=\"android.permission.INTERNET\"/>\n</manifest>\n"
  },
  {
    "path": "android/build.gradle",
    "content": "allprojects {\nrepositories {\n    google()\n    jcenter()\n}\n}\n\nrootProject.buildDir = '../build'\nsubprojects {\n    project.buildDir = \"${rootProject.buildDir}/${project.name}\"\n}\nsubprojects {\n    project.evaluationDependsOn(':app')\n}\n\ntasks.register(\"clean\", Delete) {\n    delete rootProject.buildDir\n}"
  },
  {
    "path": "android/gradle/wrapper/gradle-wrapper.properties",
    "content": "#Fri Jun 23 08:50:38 CEST 2017\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-7.4-all.zip\n"
  },
  {
    "path": "android/gradle.properties",
    "content": "org.gradle.jvmargs=-Xmx1536M\nandroid.useAndroidX=true\nandroid.enableJetifier=true\n"
  },
  {
    "path": "android/settings.gradle",
    "content": "pluginManagement {\n    def flutterSdkPath = {\n        def properties = new Properties()\n        file(\"local.properties\").withInputStream { properties.load(it) }\n        def flutterSdkPath = properties.getProperty(\"flutter.sdk\")\n        assert flutterSdkPath != null, \"flutter.sdk not set in local.properties\"\n        return flutterSdkPath\n    }()\n\n    includeBuild(\"$flutterSdkPath/packages/flutter_tools/gradle\")\n\n    repositories {\n        google()\n        mavenCentral()\n        gradlePluginPortal()\n    }\n}\n\nplugins {\n    id \"dev.flutter.flutter-plugin-loader\" version \"1.0.0\"\n    id \"com.android.application\" version \"7.2.0\" apply false\n    id \"org.jetbrains.kotlin.android\" version \"1.7.20\" apply false\n}\n\ninclude \":app\""
  },
  {
    "path": "ios/.gitignore",
    "content": "**/dgph\n*.mode1v3\n*.mode2v3\n*.moved-aside\n*.pbxuser\n*.perspectivev3\n**/*sync/\n.sconsign.dblite\n.tags*\n**/.vagrant/\n**/DerivedData/\nIcon?\n**/Pods/\n**/.symlinks/\nprofile\nxcuserdata\n**/.generated/\nFlutter/App.framework\nFlutter/Flutter.framework\nFlutter/Flutter.podspec\nFlutter/Generated.xcconfig\nFlutter/ephemeral/\nFlutter/app.flx\nFlutter/app.zip\nFlutter/flutter_assets/\nFlutter/flutter_export_environment.sh\nServiceDefinitions.json\nRunner/GeneratedPluginRegistrant.*\n\n# Exceptions to above rules.\n!default.mode1v3\n!default.mode2v3\n!default.pbxuser\n!default.perspectivev3\n"
  },
  {
    "path": "ios/Flutter/AppFrameworkInfo.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n  <key>CFBundleDevelopmentRegion</key>\n  <string>en</string>\n  <key>CFBundleExecutable</key>\n  <string>App</string>\n  <key>CFBundleIdentifier</key>\n  <string>io.flutter.flutter.app</string>\n  <key>CFBundleInfoDictionaryVersion</key>\n  <string>6.0</string>\n  <key>CFBundleName</key>\n  <string>App</string>\n  <key>CFBundlePackageType</key>\n  <string>FMWK</string>\n  <key>CFBundleShortVersionString</key>\n  <string>1.0</string>\n  <key>CFBundleSignature</key>\n  <string>????</string>\n  <key>CFBundleVersion</key>\n  <string>1.0</string>\n  <key>MinimumOSVersion</key>\n  <string>9.0</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "ios/Flutter/Debug.xcconfig",
    "content": "#include \"Generated.xcconfig\"\n"
  },
  {
    "path": "ios/Flutter/Release.xcconfig",
    "content": "#include \"Generated.xcconfig\"\n"
  },
  {
    "path": "ios/Runner/AppDelegate.swift",
    "content": "import UIKit\nimport Flutter\n\n@UIApplicationMain\n@objc class AppDelegate: FlutterAppDelegate {\n  override func application(\n    _ application: UIApplication,\n    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?\n  ) -> Bool {\n    if #available(iOS 10.0, *) {\n      UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate\n    }\n    GeneratedPluginRegistrant.register(with: self)\n    return super.application(application, didFinishLaunchingWithOptions: launchOptions)\n  }\n}\n"
  },
  {
    "path": "ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\": [\n    {\n      \"filename\": \"AppIcon@2x.png\",\n      \"idiom\": \"iphone\",\n      \"scale\": \"2x\",\n      \"size\": \"60x60\"\n    },\n    {\n      \"filename\": \"AppIcon@3x.png\",\n      \"idiom\": \"iphone\",\n      \"scale\": \"3x\",\n      \"size\": \"60x60\"\n    },\n    {\n      \"filename\": \"AppIcon~ipad.png\",\n      \"idiom\": \"ipad\",\n      \"scale\": \"1x\",\n      \"size\": \"76x76\"\n    },\n    {\n      \"filename\": \"AppIcon@2x~ipad.png\",\n      \"idiom\": \"ipad\",\n      \"scale\": \"2x\",\n      \"size\": \"76x76\"\n    },\n    {\n      \"filename\": \"AppIcon-83.5@2x~ipad.png\",\n      \"idiom\": \"ipad\",\n      \"scale\": \"2x\",\n      \"size\": \"83.5x83.5\"\n    },\n    {\n      \"filename\": \"AppIcon-40@2x.png\",\n      \"idiom\": \"iphone\",\n      \"scale\": \"2x\",\n      \"size\": \"40x40\"\n    },\n    {\n      \"filename\": \"AppIcon-40@3x.png\",\n      \"idiom\": \"iphone\",\n      \"scale\": \"3x\",\n      \"size\": \"40x40\"\n    },\n    {\n      \"filename\": \"AppIcon-40~ipad.png\",\n      \"idiom\": \"ipad\",\n      \"scale\": \"1x\",\n      \"size\": \"40x40\"\n    },\n    {\n      \"filename\": \"AppIcon-40@2x~ipad.png\",\n      \"idiom\": \"ipad\",\n      \"scale\": \"2x\",\n      \"size\": \"40x40\"\n    },\n    {\n      \"filename\": \"AppIcon-20@2x.png\",\n      \"idiom\": \"iphone\",\n      \"scale\": \"2x\",\n      \"size\": \"20x20\"\n    },\n    {\n      \"filename\": \"AppIcon-20@3x.png\",\n      \"idiom\": \"iphone\",\n      \"scale\": \"3x\",\n      \"size\": \"20x20\"\n    },\n    {\n      \"filename\": \"AppIcon-20~ipad.png\",\n      \"idiom\": \"ipad\",\n      \"scale\": \"1x\",\n      \"size\": \"20x20\"\n    },\n    {\n      \"filename\": \"AppIcon-20@2x~ipad.png\",\n      \"idiom\": \"ipad\",\n      \"scale\": \"2x\",\n      \"size\": \"20x20\"\n    },\n    {\n      \"filename\": \"AppIcon-29.png\",\n      \"idiom\": \"iphone\",\n      \"scale\": \"1x\",\n      \"size\": \"29x29\"\n    },\n    {\n      \"filename\": \"AppIcon-29@2x.png\",\n      \"idiom\": \"iphone\",\n      \"scale\": \"2x\",\n      \"size\": \"29x29\"\n    },\n    {\n      \"filename\": \"AppIcon-29@3x.png\",\n      \"idiom\": \"iphone\",\n      \"scale\": \"3x\",\n      \"size\": \"29x29\"\n    },\n    {\n      \"filename\": \"AppIcon-29~ipad.png\",\n      \"idiom\": \"ipad\",\n      \"scale\": \"1x\",\n      \"size\": \"29x29\"\n    },\n    {\n      \"filename\": \"AppIcon-29@2x~ipad.png\",\n      \"idiom\": \"ipad\",\n      \"scale\": \"2x\",\n      \"size\": \"29x29\"\n    },\n    {\n      \"filename\": \"AppIcon-60@2x~car.png\",\n      \"idiom\": \"car\",\n      \"scale\": \"2x\",\n      \"size\": \"60x60\"\n    },\n    {\n      \"filename\": \"AppIcon-60@3x~car.png\",\n      \"idiom\": \"car\",\n      \"scale\": \"3x\",\n      \"size\": \"60x60\"\n    },\n    {\n      \"filename\": \"AppIcon~ios-marketing.png\",\n      \"idiom\": \"ios-marketing\",\n      \"scale\": \"1x\",\n      \"size\": \"1024x1024\"\n    }\n  ],\n  \"info\": {\n    \"author\": \"iconkitchen\",\n    \"version\": 1\n  }\n}"
  },
  {
    "path": "ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"LaunchImage.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"LaunchImage@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"LaunchImage@3x.png\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}\n"
  },
  {
    "path": "ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md",
    "content": "# Launch Screen Assets\n\nYou can customize the launch screen with your own desired assets by replacing the image files in this directory.\n\nYou 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."
  },
  {
    "path": "ios/Runner/Base.lproj/LaunchScreen.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"12121\" systemVersion=\"16G29\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" colorMatched=\"YES\" initialViewController=\"01J-lp-oVM\">\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"12089\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"EHf-IW-A2E\">\n            <objects>\n                <viewController id=\"01J-lp-oVM\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"Ydg-fD-yQy\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"xbc-2k-c8Z\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"Ze5-6b-2t3\">\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <imageView opaque=\"NO\" clipsSubviews=\"YES\" multipleTouchEnabled=\"YES\" contentMode=\"center\" image=\"LaunchImage\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"YRO-k0-Ey4\">\n                            </imageView>\n                        </subviews>\n                        <color key=\"backgroundColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                        <constraints>\n                            <constraint firstItem=\"YRO-k0-Ey4\" firstAttribute=\"centerX\" secondItem=\"Ze5-6b-2t3\" secondAttribute=\"centerX\" id=\"1a2-6s-vTC\"/>\n                            <constraint firstItem=\"YRO-k0-Ey4\" firstAttribute=\"centerY\" secondItem=\"Ze5-6b-2t3\" secondAttribute=\"centerY\" id=\"4X2-HB-R7a\"/>\n                        </constraints>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"iYj-Kq-Ea1\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"53\" y=\"375\"/>\n        </scene>\n    </scenes>\n    <resources>\n        <image name=\"LaunchImage\" width=\"168\" height=\"185\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "ios/Runner/Base.lproj/Main.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"10117\" systemVersion=\"15F34\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" useTraitCollections=\"YES\" initialViewController=\"BYZ-38-t0r\">\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"10085\"/>\n    </dependencies>\n    <scenes>\n        <!--Flutter View Controller-->\n        <scene sceneID=\"tne-QT-ifu\">\n            <objects>\n                <viewController id=\"BYZ-38-t0r\" customClass=\"FlutterViewController\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"y3c-jy-aDJ\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"wfy-db-euE\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"8bC-Xf-vdC\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"600\" height=\"600\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"dkx-z0-nzr\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "ios/Runner/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>$(DEVELOPMENT_LANGUAGE)</string>\n\t<key>CFBundleDisplayName</key>\n\t<string>Koduko</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>koduko</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>$(FLUTTER_BUILD_NAME)</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>$(FLUTTER_BUILD_NUMBER)</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIMainStoryboardFile</key>\n\t<string>Main</string>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations~ipad</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationPortraitUpsideDown</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n\t<key>UIViewControllerBasedStatusBarAppearance</key>\n\t<false/>\n\t<key>CADisableMinimumFrameDurationOnPhone</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "ios/Runner/Runner-Bridging-Header.h",
    "content": "#import \"GeneratedPluginRegistrant.h\"\n"
  },
  {
    "path": "ios/Runner.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 50;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };\n\t\t3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };\n\t\t74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };\n\t\t97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };\n\t\t97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };\n\t\t97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXCopyFilesBuildPhase section */\n\t\t9705A1C41CF9048500538489 /* Embed Frameworks */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = \"\";\n\t\t\tdstSubfolderSpec = 10;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tname = \"Embed Frameworks\";\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXCopyFilesBuildPhase section */\n\n/* Begin PBXFileReference section */\n\t\t1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = \"<group>\"; };\n\t\t1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = \"<group>\"; };\n\t\t3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = \"<group>\"; };\n\t\t74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = \"Runner-Bridging-Header.h\"; sourceTree = \"<group>\"; };\n\t\t74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = \"<group>\"; };\n\t\t7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = \"<group>\"; };\n\t\t9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = \"<group>\"; };\n\t\t9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = \"<group>\"; };\n\t\t97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = \"<group>\"; };\n\t\t97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = \"<group>\"; };\n\t\t97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = \"<group>\"; };\n\t\t97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t97C146EB1CF9000F007C117D /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t9740EEB11CF90186004384FC /* Flutter */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,\n\t\t\t\t9740EEB21CF90195004384FC /* Debug.xcconfig */,\n\t\t\t\t7AFA3C8E1D35360C0083082E /* Release.xcconfig */,\n\t\t\t\t9740EEB31CF90195004384FC /* Generated.xcconfig */,\n\t\t\t);\n\t\t\tname = Flutter;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t97C146E51CF9000F007C117D = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9740EEB11CF90186004384FC /* Flutter */,\n\t\t\t\t97C146F01CF9000F007C117D /* Runner */,\n\t\t\t\t97C146EF1CF9000F007C117D /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t97C146EF1CF9000F007C117D /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t97C146EE1CF9000F007C117D /* Runner.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t97C146F01CF9000F007C117D /* Runner */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t97C146FA1CF9000F007C117D /* Main.storyboard */,\n\t\t\t\t97C146FD1CF9000F007C117D /* Assets.xcassets */,\n\t\t\t\t97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,\n\t\t\t\t97C147021CF9000F007C117D /* Info.plist */,\n\t\t\t\t1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,\n\t\t\t\t1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,\n\t\t\t\t74858FAE1ED2DC5600515810 /* AppDelegate.swift */,\n\t\t\t\t74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,\n\t\t\t);\n\t\t\tpath = Runner;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t97C146ED1CF9000F007C117D /* Runner */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget \"Runner\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t9740EEB61CF901F6004384FC /* Run Script */,\n\t\t\t\t97C146EA1CF9000F007C117D /* Sources */,\n\t\t\t\t97C146EB1CF9000F007C117D /* Frameworks */,\n\t\t\t\t97C146EC1CF9000F007C117D /* Resources */,\n\t\t\t\t9705A1C41CF9048500538489 /* Embed Frameworks */,\n\t\t\t\t3B06AD1E1E4923F5004D2608 /* Thin Binary */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = Runner;\n\t\t\tproductName = Runner;\n\t\t\tproductReference = 97C146EE1CF9000F007C117D /* Runner.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t97C146E61CF9000F007C117D /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 1300;\n\t\t\t\tORGANIZATIONNAME = \"\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t97C146ED1CF9000F007C117D = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.3.1;\n\t\t\t\t\t\tLastSwiftMigration = 1100;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject \"Runner\" */;\n\t\t\tcompatibilityVersion = \"Xcode 9.3\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 97C146E51CF9000F007C117D;\n\t\t\tproductRefGroup = 97C146EF1CF9000F007C117D /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t97C146ED1CF9000F007C117D /* Runner */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t97C146EC1CF9000F007C117D /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,\n\t\t\t\t3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,\n\t\t\t\t97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,\n\t\t\t\t97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXShellScriptBuildPhase section */\n\t\t3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Thin Binary\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"/bin/sh \\\"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\\\" embed_and_thin\";\n\t\t};\n\t\t9740EEB61CF901F6004384FC /* Run Script */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Run Script\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"/bin/sh \\\"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\\\" build\";\n\t\t};\n/* End PBXShellScriptBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t97C146EA1CF9000F007C117D /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,\n\t\t\t\t1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXVariantGroup section */\n\t\t97C146FA1CF9000F007C117D /* Main.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t97C146FB1CF9000F007C117D /* Base */,\n\t\t\t);\n\t\t\tname = Main.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t97C147001CF9000F007C117D /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t249021D3217E4FDB00AE95B9 /* Profile */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSUPPORTED_PLATFORMS = iphoneos;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Profile;\n\t\t};\n\t\t249021D4217E4FDB00AE95B9 /* Profile */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCURRENT_PROJECT_VERSION = \"$(FLUTTER_BUILD_NUMBER)\";\n\t\t\t\tENABLE_BITCODE = NO;\n\t\t\t\tINFOPLIST_FILE = Runner/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.example.koduko;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_OBJC_BRIDGING_HEADER = \"Runner/Runner-Bridging-Header.h\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tVERSIONING_SYSTEM = \"apple-generic\";\n\t\t\t};\n\t\t\tname = Profile;\n\t\t};\n\t\t97C147031CF9000F007C117D /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t97C147041CF9000F007C117D /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSUPPORTED_PLATFORMS = iphoneos;\n\t\t\t\tSWIFT_COMPILATION_MODE = wholemodule;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-O\";\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t97C147061CF9000F007C117D /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCURRENT_PROJECT_VERSION = \"$(FLUTTER_BUILD_NUMBER)\";\n\t\t\t\tENABLE_BITCODE = NO;\n\t\t\t\tINFOPLIST_FILE = Runner/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.example.koduko;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_OBJC_BRIDGING_HEADER = \"Runner/Runner-Bridging-Header.h\";\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tVERSIONING_SYSTEM = \"apple-generic\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t97C147071CF9000F007C117D /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCURRENT_PROJECT_VERSION = \"$(FLUTTER_BUILD_NUMBER)\";\n\t\t\t\tENABLE_BITCODE = NO;\n\t\t\t\tINFOPLIST_FILE = Runner/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.example.koduko;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_OBJC_BRIDGING_HEADER = \"Runner/Runner-Bridging-Header.h\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tVERSIONING_SYSTEM = \"apple-generic\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t97C146E91CF9000F007C117D /* Build configuration list for PBXProject \"Runner\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t97C147031CF9000F007C117D /* Debug */,\n\t\t\t\t97C147041CF9000F007C117D /* Release */,\n\t\t\t\t249021D3217E4FDB00AE95B9 /* Profile */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget \"Runner\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t97C147061CF9000F007C117D /* Debug */,\n\t\t\t\t97C147071CF9000F007C117D /* Release */,\n\t\t\t\t249021D4217E4FDB00AE95B9 /* Profile */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 97C146E61CF9000F007C117D /* Project object */;\n}"
  },
  {
    "path": "ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>PreviewsEnabled</key>\n\t<false/>\n</dict>\n</plist>\n"
  },
  {
    "path": "ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1300\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"97C146ED1CF9000F007C117D\"\n               BuildableName = \"Runner.app\"\n               BlueprintName = \"Runner\"\n               ReferencedContainer = \"container:Runner.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"97C146ED1CF9000F007C117D\"\n            BuildableName = \"Runner.app\"\n            BlueprintName = \"Runner\"\n            ReferencedContainer = \"container:Runner.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <Testables>\n      </Testables>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"97C146ED1CF9000F007C117D\"\n            BuildableName = \"Runner.app\"\n            BlueprintName = \"Runner\"\n            ReferencedContainer = \"container:Runner.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Profile\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"97C146ED1CF9000F007C117D\"\n            BuildableName = \"Runner.app\"\n            BlueprintName = \"Runner\"\n            ReferencedContainer = \"container:Runner.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "ios/Runner.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"group:Runner.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>PreviewsEnabled</key>\n\t<false/>\n</dict>\n</plist>\n"
  },
  {
    "path": "lib/components/card.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:google_fonts/google_fonts.dart';\nimport 'package:koduko/utils/duration_to_string.dart';\n\nclass TaskCard extends StatelessWidget {\n  final String name;\n  final AnimationController? controller;\n  final Color color;\n  final double index;\n  final void Function(DismissDirection, BuildContext) onDismissed;\n  final bool isPlaying;\n  final AnimationController buttonController;\n  final void Function(TapUpDetails details) onTap;\n  final bool isCompleted;\n  final bool isSkipped;\n\n  late final Tween<double> tween;\n  late final Color textColor;\n  final bool isSwipeDisabled;\n  TaskCard(\n      {super.key,\n      required this.name,\n      required this.controller,\n      required this.color,\n      required this.index,\n      required this.onDismissed,\n      required this.isPlaying,\n      required this.buttonController,\n      required this.onTap,\n      required this.isCompleted,\n      required this.isSkipped,\n      required this.isSwipeDisabled}) {\n    if (controller != null) {\n      if (isCompleted) {\n        tween = Tween(\n          begin: 0,\n          end: 400,\n        );\n      } else if (isSkipped) {\n        tween = Tween(\n          begin: 0,\n          end: -400,\n        );\n      } else {\n        tween = Tween(begin: 0, end: 0);\n      }\n    } else {\n      tween = Tween(begin: 0, end: 0);\n    }\n\n    textColor =\n        color.computeLuminance() > 0.5 ? Colors.grey[800]! : Colors.white;\n  }\n\n  String get timerString {\n    if (controller == null) {\n      return \"0:00\";\n    }\n\n    Duration duration =\n        controller!.duration! - (controller!.duration! * controller!.value);\n    return durationToString(duration);\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return Padding(\n      padding: const EdgeInsets.symmetric(horizontal: 20),\n      child: ConstrainedBox(\n        constraints: const BoxConstraints(\n          minHeight: 300,\n        ),\n        child: TweenAnimationBuilder<double>(\n          duration: const Duration(milliseconds: 300),\n          tween: tween,\n          onEnd: () {\n            if (isSkipped) {\n              onDismissed(DismissDirection.endToStart, context);\n            } else if (isCompleted) {\n              onDismissed(DismissDirection.startToEnd, context);\n            }\n          },\n          builder: (context, double value, child) => Transform.translate(\n            offset: Offset(value, 0),\n            child: child,\n          ),\n          child: AnimatedRotation(\n            duration: const Duration(milliseconds: 100),\n            curve: Curves.easeInCirc,\n            turns: index < 6 ? index / 200 : 5 / 200,\n            child: AnimatedPadding(\n              duration: const Duration(milliseconds: 100),\n              curve: Curves.easeInCirc,\n              padding: EdgeInsets.only(\n                  left: index < 6 ? index * 10 : 5 * 10,\n                  bottom: index < 6 ? index * 10 : 5 * 10),\n              child: Dismissible(\n                key: UniqueKey(),\n                confirmDismiss: (direction) {\n                  if (direction == DismissDirection.endToStart &&\n                      isSwipeDisabled) {\n                    return Future((() => false));\n                  }\n                  return Future((() => true));\n                },\n                onDismissed: ((direction) => onDismissed(direction, context)),\n                child: Stack(\n                  alignment: AlignmentDirectional.bottomEnd,\n                  children: [\n                    Container(\n                      height: 300,\n                      decoration: BoxDecoration(\n                        color: Colors.white,\n                        borderRadius: BorderRadius.circular(20),\n                        boxShadow: [\n                          BoxShadow(\n                            color:\n                                Theme.of(context).shadowColor.withOpacity(0.4),\n                            blurRadius: 4.0,\n                            spreadRadius: 0.2,\n                          )\n                        ],\n                      ),\n                    ),\n                    Container(\n                      height: 300,\n                      decoration: BoxDecoration(\n                        color: color.withOpacity(0.4),\n                        borderRadius: BorderRadius.circular(20),\n                      ),\n                    ),\n                    controller == null\n                        ? Container(\n                            height: 40,\n                            decoration: BoxDecoration(\n                              color: color,\n                              borderRadius: BorderRadius.circular(20),\n                            ),\n                          )\n                        : AnimatedBuilder(\n                            animation: controller!,\n                            builder: (context, child) {\n                              return Container(\n                                height: controller!.value * 260 + 40,\n                                decoration: BoxDecoration(\n                                  color: color,\n                                  borderRadius: BorderRadius.only(\n                                    bottomLeft: const Radius.circular(20),\n                                    bottomRight: const Radius.circular(20),\n                                    topLeft: Radius.circular(\n                                      controller!.value * 15 + 5,\n                                    ),\n                                    topRight: Radius.circular(\n                                      controller!.value * 15 + 5,\n                                    ),\n                                  ),\n                                ),\n                              );\n                            },\n                          ),\n                    // Display's the remaining time of the Task\n                    Positioned(\n                      bottom: 15,\n                      left: 10,\n                      child: controller == null\n                          ? Text(\n                              \"0:00\",\n                              style: TextStyle(\n                                  color: textColor,\n                                  fontSize: 26,\n                                  fontWeight: FontWeight.w500),\n                            )\n                          : AnimatedBuilder(\n                              animation: controller!,\n                              builder: ((context, child) => Text(\n                                    timerString,\n                                    style: TextStyle(\n                                      color: textColor,\n                                      fontSize: 26,\n                                      fontWeight: FontWeight.w500,\n                                    ),\n                                  ))),\n                    ),\n\n                    // The Play-Pause Button on the Card\n                    GestureDetector(\n                      onTapUp: onTap,\n                      child: Padding(\n                        padding: const EdgeInsets.all(5.0),\n                        child: AnimatedIcon(\n                          icon: AnimatedIcons.play_pause,\n                          progress: buttonController,\n                          color: textColor,\n                          size: 45,\n                        ),\n                      ),\n                    ),\n\n                    // The Name of the Task\n                    Positioned.fill(\n                        child: Align(\n                      child: Text(\n                        name,\n                        style: GoogleFonts.lato(\n                          fontWeight: FontWeight.bold,\n                          textStyle: Theme.of(context)\n                              .textTheme\n                              .apply(displayColor: textColor)\n                              .displaySmall,\n                        ),\n                      ),\n                    ))\n                  ],\n                ),\n              ),\n            ),\n          ),\n        ),\n      ),\n    );\n  }\n}\n"
  },
  {
    "path": "lib/components/create_routine_bottom_sheet.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:koduko/components/name_page_bottom_sheet.dart';\nimport 'package:koduko/models/routine.dart';\nimport 'package:koduko/models/task.dart';\nimport 'package:koduko/screens/tasks.dart';\nimport 'package:koduko/services/tasks_provider.dart';\nimport 'package:koduko/utils/duration_to_string.dart';\nimport 'package:koduko/utils/parse_duration.dart';\nimport 'package:koduko/utils/time_of_day_util.dart';\nimport 'package:provider/provider.dart';\n\nenum RepeatType {\n  daily,\n  onlyOn,\n}\n\nclass CreateRoutineBottomSheet extends StatefulWidget {\n  const CreateRoutineBottomSheet({\n    super.key,\n    this.editRoutine,\n  });\n  final Routine? editRoutine;\n\n  @override\n  State<CreateRoutineBottomSheet> createState() =>\n      _CreateRoutineBottomSheetState();\n}\n\nclass _CreateRoutineBottomSheetState extends State<CreateRoutineBottomSheet> {\n  late final PageController _pageController;\n  late final TextEditingController _nameController;\n\n  final List<Task> selectedTask = [];\n  Map<String, bool> selectedDays = {\n    \"Monday\": true,\n    \"Tuesday\": true,\n    \"Wednesday\": true,\n    \"Thursday\": true,\n    \"Friday\": true,\n    \"Saturday\": true,\n    \"Sunday\": true,\n  };\n  int pageIndex = 0;\n  bool pageComplected = false;\n  bool notifications = true;\n  TimeOfDay? time =\n      TimeOfDay(hour: TimeOfDay.now().hour + 1, minute: TimeOfDay.now().minute);\n  @override\n  void initState() {\n    _pageController = PageController();\n    _nameController = TextEditingController();\n\n    if (widget.editRoutine != null) {\n      _nameController.text = widget.editRoutine!.name;\n      selectedDays = selectedDays.map((key, value) =>\n          MapEntry(key, widget.editRoutine!.days.contains(key)));\n\n      for (var element in widget.editRoutine!.tasks) {\n        selectedTask.add(element);\n      }\n      if (widget.editRoutine!.time != null) {\n        time = dateTimeToTimeOfDay(widget.editRoutine!.time!);\n      } else {\n        notifications = false;\n        time = TimeOfDay(\n            hour: TimeOfDay.now().hour + 1, minute: TimeOfDay.now().minute);\n      }\n      pageComplected = true;\n    }\n    super.initState();\n  }\n\n  void validateName(String _) {\n    if (_nameController.text.length > 2) {\n      if (!pageComplected) {\n        setState(() {\n          pageComplected = true;\n        });\n      }\n    } else if (pageComplected) {\n      setState(() {\n        pageComplected = false;\n      });\n    }\n  }\n\n  void onChangeRepeatType(RepeatType r) {\n    if (r == RepeatType.daily) {\n      setState(() {\n        selectedDays = selectedDays.map((key, value) => MapEntry(key, true));\n        pageComplected = true;\n      });\n    } else {\n      setState(() {\n        pageComplected = false;\n        selectedDays = selectedDays.map((key, value) => MapEntry(key, false));\n      });\n    }\n  }\n\n  void onDayChange(String e, bool value) {\n    setState(() {\n      selectedDays[e] = value;\n      if (selectedDays.values.contains(true)) {\n        pageComplected = true;\n      } else {\n        pageComplected = false;\n      }\n    });\n  }\n\n  // void onTap(bool selected, int index, BuildContext context) {\n  //   if (selected) {\n  //     if (selectedTask.length == 1) {\n  //       setState(() {\n  //         selectedTask.removeWhere((element) =>\n  //             element.id ==\n  //             Provider.of<TaskModel>(context, listen: false).tasks[index].id);\n  //         pageComplected = false;\n  //       });\n  //     } else {\n  //       setState(() {\n  //         selectedTask.removeWhere((element) =>\n  //             element.id ==\n  //             Provider.of<TaskModel>(context, listen: false).tasks[index].id);\n  //       });\n  //     }\n  //   } else {\n  //     setState(() {\n  //       selectedTask\n  //           .add(Provider.of<TaskModel>(context, listen: false).tasks[index]);\n  //       pageComplected = true;\n  //     });\n  //   }\n  // }\n  void onAdd(Task t) {\n    setState(() {\n      selectedTask.add(t);\n      pageComplected = true;\n    });\n  }\n\n  void onRemove(int index) {\n    if (selectedTask.length == 1) {\n      setState(() {\n        selectedTask.removeAt(index);\n        pageComplected = false;\n      });\n      return;\n    }\n    setState(() {\n      selectedTask.removeAt(index);\n    });\n  }\n\n  @override\n  void dispose() {\n    _pageController.dispose();\n    _nameController.dispose();\n    super.dispose();\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return Container(\n      padding: EdgeInsets.only(\n          top: 10,\n          right: 10,\n          left: 10,\n          bottom: MediaQuery.of(context).viewInsets.bottom + 10),\n      child: Wrap(\n        children: [\n          Center(\n            child: Column(\n              children: [\n                const Icon(\n                  Icons.drag_handle_rounded,\n                  size: 26,\n                ),\n                Text(\n                  \"Create a Routine\",\n                  style: Theme.of(context).textTheme.headlineSmall,\n                ),\n              ],\n            ),\n          ),\n          Padding(\n            padding: const EdgeInsets.all(15),\n            child: TweenAnimationBuilder<double>(\n              duration: const Duration(milliseconds: 250),\n              tween: Tween<double>(\n                  begin: 0.25,\n                  end: pageIndex == 1\n                      ? 0.7\n                      : pageIndex == 0\n                          ? 0.25\n                          : 0.4),\n              builder: (context, value, child) => SizedBox(\n                height: MediaQuery.of(context).size.height * value,\n                child: child,\n              ),\n              child: PageView(\n                controller: _pageController,\n                physics: const NeverScrollableScrollPhysics(),\n                children: [\n                  NamePage(\n                    nameController: _nameController,\n                    validateName: validateName,\n                    pageComplected: pageComplected,\n                    hintText: \"ex. Gym\",\n                    title: \"Routine Name\",\n                  ),\n                  TaskSelectPage(\n                    onChangeOrder: (oldIndex, newIndex) {\n                      setState(() {\n                        if (oldIndex < newIndex) {\n                          newIndex -= 1;\n                        }\n                        final item = selectedTask.removeAt(oldIndex);\n                        selectedTask.insert(newIndex, item);\n                      });\n                    },\n                    onTapDelete: onRemove,\n                    selectedTask: selectedTask,\n                    onTapAdd: onAdd,\n                  ),\n                  RepeatPage(\n                    notification: notifications,\n                    onChangeTime: ((t) => setState(() {\n                          time = t;\n                        })),\n                    onToggleNotification: () => setState(() {\n                      notifications = !notifications;\n                    }),\n                    time: time,\n                    onDayChange: onDayChange,\n                    selectedDays: selectedDays,\n                    onChangeRepeatType: onChangeRepeatType,\n                  )\n                ],\n              ),\n            ),\n          ),\n          Buttons(\n              text: pageIndex == 2 ? \"Done\" : null,\n              pageIndex: pageIndex,\n              onPrevious: () {\n                setState(() {\n                  pageIndex--;\n                });\n                if (pageIndex == 0) {\n                  validateName(\"\");\n                }\n                if (pageIndex == 1) {\n                  setState(() {\n                    pageComplected = selectedTask.isNotEmpty;\n                  });\n                }\n\n                _pageController.previousPage(\n                  duration: const Duration(milliseconds: 350),\n                  curve: Curves.easeIn,\n                );\n              },\n              onNext: pageComplected\n                  ? () {\n                      FocusScopeNode currentFocus = FocusScope.of(context);\n                      if (!currentFocus.hasPrimaryFocus) {\n                        currentFocus.unfocus();\n                      }\n                      if (pageIndex == 2) {\n                        List<String> temp = [];\n                        selectedDays.forEach((key, value) {\n                          if (value) {\n                            temp.add(key);\n                          }\n                        });\n                        if (widget.editRoutine != null) {\n                          List<Task> diff = Routine.taskDiff(\n                              widget.editRoutine!.tasks, selectedTask);\n\n                          if (selectedTask.length >\n                              widget.editRoutine!.tasks.length) {\n                            diff.addAll(widget.editRoutine!.inCompletedTasks);\n                          } else {\n                            diff = Routine.taskDiff(\n                                diff, widget.editRoutine!.inCompletedTasks);\n                          }\n                          return Navigator.pop(\n                              context,\n                              widget.editRoutine!.copyWith(\n                                tasks: selectedTask,\n                                name: _nameController.text,\n                                days: temp,\n                                time: notifications ? time : null,\n                                inCompletedTasks: diff,\n                                isCompleted: diff.isEmpty,\n                              ));\n                        } else {\n                          return Navigator.pop(\n                            context,\n                            Routine.create(\n                              name: _nameController.text,\n                              tasks: selectedTask,\n                              days: temp,\n                              time: notifications\n                                  ? timeOfDayToDateTime(time)\n                                  : null,\n                            ),\n                          );\n                        }\n                      }\n\n                      _pageController.nextPage(\n                        duration: const Duration(milliseconds: 350),\n                        curve: Curves.easeIn,\n                      );\n                      if (pageIndex == 0) {\n                        if (selectedTask.isEmpty) {\n                          setState(() {\n                            pageIndex++;\n                            pageComplected = false;\n                          });\n                          return;\n                        }\n                      }\n                      if (pageIndex == 1) {\n                        if (!selectedDays.values.contains(true)) {\n                          setState(() {\n                            pageComplected = false;\n                            pageIndex++;\n                          });\n                          return;\n                        }\n                      }\n                      setState(() {\n                        pageIndex++;\n                      });\n                    }\n                  : null)\n        ],\n      ),\n    );\n  }\n}\n\nclass Buttons extends StatelessWidget {\n  const Buttons({\n    super.key,\n    required this.pageIndex,\n    required this.onNext,\n    required this.onPrevious,\n    required this.text,\n  });\n\n  final int pageIndex;\n  final void Function()? onNext;\n  final void Function() onPrevious;\n  final String? text;\n\n  @override\n  Widget build(BuildContext context) {\n    return Row(\n      children: [\n        Expanded(\n          flex: 3,\n          child: pageIndex != 0\n              ? ElevatedButton.icon(\n                  style: ElevatedButton.styleFrom(\n                    foregroundColor:\n                        Theme.of(context).colorScheme.onSecondaryContainer,\n                    backgroundColor:\n                        Theme.of(context).colorScheme.secondaryContainer,\n                  ).copyWith(elevation: ButtonStyleButton.allOrNull(0.0)),\n                  onPressed: onPrevious,\n                  icon: const Icon(Icons.chevron_left_sharp),\n                  label: Text(\n                    \"Back\",\n                    style: Theme.of(context).textTheme.bodyLarge,\n                  ),\n                )\n              : TextButton(\n                  onPressed: (() {\n                    Navigator.pop(context);\n                  }),\n                  child: Text(\"Cancel\",\n                      style: Theme.of(context).textTheme.bodyLarge),\n                ),\n        ),\n        const Spacer(\n          flex: 2,\n        ),\n        Expanded(\n          flex: 3,\n          child: ElevatedButton(\n            style: ElevatedButton.styleFrom(\n              foregroundColor:\n                  Theme.of(context).colorScheme.onSecondaryContainer,\n              backgroundColor: Theme.of(context).colorScheme.secondaryContainer,\n            ).copyWith(elevation: ButtonStyleButton.allOrNull(0.0)),\n            onPressed: onNext,\n            child: Row(\n              mainAxisAlignment: MainAxisAlignment.center,\n              children: [\n                Text(\n                  text ?? \"Next\",\n                  style: Theme.of(context).textTheme.bodyLarge,\n                ),\n                text == null\n                    ? const Icon(Icons.chevron_right_sharp)\n                    : Container()\n              ],\n            ),\n          ),\n        )\n      ],\n    );\n  }\n}\n\nclass TaskSelectPage extends StatelessWidget {\n  const TaskSelectPage({\n    super.key,\n    required this.selectedTask,\n    required this.onTapAdd,\n    required this.onTapDelete,\n    required this.onChangeOrder,\n  });\n  final List<Task> selectedTask;\n  final void Function(Task task) onTapAdd;\n  final void Function(int index) onTapDelete;\n  final void Function(int oldIndex, int newIndex) onChangeOrder;\n  @override\n  Widget build(BuildContext context) {\n    return Consumer<TaskModel>(builder: ((context, value, child) {\n      if (value.tasks.isEmpty) {\n        Center(\n          child: Column(\n            mainAxisAlignment: MainAxisAlignment.center,\n            children: [\n              Text(\n                \"Looks like you haven't created any tasks\",\n                style: Theme.of(context).textTheme.titleLarge,\n                textAlign: TextAlign.center,\n              ),\n              const SizedBox(height: 10),\n              TextButton(\n                  onPressed: () {\n                    Navigator.pushNamed(\n                      context,\n                      TasksScreen.routeName,\n                    );\n                  },\n                  child: const Text(\n                    \"Create One\",\n                    style: TextStyle(fontSize: 18),\n                  ))\n            ],\n          ),\n        );\n      }\n\n      return ReorderableListView(\n        header: Column(\n          children: [\n            Row(\n              mainAxisAlignment: MainAxisAlignment.spaceBetween,\n              children: [\n                Text('Select Tasks',\n                    style: Theme.of(context).textTheme.headlineMedium!.apply(\n                        color: Theme.of(context).colorScheme.onSurface)),\n                TextButton.icon(\n                  onPressed: (() {\n                    Navigator.pushNamed(\n                      context,\n                      TasksScreen.routeName,\n                    );\n                  }),\n                  icon: const Icon(Icons.edit_rounded),\n                  label: Text(\n                    'Edit Tasks',\n                    style: Theme.of(context).textTheme.titleMedium!.apply(\n                          color: Theme.of(context).colorScheme.primary,\n                        ),\n                  ),\n                )\n              ],\n            ),\n            const SizedBox(height: 35),\n            Row(\n              mainAxisAlignment: MainAxisAlignment.spaceBetween,\n              children: [\n                Text('Selected Tasks',\n                    style: Theme.of(context).textTheme.titleLarge!),\n                Text(\n                  'Selected (${selectedTask.length})',\n                  style: Theme.of(context)\n                      .textTheme\n                      .titleMedium!\n                      .apply(color: Theme.of(context).colorScheme.primary),\n                ),\n              ],\n            ),\n            const SizedBox(height: 10),\n          ],\n        ),\n        footer: Column(\n          crossAxisAlignment: CrossAxisAlignment.start,\n          children: [\n            const SizedBox(height: 15),\n            Text('Tasks', style: Theme.of(context).textTheme.titleLarge!),\n            const SizedBox(height: 10),\n            if (value.tasks.isEmpty)\n              Column(\n                children: [\n                  const SizedBox(height: 15),\n                  Center(\n                    child: Text('Looks Empty! ',\n                        style: Theme.of(context).textTheme.titleMedium!),\n                  ),\n                  TextButton(\n                      onPressed: () {\n                        Navigator.pushNamed(\n                          context,\n                          TasksScreen.routeName,\n                        );\n                      },\n                      child: const Text(\"Add a Task?\"))\n                ],\n              )\n            else\n              ...value.tasks\n                  .asMap()\n                  .map((key, value) => MapEntry(\n                      key,\n                      Card(\n                        key: Key('$key+${value.id}'),\n                        child: ListTile(\n                            trailing: TextButton.icon(\n                              icon: const Icon(Icons.add),\n                              label: const Text(\"ADD\"),\n                              onPressed: () => onTapAdd(value),\n                            ),\n                            subtitle: Text(\n                              'Duration : ${durationToString(parseDuration(value.duration))} Min',\n                              style: Theme.of(context)\n                                  .textTheme\n                                  .bodyMedium!\n                                  .apply(\n                                      color: Theme.of(context)\n                                          .colorScheme\n                                          .onSurface\n                                          .withOpacity(0.8)),\n                            ),\n                            title: Text(\n                              value.name,\n                              style: Theme.of(context).textTheme.titleMedium,\n                            )),\n                      )))\n                  .values\n                  \n          ],\n        ),\n        onReorder: onChangeOrder,\n        buildDefaultDragHandles: false,\n        children: [\n          if (selectedTask.isEmpty)\n            Padding(\n              key: const Key(\"empty\"),\n              padding: const EdgeInsets.symmetric(vertical: 25),\n              child: Center(\n                child: Text('Select a task and it appears here!',\n                    style: Theme.of(context).textTheme.titleMedium!),\n              ),\n            ),\n          for (int index = 0; index < selectedTask.length; index++)\n            Card(\n              key: Key('$index'),\n              child: ReorderableDelayedDragStartListener(\n                index: index,\n                child: ListTile(\n                    leading: IconButton(\n                      icon: const Icon(Icons.remove),\n                      color: Theme.of(context).colorScheme.error,\n                      onPressed: () => onTapDelete(index),\n                    ),\n                    trailing: ReorderableDragStartListener(\n                      index: index,\n                      child: const Icon(Icons.drag_handle_rounded),\n                    ),\n                    subtitle: Text(\n                      'Duration : ${durationToString(parseDuration(selectedTask[index].duration))} Min',\n                      style: Theme.of(context).textTheme.bodyMedium!.apply(\n                          color: Theme.of(context)\n                              .colorScheme\n                              .onSurface\n                              .withOpacity(0.8)),\n                    ),\n                    title: Text(\n                      selectedTask[index].name,\n                      style: Theme.of(context).textTheme.titleMedium,\n                    )),\n              ),\n            ),\n        ],\n      );\n    }));\n  }\n}\n\nclass RepeatPage extends StatelessWidget {\n  const RepeatPage({\n    super.key,\n    required this.onDayChange,\n    required this.selectedDays,\n    required this.onChangeRepeatType,\n    required this.time,\n    required this.onChangeTime,\n    required this.onToggleNotification,\n    required this.notification,\n  });\n  final void Function(String, bool) onDayChange;\n  final Map<String, bool> selectedDays;\n  final void Function(RepeatType) onChangeRepeatType;\n  final TimeOfDay? time;\n  final void Function(TimeOfDay time) onChangeTime;\n  final void Function() onToggleNotification;\n  final bool notification;\n\n  @override\n  Widget build(BuildContext context) {\n    Future<void> selectTime(BuildContext context) async {\n      TimeOfDay? pickedTime = await showTimePicker(\n        context: context,\n        initialTime: time ?? TimeOfDay.now(),\n        builder: (context, child) => MediaQuery(\n          data: MediaQuery.of(context).copyWith(alwaysUse24HourFormat: false),\n          child: child ?? Container(),\n        ),\n      );\n      if (pickedTime != null && pickedTime != time) {\n        onChangeTime(pickedTime);\n      }\n    }\n\n    return ListView(\n      children: [\n        Text(\n          \"Repeat\",\n          style: Theme.of(context).textTheme.titleLarge,\n        ),\n        const SizedBox(\n          height: 15,\n        ),\n        Wrap(\n          children: [\n            ChoiceChip(\n              label: const Text(\"Daily\"),\n              pressElevation: 0,\n              shape: const RoundedRectangleBorder(\n                borderRadius: BorderRadius.horizontal(left: Radius.circular(5)),\n              ),\n              selected: !selectedDays.values.contains(false),\n              backgroundColor: Theme.of(context).colorScheme.onInverseSurface,\n              onSelected: (value) => onChangeRepeatType(RepeatType.daily),\n              selectedColor: Theme.of(context).colorScheme.inversePrimary,\n              labelStyle: Theme.of(context).textTheme.titleMedium,\n            ),\n            ChoiceChip(\n              label: const Text(\"Only on\"),\n              shape: const RoundedRectangleBorder(\n                borderRadius:\n                    BorderRadius.horizontal(right: Radius.circular(5)),\n              ),\n              pressElevation: 0,\n              selected: selectedDays.values.contains(false),\n              backgroundColor: Theme.of(context).colorScheme.onInverseSurface,\n              onSelected: (value) => onChangeRepeatType(RepeatType.onlyOn),\n              selectedColor: Theme.of(context).colorScheme.inversePrimary,\n              labelStyle: Theme.of(context).textTheme.titleMedium,\n            ),\n          ],\n        ),\n        selectedDays.values.contains(false)\n            ? Wrap(\n                spacing: 2,\n                runSpacing: -8,\n                children: selectedDays.keys\n                    .map(\n                      (e) => Padding(\n                        padding: const EdgeInsets.all(4.0),\n                        child: ChoiceChip(\n                          elevation: 3,\n                          label: Text(e),\n                          selected: selectedDays[e] ?? false,\n                          backgroundColor:\n                              Theme.of(context).colorScheme.onInverseSurface,\n                          onSelected: (value) => onDayChange(e, value),\n                          selectedColor:\n                              Theme.of(context).colorScheme.inversePrimary,\n                          labelStyle: Theme.of(context).textTheme.labelMedium,\n                        ),\n                      ),\n                    )\n                    .toList())\n            : Container(),\n        const SizedBox(\n          height: 15,\n        ),\n        Row(\n          mainAxisAlignment: MainAxisAlignment.spaceBetween,\n          children: [\n            Text(\n              \"Notification\",\n              style: Theme.of(context).textTheme.titleLarge,\n            ),\n            TextButton.icon(\n                onPressed: onToggleNotification,\n                icon: notification\n                    ? const Icon(Icons.notifications_active_rounded)\n                    : const Icon(Icons.notifications_off_rounded),\n                label: notification ? const Text(\"ON\") : const Text(\"OFF\"))\n          ],\n        ),\n        notification\n            ? Padding(\n                padding: const EdgeInsets.all(8.0),\n                child: Row(\n                  mainAxisAlignment: MainAxisAlignment.spaceBetween,\n                  children: [\n                    Text(\n                      \"Select Time\",\n                      style: Theme.of(context).textTheme.titleMedium,\n                    ),\n                    ElevatedButton(\n                      style: ElevatedButton.styleFrom(\n                        shape: RoundedRectangleBorder(\n                          borderRadius: BorderRadius.circular(10),\n                        ),\n                      ),\n                      onPressed: () => selectTime(context),\n                      child: time == null\n                          ? const Text(\"Select Time\")\n                          : Text(\n                              time!.format(context),\n                            ),\n                    ),\n                  ],\n                ),\n              )\n            : Container()\n      ],\n    );\n  }\n}\n"
  },
  {
    "path": "lib/components/create_task_bottom_sheet.dart",
    "content": "import 'package:duration_picker/duration_picker.dart';\nimport 'package:flutter/material.dart';\nimport 'package:koduko/components/name_page_bottom_sheet.dart';\nimport 'package:koduko/models/task.dart';\nimport 'package:koduko/utils/duration_to_string.dart';\nimport 'package:koduko/utils/parse_duration.dart';\n\nclass CreateTaskBottomSheet extends StatefulWidget {\n  const CreateTaskBottomSheet({super.key, this.task});\n  final Task? task;\n  @override\n  State<CreateTaskBottomSheet> createState() => _CreateTaskBottomSheetState();\n}\n\nclass _CreateTaskBottomSheetState extends State<CreateTaskBottomSheet> {\n  late final PageController _pageController;\n  late final TextEditingController _nameController;\n\n  static const chipList = <String, Duration>{\n    \"30 sec\": Duration(seconds: 30),\n    \"1 min\": Duration(minutes: 1),\n    \"2 mins\": Duration(minutes: 2),\n    \"5 mins\": Duration(minutes: 5),\n    \"10 mins\": Duration(minutes: 10),\n    \"15 mins\": Duration(minutes: 15),\n    \"20 mins\": Duration(minutes: 20),\n    \"25 mins\": Duration(minutes: 25),\n    \"30 mins\": Duration(minutes: 30),\n    \"Custom\": Duration(minutes: 5),\n  };\n  static const colorList = [\n    Colors.blue,\n    Colors.amber,\n    Colors.brown,\n    Colors.yellow,\n    Colors.teal,\n    Colors.purple,\n    Colors.red,\n  ];\n\n  Duration customTime = const Duration(minutes: 5);\n  String? _value;\n  int? _selectedColor;\n  int pageIndex = 0;\n  bool pageComplected = false;\n  @override\n  void initState() {\n    _pageController = PageController();\n    _nameController = TextEditingController();\n    if (widget.task != null) {\n      _nameController.text = widget.task!.name;\n      _value = chipList.keys.firstWhere((element) =>\n          chipList[element] == parseDuration(widget.task!.duration));\n      _selectedColor = colorList\n          .indexWhere((element) => element.value == widget.task!.color);\n      pageComplected = true;\n    }\n    super.initState();\n  }\n\n  void validateName(String _) {\n    if (_nameController.text.length > 2) {\n      if (!pageComplected) {\n        setState(() {\n          pageComplected = true;\n        });\n      }\n    } else if (pageComplected) {\n      setState(() {\n        pageComplected = false;\n      });\n    }\n  }\n\n  void validateDuration() {\n    if (_value == null) {\n      setState(() {\n        pageComplected = false;\n      });\n    } else {\n      setState(() {\n        pageComplected = true;\n      });\n    }\n  }\n\n  void validateColor() {\n    if (_selectedColor == null) {\n      setState(() {\n        pageComplected = false;\n      });\n    } else {\n      setState(() {\n        pageComplected = true;\n      });\n    }\n  }\n\n  void onChangeChip(bool selected, int index, BuildContext context) async {\n    if (chipList.keys.toList()[index] == 'Custom') {\n      final r = await showDurationPicker(\n        context: context,\n        initialTime: _value != null\n            ? _value == 'Custom'\n                ? customTime\n                : chipList[_value] ?? customTime\n            : customTime,\n        baseUnit: BaseUnit.second,\n        lowerBound: const Duration(seconds: 15),\n        upperBound: const Duration(hours: 1),\n      );\n\n      if (r == null) {\n        return;\n      }\n      setState(() {\n        customTime = r;\n        _value = 'Custom';\n      });\n      validateDuration();\n      return;\n    }\n    setState(() {\n      _value = selected ? chipList.keys.toList()[index] : null;\n    });\n    validateDuration();\n  }\n\n  // Future<bool> onCustomDurationSelect(BuildContext context) async {\n  //   final result = await Picker(\n  //     adapter: NumberPickerAdapter(data: <NumberPickerColumn>[\n  //       const NumberPickerColumn(begin: 0, end: 30, suffix: Text(' minutes')),\n  //       const NumberPickerColumn(begin: 5, end: 60, suffix: Text(' seconds')),\n  //     ]),\n  //     backgroundColor: Theme.of(context).colorScheme.surface,\n  //     onBuilderItem: (context, text, child, selected, col, index) {\n  //       String t = text == null\n  //           ? ''\n  //           : col == 0\n  //               ? '$text min'\n  //               : '$text sec';\n  //       return Center(\n  //         child: Row(\n  //           mainAxisAlignment: MainAxisAlignment.spaceEvenly,\n  //           children: [\n  //             Text(\n  //               t,\n  //               style: selected\n  //                   ? Theme.of(context)\n  //                       .textTheme\n  //                       .titleLarge!\n  //                       .apply(color: Theme.of(context).colorScheme.primary)\n  //                   : Theme.of(context).textTheme.titleMedium,\n  //             )\n  //           ],\n  //         ),\n  //       );\n  //     },\n  //     looping: true,\n  //     magnification: 1.1,\n  //     itemExtent: 50,\n  //     hideHeader: true,\n  //     confirmText: 'Select',\n  //     title: const Text('Select duration'),\n  //     onConfirm: (Picker picker, List<int> value) {\n  //       Duration duration = Duration(\n  //           minutes: picker.getSelectedValues()[0],\n  //           seconds: picker.getSelectedValues()[1]);\n  //       setState(() {\n  //         customTime = duration;\n  //       });\n  //       validateDuration();\n  //     },\n  //   ).showDialog(context);\n  //   if (result == null) {\n  //     return false;\n  //   } else {\n  //     return true;\n  //   }\n  // }\n\n  void onChangeColor(int index) {\n    setState(() {\n      _selectedColor = index;\n    });\n    validateColor();\n  }\n\n  @override\n  void dispose() {\n    _pageController.dispose();\n    _nameController.dispose();\n    super.dispose();\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return Container(\n      padding: EdgeInsets.only(\n          top: 10,\n          right: 10,\n          left: 10,\n          bottom: MediaQuery.of(context).viewInsets.bottom + 10),\n      child: Wrap(\n        children: [\n          Center(\n            child: Column(\n              children: [\n                const Icon(\n                  Icons.drag_handle_rounded,\n                  size: 26,\n                ),\n                Text(\n                  \"Create a Task\",\n                  style: Theme.of(context).textTheme.headlineSmall,\n                ),\n              ],\n            ),\n          ),\n          Padding(\n            padding: const EdgeInsets.all(15),\n            child: SizedBox(\n              height: MediaQuery.of(context).size.height / 4,\n              child: PageView(\n                controller: _pageController,\n                physics: const NeverScrollableScrollPhysics(),\n                children: [\n                  NamePage(\n                    nameController: _nameController,\n                    validateName: validateName,\n                    pageComplected: pageComplected,\n                    hintText: \"ex. push up\",\n                    title: \"Task Name\",\n                  ),\n                  DurationPage(\n                    customDuration: customTime,\n                    onChange: onChangeChip,\n                    chipList: chipList,\n                    value: _value,\n                  ),\n                  ColorPage(\n                    onChange: onChangeColor,\n                    colorList: colorList,\n                    selectedColor: _selectedColor,\n                  )\n                ],\n              ),\n            ),\n          ),\n          Buttons(\n              text: pageIndex == 2 ? \"Done\" : null,\n              pageIndex: pageIndex,\n              onPrevious: () {\n                setState(() {\n                  pageIndex--;\n                });\n                if (pageIndex == 0) {\n                  validateName(\"\");\n                }\n                if (pageIndex == 1) {\n                  validateDuration();\n                }\n                _pageController.previousPage(\n                  duration: const Duration(milliseconds: 350),\n                  curve: Curves.easeIn,\n                );\n              },\n              onNext: pageComplected\n                  ? () {\n                      FocusScopeNode currentFocus = FocusScope.of(context);\n\n                      if (!currentFocus.hasPrimaryFocus) {\n                        currentFocus.unfocus();\n                      }\n                      setState(() {\n                        pageIndex++;\n                      });\n                      if (pageIndex == 1) {\n                        validateDuration();\n                      }\n                      if (pageIndex == 2) {\n                        validateColor();\n                      }\n                      if (pageIndex == 3) {\n                        final dur = _value! == 'Custom'\n                            ? customTime\n                            : chipList[_value]!;\n                        Navigator.pop(\n                            context,\n                            Task.fromDuration(\n                                duration: dur,\n                                name: _nameController.text,\n                                color: colorList[_selectedColor!]));\n                      }\n                      _pageController.nextPage(\n                        duration: const Duration(milliseconds: 350),\n                        curve: Curves.easeIn,\n                      );\n                    }\n                  : null)\n        ],\n      ),\n    );\n  }\n}\n\nclass Buttons extends StatelessWidget {\n  const Buttons({\n    super.key,\n    required this.pageIndex,\n    required this.onNext,\n    required this.onPrevious,\n    required this.text,\n  });\n\n  final int pageIndex;\n  final void Function()? onNext;\n  final void Function() onPrevious;\n  final String? text;\n\n  @override\n  Widget build(BuildContext context) {\n    return Row(\n      children: [\n        Expanded(\n          flex: 3,\n          child: pageIndex != 0\n              ? ElevatedButton.icon(\n                  style: ElevatedButton.styleFrom(\n                    foregroundColor:\n                        Theme.of(context).colorScheme.onSecondaryContainer,\n                    backgroundColor:\n                        Theme.of(context).colorScheme.secondaryContainer,\n                  ).copyWith(elevation: ButtonStyleButton.allOrNull(0.0)),\n                  onPressed: onPrevious,\n                  icon: const Icon(Icons.chevron_left_sharp),\n                  label: Text(\n                    \"Back\",\n                    style: Theme.of(context).textTheme.bodyLarge,\n                  ),\n                )\n              : TextButton(\n                  onPressed: (() {\n                    Navigator.pop(context);\n                  }),\n                  child: Text(\"Cancel\",\n                      style: Theme.of(context).textTheme.bodyLarge),\n                ),\n        ),\n        const Spacer(\n          flex: 2,\n        ),\n        Expanded(\n          flex: 3,\n          child: ElevatedButton(\n            style: ElevatedButton.styleFrom(\n              foregroundColor:\n                  Theme.of(context).colorScheme.onSecondaryContainer,\n              backgroundColor: Theme.of(context).colorScheme.secondaryContainer,\n            ).copyWith(elevation: ButtonStyleButton.allOrNull(0.0)),\n            onPressed: onNext,\n            child: Row(\n              mainAxisAlignment: MainAxisAlignment.center,\n              children: [\n                Text(\n                  text ?? \"Next\",\n                  style: Theme.of(context).textTheme.bodyLarge,\n                ),\n                text == null\n                    ? const Icon(Icons.chevron_right_sharp)\n                    : Container()\n              ],\n            ),\n          ),\n        )\n      ],\n    );\n  }\n}\n\nclass DurationPage extends StatelessWidget {\n  const DurationPage(\n      {super.key,\n      required this.onChange,\n      required this.chipList,\n      required this.value,\n      required this.customDuration});\n\n  final void Function(bool, int, BuildContext) onChange;\n  final Map<String, Duration> chipList;\n  final String? value;\n  final Duration customDuration;\n\n  @override\n  Widget build(BuildContext context) {\n    return ListView(\n      children: [\n        Text(\n          \"Select a Duration\",\n          style: Theme.of(context).textTheme.titleLarge,\n        ),\n        const SizedBox(\n          height: 15,\n        ),\n        Wrap(\n          spacing: 6,\n          children: List<Widget>.generate(\n            chipList.length,\n            (index) => ChoiceChip(\n              label: Text(\n                  value == 'Custom' && chipList.keys.toList()[index] == 'Custom'\n                      ? '${durationToString(customDuration)} min'\n                      : chipList.keys.toList()[index]),\n              selected: value == chipList.keys.toList()[index],\n              selectedColor:\n                  Theme.of(context).colorScheme.primary.withOpacity(0.7),\n              backgroundColor:\n                  Theme.of(context).colorScheme.primary.withOpacity(0.15),\n              labelStyle: Theme.of(context).textTheme.labelLarge!.apply(\n                  color: value == chipList.keys.toList()[index]\n                      ? Theme.of(context).colorScheme.onSecondary\n                      : Theme.of(context).colorScheme.onSurface),\n              onSelected: (bool selected) => onChange(selected, index, context),\n            ),\n          ),\n        ),\n      ],\n    );\n  }\n}\n\nclass ColorPage extends StatelessWidget {\n  const ColorPage(\n      {super.key,\n      required this.onChange,\n      required this.colorList,\n      required this.selectedColor});\n  final void Function(int) onChange;\n  final List<Color> colorList;\n  final int? selectedColor;\n  @override\n  Widget build(BuildContext context) {\n    return Column(\n      mainAxisAlignment: MainAxisAlignment.center,\n      crossAxisAlignment: CrossAxisAlignment.start,\n      children: [\n        Text(\n          \"Pick a Color\",\n          style: Theme.of(context).textTheme.titleLarge,\n        ),\n        const SizedBox(\n          height: 15,\n        ),\n        Wrap(\n          spacing: 5,\n          children: List<Widget>.generate(\n              colorList.length,\n              (index) => GestureDetector(\n                    onTap: () => onChange(index),\n                    child: AnimatedContainer(\n                      duration: const Duration(milliseconds: 200),\n                      padding: const EdgeInsets.all(3),\n                      decoration: BoxDecoration(\n                        border: Border.all(\n                          color: selectedColor == index\n                              ? Colors.blueAccent\n                              : Theme.of(context).colorScheme.surface,\n                          width: 3,\n                        ),\n                        shape: BoxShape.circle,\n                      ),\n                      child: Container(\n                        height: selectedColor == index ? 25 : 20,\n                        width: selectedColor == index ? 25 : 20,\n                        decoration: BoxDecoration(\n                          boxShadow: const [\n                            BoxShadow(\n                              color: Colors.grey,\n                              offset: Offset(0.0, 1.0), //(x,y)\n                              blurRadius: 6.0,\n                            ),\n                          ],\n                          color: colorList[index],\n                          shape: BoxShape.circle,\n                        ),\n                      ),\n                    ),\n                  )),\n        ),\n      ],\n    );\n  }\n}\n"
  },
  {
    "path": "lib/components/daily_activity.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:percent_indicator/circular_percent_indicator.dart';\nimport 'package:provider/provider.dart';\n\nclass TodayProgress extends StatelessWidget {\n  const TodayProgress({\n    super.key,\n    required this.textTheme,\n  });\n\n  final TextTheme textTheme;\n\n  @override\n  Widget build(BuildContext context) {\n    return Card(\n      margin: const EdgeInsets.symmetric(vertical: 10),\n      child: Padding(\n        padding: const EdgeInsets.symmetric(vertical: 15),\n        child: Consumer<RoutineModel>(builder: ((context, value, child) {\n          var inT = value.totalNoOfCompletedTasksToday();\n          var t = value.totalNoOfTasksToday();\n          double per;\n          if (t == 0) {\n            per = 0;\n          } else {\n            per = inT / t;\n          }\n\n          return Row(\n            mainAxisAlignment: MainAxisAlignment.spaceAround,\n            children: [\n              Column(\n                crossAxisAlignment: CrossAxisAlignment.start,\n                children: [\n                  Text(\n                    '${value.totalNoOfCompletedTasksToday()}/${value.totalNoOfTasksToday()}',\n                    style: textTheme.headlineLarge,\n                  ),\n                  Text(\n                    \"Today's Progress\",\n                    style: textTheme.titleMedium,\n                  )\n                ],\n              ),\n              Stack(\n                alignment: AlignmentDirectional.center,\n                children: [\n                  CircularPercentIndicator(\n                    percent: per,\n                    backgroundColor:\n                        Theme.of(context).colorScheme.surfaceContainerHighest,\n                    backgroundWidth: 15,\n                    progressColor: Theme.of(context).colorScheme.inversePrimary,\n                    animation: true,\n                    circularStrokeCap: CircularStrokeCap.round,\n                    radius: 40,\n                    lineWidth: 8,\n                  ),\n                  Text(\n                    '${(per * 100).toInt()}%',\n                    style: textTheme.titleSmall!.apply(fontWeightDelta: 1),\n                  )\n                ],\n              )\n            ],\n          );\n        })),\n      ),\n    );\n  }\n}\n"
  },
  {
    "path": "lib/components/header.dart",
    "content": "import 'package:flutter/material.dart';\n\nclass ScreenHeader extends StatelessWidget {\n  const ScreenHeader({super.key, required this.text, required this.tag});\n  final String text;\n  final String tag;\n  @override\n  Widget build(BuildContext context) {\n    return Row(\n      children: [\n        Expanded(\n          flex: 1,\n          child: IconButton(\n            onPressed: () {\n              Navigator.pop(context);\n            },\n            icon: const Icon(\n              Icons.arrow_back_ios,\n              size: 30,\n            ),\n          ),\n        ),\n        Expanded(\n          flex: 10,\n          child: Hero(\n            tag: tag,\n            child: Text(\n              text,\n              style: Theme.of(context)\n                  .textTheme\n                  .headlineLarge!\n                  .apply(color: Theme.of(context).colorScheme.onSurface),\n              textAlign: TextAlign.center,\n            ),\n          ),\n        ),\n      ],\n    );\n  }\n}\n"
  },
  {
    "path": "lib/components/most_productive_hour.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:intl/intl.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:koduko/utils/time_of_day_util.dart';\nimport 'package:provider/provider.dart';\n\nclass ProductiveHour extends StatelessWidget {\n  const ProductiveHour({super.key, required this.textTheme});\n  final TextTheme textTheme;\n\n  @override\n  Widget build(BuildContext context) {\n    return Card(\n        child: Selector<RoutineModel, int>(\n      selector: (p0, p1) => p1.getMostProductiveHour(),\n      builder: (context, value, child) => Padding(\n        padding: const EdgeInsets.all(8.0),\n        child: Column(\n          children: [\n            const SizedBox(height: 15),\n            Text(\n              \"Most Productive Hour\",\n              style: textTheme.titleSmall,\n            ),\n            const SizedBox(height: 10),\n            Text(\n              DateFormat.j().format(\n                  timeOfDayToDateTime(TimeOfDay(hour: value, minute: 0)) ??\n                      DateTime.now()),\n              style: textTheme.headlineLarge,\n            ),\n            const SizedBox(height: 15),\n          ],\n        ),\n      ),\n    ));\n  }\n}\n"
  },
  {
    "path": "lib/components/name_page_bottom_sheet.dart",
    "content": "import 'package:flutter/material.dart';\n\nclass NamePage extends StatelessWidget {\n  const NamePage(\n      {super.key,\n      required this.nameController,\n      required this.validateName,\n      required this.pageComplected,\n      required this.hintText,\n      required this.title});\n  final TextEditingController nameController;\n  final void Function(String) validateName;\n  final bool pageComplected;\n  final String hintText;\n  final String title;\n\n  @override\n  Widget build(BuildContext context) {\n    return Column(\n      mainAxisAlignment: MainAxisAlignment.center,\n      crossAxisAlignment: CrossAxisAlignment.start,\n      children: [\n        Text(\n          title,\n          style: Theme.of(context).textTheme.titleLarge,\n        ),\n        const SizedBox(\n          height: 25,\n        ),\n        TextField(\n          controller: nameController,\n          autofocus: true,\n          maxLength: 20,\n          onChanged: validateName,\n          decoration: InputDecoration(\n            suffixIcon: pageComplected ? const Icon(Icons.check) : null,\n            filled: true,\n            hintText: hintText,\n            errorText:\n                nameController.text.length > 2 || nameController.text.isEmpty\n                    ? null\n                    : \"Invalid Name\",\n          ),\n        )\n      ],\n    );\n  }\n}\n"
  },
  {
    "path": "lib/components/productive_day.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:intl/intl.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:provider/provider.dart';\n\nclass ProductiveDay extends StatelessWidget {\n  const ProductiveDay({super.key, required this.textTheme});\n  final TextTheme textTheme;\n\n  @override\n  Widget build(BuildContext context) {\n    return Card(\n        child: Selector<RoutineModel, DateTime?>(\n      selector: (p0, p1) => p1.getMostProductiveDay(),\n      builder: (context, value, child) => Padding(\n        padding: const EdgeInsets.all(8.0),\n        child: Column(\n          children: [\n            const SizedBox(height: 15),\n            Text(\n              \"Most Productive Day\",\n              style: textTheme.titleSmall,\n            ),\n            const SizedBox(height: 10),\n            Text(\n              value == null ? 'NaN' : DateFormat('EEEE').format(value),\n              style: textTheme.headlineLarge,\n            ),\n            const SizedBox(height: 15),\n          ],\n        ),\n      ),\n    ));\n  }\n}\n"
  },
  {
    "path": "lib/components/routine_chart.dart",
    "content": "import 'dart:math';\n\nimport 'package:fl_chart/fl_chart.dart';\nimport 'package:flutter/material.dart';\nimport 'package:intl/intl.dart';\nimport 'package:koduko/models/routine.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:provider/provider.dart';\n\nclass RoutineChart extends StatelessWidget {\n  const RoutineChart({super.key, required this.routine});\n\n  // final List<Color> gradientColors = [\n  //   const Color(0xff6f7bf7),\n  //   const Color(0xff9bf8f4),\n  // ];\n  final Routine routine;\n  @override\n  Widget build(BuildContext context) {\n    return Consumer<RoutineModel>(builder: (context, value, child) {\n      double maxX =\n          value.getRoutineStartMaxDays(routine.id).toDouble().clamp(0, 7);\n      double maxY = value.getRoutineStats(routine.id).isNotEmpty\n          ? value.getRoutineStats(routine.id).reduce(max).toDouble()\n          : 10;\n      Color c = Theme.of(context).brightness == Brightness.light\n          ? Colors.black12\n          : Colors.grey[800]!;\n\n      final showChart = maxX >= 1 ? true : false;\n\n      if (!showChart) {\n        return Padding(\n          padding: const EdgeInsets.all(15),\n          child: Text(\n            \"${routine.name.trim()}'s activity will show up here. \",\n            style: Theme.of(context).textTheme.bodyLarge,\n            textAlign: TextAlign.center,\n          ),\n        );\n      }\n      return Column(\n        children: [\n          const SizedBox(height: 10),\n          Padding(\n            padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 5),\n            child: Align(\n              alignment: Alignment.centerLeft,\n              child: Text(\n                \"${routine.name.trim()}'s Activity\",\n                style: Theme.of(context).textTheme.titleLarge,\n              ),\n            ),\n          ),\n          Padding(\n            padding: const EdgeInsets.symmetric(\n              horizontal: 15,\n            ),\n            child: SizedBox(\n              height: 200,\n              child: Padding(\n                padding: const EdgeInsets.all(10.0),\n                child: LineChart(\n                  LineChartData(\n                    titlesData: FlTitlesData(\n                      show: true,\n                      rightTitles: const AxisTitles(\n                        sideTitles: SideTitles(showTitles: false),\n                      ),\n                      topTitles: const AxisTitles(\n                        sideTitles: SideTitles(showTitles: false),\n                      ),\n                      bottomTitles: AxisTitles(\n                        sideTitles: SideTitles(\n                          showTitles: true,\n                          reservedSize: 30,\n                          interval: 1,\n                          getTitlesWidget: ((v, meta) => bottomTitleWidgets(\n                              v, c, meta, value.getStartDate(routine.id))),\n                        ),\n                      ),\n                      leftTitles: AxisTitles(\n                        sideTitles: SideTitles(\n                          showTitles: false,\n                          reservedSize: 30,\n                          interval: 1,\n                          getTitlesWidget: ((v, meta) =>\n                              leftTitleWidgets(v, c, meta)),\n                        ),\n                      ),\n                    ),\n                    gridData: FlGridData(\n                      show: true,\n                      drawVerticalLine: true,\n                      horizontalInterval: 1,\n                      verticalInterval: 1,\n                      getDrawingHorizontalLine: (value) {\n                        return FlLine(\n                          color: c,\n                          strokeWidth: 1,\n                        );\n                      },\n                      getDrawingVerticalLine: (value) {\n                        return FlLine(\n                          color: c,\n                          strokeWidth: 1,\n                        );\n                      },\n                    ),\n                    borderData: FlBorderData(\n                        show: true, border: Border.all(color: c, width: 1)),\n                    minX: 0,\n                    maxX: maxX,\n                    minY: -0.2,\n                    maxY: maxY + 1,\n                    lineBarsData: [\n                      LineChartBarData(\n                        spots: value\n                            .getRoutineStats(routine.id)\n                            .asMap()\n                            .map((key, value) => MapEntry(\n                                key, FlSpot(key.toDouble(), value.toDouble())))\n                            .values\n                            .toList(),\n                        isCurved: true,\n                        curveSmoothness: 0.5,\n                        barWidth: 3,\n                        color: Theme.of(context).colorScheme.primary,\n                        dotData: const FlDotData(\n                          show: true,\n                        ),\n                        belowBarData: BarAreaData(\n                          show: true,\n                          color: Theme.of(context)\n                              .colorScheme\n                              .primary\n                              .withOpacity(0.4),\n                        ),\n                      ),\n                    ],\n                  ),\n                ),\n              ),\n            ),\n          ),\n        ],\n      );\n    });\n  }\n}\n\nWidget bottomTitleWidgets(\n    double value, Color c, TitleMeta meta, DateTime start) {\n  final style = TextStyle(\n    color: c,\n    fontWeight: FontWeight.bold,\n    fontSize: 12,\n  );\n\n  return SideTitleWidget(\n    axisSide: meta.axisSide,\n    space: 8.0,\n    child: Text(\n        DateFormat('dd/MM').format(start.add(Duration(days: value.toInt()))),\n        style: style),\n  );\n}\n\nWidget leftTitleWidgets(double value, Color c, TitleMeta meta) {\n  final style = TextStyle(\n    color: c,\n    fontWeight: FontWeight.bold,\n    fontSize: 12,\n  );\n  if (value < 0) {\n    return Container();\n  }\n  return Text(\n    value.toInt().toString(),\n    style: style,\n    textAlign: TextAlign.center,\n  );\n}\n"
  },
  {
    "path": "lib/components/routine_tile.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:flutter_slidable/flutter_slidable.dart';\nimport 'package:koduko/components/create_routine_bottom_sheet.dart';\nimport 'package:koduko/components/routine_chart.dart';\nimport 'package:koduko/models/routine.dart';\nimport 'package:koduko/screens/start_routine.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:percent_indicator/linear_percent_indicator.dart';\nimport 'package:provider/provider.dart';\n\nclass RoutineTile extends StatefulWidget {\n  const RoutineTile({\n    super.key,\n    required this.routine,\n    this.isToday = false,\n    required this.onEdit,\n  });\n  final Routine routine;\n  final bool isToday;\n  final void Function(Routine) onEdit;\n\n  @override\n  State<RoutineTile> createState() => _RoutineTileState();\n}\n\nclass _RoutineTileState extends State<RoutineTile> {\n  void onLongPress(BuildContext context) async {\n    Routine? r = await showModalBottomSheet<Routine>(\n        isScrollControlled: true,\n        isDismissible: true,\n        shape: const RoundedRectangleBorder(\n          borderRadius: BorderRadius.vertical(\n            top: Radius.circular(10),\n            bottom: Radius.zero,\n          ),\n        ),\n        context: context,\n        builder: ((context) => CreateRoutineBottomSheet(\n              editRoutine: widget.routine,\n            )));\n    if (r != null) {\n      widget.onEdit(r);\n    }\n  }\n\n  void onExpanded(bool value) {\n    setState(() {\n      isExpanded = value;\n    });\n  }\n\n  void onPress(BuildContext context) {\n    Navigator.push(\n        context,\n        MaterialPageRoute(\n            builder: ((context) => RoutineScreen(\n                  routine: widget.routine.id,\n                ))));\n  }\n\n  bool isExpanded = false;\n\n  @override\n  Widget build(BuildContext context) {\n    return Padding(\n      padding: const EdgeInsets.all(2),\n      child: Slidable(\n        enabled: !isExpanded,\n        closeOnScroll: true,\n        key: Key(widget.routine.id),\n        startActionPane: ActionPane(\n          motion: const ScrollMotion(),\n          dismissible: DismissiblePane(\n              closeOnCancel: true,\n              onDismissed: () {\n                Provider.of<RoutineModel>(context, listen: false)\n                    .addToArchive(widget.routine.id);\n              }),\n          children: [\n            Action(\n              onPress: ((context) {\n                Provider.of<RoutineModel>(context, listen: false)\n                    .addToArchive(widget.routine.id);\n              }),\n              color: Colors.brown[300]!,\n              icon: Icons.archive_rounded,\n              label: 'Archive',\n            ),\n          ],\n        ),\n        endActionPane: ActionPane(\n          motion: const ScrollMotion(),\n          children: [\n            Action(\n              onPress: ((context) {\n                Provider.of<RoutineModel>(context, listen: false)\n                    .toggleMarkAsCompleted(widget.routine.id);\n              }),\n              color: Colors.blue[300]!,\n              icon: Icons.checklist_rounded,\n              label: widget.routine.isCompleted\n                  ? 'Mark as Incomplete'\n                  : 'Mark as Completed',\n            ),\n          ],\n        ),\n        child: Card(\n            child: Padding(\n                padding: const EdgeInsets.symmetric(vertical: 5),\n                child: CustomTile(\n                  isOpen: isExpanded,\n                  onStateChange: onExpanded,\n                  isToday: widget.isToday,\n                  routine: widget.routine,\n                  onPress: onPress,\n                  onEdit: onLongPress,\n                  onDelete: ((context) {\n                    showDialog(\n                      context: context,\n                      builder: ((context) => AlertOnDelete(\n                            onCancel: () {\n                              Navigator.pop(context);\n                            },\n                            onDelete: (() {\n                              Provider.of<RoutineModel>(context, listen: false)\n                                  .delete(widget.routine.id);\n                              Navigator.pop(context);\n                            }),\n                          )),\n                    );\n                  }),\n                ))),\n      ),\n    );\n  }\n}\n\nclass AlertOnDelete extends StatelessWidget {\n  const AlertOnDelete({\n    super.key,\n    required this.onCancel,\n    required this.onDelete,\n  });\n  final void Function() onCancel;\n  final void Function() onDelete;\n\n  @override\n  Widget build(BuildContext context) {\n    return AlertDialog(\n      title: const Text(\"Delete routine?\"),\n      content: const Text(\n          \"This routine will be deleted. This will remove all the history of this routine as well.\"),\n      actions: [\n        TextButton(\n          onPressed: onCancel,\n          child: const Text(\"CANCEL\"),\n        ),\n        TextButton(\n          style: TextButton.styleFrom(\n              foregroundColor: Theme.of(context).colorScheme.error),\n          onPressed: onDelete,\n          child: const Text(\"DELETE\"),\n        )\n      ],\n    );\n  }\n}\n\nclass Action extends StatelessWidget {\n  const Action(\n      {super.key,\n      required this.onPress,\n      required this.color,\n      required this.icon,\n      required this.label});\n\n  final Function(BuildContext context) onPress;\n  final Color color;\n  final IconData icon;\n  final String label;\n  @override\n  Widget build(BuildContext context) {\n    return Expanded(\n      child: Padding(\n        padding: const EdgeInsets.symmetric(horizontal: 10),\n        child: Center(\n            child: TextButton.icon(\n          onPressed: (() {\n            onPress(context);\n            Slidable.of(context)?.close();\n          }),\n          icon: Icon(\n            icon,\n            color: color,\n          ),\n          label: Text(\n            label,\n            style: Theme.of(context).textTheme.titleMedium!.apply(color: color),\n          ),\n        )),\n      ),\n    );\n  }\n}\n\nclass CustomTile extends StatelessWidget {\n  const CustomTile({\n    super.key,\n    required this.isToday,\n    required this.routine,\n    required this.onPress,\n    required this.onDelete,\n    required this.onEdit,\n    required this.onStateChange,\n    required this.isOpen,\n  });\n\n  final bool isToday;\n  final Routine routine;\n  final Function(BuildContext context) onPress;\n  final Function(BuildContext context) onDelete;\n  final Function(BuildContext context) onEdit;\n  final Function(bool value) onStateChange;\n  final bool isOpen;\n\n  // bool isOpen = false;\n  @override\n  Widget build(BuildContext context) {\n    return Theme(\n      data: Theme.of(context).copyWith(\n        dividerColor: Colors.transparent,\n        splashFactory: NoSplash.splashFactory,\n        highlightColor: Colors.transparent,\n      ),\n      child: ExpansionTile(\n        onExpansionChanged: (value) {\n          Slidable.of(context)?.close();\n          onStateChange(value);\n        },\n        title: Hero(\n          tag: routine.name,\n          child: Text(\n            routine.name,\n            style: Theme.of(context).textTheme.titleLarge,\n          ),\n        ),\n        subtitle: isToday\n            ? Padding(\n                padding: const EdgeInsets.symmetric(vertical: 3),\n                child: Column(\n                  crossAxisAlignment: CrossAxisAlignment.start,\n                  children: [\n                    if (routine.inCompletedTasks.isEmpty)\n                      const Text(\"Completed\")\n                    else\n                      AnimatedCrossFade(\n                        firstChild: Text(\n                            'Completed ${routine.tasks.length - routine.inCompletedTasks.length} out of ${routine.tasks.length}'),\n                        secondChild: Row(\n                          mainAxisAlignment: MainAxisAlignment.spaceBetween,\n                          children: [\n                            Expanded(\n                              child: Text(\n                                  \"${routine.getTimeLeft().inMinutes} mins left\"),\n                            ),\n                            Expanded(\n                              child: Align(\n                                alignment: Alignment.centerRight,\n                                child: Text(\n                                  'Completed ${routine.tasks.length - routine.inCompletedTasks.length} / ${routine.tasks.length}',\n                                  style: const TextStyle(\n                                    fontSize: 12,\n                                  ),\n                                ),\n                              ),\n                            )\n                          ],\n                        ),\n                        crossFadeState: isOpen\n                            ? CrossFadeState.showFirst\n                            : CrossFadeState.showSecond,\n                        duration: const Duration(milliseconds: 300),\n                      ),\n                    const SizedBox(height: 5),\n                    LinearPercentIndicator(\n                      animateFromLastPercent: true,\n                      animation: true,\n                      percent: routine.getPercentage().clamp(0, 1),\n                      barRadius: const Radius.circular(10),\n                      lineHeight: 3,\n                      progressColor:\n                          Theme.of(context).colorScheme.inversePrimary,\n                      padding: EdgeInsets.zero,\n                    ),\n                  ],\n                ),\n              )\n            : Row(\n                mainAxisAlignment: MainAxisAlignment.spaceBetween,\n                children: [\n                  Text(routine.getDays()),\n                  Text(\"${routine.getTotalTime().inMinutes} mins\")\n                ],\n              ),\n        trailing: IconButton(\n          padding: EdgeInsets.zero,\n          onPressed: () {\n            onPress(context);\n          },\n          icon: isToday\n              ? Icon(\n                  routine.isCompleted\n                      ? Icons.replay_rounded\n                      : Icons.play_arrow_rounded,\n                  size: 30,\n                )\n              : const Icon(\n                  Icons.play_arrow_rounded,\n                  size: 30,\n                ),\n        ),\n        children: [\n          Padding(\n            padding: const EdgeInsets.symmetric(horizontal: 16),\n            child: Align(\n                alignment: Alignment.centerLeft,\n                child: Text(\n                    \"Total duration ${routine.getTotalTime().inMinutes} mins\")),\n          ),\n          RoutineChart(routine: routine),\n          Theme(\n            data: Theme.of(context),\n            child: Row(\n              children: [\n                Expanded(\n                  child: TextButton.icon(\n                    onPressed: () => onDelete(context),\n                    icon: Icon(\n                      Icons.delete,\n                      color: Colors.red[300],\n                    ),\n                    label: Text(\n                      'Delete',\n                      style: Theme.of(context)\n                          .textTheme\n                          .bodyMedium!\n                          .apply(color: Colors.red[300]),\n                    ),\n                  ),\n                ),\n                Expanded(\n                  child: TextButton.icon(\n                    onPressed: () => onEdit(context),\n                    icon: Icon(\n                      Icons.edit,\n                      color: Colors.blue[300],\n                    ),\n                    label: Text(\n                      'Edit',\n                      style: Theme.of(context)\n                          .textTheme\n                          .bodyMedium!\n                          .apply(color: Colors.blue[300]),\n                    ),\n                  ),\n                ),\n              ],\n            ),\n          )\n        ],\n      ),\n    );\n  }\n}\n"
  },
  {
    "path": "lib/components/task_tile.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:koduko/components/create_task_bottom_sheet.dart';\nimport 'package:koduko/models/task.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:koduko/services/tasks_provider.dart';\nimport 'package:koduko/utils/duration_to_string.dart';\nimport 'package:koduko/utils/parse_duration.dart';\nimport 'package:provider/provider.dart';\n\nclass TaskTile extends StatelessWidget {\n  const TaskTile({super.key, required this.task, required this.onEdit});\n  final Task task;\n  final void Function(Task) onEdit;\n  @override\n  Widget build(BuildContext context) {\n    return Card(\n      child: ListTile(\n        trailing: SizedBox(\n          width: 100,\n          child: Row(\n            mainAxisAlignment: MainAxisAlignment.center,\n            children: [\n              IconButton(\n                  onPressed: () async {\n                    Task? t = await showModalBottomSheet<Task>(\n                        isScrollControlled: true,\n                        isDismissible: true,\n                        shape: const RoundedRectangleBorder(\n                          borderRadius: BorderRadius.vertical(\n                            top: Radius.circular(10),\n                            bottom: Radius.zero,\n                          ),\n                        ),\n                        context: context,\n                        builder: ((context) => CreateTaskBottomSheet(\n                              task: task,\n                            )));\n\n                    if (t != null) {\n                      onEdit(task.copyWith(\n                          color: t.color, duration: t.duration, name: t.name));\n                    }\n                  },\n                  icon: const Icon(Icons.edit)),\n              IconButton(\n                  onPressed: () async {\n                    showDialog(\n                        context: context,\n                        builder: ((context) => AlertDialog(\n                              title: const Text(\"Delete task?\"),\n                              content: const Text(\n                                  \"This Task will be removed from all the routines. if the routine has only this task, then routine will also be deleted.\"),\n                              actions: [\n                                TextButton(\n                                  onPressed: () {\n                                    Navigator.pop(context);\n                                  },\n                                  child: const Text(\"CANCEL\"),\n                                ),\n                                TextButton(\n                                  style: TextButton.styleFrom(\n                                      foregroundColor:\n                                          Theme.of(context).colorScheme.error),\n                                  onPressed: () {\n                                    Provider.of<TaskModel>(context,\n                                            listen: false)\n                                        .delete(task.id);\n                                    Provider.of<RoutineModel>(context,\n                                            listen: false)\n                                        .removeTask(task);\n                                    Navigator.pop(context);\n                                  },\n                                  child: const Text(\"DELETE\"),\n                                )\n                              ],\n                            )));\n                  },\n                  icon: Icon(\n                    Icons.delete,\n                    color: Colors.red[300],\n                  ))\n            ],\n          ),\n        ),\n        subtitle: Text(\n            'Duration : ${durationToString(parseDuration(task.duration))} Min'),\n        title: Text(\n          task.name,\n          style: Theme.of(context).textTheme.bodyMedium,\n        ),\n      ),\n    );\n  }\n}\n"
  },
  {
    "path": "lib/components/time_spent_today.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:provider/provider.dart';\n\nclass TimeSpentToday extends StatelessWidget {\n  const TimeSpentToday({super.key, required this.textTheme});\n  final TextTheme textTheme;\n\n  @override\n  Widget build(BuildContext context) {\n    return Card(\n        child: Selector<RoutineModel, int>(\n      selector: (p0, p1) => p1.getTimeSpentToday(),\n      builder: (context, value, child) => Padding(\n        padding: const EdgeInsets.all(8.0),\n        child: Column(\n          children: [\n            const SizedBox(height: 15),\n            Text(\n              \"Time Spent Today\",\n              style: textTheme.titleSmall,\n            ),\n            const SizedBox(height: 10),\n            Text(\n              \"$value mins\",\n              style: textTheme.headlineLarge,\n            ),\n            const SizedBox(height: 15),\n          ],\n        ),\n      ),\n    ));\n  }\n}\n"
  },
  {
    "path": "lib/components/weekly_chart.dart",
    "content": "import 'dart:math';\nimport 'package:fl_chart/fl_chart.dart';\nimport 'package:flutter/material.dart';\nimport 'package:intl/intl.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:provider/provider.dart';\nimport 'package:collection/collection.dart';\n\nclass WeeklyChart extends StatefulWidget {\n  const WeeklyChart({\n    super.key,\n    required this.textTheme,\n  });\n  final TextTheme textTheme;\n\n  @override\n  State<WeeklyChart> createState() => _WeeklyChartState();\n}\n\nclass _WeeklyChartState extends State<WeeklyChart> {\n  int index = -1;\n  @override\n  Widget build(BuildContext context) {\n    return Card(\n        margin: const EdgeInsets.symmetric(vertical: 10),\n        child: Padding(\n          padding: const EdgeInsets.all(15),\n          child: Column(\n            crossAxisAlignment: CrossAxisAlignment.start,\n            children: [\n              Text('Weekly Activity',\n                  style: widget.textTheme.headlineSmall!\n                      .apply(fontWeightDelta: 1)),\n              Consumer<RoutineModel>(\n                builder: ((context, value, child) => Text(\n                    'You have completed ${value.getWeeklyStats().sum} ${value.getWeeklyStats().sum > 1 ? \"tasks\" : \"task\"} this week.',\n                    style: widget.textTheme.bodyMedium)),\n              ),\n              const SizedBox(height: 15),\n              SizedBox(\n                  height: 160,\n                  child: Consumer<RoutineModel>(\n                    builder: ((context, value, child) {\n                      var barGroupData = value\n                          .getWeeklyStats()\n                          .asMap()\n                          .map((key, val) => MapEntry(\n                              key,\n                              BarChartGroupData(\n                                x: key,\n                                barRods: [\n                                  BarChartRodData(\n                                    width: 15,\n                                    backDrawRodData: BackgroundBarChartRodData(\n                                      color: Theme.of(context)\n                                          .colorScheme\n                                          .surfaceContainerHighest,\n                                      show: true,\n                                      toY: value\n                                                  .getWeeklyStats()\n                                                  .reduce(max)\n                                                  .toDouble() ==\n                                              0\n                                          ? 10\n                                          : value\n                                              .getWeeklyStats()\n                                              .reduce(max)\n                                              .toDouble(),\n                                    ),\n                                    toY: val.toDouble(),\n                                    color: key == index\n                                        ? Theme.of(context)\n                                            .colorScheme\n                                            .primary\n                                            .withOpacity(0.5)\n                                        : Theme.of(context)\n                                            .colorScheme\n                                            .inversePrimary,\n                                  ),\n                                ],\n                              )))\n                          .values\n                          .toList();\n                      return BarChart(\n                          swapAnimationDuration:\n                              const Duration(milliseconds: 250), // Optional\n                          swapAnimationCurve: Curves.bounceOut,\n                          BarChartData(\n                            barTouchData: BarTouchData(\n                              touchTooltipData: barToolTipData(context),\n                              touchCallback:\n                                  (FlTouchEvent event, barTouchResponse) {\n                                setState(() {\n                                  if (!event.isInterestedForInteractions ||\n                                      barTouchResponse == null ||\n                                      barTouchResponse.spot == null) {\n                                    index = -1;\n                                    return;\n                                  }\n                                  index = barTouchResponse\n                                      .spot!.touchedBarGroupIndex;\n                                });\n                              },\n                            ),\n                            borderData: FlBorderData(show: false),\n                            gridData: const FlGridData(show: false),\n                            alignment: BarChartAlignment.spaceAround,\n                            titlesData: FlTitlesData(\n                              show: true,\n                              bottomTitles: AxisTitles(\n                                sideTitles: SideTitles(\n                                  showTitles: true,\n                                  reservedSize: 40,\n                                  getTitlesWidget: ((value, meta) => getTitles(\n                                      value,\n                                      meta,\n                                      Theme.of(context).colorScheme.onSurface,\n                                      Theme.of(context)\n                                          .colorScheme\n                                          .inversePrimary)),\n                                ),\n                              ),\n                              leftTitles: const AxisTitles(\n                                sideTitles: SideTitles(showTitles: false),\n                              ),\n                              topTitles: const AxisTitles(\n                                sideTitles: SideTitles(showTitles: false),\n                              ),\n                              rightTitles: const AxisTitles(\n                                sideTitles: SideTitles(showTitles: false),\n                              ),\n                            ),\n                            barGroups: barGroupData,\n                          ));\n                    }),\n                  )),\n            ],\n          ),\n        ));\n  }\n}\n\nWidget getTitles(double value, TitleMeta meta, Color color, Color backColor) {\n  var style = TextStyle(\n    color: color,\n  );\n  String text;\n  switch (value.toInt()) {\n    case 0:\n      text = 'Mon';\n      break;\n    case 1:\n      text = 'Tue';\n      break;\n    case 2:\n      text = 'Wed';\n      break;\n    case 3:\n      text = 'Thu';\n      break;\n    case 4:\n      text = 'Fri';\n      break;\n    case 5:\n      text = 'Sat';\n      break;\n    case 6:\n      text = 'Sun';\n      break;\n    default:\n      text = '';\n      break;\n  }\n  return SideTitleWidget(\n    axisSide: meta.axisSide,\n    space: 4.0,\n    child: Container(\n        padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 5),\n        margin: const EdgeInsets.only(top: 5),\n        decoration: BoxDecoration(\n            borderRadius: BorderRadius.circular(20),\n            color: DateFormat(\"EEE\").format(DateTime.now()) == text\n                ? backColor.withOpacity(0.5)\n                : null),\n        child: Text(text, style: style)),\n  );\n}\n\nBarTouchTooltipData barToolTipData(BuildContext context) {\n  return BarTouchTooltipData(\n    getTooltipItem: (group, groupIndex, rod, rodIndex) {\n      String weekDay;\n      switch (group.x.toInt()) {\n        case 0:\n          weekDay = 'Monday';\n          break;\n        case 1:\n          weekDay = 'Tuesday';\n          break;\n        case 2:\n          weekDay = 'Wednesday';\n          break;\n        case 3:\n          weekDay = 'Thursday';\n          break;\n        case 4:\n          weekDay = 'Friday';\n          break;\n        case 5:\n          weekDay = 'Saturday';\n          break;\n        case 6:\n          weekDay = 'Sunday';\n          break;\n        default:\n          throw Error();\n      }\n      return BarTooltipItem(\n        '$weekDay\\n',\n        Theme.of(context).textTheme.labelLarge!,\n        children: <TextSpan>[\n          TextSpan(\n              text: '${rod.toY}',\n              style: Theme.of(context).textTheme.labelMedium!),\n        ],\n      );\n    },\n  );\n}\n"
  },
  {
    "path": "lib/main.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:flutter_native_timezone/flutter_native_timezone.dart';\nimport 'package:hive_flutter/hive_flutter.dart';\nimport 'package:koduko/models/routine.dart';\nimport 'package:koduko/models/task.dart';\nimport 'package:koduko/models/task_event.dart';\nimport 'package:koduko/screens/about.dart';\nimport 'package:koduko/screens/app.dart';\nimport 'package:koduko/screens/archive_routines.dart';\nimport 'package:koduko/screens/onboarding.dart';\nimport 'package:koduko/screens/stats.dart';\nimport 'package:koduko/screens/tasks.dart';\nimport 'package:koduko/services/notification_service.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:koduko/services/tasks_provider.dart';\nimport 'package:koduko/services/theme_provider.dart';\nimport 'package:provider/provider.dart';\nimport 'package:timezone/data/latest_all.dart' as tz;\nimport 'package:timezone/timezone.dart' as tz;\n\nvoid main() async {\n  await Hive.initFlutter();\n  Hive.registerAdapter(TaskAdapter());\n  Hive.registerAdapter(RoutineAdapter());\n  Hive.registerAdapter(TaskEventAdapter());\n  WidgetsFlutterBinding.ensureInitialized();\n\n  await NotificationService().initialize();\n  _configureLocalTimeZone();\n  runApp(const MyApp());\n}\n\nFuture<void> _configureLocalTimeZone() async {\n  tz.initializeTimeZones();\n  final String timeZoneName = await FlutterNativeTimezone.getLocalTimezone();\n  tz.setLocalLocation(tz.getLocation(timeZoneName));\n}\n\nclass MyApp extends StatelessWidget {\n  const MyApp({super.key});\n\n  @override\n  Widget build(BuildContext context) {\n    return FutureBuilder(\n      future: Future.wait([\n        Hive.openBox<Routine>(\"Routines\"),\n        Hive.openBox<Task>(\"Tasks\"),\n        Hive.openBox<bool>(\"Theme\"),\n      ]),\n      builder: (context, snapshot) {\n        if (snapshot.hasError) {\n          return MaterialApp(\n            debugShowCheckedModeBanner: false,\n            home: Scaffold(\n              body: Center(\n                child: Text(\n                  \"Oops! Try again later\",\n                  style: Theme.of(context).textTheme.displayMedium,\n                ),\n              ),\n            ),\n          );\n        } else if (snapshot.hasData) {\n          final box = Hive.box<bool>('Theme');\n          String initRoute = '/';\n          if (box.isOpen) {\n            initRoute =\n                (box.get('isNewUser') ?? true) ? OnBoarding.routeName : '/';\n          }\n          return MultiProvider(\n            providers: [\n              ChangeNotifierProvider(\n                create: (context) => RoutineModel(),\n              ),\n              ChangeNotifierProvider(\n                create: (context) => TaskModel(),\n              ),\n              ChangeNotifierProvider(\n                create: ((context) => ThemeModel()),\n              ),\n            ],\n            child: Consumer<ThemeModel>(\n              builder: (context, value, child) => MaterialApp(\n                  debugShowCheckedModeBanner: false,\n                  title: 'KudoKo',\n                  themeMode: value.getTheme,\n                  theme: ThemeData.light(useMaterial3: true).copyWith(\n                    colorScheme: ColorScheme.fromSeed(\n                      seedColor: Colors.purple,\n                      brightness: Brightness.light,\n                    ),\n                  ),\n                  darkTheme: ThemeData.dark(useMaterial3: true).copyWith(\n                    colorScheme: ColorScheme.fromSeed(\n                      seedColor: Colors.purple,\n                      brightness: Brightness.dark,\n                    ),\n                  ),\n                  initialRoute: initRoute,\n                  routes: {\n                    TasksScreen.routeName: (context) => const TasksScreen(),\n                    App.routeName: (context) => const App(),\n                    AboutScreen.routeName: (context) => const AboutScreen(),\n                    Statistics.routeName: ((context) => const Statistics()),\n                    ArchiveRoutinesScreen.routeName: ((context) =>\n                        const ArchiveRoutinesScreen()),\n                    OnBoarding.routeName: (((context) => const OnBoarding()))\n                  }),\n            ),\n          );\n        }\n        return const MaterialApp(\n          home: Scaffold(\n              body: Center(\n            child: SizedBox(\n              height: 60,\n              width: 60,\n              child: CircularProgressIndicator(\n                strokeWidth: 6,\n              ),\n            ),\n          )),\n        );\n      },\n    );\n  }\n}\n"
  },
  {
    "path": "lib/models/routine.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:hive/hive.dart';\nimport 'package:intl/intl.dart';\nimport 'package:koduko/models/task.dart';\nimport 'package:koduko/models/task_event.dart';\nimport 'package:koduko/utils/date_time_extension.dart';\nimport 'package:koduko/utils/parse_duration.dart';\nimport 'package:koduko/utils/time_of_day_util.dart';\nimport 'package:uuid/uuid.dart';\n\npart 'routine.g.dart';\n\n@HiveType(typeId: 2)\nclass Routine {\n  @HiveField(0)\n  late final String id;\n\n  @HiveField(1)\n  String name;\n\n  @HiveField(2)\n  List<Task> tasks;\n\n  @HiveField(3)\n  late List<Task> inCompletedTasks;\n\n  @HiveField(4)\n  late List<TaskEvent> history;\n\n  @HiveField(5, defaultValue: true)\n  late bool isCompleted;\n\n  @HiveField(6)\n  List<String> days;\n\n  @HiveField(7, defaultValue: null)\n  DateTime? time;\n\n  @HiveField(8, defaultValue: false)\n  late bool isArchive;\n\n  Routine({\n    required this.name,\n    required this.tasks,\n    required this.inCompletedTasks,\n    required this.history,\n    required this.id,\n    required this.days,\n    required this.isCompleted,\n    required this.time,\n    required this.isArchive,\n    bool isSkip = false,\n  }) {\n    if (isSkip) {\n      return;\n    }\n    if (inCompletedTasks.isNotEmpty || isCompleted) {\n      if (history.isNotEmpty) {\n        bool isNewDay = true;\n        for (var element in history) {\n          if (element.time.isSameDate(DateTime.now())) {\n            isNewDay = false;\n            break;\n          }\n        }\n        if (isNewDay) {\n          isCompleted = false;\n          inCompletedTasks = [];\n        }\n      }\n    }\n    if (inCompletedTasks.isEmpty && !isCompleted) {\n      inCompletedTasks = tasks;\n    }\n  }\n\n  Routine.create({\n    required this.name,\n    required this.tasks,\n    required this.days,\n    required this.time,\n    // List<Task>? inCompletedTasks,\n  }) {\n    id = const Uuid().v4();\n    isCompleted = false;\n    history = [];\n    tasks = tasks;\n    inCompletedTasks = tasks;\n    isArchive = false;\n  }\n\n  Routine copyWith({\n    List<Task>? tasks,\n    List<Task>? inCompletedTasks,\n    List<TaskEvent>? history,\n    String? id,\n    String? name,\n    List<String>? days,\n    bool? isCompleted,\n    TimeOfDay? time,\n    bool isSkip = false,\n    bool? isArchive,\n  }) {\n    return Routine(\n        name: name ?? this.name,\n        tasks: tasks ?? this.tasks,\n        inCompletedTasks: inCompletedTasks ?? this.inCompletedTasks,\n        history: history ?? this.history,\n        id: id ?? this.id,\n        days: days ?? this.days,\n        isCompleted: isCompleted ?? this.isCompleted,\n        time: timeOfDayToDateTime(time) ?? this.time,\n        isSkip: isSkip,\n        isArchive: isArchive ?? this.isArchive);\n  }\n\n  Routine skipTask() {\n    List<Task> r = List.from(inCompletedTasks);\n    Task t = r.removeAt(0);\n    r.add(t);\n\n    final g = copyWith(inCompletedTasks: r, isSkip: true);\n    return g;\n  }\n\n  Routine completeTask() {\n    List<Task> r = List.from(inCompletedTasks);\n    var t = r.removeAt(0);\n    List<TaskEvent> h = List.from(history);\n    h.add(\n        TaskEvent.create(taskName: t.name, taskId: t.id, time: DateTime.now()));\n    h.sort((a, b) => b.time.compareTo(a.time));\n    return copyWith(\n        inCompletedTasks: r, isCompleted: r.isEmpty ? true : false, history: h);\n  }\n\n  Routine replay() {\n    return copyWith(isCompleted: false);\n  }\n\n  int getCompletedTasks(DateTime d) {\n    var count = 0;\n    if (history.isEmpty) {\n      return count;\n    } else {\n      for (var element in history) {\n        if (element.time.isSameDate(d)) {\n          count++;\n        }\n      }\n    }\n    return count;\n  }\n\n  Duration getTotalTime() {\n    Duration d = Duration.zero;\n    for (var t in tasks) {\n      d = parseDuration(t.duration) + d;\n    }\n    return d;\n  }\n\n  Duration getTimeSpentToday() {\n    Duration d = getTotalTime() - getTimeLeft();\n    return d;\n  }\n\n  Duration getTimeLeft() {\n    Duration d = Duration.zero;\n    for (var t in inCompletedTasks) {\n      d = d + parseDuration(t.duration);\n    }\n    return d;\n  }\n\n  Routine addToArchive() {\n    return copyWith(isArchive: true);\n  }\n\n  Routine removeFromArchive() {\n    return copyWith(isArchive: false);\n  }\n\n  Routine? removeHistory(String id) {\n    List<TaskEvent> h = List.from(history);\n    final index = h.indexWhere((element) => element.id == id);\n    if (index > -1) {\n      h.removeAt(index);\n      return copyWith(history: h);\n    }\n    return null;\n  }\n\n  Routine clearHistory() {\n    return copyWith(history: [], isCompleted: false);\n  }\n\n  Routine markAsCompleted() {\n    List<TaskEvent> h = List.from(history);\n    for (var i = 0; i < inCompletedTasks.length; i++) {\n      final task = inCompletedTasks[i];\n      h.add(TaskEvent.create(\n        taskName: task.name,\n        taskId: task.id,\n        time: DateTime.now().add(Duration(seconds: i)),\n      ));\n    }\n    h.sort((a, b) => b.time.compareTo(a.time));\n\n    return copyWith(isCompleted: true, inCompletedTasks: [], history: h);\n  }\n\n  Routine markAsInCompleted() {\n    List<TaskEvent> h = List.from(history);\n    for (var task in tasks) {\n      final i = h.indexWhere((element) => element.taskId == task.id);\n      if (i > -1) {\n        h.removeAt(i);\n      }\n    }\n    h.sort((a, b) => b.time.compareTo(a.time));\n    return copyWith(isCompleted: false, inCompletedTasks: tasks, history: h);\n  }\n\n  Routine? taskExists(Task t) {\n    int index = tasks.indexWhere((element) => element.id.compareTo(t.id) == 0);\n    if (index > -1) {\n      List<Task> ts = List.from(tasks);\n      ts.removeAt(index);\n      return copyWith(tasks: ts);\n    }\n    return null;\n  }\n\n  Routine? editTasks(Task t) {\n    if (tasks.isNotEmpty) {\n      List<Task> tep = [];\n      List<Task> temp = tasks.map((e) => e.id == t.id ? t : e).toList();\n      if (inCompletedTasks.isNotEmpty) {\n        tep = inCompletedTasks.map((e) => e.id == t.id ? t : e).toList();\n      }\n      return copyWith(tasks: temp, inCompletedTasks: tep);\n    }\n\n    return null;\n  }\n\n  String getDays() {\n    return days.length == 7\n        ? \"Daily\"\n        : days.map((e) => e.substring(0, 3)).join(\", \");\n  }\n\n  static List<Task> taskDiff(List<Task> first, List<Task> second) {\n    var a = [...first];\n    var b = [...second];\n    if (a.length > b.length) {\n      for (int i = 0; i < b.length; i++) {\n        int index = a.indexWhere((t) => t.id == b[i].id);\n        if (index > -1) {\n          a.removeAt(index);\n        }\n      }\n      return a;\n    } else {\n      for (int i = 0; i < a.length; i++) {\n        int index = b.indexWhere((t) => t.id == a[i].id);\n        if (index > -1) {\n          b.removeAt(index);\n        }\n      }\n      return b;\n    }\n  }\n\n  bool isToday() {\n    return days.contains(DateFormat(\"EEEE\").format(DateTime.now()));\n  }\n\n  double getPercentage() {\n    return (tasks.length - inCompletedTasks.length) == 0\n        ? 0\n        : ((tasks.length - inCompletedTasks.length) / tasks.length);\n  }\n\n  String getPercentageString() {\n    return '${(getPercentage() * 100).toInt()}%';\n  }\n}\n"
  },
  {
    "path": "lib/models/routine.g.dart",
    "content": "// GENERATED CODE - DO NOT MODIFY BY HAND\n\npart of 'routine.dart';\n\n// **************************************************************************\n// TypeAdapterGenerator\n// **************************************************************************\n\nclass RoutineAdapter extends TypeAdapter<Routine> {\n  @override\n  final int typeId = 2;\n\n  @override\n  Routine read(BinaryReader reader) {\n    final numOfFields = reader.readByte();\n    final fields = <int, dynamic>{\n      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),\n    };\n    return Routine(\n      name: fields[1] as String,\n      tasks: (fields[2] as List).cast<Task>(),\n      inCompletedTasks: (fields[3] as List).cast<Task>(),\n      history: (fields[4] as List).cast<TaskEvent>(),\n      id: fields[0] as String,\n      days: (fields[6] as List).cast<String>(),\n      isCompleted: fields[5] == null ? true : fields[5] as bool,\n      time: fields[7] as DateTime?,\n      isArchive: fields[8] == null ? false : fields[8] as bool,\n    );\n  }\n\n  @override\n  void write(BinaryWriter writer, Routine obj) {\n    writer\n      ..writeByte(9)\n      ..writeByte(0)\n      ..write(obj.id)\n      ..writeByte(1)\n      ..write(obj.name)\n      ..writeByte(2)\n      ..write(obj.tasks)\n      ..writeByte(3)\n      ..write(obj.inCompletedTasks)\n      ..writeByte(4)\n      ..write(obj.history)\n      ..writeByte(5)\n      ..write(obj.isCompleted)\n      ..writeByte(6)\n      ..write(obj.days)\n      ..writeByte(7)\n      ..write(obj.time)\n      ..writeByte(8)\n      ..write(obj.isArchive);\n  }\n\n  @override\n  int get hashCode => typeId.hashCode;\n\n  @override\n  bool operator ==(Object other) =>\n      identical(this, other) ||\n      other is RoutineAdapter &&\n          runtimeType == other.runtimeType &&\n          typeId == other.typeId;\n}\n"
  },
  {
    "path": "lib/models/task.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:hive/hive.dart';\nimport 'package:uuid/uuid.dart';\npart 'task.g.dart';\n\n@HiveType(typeId: 1)\nclass Task {\n  @HiveField(0)\n  late String id;\n\n  @HiveField(1)\n  String name;\n\n  @HiveField(2)\n  late String duration;\n\n  @HiveField(3)\n  late int color;\n\n  Task(\n      {required this.duration,\n      required this.name,\n      required this.color,\n      required this.id});\n\n  Task copyWith({\n    String? duration,\n    String? name,\n    int? color,\n    String? id,\n  }) {\n    return Task(\n        duration: duration ?? this.duration,\n        name: name ?? this.name,\n        color: color ?? this.color,\n        id: id ?? this.id);\n  }\n\n  Task.fromDuration(\n      {required Duration duration, required this.name, required Color color}) {\n    this.duration = duration.toString();\n    this.color = color.value;\n    id = const Uuid().v4();\n  }\n  @override\n  String toString() {\n    super.toString();\n    return '{id: $id ,name: $name, color: $color, duration: $duration}';\n  }\n}\n"
  },
  {
    "path": "lib/models/task.g.dart",
    "content": "// GENERATED CODE - DO NOT MODIFY BY HAND\n\npart of 'task.dart';\n\n// **************************************************************************\n// TypeAdapterGenerator\n// **************************************************************************\n\nclass TaskAdapter extends TypeAdapter<Task> {\n  @override\n  final int typeId = 1;\n\n  @override\n  Task read(BinaryReader reader) {\n    final numOfFields = reader.readByte();\n    final fields = <int, dynamic>{\n      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),\n    };\n    return Task(\n      duration: fields[2] as String,\n      name: fields[1] as String,\n      color: fields[3] as int,\n      id: fields[0] as String,\n    );\n  }\n\n  @override\n  void write(BinaryWriter writer, Task obj) {\n    writer\n      ..writeByte(4)\n      ..writeByte(0)\n      ..write(obj.id)\n      ..writeByte(1)\n      ..write(obj.name)\n      ..writeByte(2)\n      ..write(obj.duration)\n      ..writeByte(3)\n      ..write(obj.color);\n  }\n\n  @override\n  int get hashCode => typeId.hashCode;\n\n  @override\n  bool operator ==(Object other) =>\n      identical(this, other) ||\n      other is TaskAdapter &&\n          runtimeType == other.runtimeType &&\n          typeId == other.typeId;\n}\n"
  },
  {
    "path": "lib/models/task_event.dart",
    "content": "import 'package:hive_flutter/adapters.dart';\nimport 'package:uuid/uuid.dart';\n\npart 'task_event.g.dart';\n\n@HiveType(typeId: 3)\nclass TaskEvent {\n  @HiveField(0)\n  late final String id;\n\n  @HiveField(1)\n  final String taskName;\n\n  @HiveField(2)\n  final DateTime time;\n\n  @HiveField(3)\n  final String taskId;\n\n  TaskEvent({\n    required this.id,\n    required this.taskName,\n    required this.time,\n    required this.taskId,\n  });\n\n  @override\n  String toString() {\n    return '[Id : $id, Name: $taskName, Time: $time, TaskId: $taskId]';\n  }\n\n  TaskEvent.create({\n    required this.taskName,\n    required this.taskId,\n    required this.time,\n  }) {\n    id = const Uuid().v4();\n  }\n}\n"
  },
  {
    "path": "lib/models/task_event.g.dart",
    "content": "// GENERATED CODE - DO NOT MODIFY BY HAND\n\npart of 'task_event.dart';\n\n// **************************************************************************\n// TypeAdapterGenerator\n// **************************************************************************\n\nclass TaskEventAdapter extends TypeAdapter<TaskEvent> {\n  @override\n  final int typeId = 3;\n\n  @override\n  TaskEvent read(BinaryReader reader) {\n    final numOfFields = reader.readByte();\n    final fields = <int, dynamic>{\n      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),\n    };\n    return TaskEvent(\n      id: fields[0] as String,\n      taskName: fields[1] as String,\n      time: fields[2] as DateTime,\n      taskId: fields[3] as String,\n    );\n  }\n\n  @override\n  void write(BinaryWriter writer, TaskEvent obj) {\n    writer\n      ..writeByte(4)\n      ..writeByte(0)\n      ..write(obj.id)\n      ..writeByte(1)\n      ..write(obj.taskName)\n      ..writeByte(2)\n      ..write(obj.time)\n      ..writeByte(3)\n      ..write(obj.taskId);\n  }\n\n  @override\n  int get hashCode => typeId.hashCode;\n\n  @override\n  bool operator ==(Object other) =>\n      identical(this, other) ||\n      other is TaskEventAdapter &&\n          runtimeType == other.runtimeType &&\n          typeId == other.typeId;\n}\n"
  },
  {
    "path": "lib/screens/about.dart",
    "content": "import 'package:flutter/gestures.dart';\nimport 'package:flutter/material.dart';\nimport 'package:koduko/components/header.dart';\nimport 'package:url_launcher/url_launcher.dart';\n\nclass AboutScreen extends StatelessWidget {\n  const AboutScreen({super.key});\n  static const routeName = \"/about\";\n\n  @override\n  Widget build(BuildContext context) {\n    Future<void> openUrl(url) async {\n      if (!await launchUrl(url, mode: LaunchMode.externalApplication)) {\n        throw 'Could not launch $url';\n      }\n    }\n\n    return Scaffold(\n      body: SafeArea(\n        child: Padding(\n          padding: const EdgeInsets.symmetric(horizontal: 10),\n          child: Column(\n            crossAxisAlignment: CrossAxisAlignment.start,\n            children: [\n              const SizedBox(height: 25),\n              const ScreenHeader(\n                text: \"About\",\n                tag: \"About\",\n              ),\n              const SizedBox(height: 25),\n              Padding(\n                padding: const EdgeInsets.all(15),\n                child: Column(\n                  crossAxisAlignment: CrossAxisAlignment.start,\n                  children: [\n                    RichText(\n                      text: TextSpan(\n                          text:\n                              \"Koduko is an open source habit tracker app that helps users develop and maintain positive daily habits. Users can set personalized goals and track their progress towards achieving them, as well as receive reminders to stay on track. You can find the source code and releases \",\n                          style: Theme.of(context).textTheme.bodyLarge,\n                          children: [\n                            TextSpan(\n                              text: \"here\",\n                              recognizer: TapGestureRecognizer()\n                                ..onTap = () => openUrl(Uri.parse(\n                                    'https://github.com/Mazahir26/koduko')),\n                              style: Theme.of(context)\n                                  .textTheme\n                                  .bodyLarge!\n                                  .copyWith(\n                                    color:\n                                        Theme.of(context).colorScheme.primary,\n                                  ),\n                            )\n                          ]),\n                    ),\n                    const SizedBox(height: 15),\n                    Text(\n                      'Developer Contact',\n                      style: Theme.of(context)\n                          .textTheme\n                          .headlineMedium!\n                          .copyWith(fontWeight: FontWeight.bold),\n                    ),\n                    const SizedBox(height: 10),\n                    Text(\n                      \"For any questions or suggestions regarding Koduko's functionality or code, You can reach me out via telegram or github\",\n                      style: Theme.of(context).textTheme.bodyLarge,\n                    ),\n                    const SizedBox(height: 10),\n                    Row(\n                      mainAxisAlignment: MainAxisAlignment.spaceEvenly,\n                      children: [\n                        TextButton(\n                            onPressed: () {\n                              openUrl(\n                                  Uri.parse('https://github.com/Mazahir26'));\n                            },\n                            child: const Text(\"GitHub\")),\n                        TextButton(\n                            onPressed: () {\n                              openUrl(Uri.parse('https://t.me/mazahir26'));\n                            },\n                            child: const Text(\"Telegram\"))\n                      ],\n                    ),\n                    const SizedBox(height: 30),\n                    Center(\n                      child: Text(\n                        \"Thank You ❤️\",\n                        style: Theme.of(context)\n                            .textTheme\n                            .headlineMedium!\n                            .copyWith(fontWeight: FontWeight.bold),\n                      ),\n                    ),\n                  ],\n                ),\n              )\n            ],\n          ),\n        ),\n      ),\n    );\n  }\n}\n"
  },
  {
    "path": "lib/screens/app.dart",
    "content": "import 'dart:async';\n\nimport 'package:flutter/material.dart';\nimport 'package:flutter/services.dart';\nimport 'package:flutter_local_notifications/flutter_local_notifications.dart';\nimport 'package:koduko/screens/home.dart';\nimport 'package:koduko/screens/routines.dart';\nimport 'package:koduko/screens/settings.dart';\nimport 'package:koduko/screens/start_routine.dart';\nimport 'package:koduko/screens/tasks.dart';\nimport 'package:koduko/services/notification_service.dart';\n\nclass App extends StatefulWidget {\n  const App({super.key});\n  static const routeName = \"/\";\n\n  @override\n  State<App> createState() => _AppState();\n}\n\nclass _AppState extends State<App> {\n  int _selectedIndex = 0;\n  late final NotificationService service;\n  late final StreamSubscription<String?> stream;\n  NotificationAppLaunchDetails? notificationAppLaunchDetails;\n  late final PageController _pageController;\n\n  getDeviceLaunch() async {\n    notificationAppLaunchDetails = await service.getDeviceLaunchInfo();\n    if (notificationAppLaunchDetails?.didNotificationLaunchApp ?? false) {\n      if ((notificationAppLaunchDetails!\n              .notificationResponse?.payload?.isNotEmpty ??\n          false)) {\n        onNotificationListener(\n            notificationAppLaunchDetails!.notificationResponse?.payload);\n      }\n    }\n  }\n\n  void _onItemTapped(int index) {\n    setState(() {\n      _pageController.animateToPage(\n        index,\n        duration: const Duration(milliseconds: 250),\n        curve: Curves.easeInOutCirc,\n      );\n      _selectedIndex = index;\n    });\n  }\n\n  @override\n  void initState() {\n    service = NotificationService();\n    getDeviceLaunch();\n    _pageController = PageController();\n    stream = service.onNotificationClick.stream.listen(onNotificationListener);\n    super.initState();\n  }\n\n  @override\n  void dispose() {\n    stream.cancel();\n    super.dispose();\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    final List<Widget> widgetOptions = <Widget>[\n      HomeScreen(\n        onTapChange: () => _onItemTapped(1),\n      ),\n      const RoutinesScreen(),\n      const TasksScreen(isBottomNavWidget: true),\n      const SettingsScreen(),\n    ];\n    return AnnotatedRegion(\n      value: SystemUiOverlayStyle(\n        statusBarColor: Colors.transparent,\n        systemNavigationBarColor:\n            Theme.of(context).brightness == Brightness.dark\n                ? Colors.black\n                : Colors.white,\n        statusBarIconBrightness: Theme.of(context).brightness == Brightness.dark\n            ? Brightness.light\n            : Brightness.dark,\n        systemNavigationBarIconBrightness:\n            Theme.of(context).brightness == Brightness.dark\n                ? Brightness.light\n                : Brightness.dark,\n      ),\n      child: Scaffold(\n        bottomNavigationBar: NavigationBar(\n          onDestinationSelected: _onItemTapped,\n          labelBehavior: NavigationDestinationLabelBehavior.onlyShowSelected,\n          selectedIndex: _selectedIndex,\n          destinations: const <Widget>[\n            NavigationDestination(\n              selectedIcon: Icon(Icons.home_rounded),\n              icon: Icon(Icons.home_outlined),\n              label: 'Home',\n            ),\n            NavigationDestination(\n              selectedIcon: Icon(Icons.task_alt_rounded),\n              icon: Icon(Icons.task_alt_outlined),\n              label: 'Routines',\n            ),\n            NavigationDestination(\n              selectedIcon: Icon(Icons.list_rounded),\n              icon: Icon(Icons.list_outlined),\n              label: 'Tasks',\n            ),\n            NavigationDestination(\n              selectedIcon: Icon(Icons.settings_rounded),\n              icon: Icon(Icons.settings_outlined),\n              label: 'Settings',\n            ),\n          ],\n        ),\n        body: SafeArea(\n          child: PageView(\n            controller: _pageController,\n            onPageChanged: (value) => setState(() {\n              _selectedIndex = value;\n            }),\n            children: widgetOptions,\n          ),\n        ),\n      ),\n    );\n  }\n\n  void onNotificationListener(String? payload) {\n    if (payload != null && payload.isNotEmpty) {\n      Navigator.push(\n          context,\n          MaterialPageRoute(\n              builder: ((context) => RoutineScreen(\n                    routine: payload,\n                  ))));\n    }\n  }\n}\n"
  },
  {
    "path": "lib/screens/archive_routines.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:flutter_slidable/flutter_slidable.dart';\nimport 'package:koduko/components/header.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:provider/provider.dart';\n\nclass ArchiveRoutinesScreen extends StatelessWidget {\n  const ArchiveRoutinesScreen({super.key});\n  static const routeName = \"/archive\";\n\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      body: SafeArea(\n        child: Consumer<RoutineModel>(\n          builder: (context, value, child) => value.archiveRoutines().isEmpty\n              ? Padding(\n                  padding:\n                      const EdgeInsets.symmetric(vertical: 20, horizontal: 10),\n                  child: Column(\n                    crossAxisAlignment: CrossAxisAlignment.start,\n                    children: [\n                      child ?? Container(),\n                      Expanded(\n                        flex: 10,\n                        child: Center(\n                          child: Text(\n                            \"Archived routines will show up here!\",\n                            textAlign: TextAlign.center,\n                            style: Theme.of(context)\n                                .textTheme\n                                .apply(\n                                    displayColor:\n                                        Theme.of(context).colorScheme.onSurface)\n                                .headlineMedium,\n                          ),\n                        ),\n                      ),\n                    ],\n                  ),\n                )\n              : ListView.builder(\n                  itemCount: value.archiveRoutines().length + 1,\n                  itemBuilder: (context, index) {\n                    if (index == 0) {\n                      return Padding(\n                        padding: const EdgeInsets.symmetric(\n                            vertical: 20, horizontal: 10),\n                        child: child ?? Container(),\n                      );\n                    }\n                    index -= 1;\n                    return Card(\n                      margin: const EdgeInsets.all(10),\n                      child: ListTile(\n                        title: Text(\n                          value.archiveRoutines()[index].name,\n                          style: Theme.of(context).textTheme.titleLarge,\n                        ),\n                        subtitle: const Text(\"Archived\"),\n                        trailing: SizedBox(\n                          width: 100,\n                          child: Row(\n                            children: [\n                              IconButton(\n                                color: Colors.brown[300],\n                                onPressed: () {\n                                  Provider.of<RoutineModel>(context,\n                                          listen: false)\n                                      .removeFromArchive(\n                                          value.archiveRoutines()[index].id);\n                                },\n                                icon: const Icon(Icons.unarchive_rounded),\n                              ),\n                              IconButton(\n                                color: Colors.red[300],\n                                onPressed: () {},\n                                icon: const Icon(Icons.delete),\n                              )\n                            ],\n                          ),\n                        ),\n                      ),\n                    );\n                  }),\n          child: const ScreenHeader(text: 'Archived', tag: 'Archived'),\n        ),\n      ),\n    );\n  }\n}\n\nclass Action extends StatelessWidget {\n  const Action(\n      {super.key,\n      required this.onPress,\n      required this.color,\n      required this.icon,\n      required this.label});\n\n  final Function(BuildContext context) onPress;\n  final Color color;\n  final IconData icon;\n  final String label;\n  @override\n  Widget build(BuildContext context) {\n    return Expanded(\n      child: Padding(\n        padding: const EdgeInsets.symmetric(horizontal: 10),\n        child: Center(\n            child: TextButton.icon(\n          onPressed: (() {\n            onPress(context);\n            Slidable.of(context)?.close();\n          }),\n          icon: Icon(\n            icon,\n            color: color,\n          ),\n          label: Text(\n            label,\n            style: Theme.of(context).textTheme.titleMedium!.apply(color: color),\n          ),\n        )),\n      ),\n    );\n  }\n}\n"
  },
  {
    "path": "lib/screens/home.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:google_fonts/google_fonts.dart';\nimport 'package:intl/intl.dart';\nimport 'package:koduko/components/weekly_chart.dart';\nimport 'package:koduko/models/routine.dart';\nimport 'package:koduko/screens/start_routine.dart';\nimport 'package:koduko/screens/stats.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:koduko/utils/greetings.dart';\nimport 'package:percent_indicator/percent_indicator.dart';\nimport 'package:provider/provider.dart';\n\nclass HomeScreen extends StatelessWidget {\n  const HomeScreen({super.key, required this.onTapChange});\n  final void Function() onTapChange;\n  @override\n  Widget build(BuildContext context) {\n    final textTheme = Theme.of(context)\n        .textTheme\n        .apply(displayColor: Theme.of(context).colorScheme.onSurface);\n    return ListView(\n      padding: const EdgeInsets.all(15),\n      children: [\n        const SizedBox(height: 20),\n        Header(textTheme: textTheme),\n        const SizedBox(height: 20),\n        Hero(\n          tag: 'WeeklyChart',\n          child: WeeklyChart(textTheme: textTheme),\n        ),\n        Align(\n          alignment: Alignment.centerRight,\n          child: TextButton.icon(\n            onPressed: () => Navigator.pushNamed(context, Statistics.routeName),\n            icon: const Text(\"More Stats\"),\n            label: const Icon(Icons.chevron_right_rounded),\n          ),\n        ),\n        Text(\"Today's Routines\",\n            style: GoogleFonts.lato(\n              fontWeight: FontWeight.bold,\n              textStyle: textTheme.headlineMedium,\n            )),\n        Consumer<RoutineModel>(\n          builder: (context, value, child) {\n            List<Routine> todayRoutines = value.todaysRoutines();\n            final Duration totalTime = value.todaysRoutines().fold(\n                Duration.zero,\n                (previousValue, element) =>\n                    previousValue + element.getTimeLeft());\n            return Column(\n              crossAxisAlignment: CrossAxisAlignment.start,\n              children: [\n                Text(\n                  \"${totalTime.inMinutes} mins left to reach your goal today \",\n                  style: GoogleFonts.lato(\n                    fontWeight: FontWeight.w400,\n                    textStyle: Theme.of(context)\n                        .textTheme\n                        .apply(\n                            displayColor:\n                                Theme.of(context).colorScheme.onSurface)\n                        .bodyLarge,\n                  ),\n                ),\n                const SizedBox(height: 10),\n                Column(\n                  children: todayRoutines.isEmpty\n                      ? [\n                          const SizedBox(\n                            height: 50,\n                          ),\n                          Center(\n                            child: Text(\n                              \"You seem free today!\",\n                              style: Theme.of(context).textTheme.headlineSmall,\n                            ),\n                          ),\n                          Center(\n                            child: TextButton(\n                              style: TextButton.styleFrom(\n                                  textStyle:\n                                      Theme.of(context).textTheme.titleMedium),\n                              onPressed: onTapChange,\n                              child: const Text(\n                                \"Change that?\",\n                              ),\n                            ),\n                          )\n                        ]\n                      : todayRoutines\n                          .asMap()\n                          .map((key, value) => MapEntry(\n                              key,\n                              Row(\n                                children: [\n                                  Expanded(\n                                    flex: 1,\n                                    child: Text(\n                                      '${key + 1}',\n                                      style: GoogleFonts.lato(\n                                        fontWeight: FontWeight.bold,\n                                        textStyle: textTheme.headlineLarge,\n                                      ),\n                                    ),\n                                  ),\n                                  Expanded(\n                                    flex: 10,\n                                    child: Card(\n                                      margin: const EdgeInsets.symmetric(\n                                        vertical: 5,\n                                      ),\n                                      child: ListTile(\n                                          title: Text(\n                                            value.name,\n                                            style: Theme.of(context)\n                                                .textTheme\n                                                .titleLarge,\n                                          ),\n                                          subtitle: Padding(\n                                            padding: const EdgeInsets.symmetric(\n                                                vertical: 3),\n                                            child: Column(\n                                              crossAxisAlignment:\n                                                  CrossAxisAlignment.start,\n                                              children: [\n                                                value.inCompletedTasks.isEmpty\n                                                    ? const Text(\"Completed\")\n                                                    : Text(\n                                                        'Completed ${value.tasks.length - value.inCompletedTasks.length} out of ${value.tasks.length}'),\n                                                const SizedBox(height: 5),\n                                                LinearPercentIndicator(\n                                                  animateFromLastPercent: true,\n                                                  animation: true,\n                                                  percent: value\n                                                      .getPercentage()\n                                                      .clamp(0, 1),\n                                                  barRadius:\n                                                      const Radius.circular(10),\n                                                  lineHeight: 3,\n                                                  progressColor:\n                                                      Theme.of(context)\n                                                          .colorScheme\n                                                          .inversePrimary,\n                                                  padding: EdgeInsets.zero,\n                                                ),\n                                              ],\n                                            ),\n                                          ),\n                                          trailing: IconButton(\n                                              padding: EdgeInsets.zero,\n                                              onPressed: () {\n                                                Navigator.push(\n                                                    context,\n                                                    MaterialPageRoute(\n                                                        builder: ((context) =>\n                                                            RoutineScreen(\n                                                              routine: value.id,\n                                                            ))));\n                                              },\n                                              icon: Icon(\n                                                value.isCompleted\n                                                    ? Icons.replay_rounded\n                                                    : Icons.play_arrow_rounded,\n                                                size: 30,\n                                              ))),\n                                    ),\n                                  ),\n                                ],\n                              )))\n                          .values\n                          .toList(),\n                ),\n              ],\n            );\n          },\n        )\n      ],\n    );\n  }\n}\n\nclass Header extends StatelessWidget {\n  const Header({\n    super.key,\n    required this.textTheme,\n  });\n\n  final TextTheme textTheme;\n\n  @override\n  Widget build(BuildContext context) {\n    return Column(\n      crossAxisAlignment: CrossAxisAlignment.stretch,\n      children: [\n        Text(\n          'Good ${greeting()} 👋',\n          style: GoogleFonts.lato(\n            fontWeight: FontWeight.bold,\n            textStyle: textTheme.headlineLarge,\n          ),\n        ),\n        Text(\n          DateFormat.MMMMEEEEd().format(DateTime.now()),\n          style: GoogleFonts.lato(\n            fontWeight: FontWeight.w400,\n            textStyle: Theme.of(context).textTheme.titleLarge!.apply(\n                color:\n                    Theme.of(context).colorScheme.onSurface.withOpacity(0.5)),\n          ),\n        ),\n      ],\n    );\n  }\n}\n"
  },
  {
    "path": "lib/screens/onboarding.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:google_fonts/google_fonts.dart';\nimport 'package:hive_flutter/adapters.dart';\n\nclass OnBoarding extends StatefulWidget {\n  const OnBoarding({super.key});\n  static const routeName = \"/onBoarding\";\n\n  @override\n  State<OnBoarding> createState() => _OnBoardingState();\n}\n\nclass _OnBoardingState extends State<OnBoarding> {\n  int _index = 0;\n  late final PageController _pageController;\n\n  final okColors = [\n    const Color.fromRGBO(251, 187, 91, 1),\n    const Color.fromRGBO(44, 155, 243, 1),\n    const Color.fromRGBO(67, 60, 85, 1),\n  ];\n\n  @override\n  void initState() {\n    _pageController = PageController();\n    super.initState();\n  }\n\n  @override\n  void dispose() {\n    _pageController.dispose();\n\n    super.dispose();\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return TweenAnimationBuilder<Color?>(\n      tween: ColorTween(\n          begin: const Color.fromRGBO(251, 187, 91, 1), end: okColors[_index]),\n      duration: const Duration(milliseconds: 250),\n      builder: (context, value, child) => Scaffold(\n        backgroundColor: value,\n        body: SafeArea(\n          child: Container(\n            color: value,\n            child: Column(\n              crossAxisAlignment: CrossAxisAlignment.stretch,\n              children: [\n                Expanded(\n                  flex: 10,\n                  child: PageView(\n                    controller: _pageController,\n                    onPageChanged: (value) => setState(() {\n                      _index = value;\n                    }),\n                    children: [\n                      Page(\n                        color: value,\n                        title: \"Koduko\",\n                        imagePath: 'assets/onboarding/person.png',\n                        des:\n                            \"Hey There! Yes, this is an habit tracker don't let the name fool you. It will help you manage your daily or weekly habits with ease.\",\n                      ),\n                      Page(\n                        color: value,\n                        title: \"You ask features?\",\n                        imagePath: 'assets/onboarding/gymTime.png',\n                        des:\n                            \"It has a lot of them. You add a routine which can contain multiple tasks, Select a time and you are done. It will remind you at the specified time. Also there are statistics \",\n                      ),\n                      Page(\n                        color: value,\n                        title: \"Ready?\",\n                        imagePath: 'assets/onboarding/watch.png',\n                        des: \"We hope you are! \\n Have fun.\",\n                      ),\n                    ],\n                  ),\n                ),\n                Expanded(\n                    child: Padding(\n                  padding: const EdgeInsets.symmetric(vertical: 10),\n                  child: Buttons(\n                    onSkip: () {\n                      setState(() {\n                        _index = 2;\n                      });\n                      _pageController.animateToPage(2,\n                          curve: Curves.easeIn,\n                          duration: const Duration(milliseconds: 250));\n                    },\n                    pageIndex: _index,\n                    onNext: () {\n                      if (_index == 2) {\n                        final box = Hive.box<bool>('Theme');\n\n                        if (box.isOpen) {\n                          box.put('isNewUser', false);\n                        }\n                        Navigator.pushReplacementNamed(context, '/');\n                      }\n                      if (_index > 1) {\n                        return;\n                      }\n                      setState(() {\n                        _index++;\n                      });\n                      _pageController.nextPage(\n                        duration: const Duration(milliseconds: 250),\n                        curve: Curves.easeIn,\n                      );\n                    },\n                    onPrevious: () {\n                      if (_index <= 0) {\n                        return;\n                      }\n                      setState(() {\n                        _index--;\n                      });\n                      _pageController.previousPage(\n                        duration: const Duration(milliseconds: 250),\n                        curve: Curves.easeIn,\n                      );\n                    },\n                    text: _index == 2 ? 'Start' : null,\n                    color: value,\n                  ),\n                )),\n                const SizedBox(height: 10)\n              ],\n            ),\n          ),\n        ),\n      ),\n    );\n  }\n}\n\nclass Page extends StatelessWidget {\n  const Page({\n    super.key,\n    required this.imagePath,\n    required this.title,\n    required this.des,\n    required this.color,\n  });\n  final String imagePath;\n  final String title;\n  final String des;\n  final Color? color;\n\n  @override\n  Widget build(BuildContext context) {\n    return Column(\n      children: [\n        Image(image: AssetImage(imagePath)),\n        Text(\n          title,\n          style: GoogleFonts.catamaran(\n              fontWeight: FontWeight.bold,\n              textStyle: Theme.of(context).textTheme.headlineLarge!.apply(\n                  color: (color?.computeLuminance() ?? 0.1) > 0.5\n                      ? Colors.black\n                      : Colors.white)),\n        ),\n        const SizedBox(height: 10),\n        Padding(\n          padding: const EdgeInsets.all(10.0),\n          child: Text(\n            des,\n            style: GoogleFonts.raleway(\n                textStyle: Theme.of(context).textTheme.titleMedium!.apply(\n                    color: (color?.computeLuminance() ?? 0.1) > 0.5\n                        ? Colors.black\n                        : Colors.white)),\n            textAlign: TextAlign.center,\n          ),\n        )\n      ],\n    );\n  }\n}\n\nclass Buttons extends StatelessWidget {\n  const Buttons({\n    super.key,\n    required this.pageIndex,\n    required this.onNext,\n    required this.onPrevious,\n    required this.onSkip,\n    required this.text,\n    this.color,\n  });\n  final Color? color;\n  final int pageIndex;\n  final void Function() onNext;\n  final void Function() onPrevious;\n  final void Function() onSkip;\n\n  final String? text;\n\n  @override\n  Widget build(BuildContext context) {\n    final Color textColor =\n        (color?.computeLuminance() ?? 0.1) > 0.5 ? Colors.black : Colors.white;\n\n    return Padding(\n      padding: const EdgeInsets.symmetric(horizontal: 15),\n      child: Row(\n        mainAxisAlignment: MainAxisAlignment.spaceBetween,\n        children: [\n          AnimatedCrossFade(\n              alignment: Alignment.center,\n              firstChild: TextButton.icon(\n                icon: const Icon(Icons.chevron_left_rounded),\n                style: TextButton.styleFrom(\n                  foregroundColor: textColor,\n                ),\n                label: Text(\n                  'Back',\n                  style: Theme.of(context).textTheme.titleSmall!.apply(\n                        color: textColor,\n                      ),\n                ),\n                onPressed: onPrevious,\n              ),\n              secondChild: ElevatedButton(\n                style: ElevatedButton.styleFrom(\n                    backgroundColor: Colors.grey[900],\n                    shape: RoundedRectangleBorder(\n                      borderRadius: BorderRadius.circular(5),\n                    )),\n                onPressed: onSkip,\n                child: Padding(\n                  padding: const EdgeInsets.symmetric(horizontal: 10),\n                  child: Text(\n                    'Skip',\n                    style: Theme.of(context).textTheme.titleSmall!.apply(\n                          color: Colors.white,\n                        ),\n                  ),\n                ),\n              ),\n              crossFadeState: pageIndex == 0\n                  ? CrossFadeState.showSecond\n                  : CrossFadeState.showFirst,\n              duration: const Duration(milliseconds: 250)),\n          AnimatedCrossFade(\n            alignment: Alignment.center,\n            firstChild: TextButton.icon(\n              label: text == null\n                  ? const Icon(Icons.chevron_right_rounded)\n                  : Container(),\n              style: TextButton.styleFrom(\n                foregroundColor: textColor,\n              ),\n              icon: Text(\n                'Next',\n                style: Theme.of(context).textTheme.titleSmall!.apply(\n                      color: textColor,\n                    ),\n              ),\n              onPressed: onNext,\n            ),\n            secondChild: ElevatedButton(\n              style: ElevatedButton.styleFrom(\n                backgroundColor: Colors.white,\n                shape: RoundedRectangleBorder(\n                  borderRadius: BorderRadius.circular(5),\n                ),\n              ),\n              onPressed: onNext,\n              child: Padding(\n                padding: const EdgeInsets.symmetric(horizontal: 5),\n                child: Text(\n                  text ?? 'Done',\n                  style: Theme.of(context).textTheme.titleSmall!.apply(\n                        color: Colors.grey[900],\n                      ),\n                ),\n              ),\n            ),\n            crossFadeState: text == null\n                ? CrossFadeState.showFirst\n                : CrossFadeState.showSecond,\n            duration: const Duration(milliseconds: 250),\n          ),\n        ],\n      ),\n    );\n  }\n}\n"
  },
  {
    "path": "lib/screens/routines.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:google_fonts/google_fonts.dart';\nimport 'package:intl/intl.dart';\nimport 'package:koduko/components/create_routine_bottom_sheet.dart';\nimport 'package:koduko/components/routine_tile.dart';\nimport 'package:koduko/models/routine.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:provider/provider.dart';\n\nclass RoutinesScreen extends StatelessWidget {\n  const RoutinesScreen({super.key});\n\n  @override\n  Widget build(BuildContext context) {\n    void addRoutine(Routine r) {\n      Provider.of<RoutineModel>(context, listen: false).add(r);\n    }\n\n    void editRoutine(Routine r) {\n      Provider.of<RoutineModel>(context, listen: false).edit(r);\n    }\n\n    return Scaffold(\n      floatingActionButton: FloatingActionButton(\n        child: const Icon(Icons.add),\n        onPressed: () async {\n          Routine? r = await showModalBottomSheet<Routine>(\n              isScrollControlled: true,\n              isDismissible: true,\n              shape: const RoundedRectangleBorder(\n                borderRadius: BorderRadius.vertical(\n                  top: Radius.circular(10),\n                  bottom: Radius.zero,\n                ),\n              ),\n              context: context,\n              builder: ((context) => const CreateRoutineBottomSheet()));\n\n          if (r != null) {\n            addRoutine(r);\n          }\n        },\n      ),\n      body: Consumer<RoutineModel>(\n        builder: ((context, value, child) {\n          final Duration totalTime = value.todaysRoutines().fold(\n              Duration.zero,\n              (previousValue, element) =>\n                  previousValue + element.getTimeLeft());\n          return value.todaysRoutines().isEmpty && value.allRoutines().isEmpty\n              ? Padding(\n                  padding: const EdgeInsets.all(15),\n                  child: Column(\n                    crossAxisAlignment: CrossAxisAlignment.start,\n                    children: [\n                      const SizedBox(height: 20),\n                      Expanded(\n                        flex: 1,\n                        child: Text(\n                          \"Routines\",\n                          style: GoogleFonts.lato(\n                            fontWeight: FontWeight.bold,\n                            textStyle: Theme.of(context)\n                                .textTheme\n                                .apply(\n                                    displayColor:\n                                        Theme.of(context).colorScheme.onSurface)\n                                .headlineLarge,\n                          ),\n                        ),\n                      ),\n                      const SizedBox(height: 30),\n                      Expanded(\n                        flex: 10,\n                        child: Center(\n                          child: Text(\n                            \"Looks Empty! \\n Try to add a routine\",\n                            textAlign: TextAlign.center,\n                            style: Theme.of(context)\n                                .textTheme\n                                .apply(\n                                    displayColor:\n                                        Theme.of(context).colorScheme.onSurface)\n                                .headlineMedium,\n                          ),\n                        ),\n                      ),\n                    ],\n                  ),\n                )\n              : ListView(\n                  children: [\n                    value.todaysRoutines().isEmpty\n                        ? Container()\n                        : Padding(\n                            padding: const EdgeInsets.all(15),\n                            child: Column(\n                                crossAxisAlignment: CrossAxisAlignment.start,\n                                children: [\n                                  const SizedBox(height: 20),\n                                  Text(\n                                    \"Today's Routines\",\n                                    style: GoogleFonts.lato(\n                                      fontWeight: FontWeight.bold,\n                                      textStyle: Theme.of(context)\n                                          .textTheme\n                                          .apply(\n                                              displayColor: Theme.of(context)\n                                                  .colorScheme\n                                                  .onSurface)\n                                          .headlineMedium,\n                                    ),\n                                  ),\n                                  Text(\n                                    \"${totalTime.inMinutes} mins left to reach your goal today \",\n                                    style: GoogleFonts.lato(\n                                      fontWeight: FontWeight.w400,\n                                      textStyle: Theme.of(context)\n                                          .textTheme\n                                          .apply(\n                                              displayColor: Theme.of(context)\n                                                  .colorScheme\n                                                  .onSurface)\n                                          .bodyLarge,\n                                    ),\n                                  ),\n                                  const SizedBox(height: 20),\n                                  ...value\n                                      .todaysRoutines()\n                                      .map((e) => RoutineTile(\n                                            routine: e,\n                                            isToday: true,\n                                            onEdit: editRoutine,\n                                          ))\n                                      \n                                ]),\n                          ),\n                    value.allRoutines().isEmpty\n                        ? Container()\n                        : Padding(\n                            padding: const EdgeInsets.all(15),\n                            child: Column(\n                                crossAxisAlignment: CrossAxisAlignment.start,\n                                children: [\n                                  value.routines\n                                          .where(\n                                            (element) => element.days.contains(\n                                              DateFormat('EEEE')\n                                                  .format(DateTime.now()),\n                                            ),\n                                          )\n                                          .isEmpty\n                                      ? const SizedBox(height: 20)\n                                      : Container(),\n                                  Text(\n                                    \"All Routines\",\n                                    style: GoogleFonts.lato(\n                                        fontWeight: FontWeight.bold,\n                                        textStyle: Theme.of(context)\n                                            .textTheme\n                                            .apply(\n                                                displayColor: Theme.of(context)\n                                                    .colorScheme\n                                                    .onSurface)\n                                            .headlineMedium),\n                                  ),\n                                  const SizedBox(height: 20),\n                                  ...value\n                                      .allRoutines()\n                                      .map((e) => RoutineTile(\n                                            routine: e,\n                                            onEdit: editRoutine,\n                                          ))\n                                      \n                                ]),\n                          )\n                  ],\n                );\n        }),\n      ),\n    );\n  }\n}\n"
  },
  {
    "path": "lib/screens/settings.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:google_fonts/google_fonts.dart';\nimport 'package:koduko/screens/about.dart';\nimport 'package:koduko/screens/archive_routines.dart';\nimport 'package:koduko/screens/stats.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:koduko/services/theme_provider.dart';\nimport 'package:provider/provider.dart';\n\nclass SettingsScreen extends StatelessWidget {\n  const SettingsScreen({super.key});\n  @override\n  Widget build(BuildContext context) {\n    final textTheme = Theme.of(context)\n        .textTheme\n        .apply(displayColor: Theme.of(context).colorScheme.onSurface);\n    return Padding(\n      padding: const EdgeInsets.all(15),\n      child: ListView(\n        children: [\n          const SizedBox(height: 20),\n          Text(\n            \"Settings\",\n            style: GoogleFonts.lato(\n              fontWeight: FontWeight.bold,\n              textStyle: textTheme.headlineLarge,\n            ),\n          ),\n          const SizedBox(height: 30),\n          Card(\n            margin: const EdgeInsets.symmetric(horizontal: 5, vertical: 8),\n            child: InkWell(\n              onTap: () =>\n                  Navigator.pushNamed(context, ArchiveRoutinesScreen.routeName),\n              child: Padding(\n                padding: const EdgeInsets.all(15.0),\n                child: Row(\n                  mainAxisAlignment: MainAxisAlignment.spaceBetween,\n                  children: [\n                    Hero(\n                      tag: \"Archived\",\n                      child: Text(\n                        \"Archived\",\n                        style: textTheme.titleLarge,\n                      ),\n                    ),\n                    IconButton(\n                        onPressed: () => Navigator.pushNamed(\n                            context, ArchiveRoutinesScreen.routeName),\n                        icon: const Icon(Icons.chevron_right_rounded)),\n                  ],\n                ),\n              ),\n            ),\n          ),\n          Card(\n            margin: const EdgeInsets.symmetric(horizontal: 5, vertical: 8),\n            child: InkWell(\n              onTap: () => Navigator.pushNamed(context, Statistics.routeName),\n              child: Padding(\n                padding: const EdgeInsets.all(15.0),\n                child: Row(\n                  mainAxisAlignment: MainAxisAlignment.spaceBetween,\n                  children: [\n                    Hero(\n                      tag: \"Statistics\",\n                      child: Text(\n                        \"Statistics\",\n                        style: textTheme.titleLarge,\n                      ),\n                    ),\n                    IconButton(\n                        onPressed: () =>\n                            Navigator.pushNamed(context, Statistics.routeName),\n                        icon: const Icon(Icons.chevron_right_rounded)),\n                  ],\n                ),\n              ),\n            ),\n          ),\n          Card(\n            margin: const EdgeInsets.symmetric(horizontal: 5, vertical: 8),\n            child: InkWell(\n              onTap: () {\n                Provider.of<ThemeModel>(context, listen: false).toggleTheme();\n              },\n              child: Padding(\n                padding: const EdgeInsets.all(15.0),\n                child: Row(\n                  mainAxisAlignment: MainAxisAlignment.spaceBetween,\n                  children: [\n                    Text(\n                      \"Dark Mode\",\n                      style: textTheme.titleLarge,\n                    ),\n                    Consumer<ThemeModel>(\n                      builder: (context, value, child) => TextButton.icon(\n                          label: value.getTheme == ThemeMode.system\n                              ? const Text(\"System\")\n                              : value.getTheme == ThemeMode.dark\n                                  ? const Text(\"Dark\")\n                                  : const Text(\"Light\"),\n                          onPressed: () {\n                            Provider.of<ThemeModel>(context, listen: false)\n                                .toggleTheme();\n                          },\n                          icon: value.getTheme == ThemeMode.system\n                              ? const Icon(Icons.settings)\n                              : value.getTheme == ThemeMode.dark\n                                  ? const Icon(Icons.dark_mode_rounded)\n                                  : const Icon(Icons.light_mode_rounded)),\n                    )\n                  ],\n                ),\n              ),\n            ),\n          ),\n          Card(\n            margin: const EdgeInsets.symmetric(horizontal: 5, vertical: 8),\n            child: InkWell(\n              onTap: () {\n                Provider.of<RoutineModel>(context, listen: false)\n                    .toggleNotifications();\n              },\n              child: Padding(\n                padding: const EdgeInsets.all(15.0),\n                child: Row(\n                  mainAxisAlignment: MainAxisAlignment.spaceBetween,\n                  children: [\n                    Text(\n                      \"Notifications \",\n                      style: textTheme.titleLarge,\n                    ),\n                    Selector<RoutineModel, bool>(\n                      selector: (p0, p1) => p1.notifications,\n                      builder: (context, value, child) => TextButton.icon(\n                        label: value ? const Text(\"ON\") : const Text(\"OFF\"),\n                        onPressed: () {\n                          Provider.of<RoutineModel>(context, listen: false)\n                              .toggleNotifications();\n                        },\n                        icon: value\n                            ? const Icon(Icons.notifications_active_rounded)\n                            : const Icon(Icons.notifications_off_rounded),\n                      ),\n                    )\n                  ],\n                ),\n              ),\n            ),\n          ),\n          Card(\n            margin: const EdgeInsets.symmetric(horizontal: 5, vertical: 8),\n            child: InkWell(\n              onTap: () => Navigator.pushNamed(context, AboutScreen.routeName),\n              child: Padding(\n                padding: const EdgeInsets.all(15.0),\n                child: Row(\n                  mainAxisAlignment: MainAxisAlignment.spaceBetween,\n                  children: [\n                    Text(\n                      \"About \",\n                      style: textTheme.titleLarge,\n                    ),\n                    IconButton(\n                        onPressed: () =>\n                            Navigator.pushNamed(context, AboutScreen.routeName),\n                        icon: const Icon(Icons.person)),\n                  ],\n                ),\n              ),\n            ),\n          ),\n          const SizedBox(height: 25),\n          Center(\n            child: Text(\n              \"Version: 1.0.2\",\n              style: textTheme.labelMedium!\n                  .apply(color: textTheme.labelMedium!.color!.withOpacity(0.5)),\n            ),\n          ),\n          const SizedBox(height: 5),\n          Center(\n            child: Text(\n              \"Made in India with ❤️\",\n              style: textTheme.labelMedium!\n                  .apply(color: textTheme.labelMedium!.color!.withOpacity(0.5)),\n            ),\n          ),\n          const SizedBox(height: 20),\n        ],\n      ),\n    );\n  }\n}\n"
  },
  {
    "path": "lib/screens/start_routine.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:flutter/services.dart';\nimport 'package:google_fonts/google_fonts.dart';\nimport 'package:koduko/components/card.dart';\nimport 'package:koduko/models/task.dart';\nimport 'package:koduko/services/notification_service.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:koduko/services/theme_provider.dart';\nimport 'package:koduko/utils/colors_util.dart';\nimport 'package:koduko/utils/parse_duration.dart';\nimport 'package:provider/provider.dart';\n\nclass RoutineScreen extends StatefulWidget {\n  final String routine;\n  const RoutineScreen({super.key, required this.routine});\n\n  @override\n  State<RoutineScreen> createState() => RoutineScreenState();\n}\n\nclass RoutineScreenState extends State<RoutineScreen>\n    with TickerProviderStateMixin {\n  late final AnimationController _controller;\n  late final AnimationController _buttonController;\n\n  bool _isPlaying = false;\n  bool _isComplete = false;\n  bool _isSkipped = false;\n\n  DateTime _playedOn = DateTime.now();\n\n  @override\n  void initState() {\n    _controller =\n        AnimationController(vsync: this, duration: const Duration(minutes: 1));\n    WidgetsBinding.instance.addPostFrameCallback((timeStamp) {\n      var routine = Provider.of<RoutineModel>(context, listen: false)\n          .getRoutine(widget.routine);\n      if (routine == null) {\n        return;\n      }\n      if (routine.isCompleted) {\n        Provider.of<RoutineModel>(context, listen: false).replay(routine.id);\n        _controller.duration = parseDuration(\n          Provider.of<RoutineModel>(context, listen: false)\n              .getRoutine(routine.id)!\n              .tasks\n              .first\n              .duration,\n        );\n      } else {\n        _controller.duration = parseDuration(\n          Provider.of<RoutineModel>(context, listen: false)\n              .getRoutine(routine.id)!\n              .inCompletedTasks\n              .first\n              .duration,\n        );\n      }\n      setState(() {\n        _isPlaying = false;\n      });\n    });\n\n    _buttonController = AnimationController(\n        vsync: this, duration: const Duration(milliseconds: 250));\n    _controller.addListener(() {\n      if (_controller.status == AnimationStatus.forward) {\n        final diff = DateTime.now().difference(_playedOn);\n\n        //Check if the difference is more that 100 milliseconds\n        if ((diff - (_controller.duration! * _controller.value))\n                .abs()\n                .inMilliseconds >\n            100) {\n          _controller.forward(\n              from: (diff.inMilliseconds / _controller.duration!.inMilliseconds)\n                  .clamp(0, 1));\n        }\n      }\n    });\n\n    _controller.addStatusListener((status) {\n      if (status == AnimationStatus.completed) {\n        NotificationService().cancelNotificationWithId(777);\n        setState(() {\n          _isComplete = true;\n        });\n      }\n    });\n    super.initState();\n  }\n\n  void onTap(TapUpDetails? _) async {\n    final task = Provider.of<RoutineModel>(context, listen: false)\n        .getRoutine(widget.routine)!\n        .inCompletedTasks\n        .first;\n    if (_isPlaying) {\n      setState(() {\n        _isPlaying = false;\n      });\n\n      NotificationService().cancelNotification(task.id + widget.routine);\n\n      _controller.stop();\n      _buttonController.reverse();\n    } else {\n      Duration d = (_controller.duration! * _controller.value);\n      setState(() {\n        _playedOn = DateTime.now().subtract(d);\n        _isPlaying = true;\n      });\n      NotificationService().scheduledNotification((_controller.duration! - d),\n          task.id + widget.routine, task.name, 'Completed!');\n      _controller.forward();\n      _buttonController.forward();\n    }\n  }\n\n  void onDismiss(DismissDirection t, BuildContext context) {\n    final task = Provider.of<RoutineModel>(context, listen: false)\n        .getRoutine(widget.routine)!\n        .inCompletedTasks\n        .first;\n    NotificationService().cancelNotification(task.id + widget.routine);\n    if (t == DismissDirection.endToStart) {\n      Provider.of<RoutineModel>(context, listen: false)\n          .skipTask(widget.routine);\n      setState(() {\n        _controller.reset();\n        if (_isSkipped) {\n          _isSkipped = false;\n          if (_isPlaying) {\n            _isPlaying = false;\n            _buttonController.reverse();\n          }\n        }\n      });\n      var ts = Provider.of<RoutineModel>(context, listen: false)\n          .getRoutine(widget.routine)!\n          .inCompletedTasks;\n      if (ts.isNotEmpty) {\n        _controller.duration = parseDuration(ts.first.duration);\n      }\n    } else if (t == DismissDirection.startToEnd) {\n      Provider.of<RoutineModel>(context, listen: false)\n          .completeTask(widget.routine);\n      _controller.reset();\n      setState(() {\n        if (_isPlaying) {\n          _isPlaying = false;\n          _buttonController.reverse();\n        }\n        if (_isComplete) {\n          _isComplete = false;\n          _playedOn = DateTime.now();\n        }\n      });\n      var ts = Provider.of<RoutineModel>(context, listen: false)\n          .getRoutine(widget.routine)!\n          .inCompletedTasks;\n      if (ts.isNotEmpty) {\n        _controller.duration = parseDuration(ts.first.duration);\n      }\n    }\n  }\n\n  @override\n  void dispose() {\n    NotificationService().cancelNotificationWithId(777);\n    _controller.dispose();\n    _buttonController.dispose();\n\n    super.dispose();\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return AnnotatedRegion(\n      value: SystemUiOverlayStyle(\n        statusBarColor: Colors.transparent,\n        systemNavigationBarColor:\n            Theme.of(context).brightness == Brightness.dark\n                ? Colors.black\n                : Colors.white,\n        statusBarIconBrightness: Theme.of(context).brightness == Brightness.dark\n            ? Brightness.light\n            : Brightness.dark,\n        systemNavigationBarIconBrightness:\n            Theme.of(context).brightness == Brightness.dark\n                ? Brightness.light\n                : Brightness.dark,\n      ),\n      child: Scaffold(\n        appBar: AppBar(\n          centerTitle: true,\n          leading: Padding(\n            padding: const EdgeInsets.symmetric(horizontal: 15),\n            child: IconButton(\n              onPressed: () {\n                if (Provider.of<RoutineModel>(context, listen: false)\n                    .getRoutine(widget.routine)!\n                    .inCompletedTasks\n                    .isNotEmpty) {\n                  final task = Provider.of<RoutineModel>(context, listen: false)\n                      .getRoutine(widget.routine)!\n                      .inCompletedTasks\n                      .first;\n                  NotificationService()\n                      .cancelNotification(task.id + widget.routine);\n                }\n\n                Navigator.pop(context);\n              },\n              icon: const Icon(\n                Icons.arrow_back_ios,\n                size: 30,\n              ),\n            ),\n          ),\n          title: Selector<RoutineModel, String>(\n            selector: (p0, p1) => p1.getRoutine(widget.routine)!.name,\n            builder: (context, value, child) => Hero(\n              tag: value,\n              child: Text(\n                value,\n                style: GoogleFonts.lato(\n                  fontWeight: FontWeight.bold,\n                  textStyle: Theme.of(context)\n                      .textTheme\n                      .apply(\n                          displayColor: Theme.of(context).colorScheme.onSurface)\n                      .headlineLarge,\n                ),\n                textAlign: TextAlign.center,\n              ),\n            ),\n          ),\n        ),\n        body: Padding(\n          padding: const EdgeInsets.symmetric(vertical: 20, horizontal: 10),\n          child: Selector<RoutineModel, List<Task>>(\n            selector: (p0, p1) =>\n                p1.getRoutine(widget.routine)!.inCompletedTasks,\n            builder: ((context, value, child) => Column(\n                  crossAxisAlignment: CrossAxisAlignment.stretch,\n                  mainAxisAlignment: MainAxisAlignment.center,\n                  children: [\n                    Expanded(\n                      flex: 7,\n                      child: Stack(\n                        alignment: AlignmentDirectional.center,\n                        children: [\n                          SizedBox(\n                            height: 300,\n                            child: Center(\n                              child: Text(\"Good Work\",\n                                  style: GoogleFonts.lato(\n                                    fontWeight: FontWeight.bold,\n                                    textStyle: Theme.of(context)\n                                        .textTheme\n                                        .displayMedium!\n                                        .apply(\n                                            color: Theme.of(context)\n                                                .textTheme\n                                                .bodyMedium!\n                                                .color),\n                                  )),\n                            ),\n                          ),\n                          ...value\n                              .asMap()\n                              .entries\n                              .map(\n                                (e) => Consumer<ThemeModel>(\n                                    builder: (context, themeData, child) {\n                                  bool isSwipeDis = false;\n                                  if (e.key == 0) {\n                                    int count = 0;\n                                    for (var element in value) {\n                                      if (element.id == e.value.id) {\n                                        count++;\n                                      }\n                                    }\n                                    if (count == value.length) {\n                                      isSwipeDis = true;\n                                    }\n                                  }\n                                  return TaskCard(\n                                    isSwipeDisabled:\n                                        value.length == 1 || isSwipeDis,\n                                    isSkipped: _isSkipped,\n                                    isCompleted: _isComplete,\n                                    buttonController: _buttonController,\n                                    isPlaying: _isPlaying,\n                                    onTap: onTap,\n                                    name: e.value.name,\n                                    controller: e.key == 0 ? _controller : null,\n                                    color: themeData.isDark()\n                                        ? darken(Color(e.value.color))\n                                        : Color(e.value.color),\n                                    index: (e.key) * 1.0,\n                                    onDismissed: onDismiss,\n                                  );\n                                }),\n                              )\n                              .toList()\n                              .reversed,\n                        ],\n                      ),\n                    ),\n                    Expanded(\n                      flex: 1,\n                      child: TweenAnimationBuilder<double>(\n                          duration: const Duration(milliseconds: 350),\n                          tween: Tween(begin: 0, end: value.isEmpty ? 300 : 0),\n                          curve: Curves.easeInCirc,\n                          builder: ((context, double value, child) =>\n                              Transform.translate(\n                                offset: Offset(0, value),\n                                child: Row(\n                                  crossAxisAlignment: CrossAxisAlignment.end,\n                                  children: [\n                                    Expanded(\n                                      flex: 1,\n                                      child: TextButton(\n                                        onPressed: () {\n                                          setState(() {\n                                            _isSkipped = true;\n                                          });\n                                        },\n                                        child: const Column(\n                                          mainAxisAlignment:\n                                              MainAxisAlignment.end,\n                                          children: [\n                                            Icon(Icons.swipe_left_rounded),\n                                            SizedBox(height: 10),\n                                            Text(\"Skip\"),\n                                          ],\n                                        ),\n                                      ),\n                                    ),\n                                    Expanded(\n                                        flex: 1,\n                                        child: ElevatedButton(\n                                          onPressed: () {\n                                            onTap(null);\n                                          },\n                                          style: ButtonStyle(\n                                            elevation: WidgetStateProperty\n                                                .all<double>(6),\n                                            shape: WidgetStateProperty.all(\n                                                const CircleBorder()),\n                                            padding: WidgetStateProperty.all(\n                                                const EdgeInsets.all(15)),\n                                          ),\n                                          child: AnimatedIcon(\n                                            icon: AnimatedIcons.play_pause,\n                                            progress: _buttonController,\n                                            color: Theme.of(context)\n                                                .colorScheme\n                                                .primary,\n                                            size: 50,\n                                          ),\n                                        )),\n                                    Expanded(\n                                      flex: 1,\n                                      child: TextButton(\n                                        onPressed: () {\n                                          setState(() {\n                                            _isComplete = true;\n                                          });\n                                        },\n                                        child: const Column(\n                                          mainAxisAlignment:\n                                              MainAxisAlignment.end,\n                                          children: [\n                                            Icon(Icons.swipe_right_rounded),\n                                            SizedBox(height: 10),\n                                            Text(\"Completed\"),\n                                          ],\n                                        ),\n                                      ),\n                                    ),\n                                  ],\n                                ),\n                              ))),\n                    )\n                  ],\n                )),\n          ),\n        ),\n      ),\n    );\n  }\n}\n\nclass MyAppBar extends StatelessWidget {\n  const MyAppBar({\n    super.key,\n  });\n\n  @override\n  Widget build(BuildContext context) {\n    return AppBar(\n      backgroundColor: Colors.transparent,\n      leadingWidth: 80,\n      leading: Center(\n        child: Container(\n          decoration: BoxDecoration(\n              border: Border.all(\n                  color: Theme.of(context).primaryIconTheme.color!, width: 1),\n              borderRadius: BorderRadius.circular(90)),\n          child: IconButton(\n            onPressed: () {},\n            icon: const Icon(Icons.arrow_back_ios_new_rounded),\n            color: Theme.of(context).primaryIconTheme.color,\n            iconSize: 30,\n          ),\n        ),\n      ),\n      centerTitle: true,\n      elevation: 0,\n    );\n  }\n}\n"
  },
  {
    "path": "lib/screens/stats.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:intl/intl.dart';\nimport 'package:koduko/components/daily_activity.dart';\nimport 'package:koduko/components/header.dart';\nimport 'package:koduko/components/most_productive_hour.dart';\nimport 'package:koduko/components/productive_day.dart';\nimport 'package:koduko/components/time_spent_today.dart';\nimport 'package:koduko/components/weekly_chart.dart';\nimport 'package:koduko/models/task_event.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:provider/provider.dart';\n\nclass Statistics extends StatelessWidget {\n  const Statistics({super.key});\n  static const routeName = \"/stats\";\n\n  @override\n  Widget build(BuildContext context) {\n    void clearHistory() {\n      Provider.of<RoutineModel>(context, listen: false).clearHistory();\n    }\n\n    final textTheme = Theme.of(context).textTheme.apply(\n          displayColor: Theme.of(context).colorScheme.onSurface,\n        );\n    return Scaffold(\n      body: Padding(\n        padding: const EdgeInsets.all(15.0),\n        child: ListView(\n          children: [\n            const SizedBox(height: 10),\n            const ScreenHeader(text: \"Statistics\", tag: \"Statistics\"),\n            const SizedBox(height: 25),\n            TodayProgress(textTheme: textTheme),\n            Hero(tag: 'WeeklyChart', child: WeeklyChart(textTheme: textTheme)),\n            const SizedBox(height: 10),\n            Row(\n              mainAxisAlignment: MainAxisAlignment.spaceEvenly,\n              children: [\n                Expanded(child: ProductiveHour(textTheme: textTheme)),\n                Expanded(child: ProductiveDay(textTheme: textTheme)),\n              ],\n            ),\n            const SizedBox(height: 10),\n            Row(\n              mainAxisAlignment: MainAxisAlignment.spaceEvenly,\n              children: [\n                Expanded(child: TimeSpentToday(textTheme: textTheme)),\n              ],\n            ),\n            const SizedBox(height: 15),\n            Row(\n              mainAxisAlignment: MainAxisAlignment.spaceBetween,\n              children: [\n                Text(\n                  \"History\",\n                  style: textTheme.headlineMedium,\n                ),\n                TextButton.icon(\n                    onPressed: () async {\n                      final b = await showDialog<bool>(\n                        context: context,\n                        builder: ((context) => AlertDialog(\n                              title: const Text(\"Clear History\"),\n                              content: const Text(\n                                  \"This is an irreversible action. This will delete all your stats.\"),\n                              actions: [\n                                TextButton(\n                                  onPressed: (() =>\n                                      Navigator.pop(context, false)),\n                                  child: const Text(\"CANCEL\"),\n                                ),\n                                TextButton(\n                                  style: TextButton.styleFrom(\n                                      foregroundColor:\n                                          Theme.of(context).colorScheme.error),\n                                  onPressed: (() =>\n                                      Navigator.pop(context, true)),\n                                  child: const Text(\"DELETE\"),\n                                )\n                              ],\n                            )),\n                      );\n                      if (b == true) {\n                        clearHistory();\n                      }\n                    },\n                    style:\n                        TextButton.styleFrom(foregroundColor: Colors.red[300]),\n                    icon: const Icon(Icons.delete),\n                    label: const Text(\"Clear History\"))\n              ],\n            ),\n            const SizedBox(height: 15),\n            Selector<RoutineModel, List<TaskEvent>>(\n                builder: ((context, value, child) => Column(\n                      children: value.reversed\n                          .map((e) => Card(\n                                child: ListTile(\n                                  trailing: IconButton(\n                                    onPressed: () => Provider.of<RoutineModel>(\n                                            context,\n                                            listen: false)\n                                        .removeHistory(e.id),\n                                    color: Colors.red[300],\n                                    icon: const Icon(Icons.close,\n                                        semanticLabel: 'Delete'),\n                                  ),\n                                  // onTap: () => ,\n                                  title: Text(e.taskName),\n                                  subtitle: Text(DateFormat(\"MMMM d, y\")\n                                      .add_jm()\n                                      .format(e.time)),\n                                ),\n                              ))\n                          .toList(),\n                    )),\n                selector: (p0, p1) => p1.getHistory())\n          ],\n        ),\n      ),\n    );\n  }\n}\n"
  },
  {
    "path": "lib/screens/tasks.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:koduko/components/create_task_bottom_sheet.dart';\nimport 'package:koduko/components/header.dart';\nimport 'package:koduko/components/task_tile.dart';\nimport 'package:koduko/models/task.dart';\nimport 'package:koduko/services/routines_provider.dart';\nimport 'package:koduko/services/tasks_provider.dart';\nimport 'package:provider/provider.dart';\n\nclass TasksScreen extends StatelessWidget {\n  const TasksScreen({super.key, this.isBottomNavWidget = false});\n  static const routeName = \"/tasks\";\n  final bool isBottomNavWidget;\n  @override\n  Widget build(BuildContext context) {\n    void addTask(Task t) {\n      Provider.of<TaskModel>(context, listen: false).add(t);\n    }\n\n    void onEdit(Task t) {\n      Provider.of<TaskModel>(context, listen: false).edit(t);\n      Provider.of<RoutineModel>(context, listen: false).editTask(t);\n    }\n\n    void onCreateTask() async {\n      Task? t = await showModalBottomSheet<Task>(\n          isScrollControlled: true,\n          isDismissible: true,\n          shape: const RoundedRectangleBorder(\n            borderRadius: BorderRadius.vertical(\n              top: Radius.circular(10),\n              bottom: Radius.zero,\n            ),\n          ),\n          context: context,\n          builder: ((context) => const CreateTaskBottomSheet()));\n      if (t != null) {\n        addTask(t);\n      }\n    }\n\n    return Scaffold(\n      floatingActionButton: FloatingActionButton(\n        onPressed: onCreateTask,\n        child: const Icon(Icons.add),\n      ),\n      body: Consumer<TaskModel>(\n          builder: ((context, value, child) => value.tasks.isEmpty\n              ? SafeArea(\n                  child: Padding(\n                    padding: const EdgeInsets.symmetric(\n                        vertical: 20, horizontal: 10),\n                    child: Column(\n                      crossAxisAlignment: CrossAxisAlignment.start,\n                      children: [\n                        child ?? Container(),\n                        const Spacer(),\n                        Text(\n                          \"Looks like you haven't created any tasks\",\n                          style: Theme.of(context)\n                              .textTheme\n                              .headlineMedium!\n                              .apply(\n                                  color: Theme.of(context)\n                                      .colorScheme\n                                      .onSurface),\n                          textAlign: TextAlign.center,\n                        ),\n                        const SizedBox(height: 10),\n                        Center(\n                          child: TextButton.icon(\n                              icon: const Icon(Icons.add),\n                              onPressed: onCreateTask,\n                              label: const Text(\n                                \"Create One\",\n                                style: TextStyle(fontSize: 18),\n                              )),\n                        ),\n                        const Spacer(),\n                      ],\n                    ),\n                  ),\n                )\n              : ListView.builder(\n                  itemCount: value.tasks.length,\n                  itemBuilder: (context, index) {\n                    if (index == 0) {\n                      return Padding(\n                        padding:\n                            const EdgeInsets.only(top: 20, right: 10, left: 10),\n                        child: Column(\n                          crossAxisAlignment: CrossAxisAlignment.start,\n                          children: [\n                            child ?? Container(),\n                            const SizedBox(height: 25),\n                            TaskTile(\n                              task: value.tasks[index],\n                              onEdit: onEdit,\n                            )\n                          ],\n                        ),\n                      );\n                    }\n                    return Padding(\n                        padding: const EdgeInsets.symmetric(horizontal: 10),\n                        child: TaskTile(\n                          task: value.tasks[index],\n                          onEdit: onEdit,\n                        ));\n                  })),\n          child: isBottomNavWidget\n              ? Padding(\n                  padding: const EdgeInsets.symmetric(horizontal: 8),\n                  child: Text(\n                    \"My Task\",\n                    style: Theme.of(context).textTheme.headlineLarge!.apply(\n                        color: Theme.of(context).colorScheme.onSurface),\n                  ),\n                )\n              : const ScreenHeader(\n                  text: \"My Tasks\",\n                  tag: \"My Tasks\",\n                )),\n    );\n  }\n}\n"
  },
  {
    "path": "lib/services/notification_service.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:flutter_local_notifications/flutter_local_notifications.dart';\nimport 'package:intl/intl.dart';\nimport 'package:rxdart/subjects.dart';\nimport 'package:timezone/timezone.dart' as tz;\n\nclass NotificationService {\n  static final NotificationService _notificationService =\n      NotificationService._internal();\n\n  factory NotificationService() {\n    return _notificationService;\n  }\n\n  NotificationService._internal();\n\n  final FlutterLocalNotificationsPlugin _flutterLocalNotificationsPlugin =\n      FlutterLocalNotificationsPlugin();\n\n  final BehaviorSubject<String?> onNotificationClick = BehaviorSubject();\n\n  Future<void> showNotification({\n    required String title,\n    required String body,\n    required String uId,\n  }) async {\n    await _flutterLocalNotificationsPlugin.show(\n      0,\n      title,\n      body,\n      NotificationDetails(\n        android: AndroidNotificationDetails(\n          '001',\n          'Notifications',\n          channelDescription: 'Notifications',\n          tag: uId,\n        ),\n      ),\n    );\n  }\n\n  Future<void> scheduleDaily({\n    required TimeOfDay time,\n    required String title,\n    required String des,\n    required String uId,\n  }) async {\n    await _flutterLocalNotificationsPlugin.zonedSchedule(\n      ValueKey(uId).hashCode,\n      title,\n      des,\n      _dailyAt(time),\n      const NotificationDetails(\n        android: AndroidNotificationDetails(\n          '002',\n          'Daily Routine Notifications',\n          channelDescription: 'Daily Routine Notifications',\n        ),\n      ),\n      payload: uId,\n      androidAllowWhileIdle: true,\n      uiLocalNotificationDateInterpretation:\n          UILocalNotificationDateInterpretation.absoluteTime,\n      matchDateTimeComponents: DateTimeComponents.time,\n    );\n  }\n\n  Future<void> scheduleWeekly({\n    required TimeOfDay time,\n    required String title,\n    required String des,\n    required String day,\n    required String uId,\n  }) async {\n    await _flutterLocalNotificationsPlugin.zonedSchedule(\n      ValueKey(uId + day).hashCode,\n      title,\n      des,\n      _scheduleWeekly(time, day),\n      const NotificationDetails(\n        android: AndroidNotificationDetails(\n          '003',\n          'Weekly Routine Notifications',\n          channelDescription: 'Weekly Routine Notifications',\n        ),\n      ),\n      payload: uId,\n      androidAllowWhileIdle: true,\n      uiLocalNotificationDateInterpretation:\n          UILocalNotificationDateInterpretation.absoluteTime,\n      matchDateTimeComponents: DateTimeComponents.dayOfWeekAndTime,\n    );\n  }\n\n  // Future<void> showProgressNotification(\n  //   double value,\n  //   String name,\n  //   String sub,\n  // ) async {\n  //   final progress = (value * 100).toInt();\n  //   final AndroidNotificationDetails androidPlatformChannelSpecifics =\n  //       AndroidNotificationDetails(\n  //     'task progress channel',\n  //     'task progress channel',\n  //     channelDescription: 'displays current task progress',\n  //     channelShowBadge: false,\n  //     priority: Priority.high,\n  //     onlyAlertOnce: true,\n  //     showProgress: true,\n  //     maxProgress: 100,\n  //     progress: progress,\n  //   );\n  //   final NotificationDetails platformChannelSpecifics =\n  //       NotificationDetails(android: androidPlatformChannelSpecifics);\n  //   await _flutterLocalNotificationsPlugin.show(\n  //     777,\n  //     name,\n  //     sub,\n  //     platformChannelSpecifics,\n  //   );\n  // }\n\n  Future<void> scheduledNotification(\n      Duration dur, String id, String title, String des) async {\n    await _flutterLocalNotificationsPlugin.zonedSchedule(\n        ValueKey(id).hashCode,\n        title,\n        des,\n        tz.TZDateTime.now(tz.local).add(dur),\n        const NotificationDetails(\n            android: AndroidNotificationDetails(\n                'TaskCompleted', 'Task Completed',\n                channelDescription: 'Task Completed Notification')),\n        androidAllowWhileIdle: true,\n        uiLocalNotificationDateInterpretation:\n            UILocalNotificationDateInterpretation.absoluteTime);\n  }\n\n  Future<NotificationAppLaunchDetails?> getDeviceLaunchInfo() async {\n    return await _flutterLocalNotificationsPlugin\n        .getNotificationAppLaunchDetails();\n  }\n\n  Future<void> cancelNotification(String id) async {\n    await _flutterLocalNotificationsPlugin.cancel(ValueKey(id).hashCode);\n  }\n\n  Future<void> cancelNotificationWithId(int id) async {\n    await _flutterLocalNotificationsPlugin.cancel(id);\n  }\n\n  Future<void> cancelAllNotifications() async {\n    await _flutterLocalNotificationsPlugin.cancelAll();\n  }\n\n  tz.TZDateTime _dailyAt(TimeOfDay time) {\n    final tz.TZDateTime now = tz.TZDateTime.now(tz.local);\n    tz.TZDateTime scheduledDate = tz.TZDateTime(\n        tz.local, now.year, now.month, now.day, time.hour, time.minute);\n    if (scheduledDate.isBefore(now)) {\n      scheduledDate = scheduledDate.add(const Duration(days: 1));\n    }\n    return scheduledDate;\n  }\n\n  tz.TZDateTime _scheduleWeekly(\n    TimeOfDay time,\n    String day,\n  ) {\n    tz.TZDateTime scheduledDate = _dailyAt(time);\n    var cDay = DateFormat('EEEE').format(scheduledDate);\n    while (cDay != day) {\n      scheduledDate = scheduledDate.add(const Duration(days: 1));\n      cDay = DateFormat('EEEE').format(scheduledDate);\n    }\n\n    return scheduledDate;\n  }\n\n  Future<void> initialize() async {\n    const AndroidInitializationSettings androidInitializationSettings =\n        AndroidInitializationSettings('app_icon');\n\n    const InitializationSettings settings = InitializationSettings(\n      android: androidInitializationSettings,\n    );\n\n    void onSelectNotification(NotificationResponse? response) {\n      if (response != null) {\n        if (response.payload?.isNotEmpty ?? false) {\n          onNotificationClick.add(response.payload);\n        }\n      }\n    }\n\n    await _flutterLocalNotificationsPlugin.initialize(\n      settings,\n      onDidReceiveNotificationResponse: onSelectNotification,\n    );\n  }\n}\n"
  },
  {
    "path": "lib/services/routines_provider.dart",
    "content": "import 'dart:collection';\nimport 'dart:math';\n\nimport 'package:collection/collection.dart';\nimport 'package:flutter/material.dart';\nimport 'package:hive_flutter/hive_flutter.dart';\nimport 'package:intl/intl.dart';\nimport 'package:koduko/models/routine.dart';\nimport 'package:koduko/models/task.dart';\nimport 'package:koduko/models/task_event.dart';\nimport 'package:koduko/services/notification_service.dart';\nimport 'package:koduko/utils/time_of_day_util.dart';\nimport 'package:koduko/utils/date_time_extension.dart';\n\nclass RoutineModel extends ChangeNotifier {\n  late final List<Routine> _routines;\n  final _box = Hive.box<Routine>('Routines');\n  bool notifications = true;\n\n  RoutineModel() {\n    _init();\n  }\n  void _init() async {\n    if (_box.isOpen) {\n      _routines = _box.values.toList();\n    } else {\n      await Hive.openBox(\"Routines\");\n    }\n    final box = Hive.box<bool>('Theme');\n    if (box.isOpen) {\n      notifications = box.get(\"notifications\") ?? true;\n    } else {\n      await Hive.openBox(\"Theme\");\n    }\n  }\n\n  UnmodifiableListView<Routine> get routines => UnmodifiableListView(_routines);\n\n  void add(Routine routine) {\n    _routines.add(routine);\n    _box.add(routine);\n    if (routine.days.length == 7) {\n      if (routine.time != null) {\n        NotificationService().scheduleDaily(\n          time: dateTimeToTimeOfDay(routine.time!),\n          title: routine.name,\n          des: \"Tap to Start\",\n          uId: routine.id,\n        );\n      }\n    } else {\n      if (routine.time != null) {\n        scheduleWeekly(routine);\n      }\n    }\n    notifyListeners();\n  }\n\n  void edit(Routine routine) async {\n    int index = _routines\n        .indexWhere((element) => element.id.compareTo(routine.id) == 0);\n    if (index > -1) {\n      _box.putAt(index, routine);\n      _routines[index] = routine;\n      if (routine.days.length == 7) {\n        if (routine.time != null) {\n          NotificationService().scheduleDaily(\n            time: dateTimeToTimeOfDay(routine.time!),\n            title: routine.name,\n            des: \"Tap to Start\",\n            uId: routine.id,\n          );\n        }\n      } else {\n        if (routine.time != null) {\n          scheduleWeekly(routine);\n        }\n      }\n      notifyListeners();\n    }\n  }\n\n  List<TaskEvent> getHistory({int clamp = 0}) {\n    List<TaskEvent> list = [];\n    for (var element in _routines) {\n      list.addAll(element.history);\n      list.sort(((a, b) => a.time.compareTo(b.time)));\n    }\n    if (list.isEmpty) {\n      return [];\n    }\n    return list.slice(0, min(list.length - 1, 25));\n  }\n\n  int getMostProductiveHour() {\n    List<TaskEvent> list = getHistory();\n    List<int> hours = List.filled(24, 0);\n    for (var e in list) {\n      hours[e.time.hour] += 1;\n    }\n    int max = 0;\n    for (var i = 0; i < 24; i++) {\n      if (hours[i] > hours[max]) {\n        max = i;\n      }\n    }\n    return max;\n  }\n\n  int getTimeSpentToday() {\n    List<Routine> list = _routines;\n    Duration d = Duration.zero;\n    for (var e in list) {\n      d += e.getTimeSpentToday();\n    }\n    return d.inMinutes;\n  }\n\n  DateTime? getMostProductiveDay() {\n    List<TaskEvent> list = getHistory();\n    final Map<DateTime, int> hours = HashMap();\n    for (var e in list) {\n      if (hours.containsKey(e.time)) {\n        hours.update(e.time, (value) => value + 1);\n      } else {\n        hours.addAll({e.time: 0});\n      }\n    }\n    if (hours.isNotEmpty) {\n      DateTime max = hours.keys.first;\n      hours.forEach((key, value) {\n        if (value > (hours[max] ?? 0)) {\n          max = key;\n        }\n      });\n      return max;\n    }\n    return null;\n  }\n\n  void skipTask(String id) {\n    int index =\n        _routines.indexWhere((element) => element.id.compareTo(id) == 0);\n    if (index > -1) {\n      var r = _routines[index].skipTask();\n      _box.putAt(index, r);\n      _routines[index] = r;\n      notifyListeners();\n    }\n  }\n\n  Routine? getRoutine(String id) {\n    int index =\n        _routines.indexWhere((element) => element.id.compareTo(id) == 0);\n    if (index > -1) {\n      return _routines[index];\n    }\n    return null;\n  }\n\n  List<int> getWeeklyStats() {\n    var startOfWeek = DateTime(DateTime.now().year, DateTime.now().month,\n        DateTime.now().day - (DateTime.now().weekday - 1));\n    List<int> data = [];\n    for (var i = 0; i < 7; i++) {\n      var noOfTasks = 0;\n      var day = startOfWeek.add(Duration(days: i));\n      for (var element in _routines) {\n        noOfTasks += element.getCompletedTasks(day);\n      }\n\n      data.add(noOfTasks);\n    }\n    return data;\n  }\n\n  int getRoutineStartMaxDays(String id) {\n    final r = getRoutine(id);\n    if (r != null) {\n      if (r.history.isNotEmpty) {\n        return (DateTime.now().difference(r.history.last.time).inHours / 24)\n            .ceil();\n      }\n    }\n    return 0;\n  }\n\n  List<int> getRoutineStats(String id) {\n    final r = getRoutine(id);\n    List<int> data = [];\n    if (r != null) {\n      if (r.history.isNotEmpty) {\n        final max = getRoutineStartMaxDays(id);\n        var start =\n            r.history.last.time.add(Duration(days: max > 7 ? max - 7 : 0));\n        for (var i = max > 7 ? (max - 7) : 0; i <= max; i++) {\n          var noOfTasks = 0;\n          for (var element in r.history) {\n            if (element.time.isSameDate(start)) {\n              noOfTasks++;\n            }\n          }\n          start = start.add(const Duration(days: 1));\n          data.add(noOfTasks);\n        }\n      }\n    }\n    return data;\n  }\n\n  DateTime getStartDate(String id) {\n    final r = getRoutine(id);\n    if (r != null) {\n      if (r.history.isNotEmpty) {\n        final max = getRoutineStartMaxDays(id);\n        return r.history.last.time.add(Duration(days: max > 7 ? max - 7 : 0));\n      }\n    }\n    return DateTime.now();\n  }\n\n  void removeHistory(String tid) {\n    for (var i = 0; i < _routines.length; i++) {\n      final r = _routines[i].removeHistory(tid);\n      if (r != null) {\n        _box.putAt(i, r);\n        _routines[i] = r;\n      }\n    }\n    notifyListeners();\n  }\n\n  void clearHistory() {\n    if (_routines.isNotEmpty) {\n      for (var i = 0; i < _routines.length; i++) {\n        final r = _routines[i].clearHistory();\n        _box.putAt(i, r);\n        _routines[i] = r;\n      }\n      notifyListeners();\n    }\n  }\n\n  List<int> getRoutineDayFrequencyStats(String id) {\n    final r = getRoutine(id);\n    List<int> data = [];\n    if (r != null) {\n      for (var i = 0; i < 24; i++) {\n        var noOfTasks = 0;\n        for (var element in r.history) {\n          if (element.time.hour == i) {\n            noOfTasks++;\n          }\n        }\n        data.add(noOfTasks);\n      }\n    }\n    return data;\n  }\n\n  int totalNoOfTasksToday() {\n    int noOfTasks = 0;\n    for (var element in _routines) {\n      if (!element.isArchive) {\n        if (element.isToday()) {\n          if (element.isToday()) {\n            noOfTasks += element.tasks.length;\n          }\n        }\n      }\n    }\n    return noOfTasks;\n  }\n\n  int totalNoOfCompletedTasksToday() {\n    int noOfTasks = 0;\n    for (var element in _routines) {\n      if (!element.isArchive) {\n        if (element.isToday()) {\n          noOfTasks += (element.isCompleted\n              ? element.tasks.length\n              : element.tasks.length - element.inCompletedTasks.length);\n        }\n      }\n    }\n    return noOfTasks;\n  }\n\n  void completeTask(String id) {\n    int index =\n        _routines.indexWhere((element) => element.id.compareTo(id) == 0);\n    if (index > -1) {\n      var r = _routines[index].completeTask();\n      _box.putAt(index, r);\n      _routines[index] = r;\n      notifyListeners();\n    }\n  }\n\n  void replay(String id) {\n    int index =\n        _routines.indexWhere((element) => element.id.compareTo(id) == 0);\n    if (index > -1) {\n      var r = _routines[index].replay();\n      _box.putAt(index, r);\n      _routines[index] = r;\n      notifyListeners();\n    }\n  }\n\n  void editTask(Task t) {\n    List<Routine> temp = List.from(_routines);\n    temp.asMap().map((key, value) {\n      Routine? r = value.editTasks(t);\n      if (r != null) {\n        _box.putAt(key, r);\n        _routines[key] = r;\n      }\n      return MapEntry(key, value);\n    });\n    notifyListeners();\n  }\n\n  void toggleMarkAsCompleted(String id) {\n    int index =\n        _routines.indexWhere((element) => element.id.compareTo(id) == 0);\n    if (index > -1) {\n      var r = _routines[index];\n      if (_routines[index].isCompleted) {\n        r = _routines[index].markAsInCompleted();\n      } else {\n        r = _routines[index].markAsCompleted();\n      }\n      _box.putAt(index, r);\n      _routines[index] = r;\n      notifyListeners();\n    }\n  }\n\n  void removeTask(Task t) {\n    List<Routine> temp = List.from(_routines);\n    temp.asMap().map((key, value) {\n      Routine? r = value.taskExists(t);\n      if (r != null) {\n        if (r.tasks.isEmpty) {\n          int index = _routines\n              .indexWhere((element) => element.id.compareTo(r.id) == 0);\n          if (index > -1) {\n            _box.deleteAt(index);\n            _routines.removeWhere((element) => element.id.compareTo(r.id) == 0);\n          }\n          delete(r.id);\n        } else {\n          _box.putAt(key, r);\n          _routines[key] = r;\n        }\n      }\n      return MapEntry(key, value);\n    });\n    notifyListeners();\n  }\n\n  void delete(String id) {\n    int index =\n        _routines.indexWhere((element) => element.id.compareTo(id) == 0);\n    if (index > -1) {\n      NotificationService().cancelNotification(id);\n      _box.deleteAt(index);\n      _routines.removeWhere((element) => element.id.compareTo(id) == 0);\n      notifyListeners();\n    }\n  }\n\n  List<Routine> todaysRoutines() {\n    return routines\n        .where((element) => element.isArchive == false)\n        .where(\n          (element) => element.days.contains(\n            DateFormat('EEEE').format(DateTime.now()),\n          ),\n        )\n        .toList();\n  }\n\n  List<Routine> allRoutines() {\n    return routines\n        .where((element) => element.isArchive == false)\n        .where(\n          (element) => !element.days.contains(\n            DateFormat('EEEE').format(DateTime.now()),\n          ),\n        )\n        .toList();\n  }\n\n  List<Routine> archiveRoutines() {\n    return routines.where((element) => element.isArchive == true).toList();\n  }\n\n  void addToArchive(String id) {\n    int index =\n        _routines.indexWhere((element) => element.id.compareTo(id) == 0);\n    if (index > -1) {\n      var r = _routines[index].addToArchive();\n      NotificationService().cancelNotification(r.id);\n      _box.putAt(index, r);\n      _routines[index] = r;\n      notifyListeners();\n    }\n  }\n\n  void removeFromArchive(String id) {\n    int index =\n        _routines.indexWhere((element) => element.id.compareTo(id) == 0);\n    if (index > -1) {\n      var r = _routines[index].removeFromArchive();\n      _box.putAt(index, r);\n      _routines[index] = r;\n      if (r.days.length == 7) {\n        if (r.time != null) {\n          NotificationService().scheduleDaily(\n            time: dateTimeToTimeOfDay(r.time!),\n            title: r.name,\n            des: \"Tap to Start\",\n            uId: r.id,\n          );\n        }\n      } else {\n        if (r.time != null) {\n          scheduleWeekly(r);\n        }\n      }\n      notifyListeners();\n    }\n  }\n\n  void toggleNotifications() {\n    final box = Hive.box<bool>('Theme');\n    if (notifications) {\n      box.put(\"notifications\", false);\n      cancelAllNotifications();\n      notifications = false;\n      notifyListeners();\n    } else {\n      box.put(\"notifications\", true);\n      enableAllNotifications();\n      notifications = true;\n      notifyListeners();\n    }\n  }\n\n  void enableAllNotifications() {\n    for (var element in _routines) {\n      if (!element.isArchive) {\n        if (element.days.length == 7) {\n          if (element.time != null) {\n            NotificationService().scheduleDaily(\n              time: dateTimeToTimeOfDay(element.time!),\n              title: element.name,\n              des: \"Tap to Start\",\n              uId: element.id,\n            );\n          }\n        } else {\n          if (element.time != null) {\n            scheduleWeekly(element);\n          }\n        }\n      }\n    }\n  }\n\n  void scheduleWeekly(Routine r) {\n    for (var day in r.days) {\n      NotificationService().scheduleWeekly(\n        day: day,\n        time: dateTimeToTimeOfDay(r.time!),\n        title: r.name,\n        des: \"Tap to Start\",\n        uId: r.id,\n      );\n    }\n  }\n\n  void cancelAllNotifications() {\n    NotificationService().cancelAllNotifications();\n  }\n}\n"
  },
  {
    "path": "lib/services/tasks_provider.dart",
    "content": "import 'dart:collection';\n\nimport 'package:flutter/material.dart';\nimport 'package:hive_flutter/adapters.dart';\nimport 'package:koduko/models/task.dart';\n\nclass TaskModel extends ChangeNotifier {\n  late final List<Task> _tasks;\n  final _box = Hive.box<Task>('Tasks');\n\n  UnmodifiableListView<Task> get tasks => UnmodifiableListView(_tasks);\n\n  TaskModel() {\n    _init();\n  }\n\n  void _init() async {\n    if (_box.isOpen) {\n      _tasks = _box.values.toList();\n    } else {\n      await Hive.openBox('Tasks');\n    }\n  }\n\n  void add(Task task) {\n    _tasks.add(task);\n    _box.add(task);\n    notifyListeners();\n  }\n\n  void edit(Task task) {\n    int index =\n        _tasks.indexWhere((element) => element.id.compareTo(task.id) == 0);\n    if (index > -1) {\n      _box.putAt(index, task);\n      _tasks[index] = task;\n      notifyListeners();\n    }\n  }\n\n  void delete(String id) {\n    if (_tasks.indexWhere((element) => element.id.compareTo(id) == 0) > -1) {\n      _box.deleteAt(\n          _tasks.indexWhere((element) => element.id.compareTo(id) == 0));\n      _tasks.removeWhere((element) => element.id.compareTo(id) == 0);\n      notifyListeners();\n    }\n  }\n}\n"
  },
  {
    "path": "lib/services/theme_provider.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:hive/hive.dart';\n\nclass ThemeModel with ChangeNotifier {\n  var _themeMode = ThemeMode.system;\n  final _box = Hive.box<bool>('Theme');\n\n  get getTheme => _themeMode;\n  setTheme(themeMode) {\n    _themeMode = themeMode;\n    _box.put(\"darkMode\", themeMode == ThemeMode.dark);\n    notifyListeners();\n  }\n\n  bool isDark() => _themeMode == ThemeMode.dark;\n\n  ThemeModel() {\n    if (_box.isOpen) {\n      if (_box.get(\"darkMode\") != null) {\n        _themeMode = _box.get(\"darkMode\")! ? ThemeMode.dark : ThemeMode.light;\n      } else {\n        _themeMode = ThemeMode.system;\n      }\n    }\n  }\n\n  toggleTheme() {\n    switch (_themeMode) {\n      case ThemeMode.dark:\n        _themeMode = ThemeMode.light;\n        _box.put(\"darkMode\", false);\n        break;\n      case ThemeMode.light:\n        _themeMode = ThemeMode.system;\n        _box.delete('darkMode');\n        break;\n      case ThemeMode.system:\n        _themeMode = ThemeMode.dark;\n        _box.put(\"darkMode\", true);\n        break;\n      default:\n        _themeMode = _themeMode;\n    }\n    notifyListeners();\n  }\n}\n"
  },
  {
    "path": "lib/utils/colors_util.dart",
    "content": "import 'package:flutter/material.dart';\n\nColor darken(Color color, [double amount = .1]) {\n  assert(amount >= 0 && amount <= 1);\n\n  final hsl = HSLColor.fromColor(color);\n  final hslDark = hsl.withLightness((hsl.lightness - amount).clamp(0.0, 1.0));\n\n  return hslDark.toColor();\n}\n\nColor lighten(Color color, [double amount = .1]) {\n  assert(amount >= 0 && amount <= 1);\n\n  final hsl = HSLColor.fromColor(color);\n  final hslLight = hsl.withLightness((hsl.lightness + amount).clamp(0.0, 1.0));\n\n  return hslLight.toColor();\n}\n"
  },
  {
    "path": "lib/utils/date_time_extension.dart",
    "content": "extension DateOnlyCompare on DateTime {\n  bool isSameDate(DateTime other) {\n    return year == other.year && month == other.month && day == other.day;\n  }\n}\n"
  },
  {
    "path": "lib/utils/duration_to_string.dart",
    "content": "String durationToString(Duration duration) {\n  return '${duration.inMinutes}:${(duration.inSeconds % 60).toString().padLeft(2, '0')}';\n}\n"
  },
  {
    "path": "lib/utils/greetings.dart",
    "content": "String greeting() {\n  var hour = DateTime.now().hour;\n  if (hour < 12) {\n    return 'Morning';\n  }\n  if (hour < 17) {\n    return 'Afternoon';\n  }\n  return 'Evening';\n}\n"
  },
  {
    "path": "lib/utils/parse_duration.dart",
    "content": "Duration parseDuration(String s) {\n  int hours = 0;\n  int minutes = 0;\n  int micros;\n  List<String> parts = s.split(':');\n  if (parts.length > 2) {\n    hours = int.parse(parts[parts.length - 3]);\n  }\n  if (parts.length > 1) {\n    minutes = int.parse(parts[parts.length - 2]);\n  }\n  micros = (double.parse(parts[parts.length - 1]) * 1000000).round();\n  return Duration(hours: hours, minutes: minutes, microseconds: micros);\n}\n"
  },
  {
    "path": "lib/utils/time_of_day_util.dart",
    "content": "import 'package:flutter/material.dart';\n\nDateTime? timeOfDayToDateTime(TimeOfDay? t) {\n  if (t == null) {\n    return null;\n  }\n  final now = DateTime.now();\n  return DateTime(now.year, now.month, now.day, t.hour, t.minute);\n}\n\nTimeOfDay dateTimeToTimeOfDay(DateTime t) {\n  return TimeOfDay.fromDateTime(t);\n}\n"
  },
  {
    "path": "linux/.gitignore",
    "content": "flutter/ephemeral\n"
  },
  {
    "path": "linux/CMakeLists.txt",
    "content": "# Project-level configuration.\ncmake_minimum_required(VERSION 3.10)\nproject(runner LANGUAGES CXX)\n\n# The name of the executable created for the application. Change this to change\n# the on-disk name of your application.\nset(BINARY_NAME \"koduko\")\n# The unique GTK application identifier for this application. See:\n# https://wiki.gnome.org/HowDoI/ChooseApplicationID\nset(APPLICATION_ID \"com.example.koduko\")\n\n# Explicitly opt in to modern CMake behaviors to avoid warnings with recent\n# versions of CMake.\ncmake_policy(SET CMP0063 NEW)\n\n# Load bundled libraries from the lib/ directory relative to the binary.\nset(CMAKE_INSTALL_RPATH \"$ORIGIN/lib\")\n\n# Root filesystem for cross-building.\nif(FLUTTER_TARGET_PLATFORM_SYSROOT)\n  set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT})\n  set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})\n  set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)\n  set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)\n  set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)\n  set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)\nendif()\n\n# Define build configuration options.\nif(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)\n  set(CMAKE_BUILD_TYPE \"Debug\" CACHE\n    STRING \"Flutter build mode\" FORCE)\n  set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS\n    \"Debug\" \"Profile\" \"Release\")\nendif()\n\n# Compilation settings that should be applied to most targets.\n#\n# Be cautious about adding new options here, as plugins use this function by\n# default. In most cases, you should add new options to specific targets instead\n# of modifying this function.\nfunction(APPLY_STANDARD_SETTINGS TARGET)\n  target_compile_features(${TARGET} PUBLIC cxx_std_14)\n  target_compile_options(${TARGET} PRIVATE -Wall -Werror)\n  target_compile_options(${TARGET} PRIVATE \"$<$<NOT:$<CONFIG:Debug>>:-O3>\")\n  target_compile_definitions(${TARGET} PRIVATE \"$<$<NOT:$<CONFIG:Debug>>:NDEBUG>\")\nendfunction()\n\n# Flutter library and tool build rules.\nset(FLUTTER_MANAGED_DIR \"${CMAKE_CURRENT_SOURCE_DIR}/flutter\")\nadd_subdirectory(${FLUTTER_MANAGED_DIR})\n\n# System-level dependencies.\nfind_package(PkgConfig REQUIRED)\npkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)\n\nadd_definitions(-DAPPLICATION_ID=\"${APPLICATION_ID}\")\n\n# Define the application target. To change its name, change BINARY_NAME above,\n# not the value here, or `flutter run` will no longer work.\n#\n# Any new source files that you add to the application should be added here.\nadd_executable(${BINARY_NAME}\n  \"main.cc\"\n  \"my_application.cc\"\n  \"${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc\"\n)\n\n# Apply the standard set of build settings. This can be removed for applications\n# that need different build settings.\napply_standard_settings(${BINARY_NAME})\n\n# Add dependency libraries. Add any application-specific dependencies here.\ntarget_link_libraries(${BINARY_NAME} PRIVATE flutter)\ntarget_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)\n\n# Run the Flutter tool portions of the build. This must not be removed.\nadd_dependencies(${BINARY_NAME} flutter_assemble)\n\n# Only the install-generated bundle's copy of the executable will launch\n# correctly, since the resources must in the right relative locations. To avoid\n# people trying to run the unbundled copy, put it in a subdirectory instead of\n# the default top-level location.\nset_target_properties(${BINARY_NAME}\n  PROPERTIES\n  RUNTIME_OUTPUT_DIRECTORY \"${CMAKE_BINARY_DIR}/intermediates_do_not_run\"\n)\n\n# Generated plugin build rules, which manage building the plugins and adding\n# them to the application.\ninclude(flutter/generated_plugins.cmake)\n\n\n# === Installation ===\n# By default, \"installing\" just makes a relocatable bundle in the build\n# directory.\nset(BUILD_BUNDLE_DIR \"${PROJECT_BINARY_DIR}/bundle\")\nif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)\n  set(CMAKE_INSTALL_PREFIX \"${BUILD_BUNDLE_DIR}\" CACHE PATH \"...\" FORCE)\nendif()\n\n# Start with a clean build bundle directory every time.\ninstall(CODE \"\n  file(REMOVE_RECURSE \\\"${BUILD_BUNDLE_DIR}/\\\")\n  \" COMPONENT Runtime)\n\nset(INSTALL_BUNDLE_DATA_DIR \"${CMAKE_INSTALL_PREFIX}/data\")\nset(INSTALL_BUNDLE_LIB_DIR \"${CMAKE_INSTALL_PREFIX}/lib\")\n\ninstall(TARGETS ${BINARY_NAME} RUNTIME DESTINATION \"${CMAKE_INSTALL_PREFIX}\"\n  COMPONENT Runtime)\n\ninstall(FILES \"${FLUTTER_ICU_DATA_FILE}\" DESTINATION \"${INSTALL_BUNDLE_DATA_DIR}\"\n  COMPONENT Runtime)\n\ninstall(FILES \"${FLUTTER_LIBRARY}\" DESTINATION \"${INSTALL_BUNDLE_LIB_DIR}\"\n  COMPONENT Runtime)\n\nforeach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})\n  install(FILES \"${bundled_library}\"\n    DESTINATION \"${INSTALL_BUNDLE_LIB_DIR}\"\n    COMPONENT Runtime)\nendforeach(bundled_library)\n\n# Fully re-copy the assets directory on each build to avoid having stale files\n# from a previous install.\nset(FLUTTER_ASSET_DIR_NAME \"flutter_assets\")\ninstall(CODE \"\n  file(REMOVE_RECURSE \\\"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\\\")\n  \" COMPONENT Runtime)\ninstall(DIRECTORY \"${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}\"\n  DESTINATION \"${INSTALL_BUNDLE_DATA_DIR}\" COMPONENT Runtime)\n\n# Install the AOT library on non-Debug builds only.\nif(NOT CMAKE_BUILD_TYPE MATCHES \"Debug\")\n  install(FILES \"${AOT_LIBRARY}\" DESTINATION \"${INSTALL_BUNDLE_LIB_DIR}\"\n    COMPONENT Runtime)\nendif()\n"
  },
  {
    "path": "linux/flutter/CMakeLists.txt",
    "content": "# This file controls Flutter-level build steps. It should not be edited.\ncmake_minimum_required(VERSION 3.10)\n\nset(EPHEMERAL_DIR \"${CMAKE_CURRENT_SOURCE_DIR}/ephemeral\")\n\n# Configuration provided via flutter tool.\ninclude(${EPHEMERAL_DIR}/generated_config.cmake)\n\n# TODO: Move the rest of this into files in ephemeral. See\n# https://github.com/flutter/flutter/issues/57146.\n\n# Serves the same purpose as list(TRANSFORM ... PREPEND ...),\n# which isn't available in 3.10.\nfunction(list_prepend LIST_NAME PREFIX)\n    set(NEW_LIST \"\")\n    foreach(element ${${LIST_NAME}})\n        list(APPEND NEW_LIST \"${PREFIX}${element}\")\n    endforeach(element)\n    set(${LIST_NAME} \"${NEW_LIST}\" PARENT_SCOPE)\nendfunction()\n\n# === Flutter Library ===\n# System-level dependencies.\nfind_package(PkgConfig REQUIRED)\npkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)\npkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0)\npkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)\n\nset(FLUTTER_LIBRARY \"${EPHEMERAL_DIR}/libflutter_linux_gtk.so\")\n\n# Published to parent scope for install step.\nset(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)\nset(FLUTTER_ICU_DATA_FILE \"${EPHEMERAL_DIR}/icudtl.dat\" PARENT_SCOPE)\nset(PROJECT_BUILD_DIR \"${PROJECT_DIR}/build/\" PARENT_SCOPE)\nset(AOT_LIBRARY \"${PROJECT_DIR}/build/lib/libapp.so\" PARENT_SCOPE)\n\nlist(APPEND FLUTTER_LIBRARY_HEADERS\n  \"fl_basic_message_channel.h\"\n  \"fl_binary_codec.h\"\n  \"fl_binary_messenger.h\"\n  \"fl_dart_project.h\"\n  \"fl_engine.h\"\n  \"fl_json_message_codec.h\"\n  \"fl_json_method_codec.h\"\n  \"fl_message_codec.h\"\n  \"fl_method_call.h\"\n  \"fl_method_channel.h\"\n  \"fl_method_codec.h\"\n  \"fl_method_response.h\"\n  \"fl_plugin_registrar.h\"\n  \"fl_plugin_registry.h\"\n  \"fl_standard_message_codec.h\"\n  \"fl_standard_method_codec.h\"\n  \"fl_string_codec.h\"\n  \"fl_value.h\"\n  \"fl_view.h\"\n  \"flutter_linux.h\"\n)\nlist_prepend(FLUTTER_LIBRARY_HEADERS \"${EPHEMERAL_DIR}/flutter_linux/\")\nadd_library(flutter INTERFACE)\ntarget_include_directories(flutter INTERFACE\n  \"${EPHEMERAL_DIR}\"\n)\ntarget_link_libraries(flutter INTERFACE \"${FLUTTER_LIBRARY}\")\ntarget_link_libraries(flutter INTERFACE\n  PkgConfig::GTK\n  PkgConfig::GLIB\n  PkgConfig::GIO\n)\nadd_dependencies(flutter flutter_assemble)\n\n# === Flutter tool backend ===\n# _phony_ is a non-existent file to force this command to run every time,\n# since currently there's no way to get a full input/output list from the\n# flutter tool.\nadd_custom_command(\n  OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}\n    ${CMAKE_CURRENT_BINARY_DIR}/_phony_\n  COMMAND ${CMAKE_COMMAND} -E env\n    ${FLUTTER_TOOL_ENVIRONMENT}\n    \"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh\"\n      ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE}\n  VERBATIM\n)\nadd_custom_target(flutter_assemble DEPENDS\n  \"${FLUTTER_LIBRARY}\"\n  ${FLUTTER_LIBRARY_HEADERS}\n)\n"
  },
  {
    "path": "linux/flutter/generated_plugin_registrant.cc",
    "content": "//\n//  Generated file. Do not edit.\n//\n\n// clang-format off\n\n#include \"generated_plugin_registrant.h\"\n\n#include <dynamic_color/dynamic_color_plugin.h>\n#include <url_launcher_linux/url_launcher_plugin.h>\n\nvoid fl_register_plugins(FlPluginRegistry* registry) {\n  g_autoptr(FlPluginRegistrar) dynamic_color_registrar =\n      fl_plugin_registry_get_registrar_for_plugin(registry, \"DynamicColorPlugin\");\n  dynamic_color_plugin_register_with_registrar(dynamic_color_registrar);\n  g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =\n      fl_plugin_registry_get_registrar_for_plugin(registry, \"UrlLauncherPlugin\");\n  url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);\n}\n"
  },
  {
    "path": "linux/flutter/generated_plugin_registrant.h",
    "content": "//\n//  Generated file. Do not edit.\n//\n\n// clang-format off\n\n#ifndef GENERATED_PLUGIN_REGISTRANT_\n#define GENERATED_PLUGIN_REGISTRANT_\n\n#include <flutter_linux/flutter_linux.h>\n\n// Registers Flutter plugins.\nvoid fl_register_plugins(FlPluginRegistry* registry);\n\n#endif  // GENERATED_PLUGIN_REGISTRANT_\n"
  },
  {
    "path": "linux/flutter/generated_plugins.cmake",
    "content": "#\n# Generated file, do not edit.\n#\n\nlist(APPEND FLUTTER_PLUGIN_LIST\n  dynamic_color\n  url_launcher_linux\n)\n\nlist(APPEND FLUTTER_FFI_PLUGIN_LIST\n)\n\nset(PLUGIN_BUNDLED_LIBRARIES)\n\nforeach(plugin ${FLUTTER_PLUGIN_LIST})\n  add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})\n  target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)\n  list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)\n  list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})\nendforeach(plugin)\n\nforeach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})\n  add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})\n  list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})\nendforeach(ffi_plugin)\n"
  },
  {
    "path": "linux/main.cc",
    "content": "#include \"my_application.h\"\n\nint main(int argc, char** argv) {\n  g_autoptr(MyApplication) app = my_application_new();\n  return g_application_run(G_APPLICATION(app), argc, argv);\n}\n"
  },
  {
    "path": "linux/my_application.cc",
    "content": "#include \"my_application.h\"\n\n#include <flutter_linux/flutter_linux.h>\n#ifdef GDK_WINDOWING_X11\n#include <gdk/gdkx.h>\n#endif\n\n#include \"flutter/generated_plugin_registrant.h\"\n\nstruct _MyApplication {\n  GtkApplication parent_instance;\n  char** dart_entrypoint_arguments;\n};\n\nG_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)\n\n// Implements GApplication::activate.\nstatic void my_application_activate(GApplication* application) {\n  MyApplication* self = MY_APPLICATION(application);\n  GtkWindow* window =\n      GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));\n\n  // Use a header bar when running in GNOME as this is the common style used\n  // by applications and is the setup most users will be using (e.g. Ubuntu\n  // desktop).\n  // If running on X and not using GNOME then just use a traditional title bar\n  // in case the window manager does more exotic layout, e.g. tiling.\n  // If running on Wayland assume the header bar will work (may need changing\n  // if future cases occur).\n  gboolean use_header_bar = TRUE;\n#ifdef GDK_WINDOWING_X11\n  GdkScreen* screen = gtk_window_get_screen(window);\n  if (GDK_IS_X11_SCREEN(screen)) {\n    const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen);\n    if (g_strcmp0(wm_name, \"GNOME Shell\") != 0) {\n      use_header_bar = FALSE;\n    }\n  }\n#endif\n  if (use_header_bar) {\n    GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());\n    gtk_widget_show(GTK_WIDGET(header_bar));\n    gtk_header_bar_set_title(header_bar, \"koduko\");\n    gtk_header_bar_set_show_close_button(header_bar, TRUE);\n    gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));\n  } else {\n    gtk_window_set_title(window, \"koduko\");\n  }\n\n  gtk_window_set_default_size(window, 1280, 720);\n  gtk_widget_show(GTK_WIDGET(window));\n\n  g_autoptr(FlDartProject) project = fl_dart_project_new();\n  fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);\n\n  FlView* view = fl_view_new(project);\n  gtk_widget_show(GTK_WIDGET(view));\n  gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));\n\n  fl_register_plugins(FL_PLUGIN_REGISTRY(view));\n\n  gtk_widget_grab_focus(GTK_WIDGET(view));\n}\n\n// Implements GApplication::local_command_line.\nstatic gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) {\n  MyApplication* self = MY_APPLICATION(application);\n  // Strip out the first argument as it is the binary name.\n  self->dart_entrypoint_arguments = g_strdupv(*arguments + 1);\n\n  g_autoptr(GError) error = nullptr;\n  if (!g_application_register(application, nullptr, &error)) {\n     g_warning(\"Failed to register: %s\", error->message);\n     *exit_status = 1;\n     return TRUE;\n  }\n\n  g_application_activate(application);\n  *exit_status = 0;\n\n  return TRUE;\n}\n\n// Implements GObject::dispose.\nstatic void my_application_dispose(GObject* object) {\n  MyApplication* self = MY_APPLICATION(object);\n  g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev);\n  G_OBJECT_CLASS(my_application_parent_class)->dispose(object);\n}\n\nstatic void my_application_class_init(MyApplicationClass* klass) {\n  G_APPLICATION_CLASS(klass)->activate = my_application_activate;\n  G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line;\n  G_OBJECT_CLASS(klass)->dispose = my_application_dispose;\n}\n\nstatic void my_application_init(MyApplication* self) {}\n\nMyApplication* my_application_new() {\n  return MY_APPLICATION(g_object_new(my_application_get_type(),\n                                     \"application-id\", APPLICATION_ID,\n                                     \"flags\", G_APPLICATION_NON_UNIQUE,\n                                     nullptr));\n}\n"
  },
  {
    "path": "linux/my_application.h",
    "content": "#ifndef FLUTTER_MY_APPLICATION_H_\n#define FLUTTER_MY_APPLICATION_H_\n\n#include <gtk/gtk.h>\n\nG_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,\n                     GtkApplication)\n\n/**\n * my_application_new:\n *\n * Creates a new Flutter-based application.\n *\n * Returns: a new #MyApplication.\n */\nMyApplication* my_application_new();\n\n#endif  // FLUTTER_MY_APPLICATION_H_\n"
  },
  {
    "path": "macos/.gitignore",
    "content": "# Flutter-related\n**/Flutter/ephemeral/\n**/Pods/\n\n# Xcode-related\n**/dgph\n**/xcuserdata/\n"
  },
  {
    "path": "macos/Flutter/Flutter-Debug.xcconfig",
    "content": "#include \"ephemeral/Flutter-Generated.xcconfig\"\n"
  },
  {
    "path": "macos/Flutter/Flutter-Release.xcconfig",
    "content": "#include \"ephemeral/Flutter-Generated.xcconfig\"\n"
  },
  {
    "path": "macos/Flutter/GeneratedPluginRegistrant.swift",
    "content": "//\n//  Generated file. Do not edit.\n//\n\nimport FlutterMacOS\nimport Foundation\n\nimport dynamic_color\nimport flutter_local_notifications\nimport flutter_native_timezone\nimport path_provider_foundation\nimport url_launcher_macos\n\nfunc RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {\n  DynamicColorPlugin.register(with: registry.registrar(forPlugin: \"DynamicColorPlugin\"))\n  FlutterLocalNotificationsPlugin.register(with: registry.registrar(forPlugin: \"FlutterLocalNotificationsPlugin\"))\n  FlutterNativeTimezonePlugin.register(with: registry.registrar(forPlugin: \"FlutterNativeTimezonePlugin\"))\n  PathProviderPlugin.register(with: registry.registrar(forPlugin: \"PathProviderPlugin\"))\n  UrlLauncherPlugin.register(with: registry.registrar(forPlugin: \"UrlLauncherPlugin\"))\n}\n"
  },
  {
    "path": "macos/Runner/AppDelegate.swift",
    "content": "import Cocoa\nimport FlutterMacOS\n\n@NSApplicationMain\nclass AppDelegate: FlutterAppDelegate {\n  override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {\n    return true\n  }\n}\n"
  },
  {
    "path": "macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"size\" : \"16x16\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_16.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"16x16\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_32.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"32x32\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_32.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"32x32\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_64.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"128x128\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_128.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"128x128\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_256.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"256x256\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_256.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"256x256\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_512.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"512x512\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_512.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"512x512\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"app_icon_1024.png\",\n      \"scale\" : \"2x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}\n"
  },
  {
    "path": "macos/Runner/Base.lproj/MainMenu.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"14490.70\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"14490.70\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"NSApplication\">\n            <connections>\n                <outlet property=\"delegate\" destination=\"Voe-Tx-rLC\" id=\"GzC-gU-4Uq\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <customObject id=\"Voe-Tx-rLC\" customClass=\"AppDelegate\" customModule=\"Runner\" customModuleProvider=\"target\">\n            <connections>\n                <outlet property=\"applicationMenu\" destination=\"uQy-DD-JDr\" id=\"XBo-yE-nKs\"/>\n                <outlet property=\"mainFlutterWindow\" destination=\"QvC-M9-y7g\" id=\"gIp-Ho-8D9\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"YLy-65-1bz\" customClass=\"NSFontManager\"/>\n        <menu title=\"Main Menu\" systemMenu=\"main\" id=\"AYu-sK-qS6\">\n            <items>\n                <menuItem title=\"APP_NAME\" id=\"1Xt-HY-uBw\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"APP_NAME\" systemMenu=\"apple\" id=\"uQy-DD-JDr\">\n                        <items>\n                            <menuItem title=\"About APP_NAME\" id=\"5kV-Vb-QxS\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"orderFrontStandardAboutPanel:\" target=\"-1\" id=\"Exp-CZ-Vem\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"VOq-y0-SEH\"/>\n                            <menuItem title=\"Preferences…\" keyEquivalent=\",\" id=\"BOF-NM-1cW\"/>\n                            <menuItem isSeparatorItem=\"YES\" id=\"wFC-TO-SCJ\"/>\n                            <menuItem title=\"Services\" id=\"NMo-om-nkz\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Services\" systemMenu=\"services\" id=\"hz9-B4-Xy5\"/>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"4je-JR-u6R\"/>\n                            <menuItem title=\"Hide APP_NAME\" keyEquivalent=\"h\" id=\"Olw-nP-bQN\">\n                                <connections>\n                                    <action selector=\"hide:\" target=\"-1\" id=\"PnN-Uc-m68\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Hide Others\" keyEquivalent=\"h\" id=\"Vdr-fp-XzO\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"hideOtherApplications:\" target=\"-1\" id=\"VT4-aY-XCT\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Show All\" id=\"Kd2-mp-pUS\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"unhideAllApplications:\" target=\"-1\" id=\"Dhg-Le-xox\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"kCx-OE-vgT\"/>\n                            <menuItem title=\"Quit APP_NAME\" keyEquivalent=\"q\" id=\"4sb-4s-VLi\">\n                                <connections>\n                                    <action selector=\"terminate:\" target=\"-1\" id=\"Te7-pn-YzF\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Edit\" id=\"5QF-Oa-p0T\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Edit\" id=\"W48-6f-4Dl\">\n                        <items>\n                            <menuItem title=\"Undo\" keyEquivalent=\"z\" id=\"dRJ-4n-Yzg\">\n                                <connections>\n                                    <action selector=\"undo:\" target=\"-1\" id=\"M6e-cu-g7V\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Redo\" keyEquivalent=\"Z\" id=\"6dh-zS-Vam\">\n                                <connections>\n                                    <action selector=\"redo:\" target=\"-1\" id=\"oIA-Rs-6OD\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"WRV-NI-Exz\"/>\n                            <menuItem title=\"Cut\" keyEquivalent=\"x\" id=\"uRl-iY-unG\">\n                                <connections>\n                                    <action selector=\"cut:\" target=\"-1\" id=\"YJe-68-I9s\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Copy\" keyEquivalent=\"c\" id=\"x3v-GG-iWU\">\n                                <connections>\n                                    <action selector=\"copy:\" target=\"-1\" id=\"G1f-GL-Joy\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Paste\" keyEquivalent=\"v\" id=\"gVA-U4-sdL\">\n                                <connections>\n                                    <action selector=\"paste:\" target=\"-1\" id=\"UvS-8e-Qdg\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Paste and Match Style\" keyEquivalent=\"V\" id=\"WeT-3V-zwk\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"pasteAsPlainText:\" target=\"-1\" id=\"cEh-KX-wJQ\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Delete\" id=\"pa3-QI-u2k\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"delete:\" target=\"-1\" id=\"0Mk-Ml-PaM\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Select All\" keyEquivalent=\"a\" id=\"Ruw-6m-B2m\">\n                                <connections>\n                                    <action selector=\"selectAll:\" target=\"-1\" id=\"VNm-Mi-diN\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"uyl-h8-XO2\"/>\n                            <menuItem title=\"Find\" id=\"4EN-yA-p0u\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Find\" id=\"1b7-l0-nxx\">\n                                    <items>\n                                        <menuItem title=\"Find…\" tag=\"1\" keyEquivalent=\"f\" id=\"Xz5-n4-O0W\">\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"cD7-Qs-BN4\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Find and Replace…\" tag=\"12\" keyEquivalent=\"f\" id=\"YEy-JH-Tfz\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"WD3-Gg-5AJ\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Find Next\" tag=\"2\" keyEquivalent=\"g\" id=\"q09-fT-Sye\">\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"NDo-RZ-v9R\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Find Previous\" tag=\"3\" keyEquivalent=\"G\" id=\"OwM-mh-QMV\">\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"HOh-sY-3ay\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Use Selection for Find\" tag=\"7\" keyEquivalent=\"e\" id=\"buJ-ug-pKt\">\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"U76-nv-p5D\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Jump to Selection\" keyEquivalent=\"j\" id=\"S0p-oC-mLd\">\n                                            <connections>\n                                                <action selector=\"centerSelectionInVisibleArea:\" target=\"-1\" id=\"IOG-6D-g5B\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem title=\"Spelling and Grammar\" id=\"Dv1-io-Yv7\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Spelling\" id=\"3IN-sU-3Bg\">\n                                    <items>\n                                        <menuItem title=\"Show Spelling and Grammar\" keyEquivalent=\":\" id=\"HFo-cy-zxI\">\n                                            <connections>\n                                                <action selector=\"showGuessPanel:\" target=\"-1\" id=\"vFj-Ks-hy3\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Check Document Now\" keyEquivalent=\";\" id=\"hz2-CU-CR7\">\n                                            <connections>\n                                                <action selector=\"checkSpelling:\" target=\"-1\" id=\"fz7-VC-reM\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem isSeparatorItem=\"YES\" id=\"bNw-od-mp5\"/>\n                                        <menuItem title=\"Check Spelling While Typing\" id=\"rbD-Rh-wIN\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleContinuousSpellChecking:\" target=\"-1\" id=\"7w6-Qz-0kB\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Check Grammar With Spelling\" id=\"mK6-2p-4JG\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleGrammarChecking:\" target=\"-1\" id=\"muD-Qn-j4w\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Correct Spelling Automatically\" id=\"78Y-hA-62v\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticSpellingCorrection:\" target=\"-1\" id=\"2lM-Qi-WAP\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem title=\"Substitutions\" id=\"9ic-FL-obx\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Substitutions\" id=\"FeM-D8-WVr\">\n                                    <items>\n                                        <menuItem title=\"Show Substitutions\" id=\"z6F-FW-3nz\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"orderFrontSubstitutionsPanel:\" target=\"-1\" id=\"oku-mr-iSq\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem isSeparatorItem=\"YES\" id=\"gPx-C9-uUO\"/>\n                                        <menuItem title=\"Smart Copy/Paste\" id=\"9yt-4B-nSM\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleSmartInsertDelete:\" target=\"-1\" id=\"3IJ-Se-DZD\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Smart Quotes\" id=\"hQb-2v-fYv\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticQuoteSubstitution:\" target=\"-1\" id=\"ptq-xd-QOA\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Smart Dashes\" id=\"rgM-f4-ycn\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticDashSubstitution:\" target=\"-1\" id=\"oCt-pO-9gS\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Smart Links\" id=\"cwL-P1-jid\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticLinkDetection:\" target=\"-1\" id=\"Gip-E3-Fov\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Data Detectors\" id=\"tRr-pd-1PS\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticDataDetection:\" target=\"-1\" id=\"R1I-Nq-Kbl\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Text Replacement\" id=\"HFQ-gK-NFA\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticTextReplacement:\" target=\"-1\" id=\"DvP-Fe-Py6\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem title=\"Transformations\" id=\"2oI-Rn-ZJC\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Transformations\" id=\"c8a-y6-VQd\">\n                                    <items>\n                                        <menuItem title=\"Make Upper Case\" id=\"vmV-6d-7jI\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"uppercaseWord:\" target=\"-1\" id=\"sPh-Tk-edu\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Make Lower Case\" id=\"d9M-CD-aMd\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"lowercaseWord:\" target=\"-1\" id=\"iUZ-b5-hil\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Capitalize\" id=\"UEZ-Bs-lqG\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"capitalizeWord:\" target=\"-1\" id=\"26H-TL-nsh\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem title=\"Speech\" id=\"xrE-MZ-jX0\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Speech\" id=\"3rS-ZA-NoH\">\n                                    <items>\n                                        <menuItem title=\"Start Speaking\" id=\"Ynk-f8-cLZ\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"startSpeaking:\" target=\"-1\" id=\"654-Ng-kyl\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Stop Speaking\" id=\"Oyz-dy-DGm\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"stopSpeaking:\" target=\"-1\" id=\"dX8-6p-jy9\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"View\" id=\"H8h-7b-M4v\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"View\" id=\"HyV-fh-RgO\">\n                        <items>\n                            <menuItem title=\"Enter Full Screen\" keyEquivalent=\"f\" id=\"4J7-dP-txa\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" control=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"toggleFullScreen:\" target=\"-1\" id=\"dU3-MA-1Rq\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Window\" id=\"aUF-d1-5bR\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Window\" systemMenu=\"window\" id=\"Td7-aD-5lo\">\n                        <items>\n                            <menuItem title=\"Minimize\" keyEquivalent=\"m\" id=\"OY7-WF-poV\">\n                                <connections>\n                                    <action selector=\"performMiniaturize:\" target=\"-1\" id=\"VwT-WD-YPe\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Zoom\" id=\"R4o-n2-Eq4\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"performZoom:\" target=\"-1\" id=\"DIl-cC-cCs\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"eu3-7i-yIM\"/>\n                            <menuItem title=\"Bring All to Front\" id=\"LE2-aR-0XJ\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"arrangeInFront:\" target=\"-1\" id=\"DRN-fu-gQh\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Help\" id=\"EPT-qC-fAb\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Help\" systemMenu=\"help\" id=\"rJ0-wn-3NY\"/>\n                </menuItem>\n            </items>\n            <point key=\"canvasLocation\" x=\"142\" y=\"-258\"/>\n        </menu>\n        <window title=\"APP_NAME\" allowsToolTipsWhenApplicationIsInactive=\"NO\" autorecalculatesKeyViewLoop=\"NO\" releasedWhenClosed=\"NO\" animationBehavior=\"default\" id=\"QvC-M9-y7g\" customClass=\"MainFlutterWindow\" customModule=\"Runner\" customModuleProvider=\"target\">\n            <windowStyleMask key=\"styleMask\" titled=\"YES\" closable=\"YES\" miniaturizable=\"YES\" resizable=\"YES\"/>\n            <rect key=\"contentRect\" x=\"335\" y=\"390\" width=\"800\" height=\"600\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"2560\" height=\"1577\"/>\n            <view key=\"contentView\" wantsLayer=\"YES\" id=\"EiT-Mj-1SZ\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"800\" height=\"600\"/>\n                <autoresizingMask key=\"autoresizingMask\"/>\n            </view>\n        </window>\n    </objects>\n</document>\n"
  },
  {
    "path": "macos/Runner/Configs/AppInfo.xcconfig",
    "content": "// Application-level settings for the Runner target.\n//\n// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the\n// future. If not, the values below would default to using the project name when this becomes a\n// 'flutter create' template.\n\n// The application's name. By default this is also the title of the Flutter window.\nPRODUCT_NAME = koduko\n\n// The application's bundle identifier\nPRODUCT_BUNDLE_IDENTIFIER = com.example.koduko\n\n// The copyright displayed in application information\nPRODUCT_COPYRIGHT = Copyright © 2022 com.example. All rights reserved.\n"
  },
  {
    "path": "macos/Runner/Configs/Debug.xcconfig",
    "content": "#include \"../../Flutter/Flutter-Debug.xcconfig\"\n#include \"Warnings.xcconfig\"\n"
  },
  {
    "path": "macos/Runner/Configs/Release.xcconfig",
    "content": "#include \"../../Flutter/Flutter-Release.xcconfig\"\n#include \"Warnings.xcconfig\"\n"
  },
  {
    "path": "macos/Runner/Configs/Warnings.xcconfig",
    "content": "WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings\nGCC_WARN_UNDECLARED_SELECTOR = YES\nCLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES\nCLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE\nCLANG_WARN__DUPLICATE_METHOD_MATCH = YES\nCLANG_WARN_PRAGMA_PACK = YES\nCLANG_WARN_STRICT_PROTOTYPES = YES\nCLANG_WARN_COMMA = YES\nGCC_WARN_STRICT_SELECTOR_MATCH = YES\nCLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES\nCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES\nGCC_WARN_SHADOW = YES\nCLANG_WARN_UNREACHABLE_CODE = YES\n"
  },
  {
    "path": "macos/Runner/DebugProfile.entitlements",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>com.apple.security.app-sandbox</key>\n\t<true/>\n\t<key>com.apple.security.cs.allow-jit</key>\n\t<true/>\n\t<key>com.apple.security.network.server</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "macos/Runner/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>$(DEVELOPMENT_LANGUAGE)</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIconFile</key>\n\t<string></string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>$(FLUTTER_BUILD_NAME)</string>\n\t<key>CFBundleVersion</key>\n\t<string>$(FLUTTER_BUILD_NUMBER)</string>\n\t<key>LSMinimumSystemVersion</key>\n\t<string>$(MACOSX_DEPLOYMENT_TARGET)</string>\n\t<key>NSHumanReadableCopyright</key>\n\t<string>$(PRODUCT_COPYRIGHT)</string>\n\t<key>NSMainNibFile</key>\n\t<string>MainMenu</string>\n\t<key>NSPrincipalClass</key>\n\t<string>NSApplication</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "macos/Runner/MainFlutterWindow.swift",
    "content": "import Cocoa\nimport FlutterMacOS\n\nclass MainFlutterWindow: NSWindow {\n  override func awakeFromNib() {\n    let flutterViewController = FlutterViewController.init()\n    let windowFrame = self.frame\n    self.contentViewController = flutterViewController\n    self.setFrame(windowFrame, display: true)\n\n    RegisterGeneratedPlugins(registry: flutterViewController)\n\n    super.awakeFromNib()\n  }\n}\n"
  },
  {
    "path": "macos/Runner/Release.entitlements",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>com.apple.security.app-sandbox</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "macos/Runner.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 51;\n\tobjects = {\n\n/* Begin PBXAggregateTarget section */\n\t\t33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {\n\t\t\tisa = PBXAggregateTarget;\n\t\t\tbuildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget \"Flutter Assemble\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t33CC111E2044C6BF0003C045 /* ShellScript */,\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = \"Flutter Assemble\";\n\t\t\tproductName = FLX;\n\t\t};\n/* End PBXAggregateTarget section */\n\n/* Begin PBXBuildFile section */\n\t\t335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };\n\t\t33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };\n\t\t33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };\n\t\t33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };\n\t\t33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\t33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 33CC10E52044A3C60003C045 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 33CC111A2044C6BA0003C045;\n\t\t\tremoteInfo = FLX;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXCopyFilesBuildPhase section */\n\t\t33CC110E2044A8840003C045 /* Bundle Framework */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = \"\";\n\t\t\tdstSubfolderSpec = 10;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tname = \"Bundle Framework\";\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXCopyFilesBuildPhase section */\n\n/* Begin PBXFileReference section */\n\t\t333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = \"<group>\"; };\n\t\t335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = \"<group>\"; };\n\t\t33CC10ED2044A3C60003C045 /* koduko.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = \"koduko.app\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = \"<group>\"; };\n\t\t33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = \"<group>\"; };\n\t\t33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = \"<group>\"; };\n\t\t33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = \"<group>\"; };\n\t\t33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = \"<group>\"; };\n\t\t33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = \"Flutter-Debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = \"Flutter-Release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = \"Flutter-Generated.xcconfig\"; path = \"ephemeral/Flutter-Generated.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = \"<group>\"; };\n\t\t33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = \"<group>\"; };\n\t\t33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = \"<group>\"; };\n\t\t7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = \"<group>\"; };\n\t\t9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t33CC10EA2044A3C60003C045 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t33BA886A226E78AF003329D5 /* Configs */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t33E5194F232828860026EE4D /* AppInfo.xcconfig */,\n\t\t\t\t9740EEB21CF90195004384FC /* Debug.xcconfig */,\n\t\t\t\t7AFA3C8E1D35360C0083082E /* Release.xcconfig */,\n\t\t\t\t333000ED22D3DE5D00554162 /* Warnings.xcconfig */,\n\t\t\t);\n\t\t\tpath = Configs;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t33CC10E42044A3C60003C045 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t33FAB671232836740065AC1E /* Runner */,\n\t\t\t\t33CEB47122A05771004F2AC0 /* Flutter */,\n\t\t\t\t33CC10EE2044A3C60003C045 /* Products */,\n\t\t\t\tD73912EC22F37F3D000D13A0 /* Frameworks */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t33CC10EE2044A3C60003C045 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t33CC10ED2044A3C60003C045 /* koduko.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t33CC11242044D66E0003C045 /* Resources */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t33CC10F22044A3C60003C045 /* Assets.xcassets */,\n\t\t\t\t33CC10F42044A3C60003C045 /* MainMenu.xib */,\n\t\t\t\t33CC10F72044A3C60003C045 /* Info.plist */,\n\t\t\t);\n\t\t\tname = Resources;\n\t\t\tpath = ..;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t33CEB47122A05771004F2AC0 /* Flutter */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,\n\t\t\t\t33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,\n\t\t\t\t33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,\n\t\t\t\t33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,\n\t\t\t);\n\t\t\tpath = Flutter;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t33FAB671232836740065AC1E /* Runner */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t33CC10F02044A3C60003C045 /* AppDelegate.swift */,\n\t\t\t\t33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,\n\t\t\t\t33E51913231747F40026EE4D /* DebugProfile.entitlements */,\n\t\t\t\t33E51914231749380026EE4D /* Release.entitlements */,\n\t\t\t\t33CC11242044D66E0003C045 /* Resources */,\n\t\t\t\t33BA886A226E78AF003329D5 /* Configs */,\n\t\t\t);\n\t\t\tpath = Runner;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tD73912EC22F37F3D000D13A0 /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t33CC10EC2044A3C60003C045 /* Runner */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget \"Runner\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t33CC10E92044A3C60003C045 /* Sources */,\n\t\t\t\t33CC10EA2044A3C60003C045 /* Frameworks */,\n\t\t\t\t33CC10EB2044A3C60003C045 /* Resources */,\n\t\t\t\t33CC110E2044A8840003C045 /* Bundle Framework */,\n\t\t\t\t3399D490228B24CF009A79C7 /* ShellScript */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t33CC11202044C79F0003C045 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = Runner;\n\t\t\tproductName = Runner;\n\t\t\tproductReference = 33CC10ED2044A3C60003C045 /* koduko.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t33CC10E52044A3C60003C045 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastSwiftUpdateCheck = 0920;\n\t\t\t\tLastUpgradeCheck = 1300;\n\t\t\t\tORGANIZATIONNAME = \"\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t33CC10EC2044A3C60003C045 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 9.2;\n\t\t\t\t\t\tLastSwiftMigration = 1100;\n\t\t\t\t\t\tProvisioningStyle = Automatic;\n\t\t\t\t\t\tSystemCapabilities = {\n\t\t\t\t\t\t\tcom.apple.Sandbox = {\n\t\t\t\t\t\t\t\tenabled = 1;\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t};\n\t\t\t\t\t};\n\t\t\t\t\t33CC111A2044C6BA0003C045 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 9.2;\n\t\t\t\t\t\tProvisioningStyle = Manual;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject \"Runner\" */;\n\t\t\tcompatibilityVersion = \"Xcode 9.3\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 33CC10E42044A3C60003C045;\n\t\t\tproductRefGroup = 33CC10EE2044A3C60003C045 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t33CC10EC2044A3C60003C045 /* Runner */,\n\t\t\t\t33CC111A2044C6BA0003C045 /* Flutter Assemble */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t33CC10EB2044A3C60003C045 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,\n\t\t\t\t33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXShellScriptBuildPhase section */\n\t\t3399D490228B24CF009A79C7 /* ShellScript */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\toutputFileListPaths = (\n\t\t\t);\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"echo \\\"$PRODUCT_NAME.app\\\" > \\\"$PROJECT_DIR\\\"/Flutter/ephemeral/.app_filename && \\\"$FLUTTER_ROOT\\\"/packages/flutter_tools/bin/macos_assemble.sh embed\\n\";\n\t\t};\n\t\t33CC111E2044C6BF0003C045 /* ShellScript */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t\tFlutter/ephemeral/FlutterInputs.xcfilelist,\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t\tFlutter/ephemeral/tripwire,\n\t\t\t);\n\t\t\toutputFileListPaths = (\n\t\t\t\tFlutter/ephemeral/FlutterOutputs.xcfilelist,\n\t\t\t);\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"$FLUTTER_ROOT\\\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire\";\n\t\t};\n/* End PBXShellScriptBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t33CC10E92044A3C60003C045 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,\n\t\t\t\t33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,\n\t\t\t\t335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t33CC11202044C79F0003C045 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;\n\t\t\ttargetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\t33CC10F42044A3C60003C045 /* MainMenu.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t33CC10F52044A3C60003C045 /* Base */,\n\t\t\t);\n\t\t\tname = MainMenu.xib;\n\t\t\tpath = Runner;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t338D0CE9231458BD00FA5F75 /* Profile */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"-\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.11;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSWIFT_COMPILATION_MODE = wholemodule;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-O\";\n\t\t\t};\n\t\t\tname = Profile;\n\t\t};\n\t\t338D0CEA231458BD00FA5F75 /* Profile */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tINFOPLIST_FILE = Runner/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t);\n\t\t\t\tPROVISIONING_PROFILE_SPECIFIER = \"\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t};\n\t\t\tname = Profile;\n\t\t};\n\t\t338D0CEB231458BD00FA5F75 /* Profile */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCODE_SIGN_STYLE = Manual;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Profile;\n\t\t};\n\t\t33CC10F92044A3C60003C045 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"-\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.11;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t33CC10FA2044A3C60003C045 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"-\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.11;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSWIFT_COMPILATION_MODE = wholemodule;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-O\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t33CC10FC2044A3C60003C045 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tINFOPLIST_FILE = Runner/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t);\n\t\t\t\tPROVISIONING_PROFILE_SPECIFIER = \"\";\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t33CC10FD2044A3C60003C045 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tINFOPLIST_FILE = Runner/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t);\n\t\t\t\tPROVISIONING_PROFILE_SPECIFIER = \"\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t33CC111C2044C6BA0003C045 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCODE_SIGN_STYLE = Manual;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t33CC111D2044C6BA0003C045 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t33CC10E82044A3C60003C045 /* Build configuration list for PBXProject \"Runner\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t33CC10F92044A3C60003C045 /* Debug */,\n\t\t\t\t33CC10FA2044A3C60003C045 /* Release */,\n\t\t\t\t338D0CE9231458BD00FA5F75 /* Profile */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget \"Runner\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t33CC10FC2044A3C60003C045 /* Debug */,\n\t\t\t\t33CC10FD2044A3C60003C045 /* Release */,\n\t\t\t\t338D0CEA231458BD00FA5F75 /* Profile */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget \"Flutter Assemble\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t33CC111C2044C6BA0003C045 /* Debug */,\n\t\t\t\t33CC111D2044C6BA0003C045 /* Release */,\n\t\t\t\t338D0CEB231458BD00FA5F75 /* Profile */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 33CC10E52044A3C60003C045 /* Project object */;\n}\n"
  },
  {
    "path": "macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1300\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"33CC10EC2044A3C60003C045\"\n               BuildableName = \"koduko.app\"\n               BlueprintName = \"Runner\"\n               ReferencedContainer = \"container:Runner.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"33CC10EC2044A3C60003C045\"\n            BuildableName = \"koduko.app\"\n            BlueprintName = \"Runner\"\n            ReferencedContainer = \"container:Runner.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <Testables>\n      </Testables>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"33CC10EC2044A3C60003C045\"\n            BuildableName = \"koduko.app\"\n            BlueprintName = \"Runner\"\n            ReferencedContainer = \"container:Runner.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Profile\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"33CC10EC2044A3C60003C045\"\n            BuildableName = \"koduko.app\"\n            BlueprintName = \"Runner\"\n            ReferencedContainer = \"container:Runner.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "macos/Runner.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"group:Runner.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "pubspec.yaml",
    "content": "name: koduko\ndescription: A new Flutter project.\n\n# The following line prevents the package from being accidentally published to\n# pub.dev using `flutter pub publish`. This is preferred for private packages.\npublish_to: \"none\" # Remove this line if you wish to publish to pub.dev\n\n# The following defines the version and build number for your application.\n# A version number is three numbers separated by dots, like 1.2.43\n# followed by an optional build number separated by a +.\n# Both the version and the builder number may be overridden in flutter\n# build by specifying --build-name and --build-number, respectively.\n# In Android, build-name is used as versionName while build-number used as versionCode.\n# Read more about Android versioning at https://developer.android.com/studio/publish/versioning\n# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.\n# Read more about iOS versioning at\n# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html\nversion: 1.0.2+4\n\nenvironment:\n  sdk: \">=2.17.1 <3.22.1\"\n\n# Dependencies specify other packages that your package needs in order to work.\n# To automatically upgrade your package dependencies to the latest versions\n# consider running `flutter pub upgrade --major-versions`. Alternatively,\n# dependencies can be manually updated by changing the version numbers below to\n# the latest version available on pub.dev. To see which dependencies have newer\n# versions available, run `flutter pub outdated`.\ndependencies:\n  flutter:\n    sdk: flutter\n\n  # The following adds the Cupertino Icons font to your application.\n  # Use with the CupertinoIcons class for iOS style icons.\n  cupertino_icons: ^1.0.2\n  hive_flutter: ^1.1.0\n  hive: ^2.2.3\n  provider: ^6.0.3\n  uuid: ^4.4.0\n  google_fonts: ^6.2.1\n  intl: ^0.19.0\n  fl_chart: ^0.68.0\n  flutter_slidable: ^3.1.0\n  percent_indicator: ^4.2.2\n  collection: ^1.16.0\n  flutter_local_notifications: ^17.1.2\n  rxdart: ^0.28.0\n  timezone: ^0.9.0\n  flutter_native_timezone: ^2.0.0\n  url_launcher: ^6.1.5\n  dynamic_color: ^1.6.9\n  duration_picker: ^1.2.0\n  logger: ^2.3.0\n\n# flutter_icons:\n#   android: \"launcher_icon\"\n#   ios: true\n#   image_path: \"assets/icon/icon.png\"\n\ndev_dependencies:\n  flutter_test:\n    sdk: flutter\n\n  flutter_lints: ^4.0.0\n  hive_generator: ^2.0.1\n  build_runner: ^2.1.11\n  flutter_launcher_icons: ^0.13.1\n\n# For information on the generic Dart part of this file, see the\n# following page: https://dart.dev/tools/pub/pubspec\n\n# The following section is specific to Flutter packages.\nflutter:\n  # The following line ensures that the Material Icons font is\n  # included with your application, so that you can use the icons in\n  # the material Icons class.\n  uses-material-design: true\n\n  # To add assets to your application, add an assets section, like this:\n  assets:\n    - assets/icon/icon.png\n    - assets/onboarding/\n\n  # An image asset can refer to one or more resolution-specific \"variants\", see\n  # https://flutter.dev/assets-and-images/#resolution-aware\n\n  # For details regarding adding assets from package dependencies, see\n  # https://flutter.dev/assets-and-images/#from-packages\n\n  # To add custom fonts to your application, add a fonts section here,\n  # in this \"flutter\" section. Each entry in this list should have a\n  # \"family\" key with the font family name, and a \"fonts\" key with a\n  # list giving the asset and other descriptors for the font. For\n  # example:\n  # fonts:\n  #   - family: Schyler\n  #     fonts:\n  #       - asset: fonts/Schyler-Regular.ttf\n  #       - asset: fonts/Schyler-Italic.ttf\n  #         style: italic\n  #   - family: Trajan Pro\n  #     fonts:\n  #       - asset: fonts/TrajanPro.ttf\n  #       - asset: fonts/TrajanPro_Bold.ttf\n  #         weight: 700\n  #\n  # For details regarding fonts from package dependencies,\n  # see https://flutter.dev/custom-fonts/#from-packages\n"
  },
  {
    "path": "test/widget_test.dart",
    "content": "// This is a basic Flutter widget test.\n//\n// To perform an interaction with a widget in your test, use the WidgetTester\n// utility in the flutter_test package. For example, you can send tap and scroll\n// gestures. You can also use WidgetTester to find child widgets in the widget\n// tree, read text, and verify that the values of widget properties are correct.\n\nimport 'package:flutter/material.dart';\nimport 'package:flutter_test/flutter_test.dart';\n\nimport 'package:koduko/main.dart';\n\nvoid main() {\n  testWidgets('Counter increments smoke test', (WidgetTester tester) async {\n    // Build our app and trigger a frame.\n    await tester.pumpWidget(const MyApp());\n\n    // Verify that our counter starts at 0.\n    expect(find.text('0'), findsOneWidget);\n    expect(find.text('1'), findsNothing);\n\n    // Tap the '+' icon and trigger a frame.\n    await tester.tap(find.byIcon(Icons.add));\n    await tester.pump();\n\n    // Verify that our counter has incremented.\n    expect(find.text('0'), findsNothing);\n    expect(find.text('1'), findsOneWidget);\n  });\n}\n"
  },
  {
    "path": "web/index.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n  <!--\n    If you are serving your web app in a path other than the root, change the\n    href value below to reflect the base path you are serving from.\n\n    The path provided below has to start and end with a slash \"/\" in order for\n    it to work correctly.\n\n    For more details:\n    * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base\n\n    This is a placeholder for base href that will be replaced by the value of\n    the `--base-href` argument provided to `flutter build`.\n  -->\n  <base href=\"$FLUTTER_BASE_HREF\">\n\n  <meta charset=\"UTF-8\">\n  <meta content=\"IE=Edge\" http-equiv=\"X-UA-Compatible\">\n  <meta name=\"description\" content=\"A new Flutter project.\">\n\n  <!-- iOS meta tags & icons -->\n  <meta name=\"apple-mobile-web-app-capable\" content=\"yes\">\n  <meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black\">\n  <meta name=\"apple-mobile-web-app-title\" content=\"koduko\">\n  <link rel=\"apple-touch-icon\" href=\"icons/Icon-192.png\">\n\n  <!-- Favicon -->\n  <link rel=\"icon\" type=\"image/png\" href=\"favicon.png\"/>\n\n  <title>koduko</title>\n  <link rel=\"manifest\" href=\"manifest.json\">\n\n  <script>\n    // The value below is injected by flutter build, do not touch.\n    var serviceWorkerVersion = null;\n  </script>\n  <!-- This script adds the flutter initialization JS code -->\n  <script src=\"flutter.js\" defer></script>\n</head>\n<body>\n  <script>\n    window.addEventListener('load', function(ev) {\n      // Download main.dart.js\n      _flutter.loader.loadEntrypoint({\n        serviceWorker: {\n          serviceWorkerVersion: serviceWorkerVersion,\n        }\n      }).then(function(engineInitializer) {\n        return engineInitializer.initializeEngine();\n      }).then(function(appRunner) {\n        return appRunner.runApp();\n      });\n    });\n  </script>\n</body>\n</html>\n"
  },
  {
    "path": "web/manifest.json",
    "content": "{\n    \"name\": \"koduko\",\n    \"short_name\": \"koduko\",\n    \"start_url\": \".\",\n    \"display\": \"standalone\",\n    \"background_color\": \"#0175C2\",\n    \"theme_color\": \"#0175C2\",\n    \"description\": \"A new Flutter project.\",\n    \"orientation\": \"portrait-primary\",\n    \"prefer_related_applications\": false,\n    \"icons\": [\n        {\n            \"src\": \"icons/Icon-192.png\",\n            \"sizes\": \"192x192\",\n            \"type\": \"image/png\"\n        },\n        {\n            \"src\": \"icons/Icon-512.png\",\n            \"sizes\": \"512x512\",\n            \"type\": \"image/png\"\n        },\n        {\n            \"src\": \"icons/Icon-maskable-192.png\",\n            \"sizes\": \"192x192\",\n            \"type\": \"image/png\",\n            \"purpose\": \"maskable\"\n        },\n        {\n            \"src\": \"icons/Icon-maskable-512.png\",\n            \"sizes\": \"512x512\",\n            \"type\": \"image/png\",\n            \"purpose\": \"maskable\"\n        }\n    ]\n}\n"
  },
  {
    "path": "windows/.gitignore",
    "content": "flutter/ephemeral/\n\n# Visual Studio user-specific files.\n*.suo\n*.user\n*.userosscache\n*.sln.docstates\n\n# Visual Studio build-related files.\nx64/\nx86/\n\n# Visual Studio cache files\n# files ending in .cache can be ignored\n*.[Cc]ache\n# but keep track of directories ending in .cache\n!*.[Cc]ache/\n"
  },
  {
    "path": "windows/CMakeLists.txt",
    "content": "# Project-level configuration.\ncmake_minimum_required(VERSION 3.14)\nproject(koduko LANGUAGES CXX)\n\n# The name of the executable created for the application. Change this to change\n# the on-disk name of your application.\nset(BINARY_NAME \"koduko\")\n\n# Explicitly opt in to modern CMake behaviors to avoid warnings with recent\n# versions of CMake.\ncmake_policy(SET CMP0063 NEW)\n\n# Define build configuration option.\nget_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)\nif(IS_MULTICONFIG)\n  set(CMAKE_CONFIGURATION_TYPES \"Debug;Profile;Release\"\n    CACHE STRING \"\" FORCE)\nelse()\n  if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)\n    set(CMAKE_BUILD_TYPE \"Debug\" CACHE\n      STRING \"Flutter build mode\" FORCE)\n    set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS\n      \"Debug\" \"Profile\" \"Release\")\n  endif()\nendif()\n# Define settings for the Profile build mode.\nset(CMAKE_EXE_LINKER_FLAGS_PROFILE \"${CMAKE_EXE_LINKER_FLAGS_RELEASE}\")\nset(CMAKE_SHARED_LINKER_FLAGS_PROFILE \"${CMAKE_SHARED_LINKER_FLAGS_RELEASE}\")\nset(CMAKE_C_FLAGS_PROFILE \"${CMAKE_C_FLAGS_RELEASE}\")\nset(CMAKE_CXX_FLAGS_PROFILE \"${CMAKE_CXX_FLAGS_RELEASE}\")\n\n# Use Unicode for all projects.\nadd_definitions(-DUNICODE -D_UNICODE)\n\n# Compilation settings that should be applied to most targets.\n#\n# Be cautious about adding new options here, as plugins use this function by\n# default. In most cases, you should add new options to specific targets instead\n# of modifying this function.\nfunction(APPLY_STANDARD_SETTINGS TARGET)\n  target_compile_features(${TARGET} PUBLIC cxx_std_17)\n  target_compile_options(${TARGET} PRIVATE /W4 /WX /wd\"4100\")\n  target_compile_options(${TARGET} PRIVATE /EHsc)\n  target_compile_definitions(${TARGET} PRIVATE \"_HAS_EXCEPTIONS=0\")\n  target_compile_definitions(${TARGET} PRIVATE \"$<$<CONFIG:Debug>:_DEBUG>\")\nendfunction()\n\n# Flutter library and tool build rules.\nset(FLUTTER_MANAGED_DIR \"${CMAKE_CURRENT_SOURCE_DIR}/flutter\")\nadd_subdirectory(${FLUTTER_MANAGED_DIR})\n\n# Application build; see runner/CMakeLists.txt.\nadd_subdirectory(\"runner\")\n\n# Generated plugin build rules, which manage building the plugins and adding\n# them to the application.\ninclude(flutter/generated_plugins.cmake)\n\n\n# === Installation ===\n# Support files are copied into place next to the executable, so that it can\n# run in place. This is done instead of making a separate bundle (as on Linux)\n# so that building and running from within Visual Studio will work.\nset(BUILD_BUNDLE_DIR \"$<TARGET_FILE_DIR:${BINARY_NAME}>\")\n# Make the \"install\" step default, as it's required to run.\nset(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1)\nif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)\n  set(CMAKE_INSTALL_PREFIX \"${BUILD_BUNDLE_DIR}\" CACHE PATH \"...\" FORCE)\nendif()\n\nset(INSTALL_BUNDLE_DATA_DIR \"${CMAKE_INSTALL_PREFIX}/data\")\nset(INSTALL_BUNDLE_LIB_DIR \"${CMAKE_INSTALL_PREFIX}\")\n\ninstall(TARGETS ${BINARY_NAME} RUNTIME DESTINATION \"${CMAKE_INSTALL_PREFIX}\"\n  COMPONENT Runtime)\n\ninstall(FILES \"${FLUTTER_ICU_DATA_FILE}\" DESTINATION \"${INSTALL_BUNDLE_DATA_DIR}\"\n  COMPONENT Runtime)\n\ninstall(FILES \"${FLUTTER_LIBRARY}\" DESTINATION \"${INSTALL_BUNDLE_LIB_DIR}\"\n  COMPONENT Runtime)\n\nif(PLUGIN_BUNDLED_LIBRARIES)\n  install(FILES \"${PLUGIN_BUNDLED_LIBRARIES}\"\n    DESTINATION \"${INSTALL_BUNDLE_LIB_DIR}\"\n    COMPONENT Runtime)\nendif()\n\n# Fully re-copy the assets directory on each build to avoid having stale files\n# from a previous install.\nset(FLUTTER_ASSET_DIR_NAME \"flutter_assets\")\ninstall(CODE \"\n  file(REMOVE_RECURSE \\\"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\\\")\n  \" COMPONENT Runtime)\ninstall(DIRECTORY \"${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}\"\n  DESTINATION \"${INSTALL_BUNDLE_DATA_DIR}\" COMPONENT Runtime)\n\n# Install the AOT library on non-Debug builds only.\ninstall(FILES \"${AOT_LIBRARY}\" DESTINATION \"${INSTALL_BUNDLE_DATA_DIR}\"\n  CONFIGURATIONS Profile;Release\n  COMPONENT Runtime)\n"
  },
  {
    "path": "windows/flutter/CMakeLists.txt",
    "content": "# This file controls Flutter-level build steps. It should not be edited.\ncmake_minimum_required(VERSION 3.14)\n\nset(EPHEMERAL_DIR \"${CMAKE_CURRENT_SOURCE_DIR}/ephemeral\")\n\n# Configuration provided via flutter tool.\ninclude(${EPHEMERAL_DIR}/generated_config.cmake)\n\n# TODO: Move the rest of this into files in ephemeral. See\n# https://github.com/flutter/flutter/issues/57146.\nset(WRAPPER_ROOT \"${EPHEMERAL_DIR}/cpp_client_wrapper\")\n\n# === Flutter Library ===\nset(FLUTTER_LIBRARY \"${EPHEMERAL_DIR}/flutter_windows.dll\")\n\n# Published to parent scope for install step.\nset(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)\nset(FLUTTER_ICU_DATA_FILE \"${EPHEMERAL_DIR}/icudtl.dat\" PARENT_SCOPE)\nset(PROJECT_BUILD_DIR \"${PROJECT_DIR}/build/\" PARENT_SCOPE)\nset(AOT_LIBRARY \"${PROJECT_DIR}/build/windows/app.so\" PARENT_SCOPE)\n\nlist(APPEND FLUTTER_LIBRARY_HEADERS\n  \"flutter_export.h\"\n  \"flutter_windows.h\"\n  \"flutter_messenger.h\"\n  \"flutter_plugin_registrar.h\"\n  \"flutter_texture_registrar.h\"\n)\nlist(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND \"${EPHEMERAL_DIR}/\")\nadd_library(flutter INTERFACE)\ntarget_include_directories(flutter INTERFACE\n  \"${EPHEMERAL_DIR}\"\n)\ntarget_link_libraries(flutter INTERFACE \"${FLUTTER_LIBRARY}.lib\")\nadd_dependencies(flutter flutter_assemble)\n\n# === Wrapper ===\nlist(APPEND CPP_WRAPPER_SOURCES_CORE\n  \"core_implementations.cc\"\n  \"standard_codec.cc\"\n)\nlist(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND \"${WRAPPER_ROOT}/\")\nlist(APPEND CPP_WRAPPER_SOURCES_PLUGIN\n  \"plugin_registrar.cc\"\n)\nlist(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND \"${WRAPPER_ROOT}/\")\nlist(APPEND CPP_WRAPPER_SOURCES_APP\n  \"flutter_engine.cc\"\n  \"flutter_view_controller.cc\"\n)\nlist(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND \"${WRAPPER_ROOT}/\")\n\n# Wrapper sources needed for a plugin.\nadd_library(flutter_wrapper_plugin STATIC\n  ${CPP_WRAPPER_SOURCES_CORE}\n  ${CPP_WRAPPER_SOURCES_PLUGIN}\n)\napply_standard_settings(flutter_wrapper_plugin)\nset_target_properties(flutter_wrapper_plugin PROPERTIES\n  POSITION_INDEPENDENT_CODE ON)\nset_target_properties(flutter_wrapper_plugin PROPERTIES\n  CXX_VISIBILITY_PRESET hidden)\ntarget_link_libraries(flutter_wrapper_plugin PUBLIC flutter)\ntarget_include_directories(flutter_wrapper_plugin PUBLIC\n  \"${WRAPPER_ROOT}/include\"\n)\nadd_dependencies(flutter_wrapper_plugin flutter_assemble)\n\n# Wrapper sources needed for the runner.\nadd_library(flutter_wrapper_app STATIC\n  ${CPP_WRAPPER_SOURCES_CORE}\n  ${CPP_WRAPPER_SOURCES_APP}\n)\napply_standard_settings(flutter_wrapper_app)\ntarget_link_libraries(flutter_wrapper_app PUBLIC flutter)\ntarget_include_directories(flutter_wrapper_app PUBLIC\n  \"${WRAPPER_ROOT}/include\"\n)\nadd_dependencies(flutter_wrapper_app flutter_assemble)\n\n# === Flutter tool backend ===\n# _phony_ is a non-existent file to force this command to run every time,\n# since currently there's no way to get a full input/output list from the\n# flutter tool.\nset(PHONY_OUTPUT \"${CMAKE_CURRENT_BINARY_DIR}/_phony_\")\nset_source_files_properties(\"${PHONY_OUTPUT}\" PROPERTIES SYMBOLIC TRUE)\nadd_custom_command(\n  OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}\n    ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN}\n    ${CPP_WRAPPER_SOURCES_APP}\n    ${PHONY_OUTPUT}\n  COMMAND ${CMAKE_COMMAND} -E env\n    ${FLUTTER_TOOL_ENVIRONMENT}\n    \"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat\"\n      windows-x64 $<CONFIG>\n  VERBATIM\n)\nadd_custom_target(flutter_assemble DEPENDS\n  \"${FLUTTER_LIBRARY}\"\n  ${FLUTTER_LIBRARY_HEADERS}\n  ${CPP_WRAPPER_SOURCES_CORE}\n  ${CPP_WRAPPER_SOURCES_PLUGIN}\n  ${CPP_WRAPPER_SOURCES_APP}\n)\n"
  },
  {
    "path": "windows/flutter/generated_plugin_registrant.cc",
    "content": "//\n//  Generated file. Do not edit.\n//\n\n// clang-format off\n\n#include \"generated_plugin_registrant.h\"\n\n#include <dynamic_color/dynamic_color_plugin_c_api.h>\n#include <url_launcher_windows/url_launcher_windows.h>\n\nvoid RegisterPlugins(flutter::PluginRegistry* registry) {\n  DynamicColorPluginCApiRegisterWithRegistrar(\n      registry->GetRegistrarForPlugin(\"DynamicColorPluginCApi\"));\n  UrlLauncherWindowsRegisterWithRegistrar(\n      registry->GetRegistrarForPlugin(\"UrlLauncherWindows\"));\n}\n"
  },
  {
    "path": "windows/flutter/generated_plugin_registrant.h",
    "content": "//\n//  Generated file. Do not edit.\n//\n\n// clang-format off\n\n#ifndef GENERATED_PLUGIN_REGISTRANT_\n#define GENERATED_PLUGIN_REGISTRANT_\n\n#include <flutter/plugin_registry.h>\n\n// Registers Flutter plugins.\nvoid RegisterPlugins(flutter::PluginRegistry* registry);\n\n#endif  // GENERATED_PLUGIN_REGISTRANT_\n"
  },
  {
    "path": "windows/flutter/generated_plugins.cmake",
    "content": "#\n# Generated file, do not edit.\n#\n\nlist(APPEND FLUTTER_PLUGIN_LIST\n  dynamic_color\n  url_launcher_windows\n)\n\nlist(APPEND FLUTTER_FFI_PLUGIN_LIST\n)\n\nset(PLUGIN_BUNDLED_LIBRARIES)\n\nforeach(plugin ${FLUTTER_PLUGIN_LIST})\n  add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin})\n  target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)\n  list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)\n  list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})\nendforeach(plugin)\n\nforeach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})\n  add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})\n  list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})\nendforeach(ffi_plugin)\n"
  },
  {
    "path": "windows/runner/CMakeLists.txt",
    "content": "cmake_minimum_required(VERSION 3.14)\nproject(runner LANGUAGES CXX)\n\n# Define the application target. To change its name, change BINARY_NAME in the\n# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer\n# work.\n#\n# Any new source files that you add to the application should be added here.\nadd_executable(${BINARY_NAME} WIN32\n  \"flutter_window.cpp\"\n  \"main.cpp\"\n  \"utils.cpp\"\n  \"win32_window.cpp\"\n  \"${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc\"\n  \"Runner.rc\"\n  \"runner.exe.manifest\"\n)\n\n# Apply the standard set of build settings. This can be removed for applications\n# that need different build settings.\napply_standard_settings(${BINARY_NAME})\n\n# Disable Windows macros that collide with C++ standard library functions.\ntarget_compile_definitions(${BINARY_NAME} PRIVATE \"NOMINMAX\")\n\n# Add dependency libraries and include directories. Add any application-specific\n# dependencies here.\ntarget_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app)\ntarget_include_directories(${BINARY_NAME} PRIVATE \"${CMAKE_SOURCE_DIR}\")\n\n# Run the Flutter tool portions of the build. This must not be removed.\nadd_dependencies(${BINARY_NAME} flutter_assemble)\n"
  },
  {
    "path": "windows/runner/Runner.rc",
    "content": "// Microsoft Visual C++ generated resource script.\n//\n#pragma code_page(65001)\n#include \"resource.h\"\n\n#define APSTUDIO_READONLY_SYMBOLS\n/////////////////////////////////////////////////////////////////////////////\n//\n// Generated from the TEXTINCLUDE 2 resource.\n//\n#include \"winres.h\"\n\n/////////////////////////////////////////////////////////////////////////////\n#undef APSTUDIO_READONLY_SYMBOLS\n\n/////////////////////////////////////////////////////////////////////////////\n// English (United States) resources\n\n#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\nLANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US\n\n#ifdef APSTUDIO_INVOKED\n/////////////////////////////////////////////////////////////////////////////\n//\n// TEXTINCLUDE\n//\n\n1 TEXTINCLUDE\nBEGIN\n    \"resource.h\\0\"\nEND\n\n2 TEXTINCLUDE\nBEGIN\n    \"#include \"\"winres.h\"\"\\r\\n\"\n    \"\\0\"\nEND\n\n3 TEXTINCLUDE\nBEGIN\n    \"\\r\\n\"\n    \"\\0\"\nEND\n\n#endif    // APSTUDIO_INVOKED\n\n\n/////////////////////////////////////////////////////////////////////////////\n//\n// Icon\n//\n\n// Icon with lowest ID value placed first to ensure application icon\n// remains consistent on all systems.\nIDI_APP_ICON            ICON                    \"resources\\\\app_icon.ico\"\n\n\n/////////////////////////////////////////////////////////////////////////////\n//\n// Version\n//\n\n#ifdef FLUTTER_BUILD_NUMBER\n#define VERSION_AS_NUMBER FLUTTER_BUILD_NUMBER\n#else\n#define VERSION_AS_NUMBER 1,0,0\n#endif\n\n#ifdef FLUTTER_BUILD_NAME\n#define VERSION_AS_STRING #FLUTTER_BUILD_NAME\n#else\n#define VERSION_AS_STRING \"1.0.0\"\n#endif\n\nVS_VERSION_INFO VERSIONINFO\n FILEVERSION VERSION_AS_NUMBER\n PRODUCTVERSION VERSION_AS_NUMBER\n FILEFLAGSMASK VS_FFI_FILEFLAGSMASK\n#ifdef _DEBUG\n FILEFLAGS VS_FF_DEBUG\n#else\n FILEFLAGS 0x0L\n#endif\n FILEOS VOS__WINDOWS32\n FILETYPE VFT_APP\n FILESUBTYPE 0x0L\nBEGIN\n    BLOCK \"StringFileInfo\"\n    BEGIN\n        BLOCK \"040904e4\"\n        BEGIN\n            VALUE \"CompanyName\", \"com.example\" \"\\0\"\n            VALUE \"FileDescription\", \"koduko\" \"\\0\"\n            VALUE \"FileVersion\", VERSION_AS_STRING \"\\0\"\n            VALUE \"InternalName\", \"koduko\" \"\\0\"\n            VALUE \"LegalCopyright\", \"Copyright (C) 2022 com.example. All rights reserved.\" \"\\0\"\n            VALUE \"OriginalFilename\", \"koduko.exe\" \"\\0\"\n            VALUE \"ProductName\", \"koduko\" \"\\0\"\n            VALUE \"ProductVersion\", VERSION_AS_STRING \"\\0\"\n        END\n    END\n    BLOCK \"VarFileInfo\"\n    BEGIN\n        VALUE \"Translation\", 0x409, 1252\n    END\nEND\n\n#endif    // English (United States) resources\n/////////////////////////////////////////////////////////////////////////////\n\n\n\n#ifndef APSTUDIO_INVOKED\n/////////////////////////////////////////////////////////////////////////////\n//\n// Generated from the TEXTINCLUDE 3 resource.\n//\n\n\n/////////////////////////////////////////////////////////////////////////////\n#endif    // not APSTUDIO_INVOKED\n"
  },
  {
    "path": "windows/runner/flutter_window.cpp",
    "content": "#include \"flutter_window.h\"\n\n#include <optional>\n\n#include \"flutter/generated_plugin_registrant.h\"\n\nFlutterWindow::FlutterWindow(const flutter::DartProject& project)\n    : project_(project) {}\n\nFlutterWindow::~FlutterWindow() {}\n\nbool FlutterWindow::OnCreate() {\n  if (!Win32Window::OnCreate()) {\n    return false;\n  }\n\n  RECT frame = GetClientArea();\n\n  // The size here must match the window dimensions to avoid unnecessary surface\n  // creation / destruction in the startup path.\n  flutter_controller_ = std::make_unique<flutter::FlutterViewController>(\n      frame.right - frame.left, frame.bottom - frame.top, project_);\n  // Ensure that basic setup of the controller was successful.\n  if (!flutter_controller_->engine() || !flutter_controller_->view()) {\n    return false;\n  }\n  RegisterPlugins(flutter_controller_->engine());\n  SetChildContent(flutter_controller_->view()->GetNativeWindow());\n  return true;\n}\n\nvoid FlutterWindow::OnDestroy() {\n  if (flutter_controller_) {\n    flutter_controller_ = nullptr;\n  }\n\n  Win32Window::OnDestroy();\n}\n\nLRESULT\nFlutterWindow::MessageHandler(HWND hwnd, UINT const message,\n                              WPARAM const wparam,\n                              LPARAM const lparam) noexcept {\n  // Give Flutter, including plugins, an opportunity to handle window messages.\n  if (flutter_controller_) {\n    std::optional<LRESULT> result =\n        flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam,\n                                                      lparam);\n    if (result) {\n      return *result;\n    }\n  }\n\n  switch (message) {\n    case WM_FONTCHANGE:\n      flutter_controller_->engine()->ReloadSystemFonts();\n      break;\n  }\n\n  return Win32Window::MessageHandler(hwnd, message, wparam, lparam);\n}\n"
  },
  {
    "path": "windows/runner/flutter_window.h",
    "content": "#ifndef RUNNER_FLUTTER_WINDOW_H_\n#define RUNNER_FLUTTER_WINDOW_H_\n\n#include <flutter/dart_project.h>\n#include <flutter/flutter_view_controller.h>\n\n#include <memory>\n\n#include \"win32_window.h\"\n\n// A window that does nothing but host a Flutter view.\nclass FlutterWindow : public Win32Window {\n public:\n  // Creates a new FlutterWindow hosting a Flutter view running |project|.\n  explicit FlutterWindow(const flutter::DartProject& project);\n  virtual ~FlutterWindow();\n\n protected:\n  // Win32Window:\n  bool OnCreate() override;\n  void OnDestroy() override;\n  LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam,\n                         LPARAM const lparam) noexcept override;\n\n private:\n  // The project to run.\n  flutter::DartProject project_;\n\n  // The Flutter instance hosted by this window.\n  std::unique_ptr<flutter::FlutterViewController> flutter_controller_;\n};\n\n#endif  // RUNNER_FLUTTER_WINDOW_H_\n"
  },
  {
    "path": "windows/runner/main.cpp",
    "content": "#include <flutter/dart_project.h>\n#include <flutter/flutter_view_controller.h>\n#include <windows.h>\n\n#include \"flutter_window.h\"\n#include \"utils.h\"\n\nint APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,\n                      _In_ wchar_t *command_line, _In_ int show_command) {\n  // Attach to console when present (e.g., 'flutter run') or create a\n  // new console when running with a debugger.\n  if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) {\n    CreateAndAttachConsole();\n  }\n\n  // Initialize COM, so that it is available for use in the library and/or\n  // plugins.\n  ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);\n\n  flutter::DartProject project(L\"data\");\n\n  std::vector<std::string> command_line_arguments =\n      GetCommandLineArguments();\n\n  project.set_dart_entrypoint_arguments(std::move(command_line_arguments));\n\n  FlutterWindow window(project);\n  Win32Window::Point origin(10, 10);\n  Win32Window::Size size(1280, 720);\n  if (!window.CreateAndShow(L\"koduko\", origin, size)) {\n    return EXIT_FAILURE;\n  }\n  window.SetQuitOnClose(true);\n\n  ::MSG msg;\n  while (::GetMessage(&msg, nullptr, 0, 0)) {\n    ::TranslateMessage(&msg);\n    ::DispatchMessage(&msg);\n  }\n\n  ::CoUninitialize();\n  return EXIT_SUCCESS;\n}\n"
  },
  {
    "path": "windows/runner/resource.h",
    "content": "//{{NO_DEPENDENCIES}}\n// Microsoft Visual C++ generated include file.\n// Used by Runner.rc\n//\n#define IDI_APP_ICON                    101\n\n// Next default values for new objects\n//\n#ifdef APSTUDIO_INVOKED\n#ifndef APSTUDIO_READONLY_SYMBOLS\n#define _APS_NEXT_RESOURCE_VALUE        102\n#define _APS_NEXT_COMMAND_VALUE         40001\n#define _APS_NEXT_CONTROL_VALUE         1001\n#define _APS_NEXT_SYMED_VALUE           101\n#endif\n#endif\n"
  },
  {
    "path": "windows/runner/runner.exe.manifest",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<assembly xmlns=\"urn:schemas-microsoft-com:asm.v1\" manifestVersion=\"1.0\">\n  <application xmlns=\"urn:schemas-microsoft-com:asm.v3\">\n    <windowsSettings>\n      <dpiAwareness xmlns=\"http://schemas.microsoft.com/SMI/2016/WindowsSettings\">PerMonitorV2</dpiAwareness>\n    </windowsSettings>\n  </application>\n  <compatibility xmlns=\"urn:schemas-microsoft-com:compatibility.v1\">\n    <application>\n      <!-- Windows 10 -->\n      <supportedOS Id=\"{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}\"/>\n      <!-- Windows 8.1 -->\n      <supportedOS Id=\"{1f676c76-80e1-4239-95bb-83d0f6d0da78}\"/>\n      <!-- Windows 8 -->\n      <supportedOS Id=\"{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}\"/>\n      <!-- Windows 7 -->\n      <supportedOS Id=\"{35138b9a-5d96-4fbd-8e2d-a2440225f93a}\"/>\n    </application>\n  </compatibility>\n</assembly>\n"
  },
  {
    "path": "windows/runner/utils.cpp",
    "content": "#include \"utils.h\"\n\n#include <flutter_windows.h>\n#include <io.h>\n#include <stdio.h>\n#include <windows.h>\n\n#include <iostream>\n\nvoid CreateAndAttachConsole() {\n  if (::AllocConsole()) {\n    FILE *unused;\n    if (freopen_s(&unused, \"CONOUT$\", \"w\", stdout)) {\n      _dup2(_fileno(stdout), 1);\n    }\n    if (freopen_s(&unused, \"CONOUT$\", \"w\", stderr)) {\n      _dup2(_fileno(stdout), 2);\n    }\n    std::ios::sync_with_stdio();\n    FlutterDesktopResyncOutputStreams();\n  }\n}\n\nstd::vector<std::string> GetCommandLineArguments() {\n  // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use.\n  int argc;\n  wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc);\n  if (argv == nullptr) {\n    return std::vector<std::string>();\n  }\n\n  std::vector<std::string> command_line_arguments;\n\n  // Skip the first argument as it's the binary name.\n  for (int i = 1; i < argc; i++) {\n    command_line_arguments.push_back(Utf8FromUtf16(argv[i]));\n  }\n\n  ::LocalFree(argv);\n\n  return command_line_arguments;\n}\n\nstd::string Utf8FromUtf16(const wchar_t* utf16_string) {\n  if (utf16_string == nullptr) {\n    return std::string();\n  }\n  int target_length = ::WideCharToMultiByte(\n      CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,\n      -1, nullptr, 0, nullptr, nullptr);\n  std::string utf8_string;\n  if (target_length == 0 || target_length > utf8_string.max_size()) {\n    return utf8_string;\n  }\n  utf8_string.resize(target_length);\n  int converted_length = ::WideCharToMultiByte(\n      CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,\n      -1, utf8_string.data(),\n      target_length, nullptr, nullptr);\n  if (converted_length == 0) {\n    return std::string();\n  }\n  return utf8_string;\n}\n"
  },
  {
    "path": "windows/runner/utils.h",
    "content": "#ifndef RUNNER_UTILS_H_\n#define RUNNER_UTILS_H_\n\n#include <string>\n#include <vector>\n\n// Creates a console for the process, and redirects stdout and stderr to\n// it for both the runner and the Flutter library.\nvoid CreateAndAttachConsole();\n\n// Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string\n// encoded in UTF-8. Returns an empty std::string on failure.\nstd::string Utf8FromUtf16(const wchar_t* utf16_string);\n\n// Gets the command line arguments passed in as a std::vector<std::string>,\n// encoded in UTF-8. Returns an empty std::vector<std::string> on failure.\nstd::vector<std::string> GetCommandLineArguments();\n\n#endif  // RUNNER_UTILS_H_\n"
  },
  {
    "path": "windows/runner/win32_window.cpp",
    "content": "#include \"win32_window.h\"\n\n#include <flutter_windows.h>\n\n#include \"resource.h\"\n\nnamespace {\n\nconstexpr const wchar_t kWindowClassName[] = L\"FLUTTER_RUNNER_WIN32_WINDOW\";\n\n// The number of Win32Window objects that currently exist.\nstatic int g_active_window_count = 0;\n\nusing EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd);\n\n// Scale helper to convert logical scaler values to physical using passed in\n// scale factor\nint Scale(int source, double scale_factor) {\n  return static_cast<int>(source * scale_factor);\n}\n\n// Dynamically loads the |EnableNonClientDpiScaling| from the User32 module.\n// This API is only needed for PerMonitor V1 awareness mode.\nvoid EnableFullDpiSupportIfAvailable(HWND hwnd) {\n  HMODULE user32_module = LoadLibraryA(\"User32.dll\");\n  if (!user32_module) {\n    return;\n  }\n  auto enable_non_client_dpi_scaling =\n      reinterpret_cast<EnableNonClientDpiScaling*>(\n          GetProcAddress(user32_module, \"EnableNonClientDpiScaling\"));\n  if (enable_non_client_dpi_scaling != nullptr) {\n    enable_non_client_dpi_scaling(hwnd);\n    FreeLibrary(user32_module);\n  }\n}\n\n}  // namespace\n\n// Manages the Win32Window's window class registration.\nclass WindowClassRegistrar {\n public:\n  ~WindowClassRegistrar() = default;\n\n  // Returns the singleton registar instance.\n  static WindowClassRegistrar* GetInstance() {\n    if (!instance_) {\n      instance_ = new WindowClassRegistrar();\n    }\n    return instance_;\n  }\n\n  // Returns the name of the window class, registering the class if it hasn't\n  // previously been registered.\n  const wchar_t* GetWindowClass();\n\n  // Unregisters the window class. Should only be called if there are no\n  // instances of the window.\n  void UnregisterWindowClass();\n\n private:\n  WindowClassRegistrar() = default;\n\n  static WindowClassRegistrar* instance_;\n\n  bool class_registered_ = false;\n};\n\nWindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr;\n\nconst wchar_t* WindowClassRegistrar::GetWindowClass() {\n  if (!class_registered_) {\n    WNDCLASS window_class{};\n    window_class.hCursor = LoadCursor(nullptr, IDC_ARROW);\n    window_class.lpszClassName = kWindowClassName;\n    window_class.style = CS_HREDRAW | CS_VREDRAW;\n    window_class.cbClsExtra = 0;\n    window_class.cbWndExtra = 0;\n    window_class.hInstance = GetModuleHandle(nullptr);\n    window_class.hIcon =\n        LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON));\n    window_class.hbrBackground = 0;\n    window_class.lpszMenuName = nullptr;\n    window_class.lpfnWndProc = Win32Window::WndProc;\n    RegisterClass(&window_class);\n    class_registered_ = true;\n  }\n  return kWindowClassName;\n}\n\nvoid WindowClassRegistrar::UnregisterWindowClass() {\n  UnregisterClass(kWindowClassName, nullptr);\n  class_registered_ = false;\n}\n\nWin32Window::Win32Window() {\n  ++g_active_window_count;\n}\n\nWin32Window::~Win32Window() {\n  --g_active_window_count;\n  Destroy();\n}\n\nbool Win32Window::CreateAndShow(const std::wstring& title,\n                                const Point& origin,\n                                const Size& size) {\n  Destroy();\n\n  const wchar_t* window_class =\n      WindowClassRegistrar::GetInstance()->GetWindowClass();\n\n  const POINT target_point = {static_cast<LONG>(origin.x),\n                              static_cast<LONG>(origin.y)};\n  HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST);\n  UINT dpi = FlutterDesktopGetDpiForMonitor(monitor);\n  double scale_factor = dpi / 96.0;\n\n  HWND window = CreateWindow(\n      window_class, title.c_str(), WS_OVERLAPPEDWINDOW | WS_VISIBLE,\n      Scale(origin.x, scale_factor), Scale(origin.y, scale_factor),\n      Scale(size.width, scale_factor), Scale(size.height, scale_factor),\n      nullptr, nullptr, GetModuleHandle(nullptr), this);\n\n  if (!window) {\n    return false;\n  }\n\n  return OnCreate();\n}\n\n// static\nLRESULT CALLBACK Win32Window::WndProc(HWND const window,\n                                      UINT const message,\n                                      WPARAM const wparam,\n                                      LPARAM const lparam) noexcept {\n  if (message == WM_NCCREATE) {\n    auto window_struct = reinterpret_cast<CREATESTRUCT*>(lparam);\n    SetWindowLongPtr(window, GWLP_USERDATA,\n                     reinterpret_cast<LONG_PTR>(window_struct->lpCreateParams));\n\n    auto that = static_cast<Win32Window*>(window_struct->lpCreateParams);\n    EnableFullDpiSupportIfAvailable(window);\n    that->window_handle_ = window;\n  } else if (Win32Window* that = GetThisFromHandle(window)) {\n    return that->MessageHandler(window, message, wparam, lparam);\n  }\n\n  return DefWindowProc(window, message, wparam, lparam);\n}\n\nLRESULT\nWin32Window::MessageHandler(HWND hwnd,\n                            UINT const message,\n                            WPARAM const wparam,\n                            LPARAM const lparam) noexcept {\n  switch (message) {\n    case WM_DESTROY:\n      window_handle_ = nullptr;\n      Destroy();\n      if (quit_on_close_) {\n        PostQuitMessage(0);\n      }\n      return 0;\n\n    case WM_DPICHANGED: {\n      auto newRectSize = reinterpret_cast<RECT*>(lparam);\n      LONG newWidth = newRectSize->right - newRectSize->left;\n      LONG newHeight = newRectSize->bottom - newRectSize->top;\n\n      SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth,\n                   newHeight, SWP_NOZORDER | SWP_NOACTIVATE);\n\n      return 0;\n    }\n    case WM_SIZE: {\n      RECT rect = GetClientArea();\n      if (child_content_ != nullptr) {\n        // Size and position the child window.\n        MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left,\n                   rect.bottom - rect.top, TRUE);\n      }\n      return 0;\n    }\n\n    case WM_ACTIVATE:\n      if (child_content_ != nullptr) {\n        SetFocus(child_content_);\n      }\n      return 0;\n  }\n\n  return DefWindowProc(window_handle_, message, wparam, lparam);\n}\n\nvoid Win32Window::Destroy() {\n  OnDestroy();\n\n  if (window_handle_) {\n    DestroyWindow(window_handle_);\n    window_handle_ = nullptr;\n  }\n  if (g_active_window_count == 0) {\n    WindowClassRegistrar::GetInstance()->UnregisterWindowClass();\n  }\n}\n\nWin32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept {\n  return reinterpret_cast<Win32Window*>(\n      GetWindowLongPtr(window, GWLP_USERDATA));\n}\n\nvoid Win32Window::SetChildContent(HWND content) {\n  child_content_ = content;\n  SetParent(content, window_handle_);\n  RECT frame = GetClientArea();\n\n  MoveWindow(content, frame.left, frame.top, frame.right - frame.left,\n             frame.bottom - frame.top, true);\n\n  SetFocus(child_content_);\n}\n\nRECT Win32Window::GetClientArea() {\n  RECT frame;\n  GetClientRect(window_handle_, &frame);\n  return frame;\n}\n\nHWND Win32Window::GetHandle() {\n  return window_handle_;\n}\n\nvoid Win32Window::SetQuitOnClose(bool quit_on_close) {\n  quit_on_close_ = quit_on_close;\n}\n\nbool Win32Window::OnCreate() {\n  // No-op; provided for subclasses.\n  return true;\n}\n\nvoid Win32Window::OnDestroy() {\n  // No-op; provided for subclasses.\n}\n"
  },
  {
    "path": "windows/runner/win32_window.h",
    "content": "#ifndef RUNNER_WIN32_WINDOW_H_\n#define RUNNER_WIN32_WINDOW_H_\n\n#include <windows.h>\n\n#include <functional>\n#include <memory>\n#include <string>\n\n// A class abstraction for a high DPI-aware Win32 Window. Intended to be\n// inherited from by classes that wish to specialize with custom\n// rendering and input handling\nclass Win32Window {\n public:\n  struct Point {\n    unsigned int x;\n    unsigned int y;\n    Point(unsigned int x, unsigned int y) : x(x), y(y) {}\n  };\n\n  struct Size {\n    unsigned int width;\n    unsigned int height;\n    Size(unsigned int width, unsigned int height)\n        : width(width), height(height) {}\n  };\n\n  Win32Window();\n  virtual ~Win32Window();\n\n  // Creates and shows a win32 window with |title| and position and size using\n  // |origin| and |size|. New windows are created on the default monitor. Window\n  // sizes are specified to the OS in physical pixels, hence to ensure a\n  // consistent size to will treat the width height passed in to this function\n  // as logical pixels and scale to appropriate for the default monitor. Returns\n  // true if the window was created successfully.\n  bool CreateAndShow(const std::wstring& title,\n                     const Point& origin,\n                     const Size& size);\n\n  // Release OS resources associated with window.\n  void Destroy();\n\n  // Inserts |content| into the window tree.\n  void SetChildContent(HWND content);\n\n  // Returns the backing Window handle to enable clients to set icon and other\n  // window properties. Returns nullptr if the window has been destroyed.\n  HWND GetHandle();\n\n  // If true, closing this window will quit the application.\n  void SetQuitOnClose(bool quit_on_close);\n\n  // Return a RECT representing the bounds of the current client area.\n  RECT GetClientArea();\n\n protected:\n  // Processes and route salient window messages for mouse handling,\n  // size change and DPI. Delegates handling of these to member overloads that\n  // inheriting classes can handle.\n  virtual LRESULT MessageHandler(HWND window,\n                                 UINT const message,\n                                 WPARAM const wparam,\n                                 LPARAM const lparam) noexcept;\n\n  // Called when CreateAndShow is called, allowing subclass window-related\n  // setup. Subclasses should return false if setup fails.\n  virtual bool OnCreate();\n\n  // Called when Destroy is called.\n  virtual void OnDestroy();\n\n private:\n  friend class WindowClassRegistrar;\n\n  // OS callback called by message pump. Handles the WM_NCCREATE message which\n  // is passed when the non-client area is being created and enables automatic\n  // non-client DPI scaling so that the non-client area automatically\n  // responsponds to changes in DPI. All other messages are handled by\n  // MessageHandler.\n  static LRESULT CALLBACK WndProc(HWND const window,\n                                  UINT const message,\n                                  WPARAM const wparam,\n                                  LPARAM const lparam) noexcept;\n\n  // Retrieves a class instance pointer for |window|\n  static Win32Window* GetThisFromHandle(HWND const window) noexcept;\n\n  bool quit_on_close_ = false;\n\n  // window handle for top level window.\n  HWND window_handle_ = nullptr;\n\n  // window handle for hosted content.\n  HWND child_content_ = nullptr;\n};\n\n#endif  // RUNNER_WIN32_WINDOW_H_\n"
  }
]