[
  {
    "path": ".flutter-plugins",
    "content": "shared_preferences=/Volumes/Storage/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.3+4/\n"
  },
  {
    "path": ".gitignore",
    "content": "# See https://www.dartlang.org/guides/libraries/private-files\n\n# Files and directories created by pub\n.dart_tool/\n.packages\n.pub/\nbuild/\n# If you're building an application, you may want to check-in your pubspec.lock\npubspec.lock\n\n# Directory created by dartdoc\n# If you don't generate documentation locally you can remove this line.\ndoc/api/\n\n.DS_Store\n.idea/\n.env.dart"
  },
  {
    "path": ".vscode/launch.json",
    "content": "{\n    // Use IntelliSense to learn about possible attributes.\n    // Hover to view descriptions of existing attributes.\n    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\n    \"version\": \"0.2.0\",\n    \"configurations\": [\n        {\n            \"name\": \"Flutter\",\n            \"request\": \"launch\",\n            \"type\": \"dart\"\n        }\n    ]\n}"
  },
  {
    "path": "LICENSE",
    "content": "                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n"
  },
  {
    "path": "README.md",
    "content": "# Flutter Todo\n\nYet another Todo app, now using Flutter.\n\n## Getting Started\n\nThis Todo app is implemented using Flutter (with Scoped Model for state management) and Firebase.\n\nFeatures:\n\n- Create/edit todo\n- Delete todo by swipping\n- Mark done/not done in list\n- Filter todo list by status (all/done/not done)\n- Change theme (light to dark and vice versa) at runtime\n- Enable shortcuts to create todo\n- Login/logout\n- Register new account\n\n![List](list.png?raw=true)\n![Editor](editor.png?raw=true)\n![Dark List](dark_list.png?raw=true)\n![Dark Editor](dark_editor.png?raw=true)\n\nTo get start, run below command in Terminal\n\n```bash\ncp .env.example.dart .env.dart\n```\n\nthen add Firebase database's URL and API key to .env.dart.\n\n---\n\nFor more information about Flutter, visit [Flutter web site](https://flutter.io/).  \nFor more information about Firebase, visit [Firebase web site](https://firebase.google.com/).\n"
  },
  {
    "path": "android/.gitignore",
    "content": "*.iml\n*.class\n.gradle\n/local.properties\n/.idea/workspace.xml\n/.idea/libraries\n.DS_Store\n/build\n/captures\nGeneratedPluginRegistrant.java\n"
  },
  {
    "path": "android/app/build.gradle",
    "content": "def 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 flutterRoot = localProperties.getProperty('flutter.sdk')\nif (flutterRoot == null) {\n    throw new GradleException(\"Flutter SDK not found. Define location with flutter.sdk in the local.properties file.\")\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\napply plugin: 'com.android.application'\napply from: \"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle\"\n\nandroid {\n    compileSdkVersion 27\n\n    lintOptions {\n        disable 'InvalidPackage'\n    }\n\n    defaultConfig {\n        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).\n        applicationId \"me.tuannguyen.fluttertodo\"\n        minSdkVersion 16\n        targetSdkVersion 27\n        versionCode flutterVersionCode.toInteger()\n        versionName flutterVersionName\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\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        }\n    }\n}\n\nflutter {\n    source '../..'\n}\n\ndependencies {\n    testImplementation 'junit:junit:4.12'\n    androidTestImplementation 'com.android.support.test:runner:1.0.2'\n    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'\n}\n"
  },
  {
    "path": "android/app/src/main/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"me.tuannguyen.fluttertodo\">\n\n    <!-- The INTERNET permission is required for development. Specifically,\n         flutter 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\n    <!-- io.flutter.app.FlutterApplication is an android.app.Application that\n         calls FlutterMain.startInitialization(this); in its onCreate method.\n         In most cases you can leave this as-is, but you if you want to provide\n         additional functionality it is fine to subclass or reimplement\n         FlutterApplication and put your custom class here. -->\n    <application\n        android:name=\"io.flutter.app.FlutterApplication\"\n        android:label=\"Flutter Todo\"\n        android:icon=\"@mipmap/ic_launcher\">\n        <activity\n            android:name=\".MainActivity\"\n            android:launchMode=\"singleTop\"\n            android:theme=\"@style/LaunchTheme\"\n            android:configChanges=\"orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density\"\n            android:hardwareAccelerated=\"true\"\n            android:windowSoftInputMode=\"adjustResize\">\n            <!-- This keeps the window background of the activity showing\n                 until Flutter renders its first frame. It can be removed if\n                 there is no splash screen (such as the default splash screen\n                 defined in @style/LaunchTheme). -->\n            <meta-data\n                android:name=\"io.flutter.app.android.SplashScreenUntilFirstFrame\"\n                android:value=\"true\" />\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    </application>\n</manifest>\n"
  },
  {
    "path": "android/app/src/main/java/me/tuannguyen/fluttertodo/MainActivity.java",
    "content": "package me.tuannguyen.fluttertodo;\n\nimport android.os.Bundle;\nimport io.flutter.app.FlutterActivity;\nimport io.flutter.plugins.GeneratedPluginRegistrant;\n\npublic class MainActivity extends FlutterActivity {\n  @Override\n  protected void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n    GeneratedPluginRegistrant.registerWith(this);\n  }\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/values/styles.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <style name=\"LaunchTheme\" parent=\"@android:style/Theme.Black.NoTitleBar\">\n        <!-- Show a splash screen on the activity. Automatically removed when\n             Flutter draws its first frame -->\n        <item name=\"android:windowBackground\">@drawable/launch_background</item>\n    </style>\n</resources>\n"
  },
  {
    "path": "android/build.gradle",
    "content": "buildscript {\n    repositories {\n        google()\n        jcenter()\n    }\n\n    dependencies {\n        classpath 'com.android.tools.build:gradle:3.2.0'\n    }\n}\n\nallprojects {\n    repositories {\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\ntask clean(type: Delete) {\n    delete rootProject.buildDir\n}\n"
  },
  {
    "path": "android/gradle/wrapper/gradle-wrapper.properties",
    "content": "#Wed Sep 26 21:25:02 ICT 2018\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-4.6-all.zip\n"
  },
  {
    "path": "android/gradle.properties",
    "content": "org.gradle.jvmargs=-Xmx1536M\n"
  },
  {
    "path": "android/gradlew",
    "content": "#!/usr/bin/env bash\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn ( ) {\n    echo \"$*\"\n}\n\ndie ( ) {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\nesac\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules\nfunction splitJvmOpts() {\n    JVM_OPTS=(\"$@\")\n}\neval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS\nJVM_OPTS[${#JVM_OPTS[*]}]=\"-Dorg.gradle.appname=$APP_BASE_NAME\"\n\nexec \"$JAVACMD\" \"${JVM_OPTS[@]}\" -classpath \"$CLASSPATH\" org.gradle.wrapper.GradleWrapperMain \"$@\"\n"
  },
  {
    "path": "android/gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem  Gradle startup script for Windows\n@rem\n@rem ##########################################################################\n\n@rem Set local scope for the variables with windows NT shell\nif \"%OS%\"==\"Windows_NT\" setlocal\n\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nset DEFAULT_JVM_OPTS=\n\nset DIRNAME=%~dp0\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%\n\n@rem Find java.exe\nif defined JAVA_HOME goto findJavaFromJavaHome\n\nset JAVA_EXE=java.exe\n%JAVA_EXE% -version >NUL 2>&1\nif \"%ERRORLEVEL%\" == \"0\" goto init\n\necho.\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:findJavaFromJavaHome\nset JAVA_HOME=%JAVA_HOME:\"=%\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\n\nif exist \"%JAVA_EXE%\" goto init\n\necho.\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:init\n@rem Get command-line arguments, handling Windowz variants\n\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\nif \"%@eval[2+2]\" == \"4\" goto 4NT_args\n\n:win9xME_args\n@rem Slurp the command line arguments.\nset CMD_LINE_ARGS=\nset _SKIP=2\n\n:win9xME_args_slurp\nif \"x%~1\" == \"x\" goto execute\n\nset CMD_LINE_ARGS=%*\ngoto execute\n\n:4NT_args\n@rem Get arguments from the 4NT Shell from JP Software\nset CMD_LINE_ARGS=%$\n\n:execute\n@rem Setup the command line\n\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\n\n@rem Execute Gradle\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\n\n:end\n@rem End local scope for the variables with windows NT shell\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\n\n:fail\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\nrem the _cmd.exe /c_ return code!\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\nexit /b 1\n\n:mainEnd\nif \"%OS%\"==\"Windows_NT\" endlocal\n\n:omega\n"
  },
  {
    "path": "android/settings.gradle",
    "content": "include ':app'\n\ndef flutterProjectRoot = rootProject.projectDir.parentFile.toPath()\n\ndef plugins = new Properties()\ndef pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')\nif (pluginsFile.exists()) {\n    pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }\n}\n\nplugins.each { name, path ->\n    def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()\n    include \":$name\"\n    project(\":$name\").projectDir = pluginDirectory\n}\n"
  },
  {
    "path": "flutter_todo.iml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<module type=\"JAVA_MODULE\" version=\"4\">\n  <component name=\"NewModuleRootManager\" inherit-compiler-output=\"true\">\n    <exclude-output />\n    <content url=\"file://$MODULE_DIR$\">\n      <sourceFolder url=\"file://$MODULE_DIR$/lib\" isTestSource=\"false\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/test\" isTestSource=\"true\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/.dart_tool\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/.idea\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/.pub\" />\n      <excludeFolder url=\"file://$MODULE_DIR$/build\" />\n    </content>\n    <orderEntry type=\"sourceFolder\" forTests=\"false\" />\n    <orderEntry type=\"library\" name=\"Dart SDK\" level=\"project\" />\n    <orderEntry type=\"library\" name=\"Flutter Plugins\" level=\"project\" />\n    <orderEntry type=\"library\" name=\"Dart Packages\" level=\"project\" />\n  </component>\n</module>"
  },
  {
    "path": "flutter_todo_android.iml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<module type=\"JAVA_MODULE\" version=\"4\">\n  <component name=\"FacetManager\">\n    <facet type=\"android\" name=\"Android\">\n      <configuration>\n        <option name=\"ALLOW_USER_CONFIGURATION\" value=\"false\" />\n        <option name=\"GEN_FOLDER_RELATIVE_PATH_APT\" value=\"/android/gen\" />\n        <option name=\"GEN_FOLDER_RELATIVE_PATH_AIDL\" value=\"/android/gen\" />\n        <option name=\"MANIFEST_FILE_RELATIVE_PATH\" value=\"/android/AndroidManifest.xml\" />\n        <option name=\"RES_FOLDER_RELATIVE_PATH\" value=\"/android/res\" />\n        <option name=\"ASSETS_FOLDER_RELATIVE_PATH\" value=\"/android/assets\" />\n        <option name=\"LIBS_FOLDER_RELATIVE_PATH\" value=\"/android/libs\" />\n        <option name=\"PROGUARD_LOGS_FOLDER_RELATIVE_PATH\" value=\"/android/proguard_logs\" />\n      </configuration>\n    </facet>\n  </component>\n  <component name=\"NewModuleRootManager\" inherit-compiler-output=\"true\">\n    <exclude-output />\n    <content url=\"file://$MODULE_DIR$/android\">\n      <sourceFolder url=\"file://$MODULE_DIR$/android/app/src/main/java\" isTestSource=\"false\" />\n      <sourceFolder url=\"file://$MODULE_DIR$/android/gen\" isTestSource=\"false\" generated=\"true\" />\n    </content>\n    <orderEntry type=\"jdk\" jdkName=\"Android API 25 Platform\" jdkType=\"Android SDK\" />\n    <orderEntry type=\"sourceFolder\" forTests=\"false\" />\n    <orderEntry type=\"library\" name=\"Flutter for Android\" level=\"project\" />\n  </component>\n</module>\n"
  },
  {
    "path": "ios/.gitignore",
    "content": ".idea/\n.vagrant/\n.sconsign.dblite\n.svn/\n\n.DS_Store\n*.swp\nprofile\n\nDerivedData/\nbuild/\nGeneratedPluginRegistrant.h\nGeneratedPluginRegistrant.m\n\n.generated/\n\n*.pbxuser\n*.mode1v3\n*.mode2v3\n*.perspectivev3\n\n!default.pbxuser\n!default.mode1v3\n!default.mode2v3\n!default.perspectivev3\n\nxcuserdata\n\n*.moved-aside\n\n*.pyc\n*sync/\nIcon?\n.tags*\n\n/Flutter/app.flx\n/Flutter/app.zip\n/Flutter/flutter_assets/\n/Flutter/App.framework\n/Flutter/Flutter.framework\n/Flutter/Generated.xcconfig\n/ServiceDefinitions.json\n\nPods/\n.symlinks/\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>8.0</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "ios/Flutter/Debug.xcconfig",
    "content": "#include \"Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig\"\n#include \"Generated.xcconfig\"\n"
  },
  {
    "path": "ios/Flutter/Release.xcconfig",
    "content": "#include \"Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig\"\n#include \"Generated.xcconfig\"\n"
  },
  {
    "path": "ios/Flutter/flutter_export_environment.sh",
    "content": "#!/bin/sh\n# This is a generated file; do not edit or check into version control.\nexport \"FLUTTER_ROOT=/Volumes/Storage/Developer/flutter\"\nexport \"FLUTTER_APPLICATION_PATH=/Volumes/Storage/Developer/projects/flutter/flutter_todo\"\nexport \"FLUTTER_TARGET=/Volumes/Storage/Developer/projects/flutter/flutter_todo/lib/main.dart\"\nexport \"FLUTTER_BUILD_DIR=build\"\nexport \"SYMROOT=${SOURCE_ROOT}/../build/ios\"\nexport \"FLUTTER_FRAMEWORK_DIR=/Volumes/Storage/Developer/flutter/bin/cache/artifacts/engine/ios\"\nexport \"FLUTTER_BUILD_NAME=1.0.0\"\nexport \"FLUTTER_BUILD_NUMBER=1\"\nexport \"TRACK_WIDGET_CREATION=true\"\n"
  },
  {
    "path": "ios/Podfile",
    "content": "# Uncomment this line to define a global platform for your project\n# platform :ios, '9.0'\n\n# CocoaPods analytics sends network stats synchronously affecting flutter build latency.\nENV['COCOAPODS_DISABLE_STATS'] = 'true'\n\ndef parse_KV_file(file, separator='=')\n  file_abs_path = File.expand_path(file)\n  if !File.exists? file_abs_path\n    return [];\n  end\n  pods_ary = []\n  skip_line_start_symbols = [\"#\", \"/\"]\n  File.foreach(file_abs_path) { |line|\n      next if skip_line_start_symbols.any? { |symbol| line =~ /^\\s*#{symbol}/ }\n      plugin = line.split(pattern=separator)\n      if plugin.length == 2\n        podname = plugin[0].strip()\n        path = plugin[1].strip()\n        podpath = File.expand_path(\"#{path}\", file_abs_path)\n        pods_ary.push({:name => podname, :path => podpath});\n      else\n        puts \"Invalid plugin specification: #{line}\"\n      end\n  }\n  return pods_ary\nend\n\ntarget 'Runner' do\n  # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock\n  # referring to absolute paths on developers' machines.\n  system('rm -rf .symlinks')\n  system('mkdir -p .symlinks/plugins')\n\n  # Flutter Pods\n  generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')\n  if generated_xcode_build_settings.empty?\n    puts \"Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first.\"\n  end\n  generated_xcode_build_settings.map { |p|\n    if p[:name] == 'FLUTTER_FRAMEWORK_DIR'\n      symlink = File.join('.symlinks', 'flutter')\n      File.symlink(File.dirname(p[:path]), symlink)\n      pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))\n    end\n  }\n\n  # Plugin Pods\n  plugin_pods = parse_KV_file('../.flutter-plugins')\n  plugin_pods.map { |p|\n    symlink = File.join('.symlinks', 'plugins', p[:name])\n    File.symlink(p[:path], symlink)\n    pod p[:name], :path => File.join(symlink, 'ios')\n  }\nend\n\npost_install do |installer|\n  installer.pods_project.targets.each do |target|\n    target.build_configurations.each do |config|\n      config.build_settings['ENABLE_BITCODE'] = 'NO'\n    end\n  end\nend\n"
  },
  {
    "path": "ios/Runner/AppDelegate.h",
    "content": "#import <Flutter/Flutter.h>\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : FlutterAppDelegate\n\n@end\n"
  },
  {
    "path": "ios/Runner/AppDelegate.m",
    "content": "#include \"AppDelegate.h\"\n#include \"GeneratedPluginRegistrant.h\"\n\n@implementation AppDelegate\n\n- (BOOL)application:(UIApplication *)application\n    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n  [GeneratedPluginRegistrant registerWithRegistry:self];\n  // Override point for customization after application launch.\n  return [super application:application didFinishLaunchingWithOptions:launchOptions];\n}\n\n@end\n"
  },
  {
    "path": "ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"size\" : \"20x20\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-20x20@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"20x20\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-20x20@3x.png\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"size\" : \"29x29\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-29x29@1x.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"29x29\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-29x29@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"29x29\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-29x29@3x.png\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"size\" : \"40x40\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-40x40@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"40x40\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-40x40@3x.png\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"size\" : \"60x60\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-60x60@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"60x60\",\n      \"idiom\" : \"iphone\",\n      \"filename\" : \"Icon-App-60x60@3x.png\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"size\" : \"20x20\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-20x20@1x.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"20x20\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-20x20@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"29x29\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-29x29@1x.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"29x29\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-29x29@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"40x40\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-40x40@1x.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"40x40\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-40x40@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"76x76\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-76x76@1x.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"76x76\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-76x76@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"83.5x83.5\",\n      \"idiom\" : \"ipad\",\n      \"filename\" : \"Icon-App-83.5x83.5@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"1024x1024\",\n      \"idiom\" : \"ios-marketing\",\n      \"filename\" : \"Icon-App-1024x1024@1x.png\",\n      \"scale\" : \"1x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\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>en</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>Flutter Todo</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</dict>\n</plist>\n"
  },
  {
    "path": "ios/Runner/main.m",
    "content": "#import <Flutter/Flutter.h>\n#import <UIKit/UIKit.h>\n#import \"AppDelegate.h\"\n\nint main(int argc, char* argv[]) {\n  @autoreleasepool {\n    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));\n  }\n}\n"
  },
  {
    "path": "ios/Runner.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t0A5641A7812B87519C05ECC1 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DB0C7DF3620D65935B7E58F /* libPods-Runner.a */; };\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\t3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };\n\t\t3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };\n\t\t9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };\n\t\t9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };\n\t\t9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };\n\t\t978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };\n\t\t97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };\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\t3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,\n\t\t\t\t9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,\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\t3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = \"<group>\"; };\n\t\t3DB0C7DF3620D65935B7E58F /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = \"libPods-Runner.a\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t754F179BFD22182A355F4A51 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-Runner.debug.xcconfig\"; path = \"Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = \"<group>\"; };\n\t\t7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = \"<group>\"; };\n\t\t7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; 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\t9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = \"<group>\"; };\n\t\t97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\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\t\t993FE8798829E0B99204436E /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-Runner.release.xcconfig\"; path = \"Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig\"; 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\t9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,\n\t\t\t\t3B80C3941E831B6300D905FE /* App.framework in Frameworks */,\n\t\t\t\t0A5641A7812B87519C05ECC1 /* libPods-Runner.a in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t1D06AA122AABD4D2E01E5726 /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t3DB0C7DF3620D65935B7E58F /* libPods-Runner.a */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t9740EEB11CF90186004384FC /* Flutter */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t3B80C3931E831B6300D905FE /* App.framework */,\n\t\t\t\t3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,\n\t\t\t\t9740EEBA1CF902C7004384FC /* Flutter.framework */,\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\t9C7135DC87A1E34F4B5A5400 /* Pods */,\n\t\t\t\t1D06AA122AABD4D2E01E5726 /* Frameworks */,\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\t7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,\n\t\t\t\t7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,\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\t97C146F11CF9000F007C117D /* Supporting Files */,\n\t\t\t\t1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,\n\t\t\t\t1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,\n\t\t\t);\n\t\t\tpath = Runner;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t97C146F11CF9000F007C117D /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t97C146F21CF9000F007C117D /* main.m */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t9C7135DC87A1E34F4B5A5400 /* Pods */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t754F179BFD22182A355F4A51 /* Pods-Runner.debug.xcconfig */,\n\t\t\t\t993FE8798829E0B99204436E /* Pods-Runner.release.xcconfig */,\n\t\t\t);\n\t\t\tname = Pods;\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\t8845F48388604A94023546F5 /* [CP] Check Pods Manifest.lock */,\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\t96BFAEA7DAC23388AC3603CB /* [CP] Embed Pods Frameworks */,\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 = 0910;\n\t\t\t\tORGANIZATIONNAME = \"The Chromium Authors\";\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};\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 3.2\";\n\t\t\tdevelopmentRegion = English;\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\t9740EEB41CF90195004384FC /* Debug.xcconfig 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\\\" thin\";\n\t\t};\n\t\t8845F48388604A94023546F5 /* [CP] Check Pods Manifest.lock */ = {\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\t\"${PODS_PODFILE_DIR_PATH}/Podfile.lock\",\n\t\t\t\t\"${PODS_ROOT}/Manifest.lock\",\n\t\t\t);\n\t\t\tname = \"[CP] Check Pods Manifest.lock\";\n\t\t\toutputPaths = (\n\t\t\t\t\"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt\",\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"diff \\\"${PODS_PODFILE_DIR_PATH}/Podfile.lock\\\" \\\"${PODS_ROOT}/Manifest.lock\\\" > /dev/null\\nif [ $? != 0 ] ; then\\n    # print error to STDERR\\n    echo \\\"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\\\" >&2\\n    exit 1\\nfi\\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\\necho \\\"SUCCESS\\\" > \\\"${SCRIPT_OUTPUT_FILE_0}\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\t96BFAEA7DAC23388AC3603CB /* [CP] Embed Pods Frameworks */ = {\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\t\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\",\n\t\t\t\t\"${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework\",\n\t\t\t);\n\t\t\tname = \"[CP] Embed Pods Frameworks\";\n\t\t\toutputPaths = (\n\t\t\t\t\"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework\",\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\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\t978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,\n\t\t\t\t97C146F31CF9000F007C117D /* main.m 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\t97C147031CF9000F007C117D /* 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_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_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_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 = 8.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\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_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_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_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 = 8.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = 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 = 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\tCURRENT_PROJECT_VERSION = \"$(FLUTTER_BUILD_NUMBER)\";\n\t\t\t\tENABLE_BITCODE = NO;\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"$(PROJECT_DIR)/Flutter\",\n\t\t\t\t);\n\t\t\t\tINFOPLIST_FILE = Runner/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tLIBRARY_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"$(PROJECT_DIR)/Flutter\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = me.tuannguyen.flutterTodo;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\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\tCURRENT_PROJECT_VERSION = \"$(FLUTTER_BUILD_NUMBER)\";\n\t\t\t\tENABLE_BITCODE = NO;\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"$(PROJECT_DIR)/Flutter\",\n\t\t\t\t);\n\t\t\t\tINFOPLIST_FILE = Runner/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tLIBRARY_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"$(PROJECT_DIR)/Flutter\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = me.tuannguyen.flutterTodo;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\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);\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);\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}\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 = \"group:Runner.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"0910\"\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      language = \"\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n      </Testables>\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      <AdditionalOptions>\n      </AdditionalOptions>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      language = \"\"\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      <AdditionalOptions>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\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   <FileRef\n      location = \"group:Pods/Pods.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>BuildSystemType</key>\n\t<string>Original</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "lib/main.dart",
    "content": "import 'package:flutter/material.dart';\n\nimport 'package:scoped_model/scoped_model.dart';\n\nimport 'package:flutter_todo/.env.dart';\nimport 'package:flutter_todo/scoped_models/app_model.dart';\nimport 'package:flutter_todo/pages/register/register_page.dart';\nimport 'package:flutter_todo/pages/settings/settings_page.dart';\nimport 'package:flutter_todo/pages/auth/auth_page.dart';\nimport 'package:flutter_todo/pages/todo/todo_editor_page.dart';\nimport 'package:flutter_todo/pages/todo/todo_list_page.dart';\n\nvoid main() async {\n  runApp(TodoApp());\n}\n\nclass TodoApp extends StatefulWidget {\n  @override\n  State<StatefulWidget> createState() {\n    return _TodoAppState();\n  }\n}\n\nclass _TodoAppState extends State<TodoApp> {\n  AppModel _model;\n  bool _isAuthenticated = false;\n  bool _isDarkThemeUsed = false;\n\n  @override\n  void initState() {\n    _model = AppModel();\n\n    _model.loadSettings();\n    _model.autoAuthentication();\n\n    _model.userSubject.listen((bool isAuthenticated) {\n      setState(() {\n        _isAuthenticated = isAuthenticated;\n      });\n    });\n\n    _model.themeSubject.listen((bool isDarkThemeUsed) {\n      setState(() {\n        _isDarkThemeUsed = isDarkThemeUsed;\n      });\n    });\n\n    super.initState();\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return ScopedModel<AppModel>(\n      model: _model,\n      child: MaterialApp(\n        title: Configure.AppName,\n        debugShowCheckedModeBanner: false,\n        theme: ThemeData(\n          accentColor: Colors.blue,\n          brightness: _isDarkThemeUsed ? Brightness.dark : Brightness.light,\n        ),\n        routes: {\n          '/': (BuildContext context) =>\n              _isAuthenticated ? TodoListPage(_model) : AuthPage(),\n          '/editor': (BuildContext context) =>\n              _isAuthenticated ? TodoEditorPage() : AuthPage(),\n          '/register': (BuildContext context) =>\n              _isAuthenticated ? TodoListPage(_model) : RegisterPage(),\n          '/settings': (BuildContext context) =>\n              _isAuthenticated ? SettingsPage(_model) : AuthPage(),\n        },\n        onUnknownRoute: (RouteSettings settings) {\n          return MaterialPageRoute(\n            builder: (BuildContext context) =>\n                _isAuthenticated ? TodoListPage(_model) : AuthPage(),\n          );\n        },\n      ),\n    );\n  }\n}\n"
  },
  {
    "path": "lib/models/Priority.dart",
    "content": "enum Priority {\n  High,\n  Medium,\n  Low,\n}\n"
  },
  {
    "path": "lib/models/Todo.dart",
    "content": "import 'package:flutter/material.dart';\n\nimport 'package:flutter_todo/models/priority.dart';\n\nclass Todo {\n  final String id;\n  final String title;\n  final String content;\n  final Priority priority;\n  final bool isDone;\n  final String userId;\n\n  Todo({\n    @required this.id,\n    @required this.title,\n    this.content,\n    this.priority = Priority.Low,\n    this.isDone = false,\n    @required this.userId,\n  });\n}\n"
  },
  {
    "path": "lib/models/filter.dart",
    "content": "enum Filter {\n  All,\n  Done,\n  NotDone,\n}\n"
  },
  {
    "path": "lib/models/settings.dart",
    "content": "import 'package:flutter/material.dart';\n\nclass Settings {\n  final bool isShortcutsEnabled;\n  final bool isDarkThemeUsed;\n\n  Settings({\n    @required this.isShortcutsEnabled,\n    @required this.isDarkThemeUsed,\n  });\n}\n"
  },
  {
    "path": "lib/models/user.dart",
    "content": "import 'package:flutter/material.dart';\n\nclass User {\n  final String id;\n  final String email;\n  final String token;\n\n  User({\n    @required this.id,\n    @required this.email,\n    @required this.token,\n  });\n}\n"
  },
  {
    "path": "lib/pages/auth/auth_page.dart",
    "content": "import 'package:flutter/material.dart';\n\nimport 'package:scoped_model/scoped_model.dart';\n\nimport 'package:flutter_todo/.env.dart';\nimport 'package:flutter_todo/widgets/ui_elements/loading_modal.dart';\nimport 'package:flutter_todo/widgets/helpers/message_dialog.dart';\nimport 'package:flutter_todo/scoped_models/app_model.dart';\nimport 'package:flutter_todo/widgets/ui_elements/rounded_button.dart';\n\nclass AuthPage extends StatefulWidget {\n  @override\n  State<StatefulWidget> createState() {\n    return _AuthPageState();\n  }\n}\n\nclass _AuthPageState extends State<AuthPage> {\n  final Map<String, dynamic> _formData = {\n    'email': null,\n    'password': null,\n  };\n\n  final GlobalKey<FormState> _formKey = GlobalKey<FormState>();\n\n  void _authenticate(AppModel model) async {\n    if (!_formKey.currentState.validate()) {\n      return;\n    }\n\n    _formKey.currentState.save();\n\n    Map<String, dynamic> authResult =\n        await model.authenticate(_formData['email'], _formData['password']);\n\n    if (authResult['success']) {\n    } else {\n      MessageDialog.show(context, message: authResult['message']);\n    }\n  }\n\n  Widget _buildEmailField() {\n    return TextFormField(\n      decoration: InputDecoration(labelText: 'Email'),\n      validator: (value) {\n        if (value.isEmpty ||\n            !RegExp(r\"[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\")\n                .hasMatch(value)) {\n          return 'Please enter a valid email';\n        }\n\n        return null;\n      },\n      onSaved: (value) {\n        _formData['email'] = value;\n      },\n    );\n  }\n\n  Widget _buildPasswordField() {\n    return TextFormField(\n      obscureText: true,\n      decoration: InputDecoration(labelText: 'Password'),\n      validator: (value) {\n        if (value.isEmpty) {\n          return 'Please enter password';\n        }\n\n        return null;\n      },\n      onSaved: (value) {\n        _formData['password'] = value;\n      },\n    );\n  }\n\n  Widget _buildButtonRow(AppModel model) {\n    return Row(\n      mainAxisAlignment: MainAxisAlignment.center,\n      children: <Widget>[\n        RoundedButton(\n          icon: Icon(Icons.edit),\n          label: 'Register',\n          onPressed: () {\n            Navigator.pushNamed(context, '/register');\n          },\n        ),\n        SizedBox(\n          width: 20.0,\n        ),\n        RoundedButton(\n          icon: Icon(Icons.lock_open),\n          label: 'Login',\n          onPressed: () => _authenticate(model),\n        ),\n      ],\n    );\n  }\n\n  Widget _buildPageContent(AppModel model) {\n    final double deviceWidth = MediaQuery.of(context).size.width;\n    final double targetWidth = deviceWidth > 550 ? 500 : deviceWidth * 0.85;\n\n    return Scaffold(\n      appBar: AppBar(\n        title: Text(Configure.AppName),\n        backgroundColor: Colors.blue,\n      ),\n      body: Container(\n        padding: EdgeInsets.all(10.0),\n        child: Center(\n          child: SingleChildScrollView(\n            child: Container(\n              width: targetWidth,\n              child: Form(\n                key: _formKey,\n                child: Column(\n                  children: <Widget>[\n                    _buildEmailField(),\n                    _buildPasswordField(),\n                    SizedBox(\n                      height: 20.0,\n                    ),\n                    _buildButtonRow(model),\n                  ],\n                ),\n              ),\n            ),\n          ),\n        ),\n      ),\n    );\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return ScopedModelDescendant<AppModel>(\n      builder: (BuildContext context, Widget child, AppModel model) {\n        Stack mainStack = Stack(\n          children: <Widget>[\n            _buildPageContent(model),\n          ],\n        );\n\n        if (model.isLoading) {\n          mainStack.children.add(LoadingModal());\n        }\n\n        return mainStack;\n      },\n    );\n  }\n}\n"
  },
  {
    "path": "lib/pages/register/register_page.dart",
    "content": "import 'package:flutter/material.dart';\n\nimport 'package:scoped_model/scoped_model.dart';\n\nimport 'package:flutter_todo/.env.dart';\nimport 'package:flutter_todo/widgets/ui_elements/loading_modal.dart';\nimport 'package:flutter_todo/widgets/helpers/message_dialog.dart';\nimport 'package:flutter_todo/scoped_models/app_model.dart';\nimport 'package:flutter_todo/widgets/ui_elements/rounded_button.dart';\n\nclass RegisterPage extends StatefulWidget {\n  @override\n  State<StatefulWidget> createState() {\n    return _RegisterPageState();\n  }\n}\n\nclass _RegisterPageState extends State<RegisterPage> {\n  final Map<String, dynamic> _formData = {\n    'email': null,\n    'password': null,\n  };\n\n  final GlobalKey<FormState> _formKey = GlobalKey<FormState>();\n  final TextEditingController _passwordController = TextEditingController();\n\n  void _register(AppModel model) async {\n    if (!_formKey.currentState.validate()) {\n      return;\n    }\n\n    _formKey.currentState.save();\n\n    Map<String, dynamic> authResult =\n        await model.register(_formData['email'], _formData['password']);\n\n    if (authResult['success']) {\n      Navigator.pop(context);\n    } else {\n      MessageDialog.show(context, message: authResult['message']);\n    }\n  }\n\n  Widget _buildEmailField() {\n    return TextFormField(\n      decoration: InputDecoration(labelText: 'Email'),\n      validator: (value) {\n        if (value.isEmpty ||\n            !RegExp(r\"[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\")\n                .hasMatch(value)) {\n          return 'Please enter a valid email';\n        }\n\n        return null;\n      },\n      onSaved: (value) {\n        _formData['email'] = value;\n      },\n    );\n  }\n\n  Widget _buildConfirmPasswordField() {\n    return TextFormField(\n      obscureText: true,\n      decoration: InputDecoration(labelText: 'Confirm Password'),\n      validator: (value) {\n        if (value != _passwordController.value.text) {\n          return 'Password and confirm password are not match';\n        }\n\n        return null;\n      },\n    );\n  }\n\n  Widget _buildPasswordField() {\n    return TextFormField(\n      obscureText: true,\n      decoration: InputDecoration(labelText: 'Password'),\n      controller: _passwordController,\n      validator: (value) {\n        if (value.isEmpty || value.length < 6) {\n          return 'Please enter valid password';\n        }\n\n        return null;\n      },\n      onSaved: (value) {\n        _formData['password'] = value;\n      },\n    );\n  }\n\n  Widget _buildButtonRow(AppModel model) {\n    return Row(\n      mainAxisAlignment: MainAxisAlignment.center,\n      children: <Widget>[\n        RoundedButton(\n          icon: Icon(Icons.edit),\n          label: 'Register',\n          onPressed: () {\n            _register(model);\n          },\n        ),\n      ],\n    );\n  }\n\n  Widget _buildPageContent(AppModel model) {\n    final double deviceWidth = MediaQuery.of(context).size.width;\n    final double targetWidth = deviceWidth > 550 ? 500 : deviceWidth * 0.85;\n\n    return Scaffold(\n      appBar: AppBar(\n        title: Text(Configure.AppName),\n        backgroundColor: Colors.blue,\n      ),\n      body: Container(\n        padding: EdgeInsets.all(10.0),\n        child: Center(\n          child: SingleChildScrollView(\n            child: Container(\n              width: targetWidth,\n              child: Form(\n                key: _formKey,\n                child: Column(\n                  children: <Widget>[\n                    _buildEmailField(),\n                    _buildPasswordField(),\n                    _buildConfirmPasswordField(),\n                    SizedBox(\n                      height: 20.0,\n                    ),\n                    _buildButtonRow(model),\n                  ],\n                ),\n              ),\n            ),\n          ),\n        ),\n      ),\n    );\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return ScopedModelDescendant<AppModel>(\n      builder: (BuildContext context, Widget child, AppModel model) {\n        Stack mainStack = Stack(\n          children: <Widget>[\n            _buildPageContent(model),\n          ],\n        );\n\n        if (model.isLoading) {\n          mainStack.children.add(LoadingModal());\n        }\n\n        return mainStack;\n      },\n    );\n  }\n}\n"
  },
  {
    "path": "lib/pages/settings/settings_page.dart",
    "content": "import 'package:flutter/material.dart';\n\nimport 'package:scoped_model/scoped_model.dart';\n\nimport 'package:flutter_todo/scoped_models/app_model.dart';\nimport 'package:flutter_todo/widgets/ui_elements/loading_modal.dart';\nimport 'package:flutter_todo/widgets/helpers/confirm_dialog.dart';\n\nclass SettingsPage extends StatefulWidget {\n  final AppModel model;\n\n  SettingsPage(this.model);\n\n  @override\n  State<StatefulWidget> createState() {\n    return _SettingsPageState();\n  }\n}\n\nclass _SettingsPageState extends State<SettingsPage> {\n  Widget _buildAppBar(BuildContext context, AppModel model) {\n    return AppBar(\n      title: Text('Settings'),\n      backgroundColor: Colors.blue,\n      actions: <Widget>[\n        IconButton(\n          icon: Icon(Icons.lock),\n          onPressed: () async {\n            bool confirm = await ConfirmDialog.show(context);\n\n            if (confirm) {\n              Navigator.pop(context);\n\n              model.logout();\n            }\n          },\n        ),\n      ],\n    );\n  }\n\n  Widget _buildPageContent(AppModel model) {\n    return model.isLoading\n        ? LoadingModal()\n        : Scaffold(\n            appBar: _buildAppBar(context, model),\n            body: ListView(\n              children: <Widget>[\n                SwitchListTile(\n                  activeColor: Colors.blue,\n                  value: model.settings.isShortcutsEnabled,\n                  onChanged: (value) {\n                    model.toggleIsShortcutEnabled();\n                  },\n                  title: Text('Enable shortcuts'),\n                ),\n                SwitchListTile(\n                  activeColor: Colors.blue,\n                  value: model.settings.isDarkThemeUsed,\n                  onChanged: (value) {\n                    model.toggleIsDarkThemeUsed();\n                  },\n                  title: Text('Use dark theme'),\n                )\n              ],\n            ),\n          );\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return ScopedModelDescendant<AppModel>(\n      builder: (BuildContext context, Widget child, AppModel model) {\n        return _buildPageContent(model);\n      },\n    );\n  }\n}\n"
  },
  {
    "path": "lib/pages/todo/todo_editor_page.dart",
    "content": "import 'package:flutter/material.dart';\n\nimport 'package:scoped_model/scoped_model.dart';\n\nimport 'package:flutter_todo/.env.dart';\nimport 'package:flutter_todo/models/todo.dart';\nimport 'package:flutter_todo/models/priority.dart';\nimport 'package:flutter_todo/scoped_models/app_model.dart';\nimport 'package:flutter_todo/widgets/helpers/message_dialog.dart';\nimport 'package:flutter_todo/widgets/helpers/confirm_dialog.dart';\nimport 'package:flutter_todo/widgets/ui_elements/loading_modal.dart';\nimport 'package:flutter_todo/widgets/form_fields/priority_form_field.dart';\nimport 'package:flutter_todo/widgets/form_fields/toggle_form_field.dart';\n\nclass TodoEditorPage extends StatefulWidget {\n  @override\n  State<StatefulWidget> createState() {\n    return _TodoEditorPageState();\n  }\n}\n\nclass _TodoEditorPageState extends State<TodoEditorPage> {\n  final Map<String, dynamic> _formData = {\n    'title': null,\n    'content': null,\n    'priority': Priority.Low,\n    'isDone': false\n  };\n  final GlobalKey<FormState> _formKey = GlobalKey<FormState>();\n\n  Widget _buildAppBar(AppModel model) {\n    return AppBar(\n      title: Text(Configure.AppName),\n      backgroundColor: Colors.blue,\n      actions: <Widget>[\n        IconButton(\n          icon: Icon(Icons.lock),\n          onPressed: () async {\n            bool confirm = await ConfirmDialog.show(context);\n\n            if (confirm) {\n              Navigator.pop(context);\n\n              model.logout();\n            }\n          },\n        ),\n      ],\n    );\n  }\n\n  Widget _buildFloatingActionButton(AppModel model) {\n    return FloatingActionButton(\n      child: Icon(Icons.save),\n      onPressed: () {\n        if (!_formKey.currentState.validate()) {\n          return;\n        }\n\n        _formKey.currentState.save();\n\n        if (model.currentTodo != null && model.currentTodo.id != null) {\n          model\n              .updateTodo(\n            _formData['title'],\n            _formData['content'],\n            _formData['priority'],\n            _formData['isDone'],\n          )\n              .then((bool success) {\n            if (success) {\n              model.setCurrentTodo(null);\n\n              Navigator.pop(context);\n            } else {\n              MessageDialog.show(context);\n            }\n          });\n        } else {\n          model\n              .createTodo(\n            _formData['title'],\n            _formData['content'],\n            _formData['priority'],\n            _formData['isDone'],\n          )\n              .then((bool success) {\n            if (success) {\n              Navigator.pop(context);\n            } else {\n              MessageDialog.show(context);\n            }\n          });\n        }\n      },\n    );\n  }\n\n  Widget _buildTitleField(Todo todo) {\n    return TextFormField(\n      decoration: InputDecoration(labelText: 'Title'),\n      initialValue: todo != null ? todo.title : '',\n      validator: (value) {\n        if (value.isEmpty) {\n          return 'Please enter todo\\'s title';\n        }\n\n        return null;\n      },\n      onSaved: (value) {\n        _formData['title'] = value;\n      },\n    );\n  }\n\n  Widget _buildContentField(Todo todo) {\n    return TextFormField(\n      decoration: InputDecoration(labelText: 'Content'),\n      initialValue: todo != null ? todo.content : '',\n      maxLines: 5,\n      onSaved: (value) {\n        _formData['content'] = value;\n      },\n    );\n  }\n\n  Widget _buildOthers(Todo todo) {\n    final bool isDone = todo != null && todo.isDone;\n    final Priority priority = todo != null ? todo.priority : Priority.Low;\n\n    return Row(\n      mainAxisAlignment: MainAxisAlignment.spaceBetween,\n      children: <Widget>[\n        ToggleFormField(\n          initialValue: isDone,\n          onSaved: (bool value) {\n            _formData['isDone'] = value;\n          },\n        ),\n        PriorityFormField(\n          initialValue: priority,\n          onSaved: (Priority value) {\n            _formData['priority'] = value;\n          },\n        ),\n      ],\n    );\n  }\n\n  Widget _buildForm(AppModel model) {\n    Todo todo = model.currentTodo;\n\n    _formData['title'] = todo != null ? todo.title : null;\n    _formData['content'] = todo != null ? todo.content : null;\n    _formData['priority'] = todo != null ? todo.priority : Priority.Low;\n    _formData['isDone'] = todo != null ? todo.isDone : false;\n\n    return Form(\n      key: _formKey,\n      child: ListView(\n        children: <Widget>[\n          _buildTitleField(todo),\n          _buildContentField(todo),\n          SizedBox(\n            height: 12.0,\n          ),\n          _buildOthers(todo),\n        ],\n      ),\n    );\n  }\n\n  Widget _buildPageContent(AppModel model) {\n    return Scaffold(\n      appBar: _buildAppBar(model),\n      floatingActionButton: _buildFloatingActionButton(model),\n      body: Container(\n        padding: EdgeInsets.all(10.0),\n        child: Center(\n          child: _buildForm(model),\n        ),\n      ),\n    );\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return ScopedModelDescendant<AppModel>(\n      builder: (BuildContext context, Widget child, AppModel model) {\n        Stack mainStack = Stack(\n          children: <Widget>[\n            _buildPageContent(model),\n          ],\n        );\n\n        if (model.isLoading) {\n          mainStack.children.add(LoadingModal());\n        }\n\n        return mainStack;\n      },\n    );\n  }\n}\n"
  },
  {
    "path": "lib/pages/todo/todo_list_page.dart",
    "content": "import 'package:flutter/material.dart';\n\nimport 'package:scoped_model/scoped_model.dart';\n\nimport 'package:flutter_todo/.env.dart';\nimport 'package:flutter_todo/models/filter.dart';\nimport 'package:flutter_todo/scoped_models/app_model.dart';\nimport 'package:flutter_todo/widgets/helpers/confirm_dialog.dart';\nimport 'package:flutter_todo/widgets/ui_elements/loading_modal.dart';\nimport 'package:flutter_todo/widgets/todo/todo_list_view.dart';\nimport 'package:flutter_todo/widgets/todo/shortcuts_enabled_todo_fab.dart';\n\nclass TodoListPage extends StatefulWidget {\n  final AppModel model;\n\n  TodoListPage(this.model);\n\n  @override\n  State<StatefulWidget> createState() {\n    return _TodoListPageState();\n  }\n}\n\nclass _TodoListPageState extends State<TodoListPage> {\n  @override\n  void initState() {\n    widget.model.fetchTodos();\n\n    super.initState();\n  }\n\n  Widget _buildAppBar(AppModel model) {\n    return AppBar(\n      title: Text(Configure.AppName),\n      backgroundColor: Colors.blue,\n      actions: <Widget>[\n        IconButton(\n          icon: Icon(Icons.lock),\n          onPressed: () async {\n            bool confirm = await ConfirmDialog.show(context);\n\n            if (confirm) {\n              model.logout();\n            }\n          },\n        ),\n        PopupMenuButton<String>(\n          onSelected: (String choice) {\n            switch (choice) {\n              case 'Settings':\n                Navigator.pushNamed(context, '/settings');\n            }\n          },\n          itemBuilder: (BuildContext context) {\n            return [\n              PopupMenuItem<String>(\n                value: 'Settings',\n                child: Text('Settings'),\n              )\n            ];\n          },\n        ),\n      ],\n    );\n  }\n\n  Widget _buildFloatingActionButton(AppModel model) {\n    if (model.settings.isShortcutsEnabled) {\n      return ShortcutsEnabledTodoFab(model);\n    } else {\n      return FloatingActionButton(\n        child: Icon(Icons.add),\n        onPressed: () {\n          model.setCurrentTodo(null);\n\n          Navigator.pushNamed(context, '/editor');\n        },\n      );\n    }\n  }\n\n  Widget _buildAllFlatButton(AppModel model) {\n    return FlatButton(\n      child: Container(\n        child: Column(\n          mainAxisSize: MainAxisSize.min,\n          children: <Widget>[\n            Icon(\n              Icons.all_inclusive,\n              color: model.filter == Filter.All ? Colors.white : Colors.black,\n            ),\n            Text(\n              'All',\n              style: TextStyle(\n                color: model.filter == Filter.All ? Colors.white : Colors.black,\n              ),\n            )\n          ],\n        ),\n      ),\n      onPressed: () {\n        model.applyFilter(Filter.All);\n      },\n    );\n  }\n\n  Widget _buildDoneFlatButton(AppModel model) {\n    return FlatButton(\n      child: Container(\n        child: Column(\n          mainAxisSize: MainAxisSize.min,\n          children: <Widget>[\n            Icon(\n              Icons.check,\n              color: model.filter == Filter.Done ? Colors.white : Colors.black,\n            ),\n            Text(\n              'Done',\n              style: TextStyle(\n                color:\n                    model.filter == Filter.Done ? Colors.white : Colors.black,\n              ),\n            )\n          ],\n        ),\n      ),\n      onPressed: () {\n        model.applyFilter(Filter.Done);\n      },\n    );\n  }\n\n  Widget _buildNotDoneFlatButton(AppModel model) {\n    return FlatButton(\n      child: Container(\n        child: Column(\n          mainAxisSize: MainAxisSize.min,\n          children: <Widget>[\n            Icon(\n              Icons.check_box_outline_blank,\n              color:\n                  model.filter == Filter.NotDone ? Colors.white : Colors.black,\n            ),\n            Text(\n              'Not Done',\n              style: TextStyle(\n                color: model.filter == Filter.NotDone\n                    ? Colors.white\n                    : Colors.black,\n              ),\n            )\n          ],\n        ),\n      ),\n      onPressed: () {\n        model.applyFilter(Filter.NotDone);\n      },\n    );\n  }\n\n  Widget _buildBottomAppBar(AppModel model) {\n    return BottomAppBar(\n      child: Row(\n        mainAxisSize: MainAxisSize.max,\n        mainAxisAlignment: MainAxisAlignment.spaceBetween,\n        children: <Widget>[\n          // SizedBox(),\n          _buildAllFlatButton(model),\n          _buildDoneFlatButton(model),\n          _buildNotDoneFlatButton(model),\n          // SizedBox(\n          //   width: 80.0,\n          // ),\n        ],\n      ),\n      color: Colors.blue,\n      shape: CircularNotchedRectangle(),\n    );\n  }\n\n  Widget _buildPageContent(AppModel model) {\n    return Scaffold(\n      appBar: _buildAppBar(model),\n      // floatingActionButtonLocation: FloatingActionButtonLocation.endDocked,\n      floatingActionButton: _buildFloatingActionButton(model),\n      bottomNavigationBar: _buildBottomAppBar(model),\n      body: TodoListView(),\n    );\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return ScopedModelDescendant<AppModel>(\n      builder: (BuildContext context, Widget child, AppModel model) {\n        Stack stack = Stack(\n          children: <Widget>[\n            _buildPageContent(model),\n          ],\n        );\n\n        if (model.isLoading) {\n          stack.children.add(LoadingModal());\n        }\n\n        return stack;\n      },\n    );\n  }\n}\n"
  },
  {
    "path": "lib/scoped_models/app_model.dart",
    "content": "import 'package:scoped_model/scoped_model.dart';\n\nimport 'package:flutter_todo/scoped_models/connected_model.dart';\n\nclass AppModel extends Model\n    with CoreModel, TodosModel, UserModel, SettingsModel {}\n"
  },
  {
    "path": "lib/scoped_models/connected_model.dart",
    "content": "import 'dart:async';\nimport 'dart:convert';\n\nimport 'package:http/http.dart' as http;\nimport 'package:scoped_model/scoped_model.dart';\nimport 'package:shared_preferences/shared_preferences.dart';\nimport 'package:rxdart/subjects.dart';\n\nimport 'package:flutter_todo/.env.dart';\nimport 'package:flutter_todo/models/user.dart';\nimport 'package:flutter_todo/models/filter.dart';\nimport 'package:flutter_todo/models/priority.dart';\nimport 'package:flutter_todo/models/todo.dart';\nimport 'package:flutter_todo/models/settings.dart';\nimport 'package:flutter_todo/widgets/helpers/priority_helper.dart';\n\nmixin CoreModel on Model {\n  List<Todo> _todos = [];\n  Todo _todo;\n  bool _isLoading = false;\n  Filter _filter = Filter.All;\n  User _user;\n}\n\nmixin TodosModel on CoreModel {\n  List<Todo> get todos {\n    switch (_filter) {\n      case Filter.All:\n        return List.from(_todos);\n\n      case Filter.Done:\n        return List.from(_todos.where((todo) => todo.isDone));\n\n      case Filter.NotDone:\n        return List.from(_todos.where((todo) => !todo.isDone));\n    }\n\n    return List.from(_todos);\n  }\n\n  Filter get filter {\n    return _filter;\n  }\n\n  bool get isLoading {\n    return _isLoading;\n  }\n\n  Todo get currentTodo {\n    return _todo;\n  }\n\n  void applyFilter(Filter filter) {\n    _filter = filter;\n    notifyListeners();\n  }\n\n  void setCurrentTodo(Todo todo) {\n    _todo = todo;\n  }\n\n  Future fetchTodos() async {\n    _isLoading = true;\n    notifyListeners();\n\n    try {\n      final http.Response response = await http.get(\n          '${Configure.FirebaseUrl}/todos.json?auth=${_user.token}&orderBy=\"userId\"&equalTo=\"${_user.id}\"');\n\n      if (response.statusCode != 200 && response.statusCode != 201) {\n        _isLoading = false;\n        notifyListeners();\n\n        return;\n      }\n\n      final Map<String, dynamic> todoListData = json.decode(response.body);\n\n      if (todoListData == null) {\n        _isLoading = false;\n        notifyListeners();\n\n        return;\n      }\n\n      todoListData.forEach((String todoId, dynamic todoData) {\n        final Todo todo = Todo(\n          id: todoId,\n          title: todoData['title'],\n          content: todoData['content'],\n          priority: PriorityHelper.toPriority(todoData['priority']),\n          isDone: todoData['isDone'],\n          userId: _user.id,\n        );\n\n        _todos.add(todo);\n      });\n\n      _isLoading = false;\n      notifyListeners();\n    } catch (error) {\n      _isLoading = false;\n      notifyListeners();\n    }\n  }\n\n  Future<bool> createTodo(\n      String title, String content, Priority priority, bool isDone) async {\n    _isLoading = true;\n    notifyListeners();\n\n    final Map<String, dynamic> formData = {\n      'title': title,\n      'content': content,\n      'priority': priority.toString(),\n      'isDone': isDone,\n      'userId': _user.id,\n    };\n\n    try {\n      final http.Response response = await http.post(\n        '${Configure.FirebaseUrl}/todos.json?auth=${_user.token}',\n        body: json.encode(formData),\n      );\n\n      if (response.statusCode != 200 && response.statusCode != 201) {\n        _isLoading = false;\n        notifyListeners();\n\n        return false;\n      }\n\n      final Map<String, dynamic> responseData = json.decode(response.body);\n\n      Todo todo = Todo(\n        id: responseData['name'],\n        title: title,\n        content: content,\n        priority: priority,\n        isDone: isDone,\n        userId: _user.id,\n      );\n      _todos.add(todo);\n\n      _isLoading = false;\n      notifyListeners();\n\n      return true;\n    } catch (error) {\n      _isLoading = false;\n      notifyListeners();\n\n      return false;\n    }\n  }\n\n  Future<bool> updateTodo(\n      String title, String content, Priority priority, bool isDone) async {\n    _isLoading = true;\n    notifyListeners();\n\n    final Map<String, dynamic> formData = {\n      'title': title,\n      'content': content,\n      'priority': priority.toString(),\n      'isDone': isDone,\n      'userId': _user.id,\n    };\n\n    try {\n      final http.Response response = await http.put(\n        '${Configure.FirebaseUrl}/todos/${currentTodo.id}.json?auth=${_user.token}',\n        body: json.encode(formData),\n      );\n\n      if (response.statusCode != 200 && response.statusCode != 201) {\n        _isLoading = false;\n        notifyListeners();\n\n        return false;\n      }\n\n      Todo todo = Todo(\n        id: currentTodo.id,\n        title: title,\n        content: content,\n        priority: priority,\n        isDone: isDone,\n        userId: _user.id,\n      );\n      int todoIndex = _todos.indexWhere((t) => t.id == currentTodo.id);\n      _todos[todoIndex] = todo;\n\n      _isLoading = false;\n      notifyListeners();\n\n      return true;\n    } catch (error) {\n      _isLoading = false;\n      notifyListeners();\n\n      return false;\n    }\n  }\n\n  Future<bool> removeTodo(String id) async {\n    _isLoading = true;\n    notifyListeners();\n\n    try {\n      Todo todo = _todos.firstWhere((t) => t.id == id);\n      int todoIndex = _todos.indexWhere((t) => t.id == id);\n      _todos.removeAt(todoIndex);\n\n      final http.Response response = await http.delete(\n          '${Configure.FirebaseUrl}/todos/$id.json?auth=${_user.token}');\n\n      if (response.statusCode != 200 && response.statusCode != 201) {\n        _todos[todoIndex] = todo;\n\n        _isLoading = false;\n        notifyListeners();\n\n        return false;\n      }\n\n      _isLoading = false;\n      notifyListeners();\n\n      return true;\n    } catch (error) {\n      _isLoading = false;\n      notifyListeners();\n\n      return false;\n    }\n  }\n\n  Future<bool> toggleDone(String id) async {\n    _isLoading = true;\n    notifyListeners();\n\n    Todo todo = _todos.firstWhere((t) => t.id == id);\n\n    final Map<String, dynamic> formData = {\n      'title': todo.title,\n      'content': todo.content,\n      'priority': todo.priority.toString(),\n      'isDone': !todo.isDone,\n      'userId': _user.id,\n    };\n\n    try {\n      final http.Response response = await http.put(\n        '${Configure.FirebaseUrl}/todos/$id.json?auth=${_user.token}',\n        body: json.encode(formData),\n      );\n\n      if (response.statusCode != 200 && response.statusCode != 201) {\n        _isLoading = false;\n        notifyListeners();\n\n        return false;\n      }\n\n      todo = Todo(\n        id: todo.id,\n        title: todo.title,\n        content: todo.content,\n        priority: todo.priority,\n        isDone: !todo.isDone,\n        userId: _user.id,\n      );\n      int todoIndex = _todos.indexWhere((t) => t.id == id);\n      _todos[todoIndex] = todo;\n\n      _isLoading = false;\n      notifyListeners();\n\n      return true;\n    } catch (error) {\n      _isLoading = false;\n      notifyListeners();\n\n      return false;\n    }\n  }\n}\n\nmixin UserModel on CoreModel {\n  Timer _authTimer;\n  PublishSubject<bool> _userSubject = PublishSubject();\n\n  User get user {\n    return _user;\n  }\n\n  PublishSubject<bool> get userSubject {\n    return _userSubject;\n  }\n\n  Future<Map<String, dynamic>> authenticate(\n      String email, String password) async {\n    _isLoading = true;\n    notifyListeners();\n\n    final Map<String, dynamic> formData = {\n      'email': email,\n      'password': password,\n      'returnSecureToken': true,\n    };\n\n    try {\n      final http.Response response = await http.post(\n        'https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=${Configure.ApiKey}',\n        body: json.encode(formData),\n        headers: {'Content-Type': 'application/json'},\n      );\n\n      final Map<String, dynamic> responseData = json.decode(response.body);\n      String message;\n\n      if (responseData.containsKey('idToken')) {\n        _user = User(\n          id: responseData['localId'],\n          email: responseData['email'],\n          token: responseData['idToken'],\n        );\n\n        setAuthTimeout(int.parse(responseData['expiresIn']));\n\n        final DateTime now = DateTime.now();\n        final DateTime expiryTime =\n            now.add(Duration(seconds: int.parse(responseData['expiresIn'])));\n\n        final prefs = await SharedPreferences.getInstance();\n        prefs.setString('userId', responseData['localId']);\n        prefs.setString('email', responseData['email']);\n        prefs.setString('token', responseData['idToken']);\n        prefs.setString('refreshToken', responseData['refreshToken']);\n        prefs.setString('expiryTime', expiryTime.toIso8601String());\n\n        _userSubject.add(true);\n\n        _isLoading = false;\n        notifyListeners();\n\n        return {'success': true};\n      } else if (responseData['error']['message'] == 'EMAIL_NOT_FOUND') {\n        message = 'Email is not found.';\n      } else if (responseData['error']['message'] == 'INVALID_PASSWORD') {\n        message = 'Password is invalid.';\n      } else if (responseData['error']['message'] == 'USER_DISABLED') {\n        message = 'The user account has been disabled.';\n      }\n\n      _isLoading = false;\n      notifyListeners();\n\n      return {\n        'success': false,\n        'message': message,\n      };\n    } catch (error) {\n      _isLoading = false;\n      notifyListeners();\n\n      return {'success': false, 'message': error};\n    }\n  }\n\n  Future<Map<String, dynamic>> register(String email, String password) async {\n    _isLoading = true;\n    notifyListeners();\n\n    final Map<String, dynamic> formData = {\n      'email': email,\n      'password': password,\n      'returnSecureToken': true,\n    };\n\n    try {\n      final http.Response response = await http.post(\n        'https://www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser?key=${Configure.ApiKey}',\n        body: json.encode(formData),\n        headers: {'Content-Type': 'application/json'},\n      );\n\n      final Map<String, dynamic> responseData = json.decode(response.body);\n      String message;\n\n      if (responseData.containsKey('idToken')) {\n        _user = User(\n          id: responseData['localId'],\n          email: responseData['email'],\n          token: responseData['idToken'],\n        );\n\n        setAuthTimeout(int.parse(responseData['expiresIn']));\n\n        final DateTime now = DateTime.now();\n        final DateTime expiryTime =\n            now.add(Duration(seconds: int.parse(responseData['expiresIn'])));\n\n        final prefs = await SharedPreferences.getInstance();\n        prefs.setString('userId', responseData['localId']);\n        prefs.setString('email', responseData['email']);\n        prefs.setString('token', responseData['idToken']);\n        prefs.setString('refreshToken', responseData['refreshToken']);\n        prefs.setString('expiryTime', expiryTime.toIso8601String());\n\n        _userSubject.add(true);\n\n        _isLoading = false;\n        notifyListeners();\n\n        return {'success': true};\n      } else if (responseData['error']['message'] == 'EMAIL_EXISTS') {\n        message = 'Email is already exists.';\n      } else if (responseData['error']['message'] == 'OPERATION_NOT_ALLOWED') {\n        message = 'Password sign-in is disabled.';\n      } else if (responseData['error']['message'] ==\n          'TOO_MANY_ATTEMPTS_TRY_LATER') {\n        message =\n            'We have blocked all requests from this device due to unusual activity. Try again later.';\n      }\n\n      _isLoading = false;\n      notifyListeners();\n\n      return {\n        'success': false,\n        'message': message,\n      };\n    } catch (error) {\n      _isLoading = false;\n      notifyListeners();\n\n      return {'success': false, 'message': error};\n    }\n  }\n\n  void logout() async {\n    _todos = [];\n    _todo = null;\n    _filter = Filter.All;\n    _user = null;\n\n    _authTimer.cancel();\n\n    _userSubject.add(false);\n\n    final prefs = await SharedPreferences.getInstance();\n    prefs.clear();\n  }\n\n  void autoAuthentication() async {\n    final prefs = await SharedPreferences.getInstance();\n    final String token = prefs.getString('token');\n\n    if (token != null) {\n      final String expiryTimeString = prefs.getString('expiryTime');\n      final DateTime now = DateTime.now();\n      final parsedExpiryTime = DateTime.parse(expiryTimeString);\n\n      if (parsedExpiryTime.isBefore(now)) {\n        _user = null;\n\n        return;\n      }\n\n      _user = User(\n        id: prefs.getString('userId'),\n        email: prefs.getString('email'),\n        token: token,\n      );\n\n      final int tokenLifespan = parsedExpiryTime.difference(now).inSeconds;\n      setAuthTimeout(tokenLifespan);\n\n      _userSubject.add(true);\n    }\n  }\n\n  void tryRefreshToken() async {\n    final prefs = await SharedPreferences.getInstance();\n    final refreshToken = prefs.getString('refreshToken');\n\n    final Map<String, dynamic> formData = {\n      'grant_type': 'refresh_token',\n      'refresh_token': refreshToken\n    };\n\n    try {\n      final http.Response response = await http.post(\n        'https://securetoken.googleapis.com/v1/token?key=${Configure.ApiKey}',\n        body: json.encode(formData),\n        headers: {'Content-Type': 'application/json'},\n      );\n\n      final Map<String, dynamic> responseData = json.decode(response.body);\n\n      if (responseData.containsKey('id_token')) {\n        _user = User(\n          id: prefs.getString('userId'),\n          email: prefs.getString('email'),\n          token: responseData['id_token'],\n        );\n\n        setAuthTimeout(int.parse(responseData['expires_in']));\n\n        final DateTime now = DateTime.now();\n        final DateTime expiryTime =\n            now.add(Duration(seconds: int.parse(responseData['expires_in'])));\n\n        prefs.setString('token', responseData['id_token']);\n        prefs.setString('expiryTime', expiryTime.toIso8601String());\n        prefs.setString('refreshToken', responseData['refresh_token']);\n\n        return;\n      }\n    } catch (error) {}\n\n    logout();\n  }\n\n  void setAuthTimeout(int time) {\n    _authTimer = Timer(Duration(seconds: time), tryRefreshToken);\n  }\n}\n\nmixin SettingsModel on CoreModel {\n  Settings _settings;\n  PublishSubject<bool> _themeSubject = PublishSubject();\n\n  Settings get settings {\n    return _settings;\n  }\n\n  PublishSubject<bool> get themeSubject {\n    return _themeSubject;\n  }\n\n  void loadSettings() async {\n    final prefs = await SharedPreferences.getInstance();\n    final isDarkThemeUsed = _loadIsDarkThemeUsed(prefs);\n\n    _settings = Settings(\n      isShortcutsEnabled: _loadIsShortcutsEnabled(prefs),\n      isDarkThemeUsed: isDarkThemeUsed,\n    );\n\n    _themeSubject.add(isDarkThemeUsed);\n  }\n\n  bool _loadIsShortcutsEnabled(SharedPreferences prefs) {\n    return prefs.getKeys().contains('isShortcutsEnabled') &&\n            prefs.getBool('isShortcutsEnabled')\n        ? true\n        : false;\n  }\n\n  bool _loadIsDarkThemeUsed(SharedPreferences prefs) {\n    return prefs.getKeys().contains('isDarkThemeUsed') &&\n            prefs.getBool('isDarkThemeUsed')\n        ? true\n        : false;\n  }\n\n  Future toggleIsShortcutEnabled() async {\n    _isLoading = true;\n    notifyListeners();\n\n    final prefs = await SharedPreferences.getInstance();\n    prefs.setBool('isShortcutsEnabled', !_loadIsShortcutsEnabled(prefs));\n\n    _settings = Settings(\n      isShortcutsEnabled: _loadIsShortcutsEnabled(prefs),\n      isDarkThemeUsed: _loadIsDarkThemeUsed(prefs),\n    );\n\n    _isLoading = false;\n    notifyListeners();\n  }\n\n  Future toggleIsDarkThemeUsed() async {\n    _isLoading = true;\n    notifyListeners();\n\n    final prefs = await SharedPreferences.getInstance();\n    final isDarkThemeUsed = !_loadIsDarkThemeUsed(prefs);\n    prefs.setBool('isDarkThemeUsed', isDarkThemeUsed);\n\n    _themeSubject.add(isDarkThemeUsed);\n\n    _settings = Settings(\n      isShortcutsEnabled: _loadIsShortcutsEnabled(prefs),\n      isDarkThemeUsed: _loadIsDarkThemeUsed(prefs),\n    );\n\n    _isLoading = false;\n    notifyListeners();\n  }\n}\n"
  },
  {
    "path": "lib/widgets/form_fields/priority_form_field.dart",
    "content": "import 'package:flutter/material.dart';\n\nimport 'package:flutter_todo/models/priority.dart';\nimport 'package:flutter_todo/widgets/helpers/priority_helper.dart';\n\nclass PriorityFormField extends FormField<Priority> {\n  PriorityFormField({\n    FormFieldSetter<Priority> onSaved,\n    Priority initialValue = Priority.Low,\n  }) : super(\n          onSaved: onSaved,\n          initialValue: initialValue,\n          builder: (FormFieldState<Priority> state) {\n            return Row(\n              children: Priority.values\n                  .map((priority) => Container(\n                        height: 60.0,\n                        child: FlatButton(\n                          color: PriorityHelper.getPriorityColor(priority),\n                          child: state.value == priority\n                              ? Icon(Icons.check)\n                              : null,\n                          onPressed: () {\n                            state.didChange(priority);\n                          },\n                        ),\n                      ))\n                  .toList(),\n            );\n          },\n        );\n}\n"
  },
  {
    "path": "lib/widgets/form_fields/toggle_form_field.dart",
    "content": "import 'package:flutter/material.dart';\n\nclass ToggleFormField extends FormField<bool> {\n  ToggleFormField({\n    FormFieldSetter<bool> onSaved,\n    bool initialValue = false,\n  }) : super(\n          onSaved: onSaved,\n          initialValue: initialValue,\n          builder: (FormFieldState<bool> state) {\n            return Container(\n              height: 60.0,\n              child: FlatButton(\n                color: Colors.blue,\n                child: state.value\n                    ? Icon(Icons.check)\n                    : Icon(Icons.check_box_outline_blank),\n                onPressed: () {\n                  state.didChange(!state.value);\n                },\n              ),\n            );\n          },\n        );\n}\n"
  },
  {
    "path": "lib/widgets/helpers/confirm_dialog.dart",
    "content": "import 'dart:async';\n\nimport 'package:flutter/material.dart';\n\nimport 'package:flutter_todo/widgets/ui_elements/rounded_button.dart';\n\nclass ConfirmDialog {\n  static Future<bool> show(BuildContext context, [String title]) async {\n    return await showDialog<bool>(\n      context: context,\n      barrierDismissible: false,\n      builder: (BuildContext context) {\n        return SimpleDialog(\n          title: Text(title != null ? title : 'Are you sure to logout?'),\n          contentPadding: EdgeInsets.all(12.0),\n          children: <Widget>[\n            Row(\n              mainAxisAlignment: MainAxisAlignment.center,\n              children: <Widget>[\n                RoundedButton(\n                  label: 'No',\n                  onPressed: () {\n                    Navigator.pop(context, false);\n                  },\n                ),\n                SizedBox(\n                  width: 20.0,\n                ),\n                RoundedButton(\n                  label: 'Yes',\n                  onPressed: () {\n                    Navigator.pop(context, true);\n                  },\n                ),\n              ],\n            ),\n          ],\n        );\n      },\n    );\n  }\n}\n"
  },
  {
    "path": "lib/widgets/helpers/message_dialog.dart",
    "content": "import 'package:flutter/material.dart';\n\nclass MessageDialog {\n  static void show(\n    BuildContext context, {\n    String title = 'Something went wrong',\n    String message = 'Please try again!',\n  }) {\n    showDialog(\n      context: context,\n      builder: (BuildContext context) {\n        return AlertDialog(\n          title: Text(title),\n          content: Text(message),\n          actions: <Widget>[\n            FlatButton(\n              onPressed: () => Navigator.of(context).pop(),\n              child: Text('Okay'),\n            )\n          ],\n        );\n      },\n    );\n  }\n}\n"
  },
  {
    "path": "lib/widgets/helpers/priority_helper.dart",
    "content": "import 'package:flutter/material.dart';\n\nimport 'package:flutter_todo/models/priority.dart';\n\nclass PriorityHelper {\n  static Color getPriorityColor(Priority priority) {\n    switch (priority) {\n      case Priority.High:\n        return Colors.redAccent;\n\n      case Priority.Medium:\n        return Colors.amber;\n\n      default:\n        return Colors.lightGreen;\n    }\n  }\n\n  static Priority toPriority(String value) {\n    return Priority.values\n        .firstWhere((priority) => priority.toString() == value);\n  }\n}\n"
  },
  {
    "path": "lib/widgets/todo/shortcuts_enabled_todo_fab.dart",
    "content": "import 'dart:math' as math;\n\nimport 'package:flutter/material.dart';\n\nimport 'package:flutter_todo/models/priority.dart';\nimport 'package:flutter_todo/models/todo.dart';\nimport 'package:flutter_todo/scoped_models/app_model.dart';\n\nclass ShortcutsEnabledTodoFab extends StatefulWidget {\n  final AppModel model;\n\n  ShortcutsEnabledTodoFab(this.model);\n\n  @override\n  State<StatefulWidget> createState() {\n    return _ShortcutsEnabledTodoFabState();\n  }\n}\n\nclass _ShortcutsEnabledTodoFabState extends State<ShortcutsEnabledTodoFab>\n    with TickerProviderStateMixin {\n  AppModel _model;\n  AnimationController _controller;\n\n  @override\n  void initState() {\n    _model = widget.model;\n\n    _controller = AnimationController(\n      vsync: this,\n      duration: Duration(milliseconds: 200),\n    );\n\n    super.initState();\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return Column(\n      mainAxisSize: MainAxisSize.min,\n      children: <Widget>[\n        Container(\n          height: 50.0,\n          child: ScaleTransition(\n            scale: CurvedAnimation(\n              parent: _controller,\n              curve: Interval(0.0, 1.0, curve: Curves.easeOut),\n            ),\n            child: FloatingActionButton(\n              heroTag: 'low',\n              backgroundColor: Colors.lightGreen,\n              child: Icon(Icons.add),\n              mini: true,\n              onPressed: () {\n                _model.setCurrentTodo(Todo(\n                  id: null,\n                  title: '',\n                  userId: _model.user.id,\n                  priority: Priority.Low,\n                ));\n\n                Navigator.pushNamed(context, '/editor');\n              },\n            ),\n          ),\n        ),\n        Container(\n          height: 50.0,\n          child: ScaleTransition(\n            scale: CurvedAnimation(\n              parent: _controller,\n              curve: Interval(0.0, 0.6, curve: Curves.easeOut),\n            ),\n            child: FloatingActionButton(\n              heroTag: 'medium',\n              backgroundColor: Colors.amber,\n              child: Icon(Icons.add),\n              mini: true,\n              onPressed: () {\n                _model.setCurrentTodo(Todo(\n                  id: null,\n                  title: '',\n                  userId: _model.user.id,\n                  priority: Priority.Medium,\n                ));\n\n                Navigator.pushNamed(context, '/editor');\n              },\n            ),\n          ),\n        ),\n        Container(\n          height: 50.0,\n          child: ScaleTransition(\n            scale: CurvedAnimation(\n              parent: _controller,\n              curve: Interval(0.0, 0.2, curve: Curves.easeOut),\n            ),\n            child: FloatingActionButton(\n              heroTag: 'high',\n              backgroundColor: Colors.redAccent,\n              child: Icon(Icons.add),\n              mini: true,\n              onPressed: () {\n                _model.setCurrentTodo(Todo(\n                  id: null,\n                  title: '',\n                  userId: _model.user.id,\n                  priority: Priority.High,\n                ));\n\n                Navigator.pushNamed(context, '/editor');\n              },\n            ),\n          ),\n        ),\n        FloatingActionButton(\n          heroTag: 'main',\n          child: AnimatedBuilder(\n            animation: _controller,\n            builder: (BuildContext context, Widget child) {\n              return Transform(\n                alignment: FractionalOffset.center,\n                transform:\n                    Matrix4.rotationZ(_controller.value * 0.75 * math.pi),\n                child: Icon(Icons.add),\n              );\n            },\n          ),\n          onPressed: () {\n            if (_controller.isDismissed) {\n              _controller.forward();\n            } else {\n              _controller.reverse();\n            }\n          },\n        ),\n      ],\n    );\n  }\n}\n"
  },
  {
    "path": "lib/widgets/todo/todo_card.dart",
    "content": "import 'package:flutter/material.dart';\n\nimport 'package:scoped_model/scoped_model.dart';\n\nimport 'package:flutter_todo/scoped_models/app_model.dart';\nimport 'package:flutter_todo/models/todo.dart';\nimport 'package:flutter_todo/widgets/helpers/priority_helper.dart';\n\nclass TodoCard extends StatelessWidget {\n  final Todo todo;\n\n  TodoCard(this.todo);\n\n  @override\n  Widget build(BuildContext context) {\n    return ScopedModelDescendant(\n      builder: (BuildContext context, Widget child, AppModel model) {\n        return Card(\n          child: Row(\n            children: <Widget>[\n              Container(\n                decoration: new BoxDecoration(\n                  color: PriorityHelper.getPriorityColor(todo.priority),\n                  borderRadius: new BorderRadius.only(\n                    topLeft: const Radius.circular(4.0),\n                    bottomLeft: const Radius.circular(4.0),\n                  ),\n                ),\n                width: 40.0,\n                height: 80.0,\n                child: todo.isDone\n                    ? IconButton(\n                        icon: Icon(Icons.check),\n                        onPressed: () {\n                          model.toggleDone(todo.id);\n                        },\n                      )\n                    : IconButton(\n                        icon: Icon(Icons.check_box_outline_blank),\n                        onPressed: () {\n                          model.toggleDone(todo.id);\n                        },\n                      ),\n              ),\n              Expanded(\n                child: Container(\n                  padding: EdgeInsets.all(10.0),\n                  child: Text(\n                    todo.title,\n                    style: TextStyle(\n                        fontSize: 24.0,\n                        decoration: todo.isDone\n                            ? TextDecoration.lineThrough\n                            : TextDecoration.none),\n                  ),\n                ),\n              ),\n              IconButton(\n                icon: Icon(Icons.edit),\n                onPressed: () {\n                  model.setCurrentTodo(todo);\n\n                  Navigator.pushNamed(context, '/editor');\n                },\n              )\n            ],\n          ),\n        );\n      },\n    );\n  }\n}\n"
  },
  {
    "path": "lib/widgets/todo/todo_list_view.dart",
    "content": "import 'package:flutter/material.dart';\nimport 'package:flutter_svg/flutter_svg.dart';\nimport 'package:flutter_todo/models/filter.dart';\n\nimport 'package:scoped_model/scoped_model.dart';\n\nimport 'package:flutter_todo/scoped_models/app_model.dart';\nimport 'package:flutter_todo/models/todo.dart';\nimport 'package:flutter_todo/widgets/todo/todo_card.dart';\n\nclass TodoListView extends StatelessWidget {\n  Widget _buildEmptyText(AppModel model) {\n    String emptyText;\n\n    switch (model.filter) {\n      case Filter.All:\n        emptyText = 'This is boring here. \\r\\nCreate a todo to make it crowd.';\n        break;\n\n      case Filter.Done:\n        emptyText =\n            'This is boring here. \\r\\nCreate a Done todo to make it crowd.';\n        break;\n\n      case Filter.NotDone:\n        emptyText =\n            'This is boring here. \\r\\nCreate a Not Done todo to make it crowd.';\n        break;\n    }\n\n    Widget svg = new SvgPicture.asset(\n      'assets/todo_list.svg',\n      width: 200,\n    );\n\n    return Container(\n      color: Color.fromARGB(16, 0, 0, 0),\n      child: Column(\n        crossAxisAlignment: CrossAxisAlignment.stretch,\n        mainAxisAlignment: MainAxisAlignment.center,\n        children: <Widget>[\n          svg,\n          SizedBox(\n            height: 40.0,\n          ),\n          Text(\n            emptyText,\n            textAlign: TextAlign.center,\n            style: TextStyle(\n              fontSize: 20,\n            ),\n          ),\n        ],\n      ),\n    );\n  }\n\n  Widget _buildListView(AppModel model) {\n    return ListView.builder(\n      itemCount: model.todos.length,\n      itemBuilder: (BuildContext context, int index) {\n        Todo todo = model.todos[index];\n\n        return Dismissible(\n          key: Key(todo.id),\n          onDismissed: (DismissDirection direction) {\n            model.removeTodo(todo.id);\n          },\n          child: TodoCard(todo),\n          background: Container(color: Colors.red),\n        );\n      },\n    );\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return ScopedModelDescendant<AppModel>(\n      builder: (BuildContext context, Widget child, AppModel model) {\n        Widget todoCards = model.todos.length > 0\n            ? _buildListView(model)\n            : _buildEmptyText(model);\n\n        return todoCards;\n      },\n    );\n  }\n}\n"
  },
  {
    "path": "lib/widgets/ui_elements/loading_modal.dart",
    "content": "import 'package:flutter/material.dart';\n\nclass LoadingModal extends StatelessWidget {\n  @override\n  Widget build(BuildContext context) {\n    return Stack(\n      children: [\n        new Opacity(\n          opacity: 0.3,\n          child: const ModalBarrier(dismissible: false, color: Colors.grey),\n        ),\n        Center(\n          child: new CircularProgressIndicator(),\n        ),\n      ],\n    );\n  }\n}\n"
  },
  {
    "path": "lib/widgets/ui_elements/rounded_button.dart",
    "content": "import 'package:flutter/material.dart';\n\nclass RoundedButton extends StatelessWidget {\n  final String label;\n  final Icon icon;\n  final Function onPressed;\n\n  RoundedButton({\n    this.icon,\n    @required this.label,\n    @required this.onPressed,\n  });\n\n  @override\n  Widget build(BuildContext context) {\n    return SizedBox(\n      width: 120.0,\n      child: this.icon != null\n          ? FlatButton.icon(\n              color: Colors.blue,\n              icon: icon,\n              label: Text(label),\n              shape: RoundedRectangleBorder(\n                borderRadius: BorderRadius.all(Radius.circular(8.0)),\n              ),\n              onPressed: onPressed,\n            )\n          : FlatButton(\n              color: Colors.blue,\n              child: Text(label),\n              shape: RoundedRectangleBorder(\n                borderRadius: BorderRadius.all(Radius.circular(8.0)),\n              ),\n              onPressed: onPressed,\n            ),\n    );\n  }\n}\n"
  },
  {
    "path": "pubspec.yaml",
    "content": "name: flutter_todo\ndescription: A new Flutter project.\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# Read more about versioning at semver.org.\nversion: 1.0.0+1\n\nenvironment:\n  sdk: '>=2.0.0-dev.68.0 <3.0.0'\n\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  http:\n  cupertino_icons: ^0.1.2\n  scoped_model: ^1.0.1\n  shared_preferences: ^0.5.3+4\n  rxdart: ^0.22.2\n  flutter_svg: ^0.14.1\n\ndev_dependencies:\n  flutter_test:\n    sdk: flutter\n\n# For information on the generic Dart part of this file, see the\n# following page: https://www.dartlang.org/tools/pub/pubspec\n\n# The following section is specific to Flutter.\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  # To add assets to your application, add an assets section, like this:\n  assets:\n    - assets/todo_list.svg\n  #  - images/a_dot_ham.jpeg\n  # An image asset can refer to one or more resolution-specific \"variants\", see\n  # https://flutter.io/assets-and-images/#resolution-aware.\n  # For details regarding adding assets from package dependencies, see\n  # https://flutter.io/assets-and-images/#from-packages\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.io/custom-fonts/#from-packages\n"
  }
]