├── .gitignore ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── me │ │ │ │ └── marclittle │ │ │ │ └── todo │ │ │ │ └── fluttertodo │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets └── CustomFont.ttf ├── example.gif ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ ├── Flutter.podspec │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── main.m ├── lib ├── CustomCheckboxTile.dart ├── CustomIcons.dart ├── DummyData.dart ├── main.dart ├── objects │ ├── ColorChoice.dart │ └── TodoObject.dart └── pages │ ├── Details.dart │ └── Home.dart ├── mockups ├── flutter_01.png ├── flutter_02.png ├── flutter_03.png ├── mockup-1.jpeg ├── mockup-2.jpeg └── mockup-3.jpeg ├── pubspec.yaml └── test └── widget_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.lock 4 | *.log 5 | *.pyc 6 | *.swp 7 | .DS_Store 8 | .atom/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # Visual Studio Code related 20 | .vscode/ 21 | 22 | # Flutter repo-specific 23 | /bin/cache/ 24 | /bin/mingit/ 25 | /dev/benchmarks/mega_gallery/ 26 | /dev/bots/.recipe_deps 27 | /dev/bots/android_tools/ 28 | /dev/docs/doc/ 29 | /dev/docs/lib/ 30 | /dev/docs/pubspec.yaml 31 | /packages/flutter/coverage/ 32 | version 33 | 34 | # Flutter/Dart/Pub related 35 | **/doc/api/ 36 | .dart_tool/ 37 | .flutter-plugins 38 | .packages 39 | .pub-cache/ 40 | .pub/ 41 | build/ 42 | flutter_*.png 43 | linked_*.ds 44 | unlinked.ds 45 | unlinked_spec.ds 46 | 47 | # Android related 48 | **/android/**/gradle-wrapper.jar 49 | **/android/.gradle 50 | **/android/captures/ 51 | **/android/gradlew 52 | **/android/gradlew.bat 53 | **/android/local.properties 54 | **/android/**/GeneratedPluginRegistrant.java 55 | 56 | # iOS/XCode related 57 | **/ios/**/*.mode1v3 58 | **/ios/**/*.mode2v3 59 | **/ios/**/*.moved-aside 60 | **/ios/**/*.pbxuser 61 | **/ios/**/*.perspectivev3 62 | **/ios/**/*sync/ 63 | **/ios/**/.sconsign.dblite 64 | **/ios/**/.tags* 65 | **/ios/**/.vagrant/ 66 | **/ios/**/DerivedData/ 67 | **/ios/**/Icon? 68 | **/ios/**/Pods/ 69 | **/ios/**/profile 70 | **/ios/**/xcuserdata 71 | **/ios/.generated/ 72 | **/ios/Flutter/App.framework 73 | **/ios/Flutter/Flutter.framework 74 | **/ios/Flutter/Generated.xcconfig 75 | **/ios/Flutter/app.flx 76 | **/ios/Flutter/app.zip 77 | **/ios/Flutter/flutter_assets/ 78 | **/ios/ServiceDefinitions.json 79 | **/ios/Runner/GeneratedPluginRegistrant.* 80 | 81 | # Exceptions to above rules. 82 | !**/ios/**/default.mode1v3 83 | !**/ios/**/default.mode2v3 84 | !**/ios/**/default.pbxuser 85 | !**/ios/**/default.perspectivev3 86 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 87 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 📝 FlutterTodo [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) 2 | 3 | ## 💻 Install 4 | **Note**: Make sure your [Flutter](https://flutter.dev) environment is setup. 5 | 6 | 7 | In the command terminal, run the following commands: 8 | 9 | $ git clone https://github.com/BigMarco254/FlutterTodo.git flutter_todo 10 | $ cd flutter_todo/ 11 | $ flutter packages get 12 | $ flutter run 13 | 14 | ## 📷 Screenshots 15 | ![Mockup 1](https://github.com/BigMarco254/FlutterTodo/raw/master/mockups/mockup-1.jpeg) 16 | ![Mockup 2](https://github.com/BigMarco254/FlutterTodo/raw/master/mockups/mockup-2.jpeg) 17 | ![Mockup 3](https://github.com/BigMarco254/FlutterTodo/raw/master/mockups/mockup-3.jpeg) 18 | 19 | ## 🤔 Issues: 20 | * Hero transitions are on top of appbar and other widgets 21 | 22 | ## ☕️ Like What You See? 23 | [![Buy Me A Coffee](https://cdn.buymeacoffee.com/buttons/default-orange.png)](https://www.buymeacoffee.com/BigMarco254) 24 | 25 | ## 📚 Resources 26 | [Mockups](https://shotsnapp.com) 27 | 28 | ## 🔖 License 29 | [![WTFPL](http://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-badge-1.png)](https://choosealicense.com/licenses/wtfpl/) -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "me.marclittle.todo.fluttertodo" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | } 57 | 58 | flutter { 59 | source '../..' 60 | } 61 | 62 | dependencies { 63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 64 | testImplementation 'junit:junit:4.12' 65 | androidTestImplementation 'androidx.test:runner:1.1.1' 66 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 67 | } 68 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/me/marclittle/todo/fluttertodo/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package me.marclittle.todo.fluttertodo 2 | 3 | import androidx.annotation.NonNull; 4 | import io.flutter.embedding.android.FlutterActivity 5 | import io.flutter.embedding.engine.FlutterEngine 6 | import io.flutter.plugins.GeneratedPluginRegistrant 7 | 8 | class MainActivity: FlutterActivity() { 9 | override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) { 10 | GeneratedPluginRegistrant.registerWith(flutterEngine); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /assets/CustomFont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/assets/CustomFont.ttf -------------------------------------------------------------------------------- /example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/example.gif -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/app.flx 37 | /Flutter/app.zip 38 | /Flutter/flutter_assets/ 39 | /Flutter/App.framework 40 | /Flutter/Flutter.framework 41 | /Flutter/Generated.xcconfig 42 | /Flutter/flutter_export_environment.sh 43 | /ServiceDefinitions.json 44 | 45 | Pods/ 46 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | UIRequiredDeviceCapabilities 24 | 25 | arm64 26 | 27 | MinimumOSVersion 28 | 8.0 29 | 30 | 31 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Flutter.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # NOTE: This podspec is NOT to be published. It is only used as a local source! 3 | # 4 | 5 | Pod::Spec.new do |s| 6 | s.name = 'Flutter' 7 | s.version = '1.0.0' 8 | s.summary = 'High-performance, high-fidelity mobile apps.' 9 | s.description = <<-DESC 10 | Flutter provides an easy and productive way to build and deploy high-performance mobile apps for Android and iOS. 11 | DESC 12 | s.homepage = 'https://flutter.io' 13 | s.license = { :type => 'MIT' } 14 | s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' } 15 | s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s } 16 | s.ios.deployment_target = '8.0' 17 | s.vendored_frameworks = 'Flutter.framework' 18 | end 19 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 15 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 16 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 17 | 9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB31CF90195004384FC /* Generated.xcconfig */; }; 18 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 19 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 20 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 21 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 22 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXCopyFilesBuildPhase section */ 26 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 27 | isa = PBXCopyFilesBuildPhase; 28 | buildActionMask = 2147483647; 29 | dstPath = ""; 30 | dstSubfolderSpec = 10; 31 | files = ( 32 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 33 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 34 | ); 35 | name = "Embed Frameworks"; 36 | runOnlyForDeploymentPostprocessing = 0; 37 | }; 38 | /* End PBXCopyFilesBuildPhase section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 42 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 43 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 44 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 45 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 46 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 47 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 48 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 49 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 50 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 51 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 53 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 54 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 55 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 56 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 57 | /* End PBXFileReference section */ 58 | 59 | /* Begin PBXFrameworksBuildPhase section */ 60 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 61 | isa = PBXFrameworksBuildPhase; 62 | buildActionMask = 2147483647; 63 | files = ( 64 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 65 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 9740EEB11CF90186004384FC /* Flutter */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 3B80C3931E831B6300D905FE /* App.framework */, 76 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 77 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 78 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 79 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 80 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 81 | ); 82 | name = Flutter; 83 | sourceTree = ""; 84 | }; 85 | 97C146E51CF9000F007C117D = { 86 | isa = PBXGroup; 87 | children = ( 88 | 9740EEB11CF90186004384FC /* Flutter */, 89 | 97C146F01CF9000F007C117D /* Runner */, 90 | 97C146EF1CF9000F007C117D /* Products */, 91 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 92 | ); 93 | sourceTree = ""; 94 | }; 95 | 97C146EF1CF9000F007C117D /* Products */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 97C146EE1CF9000F007C117D /* Runner.app */, 99 | ); 100 | name = Products; 101 | sourceTree = ""; 102 | }; 103 | 97C146F01CF9000F007C117D /* Runner */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 107 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 108 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 109 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 110 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 111 | 97C147021CF9000F007C117D /* Info.plist */, 112 | 97C146F11CF9000F007C117D /* Supporting Files */, 113 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 114 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 115 | ); 116 | path = Runner; 117 | sourceTree = ""; 118 | }; 119 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 97C146F21CF9000F007C117D /* main.m */, 123 | ); 124 | name = "Supporting Files"; 125 | sourceTree = ""; 126 | }; 127 | /* End PBXGroup section */ 128 | 129 | /* Begin PBXNativeTarget section */ 130 | 97C146ED1CF9000F007C117D /* Runner */ = { 131 | isa = PBXNativeTarget; 132 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 133 | buildPhases = ( 134 | 9740EEB61CF901F6004384FC /* Run Script */, 135 | 97C146EA1CF9000F007C117D /* Sources */, 136 | 97C146EB1CF9000F007C117D /* Frameworks */, 137 | 97C146EC1CF9000F007C117D /* Resources */, 138 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 139 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 140 | ); 141 | buildRules = ( 142 | ); 143 | dependencies = ( 144 | ); 145 | name = Runner; 146 | productName = Runner; 147 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 148 | productType = "com.apple.product-type.application"; 149 | }; 150 | /* End PBXNativeTarget section */ 151 | 152 | /* Begin PBXProject section */ 153 | 97C146E61CF9000F007C117D /* Project object */ = { 154 | isa = PBXProject; 155 | attributes = { 156 | LastUpgradeCheck = 0910; 157 | ORGANIZATIONNAME = "The Chromium Authors"; 158 | TargetAttributes = { 159 | 97C146ED1CF9000F007C117D = { 160 | CreatedOnToolsVersion = 7.3.1; 161 | }; 162 | }; 163 | }; 164 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 165 | compatibilityVersion = "Xcode 3.2"; 166 | developmentRegion = English; 167 | hasScannedForEncodings = 0; 168 | knownRegions = ( 169 | en, 170 | Base, 171 | ); 172 | mainGroup = 97C146E51CF9000F007C117D; 173 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 174 | projectDirPath = ""; 175 | projectRoot = ""; 176 | targets = ( 177 | 97C146ED1CF9000F007C117D /* Runner */, 178 | ); 179 | }; 180 | /* End PBXProject section */ 181 | 182 | /* Begin PBXResourcesBuildPhase section */ 183 | 97C146EC1CF9000F007C117D /* Resources */ = { 184 | isa = PBXResourcesBuildPhase; 185 | buildActionMask = 2147483647; 186 | files = ( 187 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 188 | 9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */, 189 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 190 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 191 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 192 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 193 | ); 194 | runOnlyForDeploymentPostprocessing = 0; 195 | }; 196 | /* End PBXResourcesBuildPhase section */ 197 | 198 | /* Begin PBXShellScriptBuildPhase section */ 199 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 200 | isa = PBXShellScriptBuildPhase; 201 | buildActionMask = 2147483647; 202 | files = ( 203 | ); 204 | inputPaths = ( 205 | ); 206 | name = "Thin Binary"; 207 | outputPaths = ( 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | shellPath = /bin/sh; 211 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 212 | }; 213 | 9740EEB61CF901F6004384FC /* Run Script */ = { 214 | isa = PBXShellScriptBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | ); 218 | inputPaths = ( 219 | ); 220 | name = "Run Script"; 221 | outputPaths = ( 222 | ); 223 | runOnlyForDeploymentPostprocessing = 0; 224 | shellPath = /bin/sh; 225 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 226 | }; 227 | /* End PBXShellScriptBuildPhase section */ 228 | 229 | /* Begin PBXSourcesBuildPhase section */ 230 | 97C146EA1CF9000F007C117D /* Sources */ = { 231 | isa = PBXSourcesBuildPhase; 232 | buildActionMask = 2147483647; 233 | files = ( 234 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 235 | 97C146F31CF9000F007C117D /* main.m in Sources */, 236 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 237 | ); 238 | runOnlyForDeploymentPostprocessing = 0; 239 | }; 240 | /* End PBXSourcesBuildPhase section */ 241 | 242 | /* Begin PBXVariantGroup section */ 243 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 244 | isa = PBXVariantGroup; 245 | children = ( 246 | 97C146FB1CF9000F007C117D /* Base */, 247 | ); 248 | name = Main.storyboard; 249 | sourceTree = ""; 250 | }; 251 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 252 | isa = PBXVariantGroup; 253 | children = ( 254 | 97C147001CF9000F007C117D /* Base */, 255 | ); 256 | name = LaunchScreen.storyboard; 257 | sourceTree = ""; 258 | }; 259 | /* End PBXVariantGroup section */ 260 | 261 | /* Begin XCBuildConfiguration section */ 262 | 97C147031CF9000F007C117D /* Debug */ = { 263 | isa = XCBuildConfiguration; 264 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 265 | buildSettings = { 266 | ALWAYS_SEARCH_USER_PATHS = NO; 267 | CLANG_ANALYZER_NONNULL = YES; 268 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 269 | CLANG_CXX_LIBRARY = "libc++"; 270 | CLANG_ENABLE_MODULES = YES; 271 | CLANG_ENABLE_OBJC_ARC = YES; 272 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 273 | CLANG_WARN_BOOL_CONVERSION = YES; 274 | CLANG_WARN_COMMA = YES; 275 | CLANG_WARN_CONSTANT_CONVERSION = YES; 276 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 277 | CLANG_WARN_EMPTY_BODY = YES; 278 | CLANG_WARN_ENUM_CONVERSION = YES; 279 | CLANG_WARN_INFINITE_RECURSION = YES; 280 | CLANG_WARN_INT_CONVERSION = YES; 281 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 282 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 283 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 284 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 285 | CLANG_WARN_STRICT_PROTOTYPES = YES; 286 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 287 | CLANG_WARN_UNREACHABLE_CODE = YES; 288 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 289 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 290 | COPY_PHASE_STRIP = NO; 291 | DEBUG_INFORMATION_FORMAT = dwarf; 292 | ENABLE_STRICT_OBJC_MSGSEND = YES; 293 | ENABLE_TESTABILITY = YES; 294 | GCC_C_LANGUAGE_STANDARD = gnu99; 295 | GCC_DYNAMIC_NO_PIC = NO; 296 | GCC_NO_COMMON_BLOCKS = YES; 297 | GCC_OPTIMIZATION_LEVEL = 0; 298 | GCC_PREPROCESSOR_DEFINITIONS = ( 299 | "DEBUG=1", 300 | "$(inherited)", 301 | ); 302 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 303 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 304 | GCC_WARN_UNDECLARED_SELECTOR = YES; 305 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 306 | GCC_WARN_UNUSED_FUNCTION = YES; 307 | GCC_WARN_UNUSED_VARIABLE = YES; 308 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 309 | MTL_ENABLE_DEBUG_INFO = YES; 310 | ONLY_ACTIVE_ARCH = YES; 311 | SDKROOT = iphoneos; 312 | TARGETED_DEVICE_FAMILY = "1,2"; 313 | }; 314 | name = Debug; 315 | }; 316 | 97C147041CF9000F007C117D /* Release */ = { 317 | isa = XCBuildConfiguration; 318 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 319 | buildSettings = { 320 | ALWAYS_SEARCH_USER_PATHS = NO; 321 | CLANG_ANALYZER_NONNULL = YES; 322 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 323 | CLANG_CXX_LIBRARY = "libc++"; 324 | CLANG_ENABLE_MODULES = YES; 325 | CLANG_ENABLE_OBJC_ARC = YES; 326 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 327 | CLANG_WARN_BOOL_CONVERSION = YES; 328 | CLANG_WARN_COMMA = YES; 329 | CLANG_WARN_CONSTANT_CONVERSION = YES; 330 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 331 | CLANG_WARN_EMPTY_BODY = YES; 332 | CLANG_WARN_ENUM_CONVERSION = YES; 333 | CLANG_WARN_INFINITE_RECURSION = YES; 334 | CLANG_WARN_INT_CONVERSION = YES; 335 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 336 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 337 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 338 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 339 | CLANG_WARN_STRICT_PROTOTYPES = YES; 340 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 341 | CLANG_WARN_UNREACHABLE_CODE = YES; 342 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 343 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 344 | COPY_PHASE_STRIP = NO; 345 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 346 | ENABLE_NS_ASSERTIONS = NO; 347 | ENABLE_STRICT_OBJC_MSGSEND = YES; 348 | GCC_C_LANGUAGE_STANDARD = gnu99; 349 | GCC_NO_COMMON_BLOCKS = YES; 350 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 351 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 352 | GCC_WARN_UNDECLARED_SELECTOR = YES; 353 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 354 | GCC_WARN_UNUSED_FUNCTION = YES; 355 | GCC_WARN_UNUSED_VARIABLE = YES; 356 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 357 | MTL_ENABLE_DEBUG_INFO = NO; 358 | SDKROOT = iphoneos; 359 | TARGETED_DEVICE_FAMILY = "1,2"; 360 | VALIDATE_PRODUCT = YES; 361 | }; 362 | name = Release; 363 | }; 364 | 97C147061CF9000F007C117D /* Debug */ = { 365 | isa = XCBuildConfiguration; 366 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 367 | buildSettings = { 368 | ARCHS = arm64; 369 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 370 | CURRENT_PROJECT_VERSION = 1; 371 | ENABLE_BITCODE = NO; 372 | FRAMEWORK_SEARCH_PATHS = ( 373 | "$(inherited)", 374 | "$(PROJECT_DIR)/Flutter", 375 | ); 376 | INFOPLIST_FILE = Runner/Info.plist; 377 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 378 | LIBRARY_SEARCH_PATHS = ( 379 | "$(inherited)", 380 | "$(PROJECT_DIR)/Flutter", 381 | ); 382 | PRODUCT_BUNDLE_IDENTIFIER = me.marc_little.todo; 383 | PRODUCT_NAME = "$(TARGET_NAME)"; 384 | VERSIONING_SYSTEM = "apple-generic"; 385 | }; 386 | name = Debug; 387 | }; 388 | 97C147071CF9000F007C117D /* Release */ = { 389 | isa = XCBuildConfiguration; 390 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 391 | buildSettings = { 392 | ARCHS = arm64; 393 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 394 | CURRENT_PROJECT_VERSION = 1; 395 | ENABLE_BITCODE = NO; 396 | FRAMEWORK_SEARCH_PATHS = ( 397 | "$(inherited)", 398 | "$(PROJECT_DIR)/Flutter", 399 | ); 400 | INFOPLIST_FILE = Runner/Info.plist; 401 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 402 | LIBRARY_SEARCH_PATHS = ( 403 | "$(inherited)", 404 | "$(PROJECT_DIR)/Flutter", 405 | ); 406 | PRODUCT_BUNDLE_IDENTIFIER = me.marc_little.todo; 407 | PRODUCT_NAME = "$(TARGET_NAME)"; 408 | VERSIONING_SYSTEM = "apple-generic"; 409 | }; 410 | name = Release; 411 | }; 412 | /* End XCBuildConfiguration section */ 413 | 414 | /* Begin XCConfigurationList section */ 415 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 416 | isa = XCConfigurationList; 417 | buildConfigurations = ( 418 | 97C147031CF9000F007C117D /* Debug */, 419 | 97C147041CF9000F007C117D /* Release */, 420 | ); 421 | defaultConfigurationIsVisible = 0; 422 | defaultConfigurationName = Release; 423 | }; 424 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 425 | isa = XCConfigurationList; 426 | buildConfigurations = ( 427 | 97C147061CF9000F007C117D /* Debug */, 428 | 97C147071CF9000F007C117D /* Release */, 429 | ); 430 | defaultConfigurationIsVisible = 0; 431 | defaultConfigurationName = Release; 432 | }; 433 | /* End XCConfigurationList section */ 434 | }; 435 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 436 | } 437 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildSystemType 6 | Original 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 7 | [GeneratedPluginRegistrant registerWithRegistry:self]; 8 | // Override point for customization after application launch. 9 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 10 | } 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | todo 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | arm64 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | UIViewControllerBasedStatusBarAppearance 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /lib/CustomCheckboxTile.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/foundation.dart'; 3 | 4 | class CustomListTile extends StatelessWidget { 5 | const CustomListTile({ 6 | Key key, 7 | this.leading, 8 | this.title, 9 | this.subtitle, 10 | this.trailing, 11 | this.isThreeLine: false, 12 | this.dense, 13 | this.enabled: true, 14 | this.onTap, 15 | this.onLongPress, 16 | this.selected: false, 17 | }) : assert(isThreeLine != null), 18 | assert(enabled != null), 19 | assert(selected != null), 20 | assert(!isThreeLine || subtitle != null), 21 | super(key: key); 22 | 23 | final Widget leading; 24 | 25 | final Widget title; 26 | 27 | final Widget subtitle; 28 | 29 | final Widget trailing; 30 | 31 | final bool isThreeLine; 32 | 33 | final bool dense; 34 | 35 | final bool enabled; 36 | 37 | final GestureTapCallback onTap; 38 | 39 | final GestureLongPressCallback onLongPress; 40 | 41 | final bool selected; 42 | 43 | static Iterable divideTiles({BuildContext context, @required Iterable tiles, Color color}) sync* { 44 | assert(tiles != null); 45 | assert(color != null || context != null); 46 | 47 | final Iterator iterator = tiles.iterator; 48 | final bool isNotEmpty = iterator.moveNext(); 49 | 50 | final Decoration decoration = BoxDecoration( 51 | border: Border( 52 | bottom: Divider.createBorderSide(context, color: color), 53 | ), 54 | ); 55 | 56 | Widget tile = iterator.current; 57 | while (iterator.moveNext()) { 58 | yield DecoratedBox( 59 | position: DecorationPosition.foreground, 60 | decoration: decoration, 61 | child: tile, 62 | ); 63 | tile = iterator.current; 64 | } 65 | if (isNotEmpty) yield tile; 66 | } 67 | 68 | Color _iconColor(ThemeData theme, ListTileTheme tileTheme) { 69 | if (!enabled) return theme.disabledColor; 70 | 71 | if (selected && tileTheme?.selectedColor != null) return tileTheme.selectedColor; 72 | 73 | if (!selected && tileTheme?.iconColor != null) return tileTheme.iconColor; 74 | 75 | switch (theme.brightness) { 76 | case Brightness.light: 77 | return selected ? theme.primaryColor : Colors.black45; 78 | case Brightness.dark: 79 | return selected ? theme.accentColor : null; // null - use current icon theme color 80 | } 81 | assert(theme.brightness != null); 82 | return null; 83 | } 84 | 85 | Color _textColor(ThemeData theme, ListTileTheme tileTheme, Color defaultColor) { 86 | if (!enabled) return theme.disabledColor; 87 | 88 | if (selected && tileTheme?.selectedColor != null) return tileTheme.selectedColor; 89 | 90 | if (!selected && tileTheme?.textColor != null) return tileTheme.textColor; 91 | 92 | if (selected) { 93 | switch (theme.brightness) { 94 | case Brightness.light: 95 | return theme.primaryColor; 96 | case Brightness.dark: 97 | return theme.accentColor; 98 | } 99 | } 100 | return defaultColor; 101 | } 102 | 103 | bool _denseLayout(ListTileTheme tileTheme) { 104 | return dense != null ? dense : (tileTheme?.dense ?? false); 105 | } 106 | 107 | TextStyle _titleTextStyle(ThemeData theme, ListTileTheme tileTheme) { 108 | TextStyle style; 109 | if (tileTheme != null) { 110 | switch (tileTheme.style) { 111 | case ListTileStyle.drawer: 112 | style = theme.textTheme.body2; 113 | break; 114 | case ListTileStyle.list: 115 | style = theme.textTheme.subhead; 116 | break; 117 | } 118 | } else { 119 | style = theme.textTheme.subhead; 120 | } 121 | final Color color = _textColor(theme, tileTheme, style.color); 122 | return style.copyWith(fontSize: 14.0, color: color); 123 | } 124 | 125 | TextStyle _subtitleTextStyle(ThemeData theme, ListTileTheme tileTheme) { 126 | final TextStyle style = theme.textTheme.body1; 127 | final Color color = _textColor(theme, tileTheme, theme.textTheme.caption.color); 128 | return style.copyWith(color: color, fontSize: 12.0); 129 | } 130 | 131 | @override 132 | Widget build(BuildContext context) { 133 | assert(debugCheckHasMaterial(context)); 134 | final ThemeData theme = Theme.of(context); 135 | final ListTileTheme tileTheme = ListTileTheme.of(context); 136 | 137 | final bool isTwoLine = !isThreeLine && subtitle != null; 138 | final bool isOneLine = !isThreeLine && !isTwoLine; 139 | double tileHeight; 140 | if (isOneLine) 141 | tileHeight = 50.0; 142 | else if (isTwoLine) 143 | tileHeight = _denseLayout(tileTheme) ? 60.0 : 72.0; 144 | else 145 | tileHeight = _denseLayout(tileTheme) ? 76.0 : 88.0; 146 | 147 | // Overall, the list tile is a Row() with these children. 148 | final List children = []; 149 | 150 | IconThemeData iconThemeData; 151 | if (leading != null || trailing != null) iconThemeData = IconThemeData(color: _iconColor(theme, tileTheme)); 152 | 153 | if (leading != null) { 154 | children.add(IconTheme.merge( 155 | data: iconThemeData, 156 | child: Container(margin: EdgeInsetsDirectional.only(end: 16.0), width: 30.0, alignment: AlignmentDirectional.centerStart, child: leading), 157 | )); 158 | } 159 | 160 | final Widget primaryLine = AnimatedDefaultTextStyle(style: _titleTextStyle(theme, tileTheme), duration: kThemeChangeDuration, child: title ?? Container()); 161 | Widget center = primaryLine; 162 | if (subtitle != null && (isTwoLine || isThreeLine)) { 163 | center = Column( 164 | mainAxisSize: MainAxisSize.min, 165 | crossAxisAlignment: CrossAxisAlignment.start, 166 | children: [ 167 | primaryLine, 168 | AnimatedDefaultTextStyle( 169 | style: _subtitleTextStyle(theme, tileTheme), 170 | duration: kThemeChangeDuration, 171 | child: subtitle, 172 | ), 173 | ], 174 | ); 175 | } 176 | children.add(Expanded( 177 | child: center, 178 | )); 179 | 180 | if (trailing != null) { 181 | children.add(IconTheme.merge( 182 | data: iconThemeData, 183 | child: Container( 184 | margin: EdgeInsetsDirectional.only(start: 16.0), 185 | alignment: AlignmentDirectional.centerEnd, 186 | child: trailing, 187 | ), 188 | )); 189 | } 190 | 191 | return InkWell( 192 | highlightColor: Colors.grey.withAlpha(10), 193 | splashColor: Colors.transparent, 194 | onTap: enabled ? onTap : null, 195 | onLongPress: enabled ? onLongPress : null, 196 | child: Semantics( 197 | selected: selected, 198 | enabled: enabled, 199 | child: ConstrainedBox( 200 | constraints: BoxConstraints(minHeight: tileHeight), 201 | child: Padding( 202 | padding: EdgeInsets.symmetric(horizontal: 0.0), 203 | child: UnconstrainedBox( 204 | constrainedAxis: Axis.horizontal, 205 | child: SafeArea( 206 | top: false, 207 | bottom: false, 208 | child: Row(children: children), 209 | ), 210 | ), 211 | )), 212 | ), 213 | ); 214 | } 215 | } 216 | 217 | class CustomCheckboxListTile extends StatelessWidget { 218 | const CustomCheckboxListTile({ 219 | Key key, 220 | @required this.value, 221 | @required this.onChanged, 222 | this.activeColor, 223 | this.title, 224 | this.subtitle, 225 | this.isThreeLine: false, 226 | this.dense, 227 | this.secondary, 228 | this.selected: false, 229 | }) : assert(value != null), 230 | assert(isThreeLine != null), 231 | assert(!isThreeLine || subtitle != null), 232 | assert(selected != null), 233 | super(key: key); 234 | 235 | final bool value; 236 | 237 | final ValueChanged onChanged; 238 | 239 | final Color activeColor; 240 | 241 | final Widget title; 242 | 243 | final Widget subtitle; 244 | 245 | final Widget secondary; 246 | 247 | final bool isThreeLine; 248 | 249 | final bool dense; 250 | 251 | final bool selected; 252 | 253 | @override 254 | Widget build(BuildContext context) { 255 | final Widget leading = Container( 256 | width: 18.0, 257 | child: Checkbox( 258 | value: value, 259 | onChanged: onChanged, 260 | activeColor: activeColor, 261 | ), 262 | ); 263 | Widget trailing = secondary; 264 | return MergeSemantics( 265 | child: ListTileTheme.merge( 266 | selectedColor: activeColor ?? Theme.of(context).accentColor, 267 | child: CustomListTile( 268 | leading: leading, 269 | title: title, 270 | subtitle: subtitle, 271 | trailing: trailing, 272 | isThreeLine: isThreeLine, 273 | dense: dense, 274 | enabled: onChanged != null, 275 | onTap: onChanged != null 276 | ? () { 277 | onChanged(!value); 278 | } 279 | : null, 280 | selected: selected, 281 | ), 282 | ), 283 | ); 284 | } 285 | } 286 | -------------------------------------------------------------------------------- /lib/CustomIcons.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CustomIcons { 4 | static const IconData menu = IconData(0xe901, fontFamily: "CustomFont"); 5 | static const IconData search = IconData(0xe900, fontFamily: "CustomFont"); 6 | } 7 | -------------------------------------------------------------------------------- /lib/DummyData.dart: -------------------------------------------------------------------------------- 1 | import 'package:todo/objects/ColorChoice.dart'; 2 | import 'package:todo/objects/TodoObject.dart'; 3 | import 'package:flutter/material.dart'; 4 | 5 | List todos = [ 6 | TodoObject.import("SOME_RANDOM_UUID", "Custom", 1, ColorChoices.choices[0], Icons.alarm, { 7 | DateTime(2018, 5, 3): [ 8 | TaskObject("Meet Clients", DateTime(2018, 5, 3)), 9 | TaskObject("Design Sprint", DateTime(2018, 5, 3)), 10 | TaskObject("Icon Set Design for Mobile", DateTime(2018, 5, 3)), 11 | TaskObject("HTML/CSS Study", DateTime(2018, 5, 3)), 12 | ], 13 | DateTime(2019, 5, 4): [ 14 | TaskObject("Meet Clients", DateTime(2019, 5, 4)), 15 | TaskObject("Design Sprint", DateTime(2019, 5, 4)), 16 | TaskObject("Icon Set Design for Mobile", DateTime(2019, 5, 4)), 17 | TaskObject("HTML/CSS Study", DateTime(2019, 5, 4)), 18 | ] 19 | }), 20 | TodoObject("Personal", Icons.person), 21 | TodoObject("Work", Icons.work), 22 | TodoObject("Home", Icons.home), 23 | TodoObject("Shopping", Icons.shopping_basket), 24 | TodoObject("School", Icons.school), 25 | ]; 26 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:todo/pages/Home.dart'; 3 | 4 | void main() => runApp(App()); 5 | 6 | class App extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return MaterialApp( 10 | title: 'Flutter TODO', 11 | home: HomePage(), 12 | ); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /lib/objects/ColorChoice.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ColorChoice { 4 | ColorChoice({@required this.primary, @required this.gradient}); 5 | 6 | final Color primary; 7 | final List gradient; 8 | } 9 | 10 | class ColorChoices { 11 | static List choices = [ 12 | ColorChoice( 13 | primary: Color(0xFFF77B67), 14 | gradient: [ 15 | Color.fromRGBO(245, 68, 113, 1.0), 16 | Color.fromRGBO(245, 161, 81, 1.0), 17 | ], 18 | ), 19 | ColorChoice( 20 | primary: Color(0xFF5A89E6), 21 | gradient: [ 22 | Color.fromRGBO(77, 85, 225, 1.0), 23 | Color.fromRGBO(93, 167, 231, 1.0), 24 | ], 25 | ), 26 | ColorChoice( 27 | primary: Color(0xFF4EC5AC), 28 | gradient: [ 29 | Color.fromRGBO(61, 188, 156, 1.0), 30 | Color.fromRGBO(61, 212, 132, 1.0), 31 | ], 32 | ), 33 | ]; 34 | } 35 | -------------------------------------------------------------------------------- /lib/objects/TodoObject.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:uuid/uuid.dart'; 3 | import 'dart:math'; 4 | import 'package:todo/objects/ColorChoice.dart'; 5 | 6 | enum TodoCardSettings { edit_color, delete } 7 | 8 | class TodoObject { 9 | TodoObject(String title, IconData icon) { 10 | this.title = title; 11 | this.icon = icon; 12 | ColorChoice choice = ColorChoices.choices[Random().nextInt(ColorChoices.choices.length)]; 13 | this.color = choice.primary; 14 | this.gradient = LinearGradient(colors: choice.gradient, begin: Alignment.bottomCenter, end: Alignment.topCenter); 15 | tasks = Map>(); 16 | this.uuid = Uuid().v1(); 17 | } 18 | 19 | TodoObject.import(String uuidS, String title, int sortID, ColorChoice color, IconData icon, Map> tasks) { 20 | this.sortID = sortID; 21 | this.title = title; 22 | this.color = color.primary; 23 | this.gradient = LinearGradient(colors: color.gradient, begin: Alignment.bottomCenter, end: Alignment.topCenter); 24 | this.icon = icon; 25 | this.tasks = tasks; 26 | this.uuid = uuidS; 27 | } 28 | 29 | String uuid; 30 | int sortID; 31 | String title; 32 | Color color; 33 | LinearGradient gradient; 34 | IconData icon; 35 | Map> tasks; 36 | 37 | int taskAmount() { 38 | int amount = 0; 39 | tasks.values.forEach((list) { 40 | amount += list.length; 41 | }); 42 | return amount; 43 | } 44 | 45 | //List tasks; 46 | 47 | double percentComplete() { 48 | if (tasks.isEmpty) { 49 | return 1.0; 50 | } 51 | int completed = 0; 52 | int amount = 0; 53 | tasks.values.forEach((list) { 54 | amount += list.length; 55 | list.forEach((task) { 56 | if (task.isCompleted()) { 57 | completed++; 58 | } 59 | }); 60 | }); 61 | return completed / amount; 62 | } 63 | } 64 | 65 | class TaskObject { 66 | DateTime date; 67 | String task; 68 | bool _completed; 69 | 70 | TaskObject(String task, DateTime date) { 71 | this.task = task; 72 | this.date = date; 73 | this._completed = false; 74 | } 75 | 76 | TaskObject.import(String task, DateTime date, bool completed) { 77 | this.task = task; 78 | this.date = date; 79 | this._completed = completed; 80 | } 81 | 82 | void setComplete(bool value) { 83 | _completed = value; 84 | } 85 | 86 | isCompleted() => _completed; 87 | } 88 | -------------------------------------------------------------------------------- /lib/pages/Details.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:todo/objects/TodoObject.dart'; 3 | import 'package:intl/intl.dart'; 4 | import 'package:todo/CustomCheckboxTile.dart'; 5 | 6 | class DetailPage extends StatefulWidget { 7 | DetailPage({@required this.todoObject, Key key}) : super(key: key); 8 | 9 | final TodoObject todoObject; 10 | 11 | @override 12 | _DetailPageState createState() => _DetailPageState(); 13 | } 14 | 15 | class _DetailPageState extends State with TickerProviderStateMixin { 16 | double percentComplete; 17 | AnimationController animationBar; 18 | double barPercent = 0.0; 19 | Tween animT; 20 | AnimationController scaleAnimation; 21 | 22 | @override 23 | void initState() { 24 | scaleAnimation = AnimationController(vsync: this, duration: Duration(milliseconds: 1000), lowerBound: 0.0, upperBound: 1.0); 25 | 26 | percentComplete = widget.todoObject.percentComplete(); 27 | barPercent = percentComplete; 28 | animationBar = AnimationController(vsync: this, duration: Duration(milliseconds: 100)) 29 | ..addListener(() { 30 | setState(() { 31 | barPercent = animT.transform(animationBar.value); 32 | }); 33 | }); 34 | animT = Tween(begin: percentComplete, end: percentComplete); 35 | scaleAnimation.forward(); 36 | super.initState(); 37 | } 38 | 39 | @override 40 | void dispose() { 41 | super.dispose(); 42 | animationBar.dispose(); 43 | scaleAnimation.dispose(); 44 | } 45 | 46 | void updateBarPercent() async { 47 | double newPercentComplete = widget.todoObject.percentComplete(); 48 | if (animationBar.status == AnimationStatus.forward || animationBar.status == AnimationStatus.completed) { 49 | animT.begin = newPercentComplete; 50 | await animationBar.reverse(); 51 | } else { 52 | animT.end = newPercentComplete; 53 | await animationBar.forward(); 54 | } 55 | percentComplete = newPercentComplete; 56 | } 57 | 58 | @override 59 | Widget build(BuildContext context) { 60 | return Stack( 61 | children: [ 62 | Hero( 63 | tag: widget.todoObject.uuid + "_background", 64 | child: Container( 65 | decoration: BoxDecoration( 66 | color: Colors.white, 67 | borderRadius: BorderRadius.circular(0.0), 68 | ), 69 | ), 70 | ), 71 | Scaffold( 72 | backgroundColor: Colors.transparent, 73 | appBar: AppBar( 74 | backgroundColor: Colors.transparent, 75 | elevation: 0.0, 76 | leading: Hero( 77 | tag: widget.todoObject.uuid + "_backIcon", 78 | child: Material( 79 | color: Colors.transparent, 80 | type: MaterialType.transparency, 81 | child: IconButton( 82 | icon: Icon(Icons.arrow_back), 83 | color: Colors.grey, 84 | onPressed: () { 85 | Navigator.of(context).pop(); 86 | }, 87 | ), 88 | ), 89 | ), 90 | actions: [ 91 | Hero( 92 | tag: widget.todoObject.uuid + "_more_vert", 93 | child: Material( 94 | color: Colors.transparent, 95 | type: MaterialType.transparency, 96 | child: PopupMenuButton( 97 | icon: Icon( 98 | Icons.more_vert, 99 | color: Colors.grey, 100 | ), 101 | itemBuilder: (context) => >[ 102 | PopupMenuItem( 103 | child: Text("Edit Color"), 104 | value: TodoCardSettings.edit_color, 105 | ), 106 | PopupMenuItem( 107 | child: Text("Delete"), 108 | value: TodoCardSettings.delete, 109 | ), 110 | ], 111 | onSelected: (setting) { 112 | switch (setting) { 113 | case TodoCardSettings.edit_color: 114 | print("edit color clicked"); 115 | break; 116 | case TodoCardSettings.delete: 117 | print("delete clicked"); 118 | break; 119 | } 120 | }, 121 | ), 122 | ), 123 | ) 124 | ], 125 | ), 126 | body: Padding( 127 | padding: EdgeInsets.only(left: 40.0, right: 40.0, top: 35.0), 128 | child: Column( 129 | mainAxisAlignment: MainAxisAlignment.start, 130 | mainAxisSize: MainAxisSize.max, 131 | children: [ 132 | Padding( 133 | padding: EdgeInsets.only(bottom: 30.0), 134 | child: Align( 135 | alignment: Alignment.bottomLeft, 136 | child: Hero( 137 | tag: widget.todoObject.uuid + "_icon", 138 | child: Container( 139 | decoration: BoxDecoration( 140 | shape: BoxShape.circle, 141 | border: Border.all(color: Colors.grey.withAlpha(70), style: BorderStyle.solid, width: 1.0), 142 | ), 143 | child: Padding( 144 | padding: EdgeInsets.all(8.0), 145 | child: Icon( 146 | widget.todoObject.icon, 147 | color: widget.todoObject.color, 148 | ), 149 | ), 150 | ), 151 | ), 152 | ), 153 | ), 154 | Padding( 155 | padding: EdgeInsets.only(bottom: 12.0), 156 | child: Align( 157 | alignment: Alignment.bottomLeft, 158 | child: Hero( 159 | tag: widget.todoObject.uuid + "_number_of_tasks", 160 | child: Material( 161 | color: Colors.transparent, 162 | child: Text( 163 | widget.todoObject.taskAmount().toString() + " Tasks", 164 | style: TextStyle(), 165 | softWrap: false, 166 | ), 167 | ), 168 | ), 169 | ), 170 | ), 171 | Padding( 172 | padding: EdgeInsets.only(bottom: 20.0), 173 | child: Align( 174 | alignment: Alignment.bottomLeft, 175 | child: Hero( 176 | tag: widget.todoObject.uuid + "_title", 177 | child: Material( 178 | color: Colors.transparent, 179 | child: Text( 180 | widget.todoObject.title, 181 | style: TextStyle(fontSize: 30.0), 182 | softWrap: false, 183 | ), 184 | ), 185 | ), 186 | ), 187 | ), 188 | Padding( 189 | padding: EdgeInsets.only(bottom: 30.0), 190 | child: Align( 191 | alignment: Alignment.bottomLeft, 192 | child: Hero( 193 | tag: widget.todoObject.uuid + "_progress_bar", 194 | child: Material( 195 | color: Colors.transparent, 196 | child: Row( 197 | children: [ 198 | Expanded( 199 | child: LinearProgressIndicator( 200 | value: barPercent, 201 | backgroundColor: Colors.grey.withAlpha(50), 202 | valueColor: AlwaysStoppedAnimation(widget.todoObject.color), 203 | ), 204 | ), 205 | Padding( 206 | padding: EdgeInsets.only(left: 5.0), 207 | child: Text((barPercent * 100).round().toString() + "%"), 208 | ) 209 | ], 210 | ), 211 | ), 212 | ), 213 | ), 214 | ), 215 | Expanded( 216 | child: Hero( 217 | tag: widget.todoObject.uuid + "_just_a_test", 218 | child: Material( 219 | type: MaterialType.transparency, 220 | child: FadeTransition( 221 | opacity: scaleAnimation, 222 | child: ScaleTransition( 223 | scale: scaleAnimation, 224 | child: ListView.builder( 225 | padding: EdgeInsets.all(0.0), 226 | itemBuilder: (BuildContext context, int index) { 227 | DateTime currentDate = widget.todoObject.tasks.keys.toList()[index]; 228 | DateTime _now = DateTime.now(); 229 | DateTime today = DateTime(_now.year, _now.month, _now.day); 230 | String dateString; 231 | if (currentDate.isBefore(today.subtract(Duration(days: 7)))) { 232 | dateString = DateFormat.yMMMMEEEEd().format(currentDate); 233 | } else if (currentDate.isBefore(today)) { 234 | dateString = "Previous - " + DateFormat.E().format(currentDate); 235 | } else if (currentDate.isAtSameMomentAs(today)) { 236 | dateString = "Today"; 237 | } else if (currentDate.isAtSameMomentAs(today.add(Duration(days: 1)))) { 238 | dateString = "Tomorrow"; 239 | } else { 240 | dateString = DateFormat.E().format(currentDate); 241 | } 242 | List tasks = [Text(dateString)]; 243 | widget.todoObject.tasks[currentDate].forEach((task) { 244 | tasks.add(CustomCheckboxListTile( 245 | activeColor: widget.todoObject.color, 246 | value: task.isCompleted(), 247 | onChanged: (value) { 248 | setState(() { 249 | task.setComplete(value); 250 | updateBarPercent(); 251 | }); 252 | }, 253 | title: Text(task.task), 254 | secondary: Icon(Icons.alarm), 255 | )); 256 | }); 257 | return Column( 258 | crossAxisAlignment: CrossAxisAlignment.start, 259 | children: tasks, 260 | ); 261 | }, 262 | itemCount: widget.todoObject.tasks.length, 263 | ), 264 | ), 265 | ), 266 | ), 267 | ), 268 | ), 269 | ], 270 | ), 271 | ), 272 | ) 273 | ], 274 | ); 275 | } 276 | } 277 | -------------------------------------------------------------------------------- /lib/pages/Home.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:intl/intl.dart'; 3 | import 'package:todo/DummyData.dart'; 4 | import 'package:todo/CustomIcons.dart'; 5 | import 'package:todo/objects/TodoObject.dart'; 6 | import 'package:todo/pages/Details.dart'; 7 | 8 | class HomePage extends StatefulWidget { 9 | HomePage({Key key}) : super(key: key); 10 | 11 | @override 12 | _HomePageState createState() => _HomePageState(); 13 | } 14 | 15 | class _HomePageState extends State with TickerProviderStateMixin { 16 | ScrollController scrollController; 17 | Color backgroundColor; 18 | LinearGradient backgroundGradient; 19 | Tween colorTween; 20 | int currentPage = 0; 21 | Color constBackColor; 22 | 23 | @override 24 | void initState() { 25 | super.initState(); 26 | colorTween = ColorTween(begin: todos[0].color, end: todos[0].color); 27 | backgroundColor = todos[0].color; 28 | backgroundGradient = todos[0].gradient; 29 | scrollController = ScrollController(); 30 | scrollController.addListener(() { 31 | ScrollPosition position = scrollController.position; 32 | // ScrollDirection direction = position.userScrollDirection; 33 | int page = position.pixels ~/ (position.maxScrollExtent / (todos.length.toDouble() - 1)); 34 | double pageDo = (position.pixels / (position.maxScrollExtent / (todos.length.toDouble() - 1))); 35 | double percent = pageDo - page; 36 | if (todos.length - 1 < page + 1) { 37 | return; 38 | } 39 | colorTween.begin = todos[page].color; 40 | colorTween.end = todos[page + 1].color; 41 | setState(() { 42 | backgroundColor = colorTween.transform(percent); 43 | backgroundGradient = todos[page].gradient.lerpTo(todos[page + 1].gradient, percent); 44 | }); 45 | }); 46 | } 47 | 48 | @override 49 | void dispose() { 50 | super.dispose(); 51 | scrollController.dispose(); 52 | } 53 | 54 | @override 55 | Widget build(BuildContext context) { 56 | final double _width = MediaQuery.of(context).size.width; 57 | 58 | return Container( 59 | decoration: BoxDecoration(gradient: backgroundGradient), 60 | child: Scaffold( 61 | backgroundColor: Colors.transparent, 62 | appBar: AppBar( 63 | backgroundColor: Colors.transparent, 64 | elevation: 0.0, 65 | title: Text("TODO"), 66 | centerTitle: true, 67 | leading: IconButton( 68 | icon: Icon(CustomIcons.menu), 69 | onPressed: () {}, 70 | ), 71 | actions: [ 72 | IconButton( 73 | icon: Icon( 74 | CustomIcons.search, 75 | size: 26.0, 76 | ), 77 | onPressed: () {}, 78 | ) 79 | ], 80 | ), 81 | body: Column( 82 | crossAxisAlignment: CrossAxisAlignment.start, 83 | children: [ 84 | Spacer(), 85 | Padding( 86 | padding: EdgeInsets.only(left: 50.0), 87 | child: Container( 88 | decoration: BoxDecoration( 89 | boxShadow: [BoxShadow(color: Colors.black38, offset: Offset(5.0, 5.0), blurRadius: 15.0)], 90 | shape: BoxShape.circle, 91 | ), 92 | child: CircleAvatar( 93 | backgroundColor: Colors.grey, 94 | ), 95 | ), 96 | ), 97 | Spacer( 98 | flex: 2, 99 | ), 100 | Padding( 101 | padding: EdgeInsets.only(left: 50.0), 102 | child: Text( 103 | "Hello, John.", 104 | style: TextStyle(color: Colors.white, fontSize: 30.0), 105 | ), 106 | ), 107 | Spacer(), 108 | Padding( 109 | padding: EdgeInsets.only(left: 50.0), 110 | child: Text( 111 | "This is a daily quote.", 112 | style: TextStyle(color: Colors.white70), 113 | ), 114 | ), 115 | Padding( 116 | padding: EdgeInsets.only(left: 50.0), 117 | child: Text( 118 | "You have 10 tasks to do today.", 119 | style: TextStyle(color: Colors.white70), 120 | ), 121 | ), 122 | Spacer( 123 | flex: 2, 124 | ), 125 | Padding( 126 | padding: EdgeInsets.only( 127 | left: 50.0, 128 | ), 129 | child: RichText( 130 | text: TextSpan( 131 | children: [ 132 | TextSpan( 133 | text: "TODAY : ", 134 | style: TextStyle( 135 | color: Colors.white, 136 | fontWeight: FontWeight.w600, 137 | ), 138 | ), 139 | TextSpan( 140 | text: DateFormat.yMMMMd().format(DateTime.now()), 141 | style: TextStyle( 142 | color: Colors.white, 143 | ), 144 | ), 145 | ], 146 | ), 147 | ), 148 | ), 149 | Spacer(), 150 | Expanded( 151 | flex: 20, 152 | child: ListView.builder( 153 | itemBuilder: (context, index) { 154 | TodoObject todoObject = todos[index]; 155 | double percentComplete = todoObject.percentComplete(); 156 | 157 | return Padding( 158 | padding: EdgeInsets.only(left: 10.0, right: 10.0, bottom: 30.0), 159 | child: InkWell( 160 | onTap: () { 161 | Navigator.of(context).push( 162 | PageRouteBuilder( 163 | pageBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation) => DetailPage(todoObject: todoObject), 164 | transitionDuration: Duration(milliseconds: 1000), 165 | ), 166 | ); 167 | }, 168 | child: Container( 169 | decoration: BoxDecoration(borderRadius: BorderRadius.circular(10.0), boxShadow: [BoxShadow(color: Colors.black.withAlpha(70), offset: Offset(3.0, 10.0), blurRadius: 15.0)]), 170 | height: 250.0, 171 | child: Stack( 172 | children: [ 173 | Hero( 174 | tag: todoObject.uuid + "_background", 175 | child: Container( 176 | decoration: BoxDecoration( 177 | color: Colors.white, 178 | borderRadius: BorderRadius.circular(10.0), 179 | ), 180 | ), 181 | ), 182 | Padding( 183 | padding: EdgeInsets.all(16.0), 184 | child: Column( 185 | crossAxisAlignment: CrossAxisAlignment.start, 186 | mainAxisSize: MainAxisSize.max, 187 | mainAxisAlignment: MainAxisAlignment.center, 188 | children: [ 189 | Expanded( 190 | flex: 10, 191 | child: Row( 192 | crossAxisAlignment: CrossAxisAlignment.start, 193 | children: [ 194 | Stack( 195 | children: [ 196 | Hero( 197 | tag: todoObject.uuid + "_backIcon", 198 | child: Material( 199 | type: MaterialType.transparency, 200 | child: Container( 201 | height: 0, 202 | width: 0, 203 | child: IconButton( 204 | icon: Icon(Icons.arrow_back), 205 | onPressed: null, 206 | ), 207 | ), 208 | ), 209 | ), 210 | Hero( 211 | tag: todoObject.uuid + "_icon", 212 | child: Container( 213 | decoration: BoxDecoration( 214 | color: Colors.white, 215 | shape: BoxShape.circle, 216 | border: Border.all(color: Colors.grey.withAlpha(70), style: BorderStyle.solid, width: 1.0), 217 | ), 218 | child: Padding( 219 | padding: EdgeInsets.all(8.0), 220 | child: Icon(todoObject.icon, color: todoObject.color), 221 | ), 222 | ), 223 | ), 224 | ], 225 | ), 226 | Spacer(), 227 | Hero( 228 | tag: todoObject.uuid + "_more_vert", 229 | child: Material( 230 | color: Colors.transparent, 231 | type: MaterialType.transparency, 232 | child: PopupMenuButton( 233 | icon: Icon( 234 | Icons.more_vert, 235 | color: Colors.grey, 236 | ), 237 | itemBuilder: (context) => >[ 238 | PopupMenuItem( 239 | child: Text("Edit Color"), 240 | value: TodoCardSettings.edit_color, 241 | ), 242 | PopupMenuItem( 243 | child: Text("Delete"), 244 | value: TodoCardSettings.delete, 245 | ), 246 | ], 247 | onSelected: (setting) { 248 | switch (setting) { 249 | case TodoCardSettings.edit_color: 250 | print("edit color clicked"); 251 | break; 252 | case TodoCardSettings.delete: 253 | print("delete clicked"); 254 | setState(() { 255 | todos.remove(todoObject); 256 | }); 257 | break; 258 | } 259 | }, 260 | ), 261 | ), 262 | ), 263 | ], 264 | ), 265 | ), 266 | Hero( 267 | tag: todoObject.uuid + "_number_of_tasks", 268 | child: Material( 269 | color: Colors.transparent, 270 | child: Text( 271 | todoObject.taskAmount().toString() + " Tasks", 272 | style: TextStyle(), 273 | softWrap: false, 274 | )), 275 | ), 276 | Spacer(), 277 | Hero( 278 | tag: todoObject.uuid + "_title", 279 | child: Material( 280 | color: Colors.transparent, 281 | child: Text( 282 | todoObject.title, 283 | style: TextStyle(fontSize: 30.0), 284 | softWrap: false, 285 | ), 286 | ), 287 | ), 288 | Spacer(), 289 | Hero( 290 | tag: todoObject.uuid + "_progress_bar", 291 | child: Material( 292 | color: Colors.transparent, 293 | child: Row( 294 | children: [ 295 | Expanded( 296 | child: LinearProgressIndicator( 297 | value: percentComplete, 298 | backgroundColor: Colors.grey.withAlpha(50), 299 | valueColor: AlwaysStoppedAnimation(todoObject.color), 300 | ), 301 | ), 302 | Padding( 303 | padding: EdgeInsets.only(left: 5.0), 304 | child: Text((percentComplete * 100).round().toString() + "%"), 305 | ) 306 | ], 307 | ), 308 | ), 309 | ), 310 | ], 311 | ), 312 | ), 313 | ], 314 | ), 315 | ), 316 | ), 317 | ); 318 | }, 319 | padding: EdgeInsets.only(left: 40.0, right: 40.0), 320 | scrollDirection: Axis.horizontal, 321 | physics: _CustomScrollPhysics(), 322 | controller: scrollController, 323 | itemExtent: _width - 80, 324 | itemCount: todos.length, 325 | ), 326 | ), 327 | Spacer( 328 | flex: 2, 329 | ), 330 | ], 331 | ), 332 | ), 333 | ); 334 | } 335 | } 336 | 337 | class _CustomScrollPhysics extends ScrollPhysics { 338 | _CustomScrollPhysics({ 339 | ScrollPhysics parent, 340 | }) : super(parent: parent); 341 | 342 | @override 343 | _CustomScrollPhysics applyTo(ScrollPhysics ancestor) { 344 | return _CustomScrollPhysics(parent: buildParent(ancestor)); 345 | } 346 | 347 | double _getPage(ScrollPosition position) { 348 | return position.pixels / (position.maxScrollExtent / (todos.length.toDouble() - 1)); 349 | // return position.pixels / position.viewportDimension; 350 | } 351 | 352 | double _getPixels(ScrollPosition position, double page) { 353 | // return page * position.viewportDimension; 354 | return page * (position.maxScrollExtent / (todos.length.toDouble() - 1)); 355 | } 356 | 357 | double _getTargetPixels(ScrollPosition position, Tolerance tolerance, double velocity) { 358 | double page = _getPage(position); 359 | if (velocity < -tolerance.velocity) 360 | page -= 0.5; 361 | else if (velocity > tolerance.velocity) page += 0.5; 362 | return _getPixels(position, page.roundToDouble()); 363 | } 364 | 365 | @override 366 | Simulation createBallisticSimulation(ScrollMetrics position, double velocity) { 367 | if ((velocity <= 0.0 && position.pixels <= position.minScrollExtent) || (velocity >= 0.0 && position.pixels >= position.maxScrollExtent)) return super.createBallisticSimulation(position, velocity); 368 | final Tolerance tolerance = this.tolerance; 369 | final double target = _getTargetPixels(position, tolerance, velocity); 370 | if (target != position.pixels) return ScrollSpringSimulation(spring, position.pixels, target, velocity, tolerance: tolerance); 371 | return null; 372 | } 373 | } 374 | -------------------------------------------------------------------------------- /mockups/flutter_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/mockups/flutter_01.png -------------------------------------------------------------------------------- /mockups/flutter_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/mockups/flutter_02.png -------------------------------------------------------------------------------- /mockups/flutter_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/mockups/flutter_03.png -------------------------------------------------------------------------------- /mockups/mockup-1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/mockups/mockup-1.jpeg -------------------------------------------------------------------------------- /mockups/mockup-2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/mockups/mockup-2.jpeg -------------------------------------------------------------------------------- /mockups/mockup-3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MarcL01/FlutterTodo/415dce3d58dc2b7e88a5d6c80e6fd9747648691c/mockups/mockup-3.jpeg -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: todo 2 | description: Todo project based on https://dribbble.com/shots/3812962-iPhone-X-Todo-Concept 3 | 4 | dependencies: 5 | flutter: 6 | sdk: flutter 7 | cupertino_icons: ^0.1.3 8 | uuid: ^2.0.4 9 | intl: ^0.16.1 10 | dev_dependencies: 11 | flutter_test: 12 | sdk: flutter 13 | 14 | 15 | # For information on the generic Dart part of this file, see the 16 | # following page: https://www.dartlang.org/tools/pub/pubspec 17 | 18 | # The following section is specific to Flutter. 19 | flutter: 20 | 21 | # The following line ensures that the Material Icons font is 22 | # included with your application, so that you can use the icons in 23 | # the material Icons class. 24 | uses-material-design: true 25 | 26 | # To add assets to your application, add an assets section, like this: 27 | # assets: 28 | # - images/a_dot_burr.jpeg 29 | # - images/a_dot_ham.jpeg 30 | 31 | # An image asset can refer to one or more resolution-specific "variants", see 32 | # https://flutter.io/assets-and-images/#resolution-aware. 33 | 34 | # For details regarding adding assets from package dependencies, see 35 | # https://flutter.io/assets-and-images/#from-packages 36 | 37 | # To add custom fonts to your application, add a fonts section here, 38 | # in this "flutter" section. Each entry in this list should have a 39 | # "family" key with the font family name, and a "fonts" key with a 40 | # list giving the asset and other descriptors for the font. For 41 | # example: 42 | fonts: 43 | - family: CustomFont 44 | fonts: 45 | - asset: assets/CustomFont.ttf 46 | # 47 | # For details regarding fonts from package dependencies, 48 | # see https://flutter.io/custom-fonts/#from-packages 49 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter 3 | // provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to 4 | // find child widgets in the widget tree, read text, and verify that the values of widget properties 5 | // are correct. 6 | 7 | import 'package:flutter/material.dart'; 8 | import 'package:flutter_test/flutter_test.dart'; 9 | 10 | import 'package:todo/main.dart'; 11 | 12 | void main() { 13 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 14 | // Build our app and trigger a frame. 15 | await tester.pumpWidget(new App()); 16 | 17 | // Verify that our counter starts at 0. 18 | expect(find.text('0'), findsOneWidget); 19 | expect(find.text('1'), findsNothing); 20 | 21 | // Tap the '+' icon and trigger a frame. 22 | await tester.tap(find.byIcon(Icons.add)); 23 | await tester.pump(); 24 | 25 | // Verify that our counter has incremented. 26 | expect(find.text('0'), findsNothing); 27 | expect(find.text('1'), findsOneWidget); 28 | }); 29 | } 30 | --------------------------------------------------------------------------------