├── .flutter-plugins ├── .flutter-plugins-dependencies ├── .gitignore ├── LICENSE ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── fckapi │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-v21 │ │ │ └── launch_background.xml │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── fckapi_android.iml ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets └── overview.png ├── fckapi.iml ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Podfile.lock ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── core │ ├── models │ │ └── note.dart │ ├── services │ │ └── rest_fire_service.dart │ └── validator.dart ├── main.dart └── views │ ├── components │ ├── animated_custom_fab.dart │ ├── failed.dart │ └── loading.dart │ ├── screens │ ├── add_note.dart │ └── home.dart │ └── widgets │ ├── animated_hover_button.dart │ ├── custom_appbar.dart │ ├── custom_field.dart │ ├── note_card.dart │ └── opacity_widget.dart ├── pubspec.yaml └── test ├── field_validator_test.dart └── services └── rest_fire_service_test.dart /.flutter-plugins: -------------------------------------------------------------------------------- 1 | # This is a generated file; do not edit or check into version control. 2 | path_provider=/Users/ismaelshakverdiev/tools/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/ 3 | path_provider_linux=/Users/ismaelshakverdiev/tools/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/ 4 | path_provider_macos=/Users/ismaelshakverdiev/tools/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.0/ 5 | path_provider_windows=/Users/ismaelshakverdiev/tools/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.0/ 6 | -------------------------------------------------------------------------------- /.flutter-plugins-dependencies: -------------------------------------------------------------------------------- 1 | {"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/ismaelshakverdiev/tools/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/ismaelshakverdiev/tools/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/ismaelshakverdiev/tools/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.0/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/ismaelshakverdiev/tools/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/ismaelshakverdiev/tools/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.0/","dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2021-04-08 18:43:57.967931","version":"2.0.1"} -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/guides/libraries/private-files 2 | 3 | # Files and directories created by pub 4 | .dart_tool/ 5 | .packages 6 | build/ 7 | # If you're building an application, you may want to check-in your pubspec.lock 8 | pubspec.lock 9 | 10 | # Directory created by dartdoc 11 | # If you don't generate documentation locally you can remove this line. 12 | doc/api/ 13 | 14 | # Avoid committing generated Javascript files: 15 | *.dart.js 16 | *.info.json # Produced by the --dump-info flag. 17 | *.js # When generated by dart2js. Don't specify *.js if your 18 | # project includes source files written in JavaScript. 19 | *.js_ 20 | *.js.deps 21 | *.js.map 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Ismael Shakverdiev 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Rest Note 2 | 3 | ### ! Warning ! 4 | > This source code is distributed under the terms of Bad Code License. 5 | > You are forbidden from distributing software containing this code to 6 | > end users, because it is bad. 7 | 8 | ## Overview 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /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 30 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | defaultConfig { 36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 37 | applicationId "com.example.fckapi" 38 | minSdkVersion 16 39 | targetSdkVersion 30 40 | versionCode flutterVersionCode.toInteger() 41 | versionName flutterVersionName 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 59 | } 60 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 13 | 17 | 21 | 26 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/fckapi/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.fckapi 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 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:4.1.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/fckapi_android.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /assets/overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/assets/overview.png -------------------------------------------------------------------------------- /fckapi.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - integration_test (0.0.1): 4 | - Flutter 5 | - path_provider (0.0.1): 6 | - Flutter 7 | 8 | DEPENDENCIES: 9 | - Flutter (from `Flutter`) 10 | - integration_test (from `.symlinks/plugins/integration_test/ios`) 11 | - path_provider (from `.symlinks/plugins/path_provider/ios`) 12 | 13 | EXTERNAL SOURCES: 14 | Flutter: 15 | :path: Flutter 16 | integration_test: 17 | :path: ".symlinks/plugins/integration_test/ios" 18 | path_provider: 19 | :path: ".symlinks/plugins/path_provider/ios" 20 | 21 | SPEC CHECKSUMS: 22 | Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c 23 | integration_test: 5ed24a436eb7ec17b6a13046e9bf7ca4a404e59e 24 | path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c 25 | 26 | PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c 27 | 28 | COCOAPODS: 1.10.0 29 | -------------------------------------------------------------------------------- /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 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | DE97AFAB52737A8B978CE398 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C986FA33EC1FEBE2BDED953E /* Pods_Runner.framework */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXCopyFilesBuildPhase section */ 20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 21 | isa = PBXCopyFilesBuildPhase; 22 | buildActionMask = 2147483647; 23 | dstPath = ""; 24 | dstSubfolderSpec = 10; 25 | files = ( 26 | ); 27 | name = "Embed Frameworks"; 28 | runOnlyForDeploymentPostprocessing = 0; 29 | }; 30 | /* End PBXCopyFilesBuildPhase section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 35 | 1D4425C158445B0CE676DEF7 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 36 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 37 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 38 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 39 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 40 | 811E4C40DB11A908325102E2 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 41 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 42 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 43 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 45 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 46 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 47 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 48 | C986FA33EC1FEBE2BDED953E /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | DFCE8227CF60D5F68FC5377B /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | DE97AFAB52737A8B978CE398 /* Pods_Runner.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | /* End PBXFrameworksBuildPhase section */ 62 | 63 | /* Begin PBXGroup section */ 64 | 37EF3DA649E4A14BDBEA9811 /* Pods */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 811E4C40DB11A908325102E2 /* Pods-Runner.debug.xcconfig */, 68 | 1D4425C158445B0CE676DEF7 /* Pods-Runner.release.xcconfig */, 69 | DFCE8227CF60D5F68FC5377B /* Pods-Runner.profile.xcconfig */, 70 | ); 71 | name = Pods; 72 | path = Pods; 73 | sourceTree = ""; 74 | }; 75 | 9740EEB11CF90186004384FC /* Flutter */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 79 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 80 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 81 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 82 | ); 83 | name = Flutter; 84 | sourceTree = ""; 85 | }; 86 | 9772D8D138FA0B53B98ECF38 /* Frameworks */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | C986FA33EC1FEBE2BDED953E /* Pods_Runner.framework */, 90 | ); 91 | name = Frameworks; 92 | sourceTree = ""; 93 | }; 94 | 97C146E51CF9000F007C117D = { 95 | isa = PBXGroup; 96 | children = ( 97 | 9740EEB11CF90186004384FC /* Flutter */, 98 | 97C146F01CF9000F007C117D /* Runner */, 99 | 97C146EF1CF9000F007C117D /* Products */, 100 | 37EF3DA649E4A14BDBEA9811 /* Pods */, 101 | 9772D8D138FA0B53B98ECF38 /* Frameworks */, 102 | ); 103 | sourceTree = ""; 104 | }; 105 | 97C146EF1CF9000F007C117D /* Products */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 97C146EE1CF9000F007C117D /* Runner.app */, 109 | ); 110 | name = Products; 111 | sourceTree = ""; 112 | }; 113 | 97C146F01CF9000F007C117D /* Runner */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 117 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 118 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 119 | 97C147021CF9000F007C117D /* Info.plist */, 120 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 121 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 122 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 123 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 124 | ); 125 | path = Runner; 126 | sourceTree = ""; 127 | }; 128 | /* End PBXGroup section */ 129 | 130 | /* Begin PBXNativeTarget section */ 131 | 97C146ED1CF9000F007C117D /* Runner */ = { 132 | isa = PBXNativeTarget; 133 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 134 | buildPhases = ( 135 | E1DDDD89721B5E1F72EA3DA2 /* [CP] Check Pods Manifest.lock */, 136 | 9740EEB61CF901F6004384FC /* Run Script */, 137 | 97C146EA1CF9000F007C117D /* Sources */, 138 | 97C146EB1CF9000F007C117D /* Frameworks */, 139 | 97C146EC1CF9000F007C117D /* Resources */, 140 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 142 | 40DDBD19466EB046AC4DCDBA /* [CP] Embed Pods Frameworks */, 143 | ); 144 | buildRules = ( 145 | ); 146 | dependencies = ( 147 | ); 148 | name = Runner; 149 | productName = Runner; 150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 151 | productType = "com.apple.product-type.application"; 152 | }; 153 | /* End PBXNativeTarget section */ 154 | 155 | /* Begin PBXProject section */ 156 | 97C146E61CF9000F007C117D /* Project object */ = { 157 | isa = PBXProject; 158 | attributes = { 159 | LastUpgradeCheck = 1020; 160 | ORGANIZATIONNAME = ""; 161 | TargetAttributes = { 162 | 97C146ED1CF9000F007C117D = { 163 | CreatedOnToolsVersion = 7.3.1; 164 | LastSwiftMigration = 1100; 165 | }; 166 | }; 167 | }; 168 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 169 | compatibilityVersion = "Xcode 9.3"; 170 | developmentRegion = en; 171 | hasScannedForEncodings = 0; 172 | knownRegions = ( 173 | en, 174 | Base, 175 | ); 176 | mainGroup = 97C146E51CF9000F007C117D; 177 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 178 | projectDirPath = ""; 179 | projectRoot = ""; 180 | targets = ( 181 | 97C146ED1CF9000F007C117D /* Runner */, 182 | ); 183 | }; 184 | /* End PBXProject section */ 185 | 186 | /* Begin PBXResourcesBuildPhase section */ 187 | 97C146EC1CF9000F007C117D /* Resources */ = { 188 | isa = PBXResourcesBuildPhase; 189 | buildActionMask = 2147483647; 190 | files = ( 191 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 193 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXResourcesBuildPhase section */ 199 | 200 | /* Begin PBXShellScriptBuildPhase section */ 201 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 202 | isa = PBXShellScriptBuildPhase; 203 | buildActionMask = 2147483647; 204 | files = ( 205 | ); 206 | inputPaths = ( 207 | ); 208 | name = "Thin Binary"; 209 | outputPaths = ( 210 | ); 211 | runOnlyForDeploymentPostprocessing = 0; 212 | shellPath = /bin/sh; 213 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 214 | }; 215 | 40DDBD19466EB046AC4DCDBA /* [CP] Embed Pods Frameworks */ = { 216 | isa = PBXShellScriptBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | ); 220 | inputFileListPaths = ( 221 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 222 | ); 223 | name = "[CP] Embed Pods Frameworks"; 224 | outputFileListPaths = ( 225 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 226 | ); 227 | runOnlyForDeploymentPostprocessing = 0; 228 | shellPath = /bin/sh; 229 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 230 | showEnvVarsInLog = 0; 231 | }; 232 | 9740EEB61CF901F6004384FC /* Run Script */ = { 233 | isa = PBXShellScriptBuildPhase; 234 | buildActionMask = 2147483647; 235 | files = ( 236 | ); 237 | inputPaths = ( 238 | ); 239 | name = "Run Script"; 240 | outputPaths = ( 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | shellPath = /bin/sh; 244 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 245 | }; 246 | E1DDDD89721B5E1F72EA3DA2 /* [CP] Check Pods Manifest.lock */ = { 247 | isa = PBXShellScriptBuildPhase; 248 | buildActionMask = 2147483647; 249 | files = ( 250 | ); 251 | inputFileListPaths = ( 252 | ); 253 | inputPaths = ( 254 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 255 | "${PODS_ROOT}/Manifest.lock", 256 | ); 257 | name = "[CP] Check Pods Manifest.lock"; 258 | outputFileListPaths = ( 259 | ); 260 | outputPaths = ( 261 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | shellPath = /bin/sh; 265 | shellScript = "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"; 266 | showEnvVarsInLog = 0; 267 | }; 268 | /* End PBXShellScriptBuildPhase section */ 269 | 270 | /* Begin PBXSourcesBuildPhase section */ 271 | 97C146EA1CF9000F007C117D /* Sources */ = { 272 | isa = PBXSourcesBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 276 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | }; 280 | /* End PBXSourcesBuildPhase section */ 281 | 282 | /* Begin PBXVariantGroup section */ 283 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 284 | isa = PBXVariantGroup; 285 | children = ( 286 | 97C146FB1CF9000F007C117D /* Base */, 287 | ); 288 | name = Main.storyboard; 289 | sourceTree = ""; 290 | }; 291 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 292 | isa = PBXVariantGroup; 293 | children = ( 294 | 97C147001CF9000F007C117D /* Base */, 295 | ); 296 | name = LaunchScreen.storyboard; 297 | sourceTree = ""; 298 | }; 299 | /* End PBXVariantGroup section */ 300 | 301 | /* Begin XCBuildConfiguration section */ 302 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 333 | ENABLE_NS_ASSERTIONS = NO; 334 | ENABLE_STRICT_OBJC_MSGSEND = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_NO_COMMON_BLOCKS = YES; 337 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 338 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 339 | GCC_WARN_UNDECLARED_SELECTOR = YES; 340 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 341 | GCC_WARN_UNUSED_FUNCTION = YES; 342 | GCC_WARN_UNUSED_VARIABLE = YES; 343 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 344 | MTL_ENABLE_DEBUG_INFO = NO; 345 | SDKROOT = iphoneos; 346 | SUPPORTED_PLATFORMS = iphoneos; 347 | TARGETED_DEVICE_FAMILY = "1,2"; 348 | VALIDATE_PRODUCT = YES; 349 | }; 350 | name = Profile; 351 | }; 352 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 353 | isa = XCBuildConfiguration; 354 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 355 | buildSettings = { 356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 357 | CLANG_ENABLE_MODULES = YES; 358 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 359 | ENABLE_BITCODE = NO; 360 | INFOPLIST_FILE = Runner/Info.plist; 361 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 362 | PRODUCT_BUNDLE_IDENTIFIER = com.example.fckapi; 363 | PRODUCT_NAME = "$(TARGET_NAME)"; 364 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 365 | SWIFT_VERSION = 5.0; 366 | VERSIONING_SYSTEM = "apple-generic"; 367 | }; 368 | name = Profile; 369 | }; 370 | 97C147031CF9000F007C117D /* Debug */ = { 371 | isa = XCBuildConfiguration; 372 | buildSettings = { 373 | ALWAYS_SEARCH_USER_PATHS = NO; 374 | CLANG_ANALYZER_NONNULL = YES; 375 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 376 | CLANG_CXX_LIBRARY = "libc++"; 377 | CLANG_ENABLE_MODULES = YES; 378 | CLANG_ENABLE_OBJC_ARC = YES; 379 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 380 | CLANG_WARN_BOOL_CONVERSION = YES; 381 | CLANG_WARN_COMMA = YES; 382 | CLANG_WARN_CONSTANT_CONVERSION = YES; 383 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 385 | CLANG_WARN_EMPTY_BODY = YES; 386 | CLANG_WARN_ENUM_CONVERSION = YES; 387 | CLANG_WARN_INFINITE_RECURSION = YES; 388 | CLANG_WARN_INT_CONVERSION = YES; 389 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 390 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 391 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 392 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 393 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 394 | CLANG_WARN_STRICT_PROTOTYPES = YES; 395 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 396 | CLANG_WARN_UNREACHABLE_CODE = YES; 397 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 398 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 399 | COPY_PHASE_STRIP = NO; 400 | DEBUG_INFORMATION_FORMAT = dwarf; 401 | ENABLE_STRICT_OBJC_MSGSEND = YES; 402 | ENABLE_TESTABILITY = YES; 403 | GCC_C_LANGUAGE_STANDARD = gnu99; 404 | GCC_DYNAMIC_NO_PIC = NO; 405 | GCC_NO_COMMON_BLOCKS = YES; 406 | GCC_OPTIMIZATION_LEVEL = 0; 407 | GCC_PREPROCESSOR_DEFINITIONS = ( 408 | "DEBUG=1", 409 | "$(inherited)", 410 | ); 411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 413 | GCC_WARN_UNDECLARED_SELECTOR = YES; 414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 415 | GCC_WARN_UNUSED_FUNCTION = YES; 416 | GCC_WARN_UNUSED_VARIABLE = YES; 417 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 418 | MTL_ENABLE_DEBUG_INFO = YES; 419 | ONLY_ACTIVE_ARCH = YES; 420 | SDKROOT = iphoneos; 421 | TARGETED_DEVICE_FAMILY = "1,2"; 422 | }; 423 | name = Debug; 424 | }; 425 | 97C147041CF9000F007C117D /* Release */ = { 426 | isa = XCBuildConfiguration; 427 | buildSettings = { 428 | ALWAYS_SEARCH_USER_PATHS = NO; 429 | CLANG_ANALYZER_NONNULL = YES; 430 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 431 | CLANG_CXX_LIBRARY = "libc++"; 432 | CLANG_ENABLE_MODULES = YES; 433 | CLANG_ENABLE_OBJC_ARC = YES; 434 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 435 | CLANG_WARN_BOOL_CONVERSION = YES; 436 | CLANG_WARN_COMMA = YES; 437 | CLANG_WARN_CONSTANT_CONVERSION = YES; 438 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 439 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 440 | CLANG_WARN_EMPTY_BODY = YES; 441 | CLANG_WARN_ENUM_CONVERSION = YES; 442 | CLANG_WARN_INFINITE_RECURSION = YES; 443 | CLANG_WARN_INT_CONVERSION = YES; 444 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 445 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 446 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 447 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 448 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 449 | CLANG_WARN_STRICT_PROTOTYPES = YES; 450 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 451 | CLANG_WARN_UNREACHABLE_CODE = YES; 452 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 453 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 454 | COPY_PHASE_STRIP = NO; 455 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 456 | ENABLE_NS_ASSERTIONS = NO; 457 | ENABLE_STRICT_OBJC_MSGSEND = YES; 458 | GCC_C_LANGUAGE_STANDARD = gnu99; 459 | GCC_NO_COMMON_BLOCKS = YES; 460 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 461 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 462 | GCC_WARN_UNDECLARED_SELECTOR = YES; 463 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 464 | GCC_WARN_UNUSED_FUNCTION = YES; 465 | GCC_WARN_UNUSED_VARIABLE = YES; 466 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 467 | MTL_ENABLE_DEBUG_INFO = NO; 468 | SDKROOT = iphoneos; 469 | SUPPORTED_PLATFORMS = iphoneos; 470 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 471 | TARGETED_DEVICE_FAMILY = "1,2"; 472 | VALIDATE_PRODUCT = YES; 473 | }; 474 | name = Release; 475 | }; 476 | 97C147061CF9000F007C117D /* Debug */ = { 477 | isa = XCBuildConfiguration; 478 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 479 | buildSettings = { 480 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 481 | CLANG_ENABLE_MODULES = YES; 482 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 483 | ENABLE_BITCODE = NO; 484 | INFOPLIST_FILE = Runner/Info.plist; 485 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 486 | PRODUCT_BUNDLE_IDENTIFIER = com.example.fckapi; 487 | PRODUCT_NAME = "$(TARGET_NAME)"; 488 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 489 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 490 | SWIFT_VERSION = 5.0; 491 | VERSIONING_SYSTEM = "apple-generic"; 492 | }; 493 | name = Debug; 494 | }; 495 | 97C147071CF9000F007C117D /* Release */ = { 496 | isa = XCBuildConfiguration; 497 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 498 | buildSettings = { 499 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 500 | CLANG_ENABLE_MODULES = YES; 501 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 502 | ENABLE_BITCODE = NO; 503 | INFOPLIST_FILE = Runner/Info.plist; 504 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 505 | PRODUCT_BUNDLE_IDENTIFIER = com.example.fckapi; 506 | PRODUCT_NAME = "$(TARGET_NAME)"; 507 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 508 | SWIFT_VERSION = 5.0; 509 | VERSIONING_SYSTEM = "apple-generic"; 510 | }; 511 | name = Release; 512 | }; 513 | /* End XCBuildConfiguration section */ 514 | 515 | /* Begin XCConfigurationList section */ 516 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 517 | isa = XCConfigurationList; 518 | buildConfigurations = ( 519 | 97C147031CF9000F007C117D /* Debug */, 520 | 97C147041CF9000F007C117D /* Release */, 521 | 249021D3217E4FDB00AE95B9 /* Profile */, 522 | ); 523 | defaultConfigurationIsVisible = 0; 524 | defaultConfigurationName = Release; 525 | }; 526 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 527 | isa = XCConfigurationList; 528 | buildConfigurations = ( 529 | 97C147061CF9000F007C117D /* Debug */, 530 | 97C147071CF9000F007C117D /* Release */, 531 | 249021D4217E4FDB00AE95B9 /* Profile */, 532 | ); 533 | defaultConfigurationIsVisible = 0; 534 | defaultConfigurationName = Release; 535 | }; 536 | /* End XCConfigurationList section */ 537 | }; 538 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 539 | } 540 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/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/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theiskaa/restnote/557138d4f6b44c9bd5ccb052c73fbdb0aaaeaa61/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | fckapi 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/core/models/note.dart: -------------------------------------------------------------------------------- 1 | class Note { 2 | String key; 3 | String title; 4 | String description; 5 | 6 | Note({this.key, this.title, this.description}); 7 | 8 | Note.fromJson(Map json) { 9 | key = json['key']; 10 | title = json['title']; 11 | description = json['description']; 12 | } 13 | 14 | Map toJson() { 15 | final Map data = new Map(); 16 | data['key'] = this.key; 17 | data['title'] = this.title; 18 | data['description'] = this.description; 19 | return data; 20 | } 21 | } -------------------------------------------------------------------------------- /lib/core/services/rest_fire_service.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'dart:io'; 3 | import 'package:fckapi/core/models/note.dart'; 4 | import 'package:http/http.dart' as http; 5 | 6 | class RestFireService { 7 | static const FIREBASE_API = 8 | "[your firebase realtime database's url]"; 9 | 10 | Future> fetchNotes() async { 11 | var response = await http.get("$FIREBASE_API/notes.json"); 12 | switch (response.statusCode) { 13 | case HttpStatus.ok: 14 | var jsonBody = jsonDecode(response.body) as Map; 15 | var noteList = []; 16 | 17 | if (jsonBody != null) { 18 | jsonBody.forEach( 19 | (key, value) { 20 | var note = Note.fromJson(value); 21 | note.key = key; 22 | noteList.add(note); 23 | }, 24 | ); 25 | } else { 26 | return noteList; 27 | } 28 | 29 | return noteList; 30 | break; 31 | default: 32 | return null; 33 | } 34 | } 35 | 36 | Future postNote(Note note) async { 37 | var jsonBody = jsonEncode(note.toJson()); 38 | final response = 39 | await http.post("$FIREBASE_API/notes.json", body: jsonBody); 40 | switch (response.statusCode) { 41 | case HttpStatus.ok: 42 | return true; 43 | break; 44 | default: 45 | return false; 46 | } 47 | } 48 | 49 | Future deleteNote(Note note) async { 50 | final response = await http.delete( 51 | "$FIREBASE_API/notes/${note.key}.json", 52 | ); 53 | switch (response.statusCode) { 54 | case HttpStatus.ok: 55 | return true; 56 | break; 57 | default: 58 | return false; 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /lib/core/validator.dart: -------------------------------------------------------------------------------- 1 | class TitleFieldValidator { 2 | String errorText = "Title must to provide min 2 charachter"; 3 | static String validate(String value) { 4 | if ((value.length < 2)) { 5 | return "Title must to provide min 2 charachter"; 6 | } else { 7 | return null; 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:fckapi/views/screens/home.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | void main() => runApp(MyApp()); 5 | 6 | class MyApp extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return MaterialApp( 10 | debugShowCheckedModeBanner: false, 11 | title: 'Firebase Rest Note App', 12 | home: Home(), 13 | ); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /lib/views/components/animated_custom_fab.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | AnimatedFloatingActionButton buildAnimatedCustomFAB(Function onTap) { 4 | return AnimatedFloatingActionButton( 5 | border: Border.all(width: 2), 6 | child: Icon(Icons.add, color: Colors.black), 7 | backgroundColor: Colors.white, 8 | borderRadius: buildBorderRadius(), 9 | shadows: buildBoxShadows(), 10 | onTap: onTap, 11 | ); 12 | } 13 | 14 | BorderRadius buildBorderRadius() { 15 | return BorderRadius.only( 16 | topRight: Radius.circular(30), 17 | bottomLeft: Radius.circular(30), 18 | topLeft: Radius.circular(5), 19 | bottomRight: Radius.circular(5), 20 | ); 21 | } 22 | 23 | List buildBoxShadows() { 24 | return [ 25 | BoxShadow( 26 | offset: Offset(0, 5), 27 | spreadRadius: 3, 28 | color: Colors.black.withOpacity(.2), 29 | blurRadius: 10, 30 | ), 31 | ]; 32 | } 33 | 34 | 35 | 36 | 37 | class AnimatedFloatingActionButton extends StatefulWidget { 38 | final Function onTap; 39 | final Widget child; 40 | final Color backgroundColor; 41 | final bool wGradient; 42 | final double size; 43 | final double tappedSize; 44 | final BorderRadius borderRadius; 45 | final List gradientColors; 46 | final Duration duration; 47 | final bool wShadow; 48 | final List shadows; 49 | final BoxBorder border; 50 | 51 | const AnimatedFloatingActionButton({ 52 | Key key, 53 | @required this.child, 54 | @required this.onTap, 55 | this.backgroundColor, 56 | this.wGradient, 57 | this.size, 58 | this.tappedSize, 59 | this.borderRadius, 60 | this.gradientColors, 61 | this.duration, 62 | this.wShadow, 63 | this.shadows, 64 | this.border, 65 | }) : super(key: key); 66 | 67 | @override 68 | _AnimatedFloatingActionButtonstate createState() => 69 | _AnimatedFloatingActionButtonstate(); 70 | } 71 | 72 | class _AnimatedFloatingActionButtonstate 73 | extends State 74 | with SingleTickerProviderStateMixin { 75 | AnimationController _animationController; 76 | Animation _sizeAnimation; 77 | 78 | @override 79 | void initState() { 80 | super.initState(); 81 | _animationController = AnimationController( 82 | vsync: this, 83 | duration: (widget.duration != null) 84 | ? widget.duration 85 | : Duration(milliseconds: 250), 86 | ); 87 | 88 | _sizeAnimation = TweenSequence(>[ 89 | TweenSequenceItem( 90 | tween: Tween( 91 | begin: (widget.size != null) ? widget.size : 60, 92 | end: (widget.tappedSize != null) ? widget.tappedSize : 55, 93 | ), 94 | weight: (widget.size != null) ? widget.size : 60, 95 | ), 96 | ]).animate(_animationController); 97 | 98 | _animationController.addListener(() { 99 | setState(() {}); 100 | }); 101 | } 102 | 103 | @override 104 | void dispose() { 105 | _animationController.dispose(); 106 | super.dispose(); 107 | } 108 | 109 | @override 110 | Widget build(BuildContext context) { 111 | return GestureDetector( 112 | onTapDown: (details) { 113 | _animationController.forward(); 114 | }, 115 | onTapCancel: () { 116 | _animationController.reverse(); 117 | }, 118 | onTapUp: (details) { 119 | _animationController.reverse(); 120 | widget.onTap(); 121 | }, 122 | child: Container( 123 | height: _sizeAnimation.value, 124 | width: _sizeAnimation.value, 125 | decoration: buildBoxDecoration(), 126 | child: widget.child, 127 | ), 128 | ); 129 | } 130 | 131 | BoxDecoration buildBoxDecoration() { 132 | return BoxDecoration( 133 | color: (widget.backgroundColor != null) 134 | ? widget.backgroundColor 135 | : Colors.blue, 136 | borderRadius: (widget.borderRadius != null) 137 | ? widget.borderRadius 138 | : BorderRadius.circular(100), 139 | gradient: (widget.wGradient == false || widget.wGradient == null) 140 | ? null 141 | : LinearGradient(colors: widget.gradientColors), 142 | boxShadow: (widget.wShadow != null || widget.wShadow != false) 143 | ? widget.shadows 144 | : null, 145 | border: (widget.border != null) ? widget.border : null, 146 | ); 147 | } 148 | } 149 | -------------------------------------------------------------------------------- /lib/views/components/failed.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | 4 | Widget get failed => Container( 5 | color: Colors.white, 6 | child: Center( 7 | child: Padding( 8 | padding: const EdgeInsets.all(20), 9 | child: Text( 10 | "We can't found any note in database. Please press the refresh button or restart application. Also you can try add new note...", 11 | style: GoogleFonts.indieFlower(fontSize: 25), 12 | ), 13 | ), 14 | ), 15 | ); 16 | -------------------------------------------------------------------------------- /lib/views/components/loading.dart: -------------------------------------------------------------------------------- 1 | 2 | import 'package:flutter/material.dart'; 3 | 4 | Widget get loading { 5 | return Center( 6 | child: CircularProgressIndicator( 7 | valueColor: new AlwaysStoppedAnimation(Colors.black), 8 | ), 9 | ); 10 | } -------------------------------------------------------------------------------- /lib/views/screens/add_note.dart: -------------------------------------------------------------------------------- 1 | import 'package:fckapi/core/models/note.dart'; 2 | import 'package:fckapi/core/services/rest_fire_service.dart'; 3 | import 'package:fckapi/core/validator.dart'; 4 | import 'package:fckapi/views/widgets/animated_hover_button.dart'; 5 | import 'package:fckapi/views/widgets/custom_appbar.dart'; 6 | import 'package:fckapi/views/widgets/custom_field.dart'; 7 | import 'package:fckapi/views/widgets/opacity_widget.dart'; 8 | import 'package:flutter/material.dart'; 9 | class AddNote extends StatefulWidget { 10 | const AddNote({Key key}) : super(key: key); 11 | 12 | @override 13 | _AddNoteState createState() => _AddNoteState(); 14 | } 15 | 16 | class _AddNoteState extends State { 17 | var fireService = RestFireService(); 18 | String title = ""; 19 | String description = ""; 20 | final _formKey = GlobalKey(); 21 | 22 | @override 23 | Widget build(BuildContext context) { 24 | return Scaffold( 25 | appBar: buildCustomAppBar(context), 26 | body: Center( 27 | child: Padding( 28 | padding: const EdgeInsets.all(10), 29 | child: Form( 30 | key: _formKey, 31 | child: Column( 32 | mainAxisAlignment: MainAxisAlignment.center, 33 | children: [ 34 | buildTitleField(), 35 | SizedBox(height: 10), 36 | buildDesField(), 37 | SizedBox(height: 20), 38 | AnimatedHoverButton( 39 | title: "Save Note", 40 | borderRadius: BorderRadius.circular(10), 41 | onTap: () async { 42 | if (_formKey.currentState.validate()) { 43 | await fireService.postNote( 44 | Note( 45 | title: title, 46 | description: description, 47 | ), 48 | ); 49 | Navigator.pop(context); 50 | setState(() {}); 51 | } 52 | }, 53 | duration: Duration(milliseconds: 100), 54 | ), 55 | ], 56 | ), 57 | ), 58 | ), 59 | ), 60 | ); 61 | } 62 | 63 | CustomField buildDesField() { 64 | return CustomField( 65 | hint: "Bla bla bla blaa", 66 | maxLines: 10, 67 | onChanged: (val) { 68 | description = val; 69 | }, 70 | ); 71 | } 72 | 73 | CustomField buildTitleField() { 74 | return CustomField( 75 | hint: "Title", 76 | validation: TitleFieldValidator.validate, 77 | onChanged: (val) => title = val, 78 | ); 79 | } 80 | 81 | CustomAppBar buildCustomAppBar(BuildContext context) { 82 | return CustomAppBar( 83 | title: "Add Note", 84 | leading: Padding( 85 | padding: const EdgeInsets.only(left: 20, bottom: 10), 86 | child: OpacityButton( 87 | child: Icon(Icons.arrow_back_ios, color: Colors.black), 88 | onTap: () => Navigator.pop(context, true), 89 | opacityValue: .3, 90 | ), 91 | ), 92 | ); 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /lib/views/screens/home.dart: -------------------------------------------------------------------------------- 1 | import 'package:fckapi/core/models/note.dart'; 2 | import 'package:fckapi/core/services/rest_fire_service.dart'; 3 | import 'package:fckapi/views/screens/add_note.dart'; 4 | import 'package:fckapi/views/components/animated_custom_fab.dart'; 5 | import 'package:fckapi/views/components/failed.dart'; 6 | import 'package:fckapi/views/components/loading.dart'; 7 | import 'package:fckapi/views/widgets/custom_appbar.dart'; 8 | import 'package:fckapi/views/widgets/note_card.dart'; 9 | import 'package:fckapi/views/widgets/opacity_widget.dart'; 10 | import 'package:flutter/material.dart'; 11 | 12 | class Home extends StatefulWidget { 13 | @override 14 | _HomeState createState() => _HomeState(); 15 | } 16 | 17 | class _HomeState extends State { 18 | RestFireService fireService; 19 | 20 | @override 21 | void initState() { 22 | super.initState(); 23 | fireService = RestFireService(); 24 | } 25 | 26 | @override 27 | Widget build(BuildContext context) { 28 | return Scaffold( 29 | appBar: buildCustomAppBar(), 30 | body: buildBody(), 31 | floatingActionButton: buildAnimatedCustomFAB(() async { 32 | await Navigator.push( 33 | context, 34 | MaterialPageRoute( 35 | builder: (context) => AddNote(), 36 | ), 37 | ); 38 | setState(() {}); 39 | }), 40 | ); 41 | } 42 | 43 | FutureBuilder> buildBody() { 44 | return FutureBuilder>( 45 | future: fireService.fetchNotes(), 46 | builder: (context, snapshot) { 47 | switch (snapshot.connectionState) { 48 | case ConnectionState.done: 49 | if (snapshot.data != null) { 50 | return buildNoteList(snapshot); 51 | } else { 52 | return failed; 53 | } 54 | break; 55 | default: 56 | return loading; 57 | } 58 | }, 59 | ); 60 | } 61 | 62 | Padding buildNoteList(AsyncSnapshot> snapshot) { 63 | return Padding( 64 | padding: const EdgeInsets.all(10), 65 | child: ListView.builder( 66 | itemCount: snapshot.data.length, 67 | itemBuilder: (BuildContext context, int index) { 68 | return NoteCard( 69 | title: snapshot.data[index].title, 70 | description: snapshot.data[index].description, 71 | onTap: () async { 72 | await fireService.deleteNote( 73 | Note( 74 | key: snapshot.data[index].key, 75 | title: snapshot.data[index].title, 76 | description: snapshot.data[index].description, 77 | ), 78 | ); 79 | setState(() {}); 80 | }, 81 | ); 82 | }, 83 | ), 84 | ); 85 | } 86 | 87 | CustomAppBar buildCustomAppBar() { 88 | return CustomAppBar( 89 | title: "Rest Note", 90 | leading: Padding( 91 | padding: const EdgeInsets.only(left: 20, bottom: 10), 92 | child: OpacityButton( 93 | child: Icon( 94 | Icons.refresh, 95 | color: Colors.black, 96 | size: 30, 97 | ), 98 | onTap: () { 99 | setState(() {}); 100 | }, 101 | opacityValue: .3, 102 | ), 103 | ), 104 | ); 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /lib/views/widgets/animated_hover_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class AnimatedHoverButton extends StatefulWidget { 4 | final String title; 5 | final VoidCallback onTap; 6 | final Color borderColor; 7 | final Color spashColor; 8 | final Color titleColor; 9 | final Color tappedTitleColor; 10 | final double titleSize; 11 | final FontWeight fontWeight; 12 | final BorderRadiusGeometry borderRadius; 13 | final Duration duration; 14 | final double borderWidth; 15 | 16 | AnimatedHoverButton({ 17 | Key key, 18 | @required this.title, 19 | @required this.onTap, 20 | this.borderColor, 21 | this.spashColor, 22 | this.titleColor, 23 | this.tappedTitleColor, 24 | this.titleSize, 25 | this.borderRadius, 26 | this.fontWeight, 27 | this.duration, 28 | this.borderWidth, 29 | }) : super(key: key); 30 | 31 | @override 32 | _AnimatedHoverButtonState createState() => _AnimatedHoverButtonState(); 33 | } 34 | 35 | class _AnimatedHoverButtonState extends State 36 | with SingleTickerProviderStateMixin { 37 | AnimationController _animationController; 38 | Animation _colorAnimation; 39 | Animation _textColorAnimation; 40 | 41 | @override 42 | void initState() { 43 | super.initState(); 44 | _animationController = AnimationController( 45 | vsync: this, 46 | duration: (widget.duration != null) 47 | ? widget.duration 48 | : Duration(milliseconds: 300), 49 | ); 50 | 51 | _colorAnimation = ColorTween( 52 | begin: Colors.transparent, 53 | end: (widget.spashColor != null) ? widget.spashColor : Colors.black, 54 | ).animate(_animationController); 55 | 56 | _textColorAnimation = ColorTween( 57 | begin: (widget.titleColor != null) ? widget.titleColor : Colors.black, 58 | end: (widget.tappedTitleColor != null) 59 | ? widget.tappedTitleColor 60 | : Colors.white, 61 | ).animate(_animationController); 62 | 63 | _animationController.addListener(() { 64 | setState(() {}); 65 | }); 66 | } 67 | 68 | @override 69 | Widget build(BuildContext context) { 70 | return GestureDetector( 71 | onTapDown: (details) { 72 | _animationController.forward(); 73 | }, 74 | onTapCancel: () { 75 | _animationController.reverse(); 76 | }, 77 | onTapUp: (details) { 78 | _animationController.reverse(); 79 | widget.onTap(); 80 | }, 81 | child: AnimatedBuilder( 82 | animation: _animationController, 83 | builder: (context, child) { 84 | return Container( 85 | decoration: buildBoxDecorationOfAnimeHoverButton(), 86 | child: Padding( 87 | padding: const EdgeInsets.all(12), 88 | child: Text( 89 | (widget.title != null) ? widget.title : "Animated Hover Button", 90 | style: TextStyle( 91 | fontSize: widget.titleSize, 92 | color: _textColorAnimation.value, 93 | fontWeight: widget.fontWeight, 94 | ), 95 | ), 96 | ), 97 | ); 98 | }, 99 | ), 100 | ); 101 | } 102 | 103 | BoxDecoration buildBoxDecorationOfAnimeHoverButton() { 104 | return BoxDecoration( 105 | borderRadius: (widget.borderRadius == null) 106 | ? BorderRadius.circular(0) 107 | : widget.borderRadius, 108 | border: Border.all( 109 | width: (widget.borderWidth != null) ? widget.borderWidth : 2, 110 | color: (widget.borderColor != null) ? widget.borderColor : Colors.black, 111 | ), 112 | color: _colorAnimation.value, 113 | ); 114 | } 115 | } -------------------------------------------------------------------------------- /lib/views/widgets/custom_appbar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | 4 | class CustomAppBar extends StatelessWidget with PreferredSizeWidget { 5 | final Widget leading; 6 | final String title; 7 | const CustomAppBar({ 8 | Key key, 9 | this.leading, 10 | this.title, 11 | }) : super(key: key); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return AppBar( 16 | shadowColor: Colors.black, 17 | leading: (leading != null) 18 | ? leading 19 | : Icon(Icons.backpack, color: Colors.transparent), 20 | backgroundColor: Colors.white, 21 | shape: RoundedRectangleBorder( 22 | borderRadius: BorderRadius.only( 23 | bottomLeft: Radius.circular(50), 24 | bottomRight: Radius.circular(50), 25 | ), 26 | side: BorderSide(width: 2), 27 | ), 28 | title: Text( 29 | title, 30 | style: GoogleFonts.indieFlower(color: Colors.black, fontSize: 35), 31 | ), 32 | ); 33 | } 34 | 35 | @override 36 | Size get preferredSize => Size.fromHeight(65); 37 | } 38 | -------------------------------------------------------------------------------- /lib/views/widgets/custom_field.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | 4 | class CustomField extends StatelessWidget { 5 | final String hint; 6 | final Function(String) validation; 7 | final void Function(String) onChanged; 8 | final int maxLines; 9 | const CustomField({ 10 | Key key, 11 | this.hint, 12 | this.validation, 13 | this.onChanged, 14 | this.maxLines, 15 | }) : super(key: key); 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return TextFormField( 20 | decoration: buildInputDecoration(), 21 | maxLines: maxLines, 22 | cursorColor: Colors.black, 23 | validator: validation, 24 | onChanged: onChanged, 25 | style: GoogleFonts.indieFlower(fontSize: 20), 26 | ); 27 | } 28 | 29 | InputDecoration buildInputDecoration() { 30 | return InputDecoration( 31 | focusedBorder: OutlineInputBorder( 32 | borderRadius: BorderRadius.circular(25), 33 | borderSide: BorderSide(width: 2, color: Colors.black), 34 | ), 35 | enabledBorder: OutlineInputBorder( 36 | borderRadius: BorderRadius.circular(25), 37 | borderSide: BorderSide(width: 1.8, color: Colors.black), 38 | ), 39 | errorBorder: OutlineInputBorder( 40 | borderRadius: BorderRadius.circular(25), 41 | borderSide: BorderSide(width: 1.8, color: Colors.black), 42 | ), 43 | focusedErrorBorder: OutlineInputBorder( 44 | borderRadius: BorderRadius.circular(25), 45 | borderSide: BorderSide(width: 2, color: Colors.black), 46 | ), 47 | hintText: hint, 48 | hintStyle: GoogleFonts.indieFlower( 49 | fontSize: 17, 50 | color: Colors.black.withOpacity(.8), 51 | ), 52 | enabled: true, 53 | ); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /lib/views/widgets/note_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | 4 | import 'opacity_widget.dart'; 5 | 6 | class NoteCard extends StatelessWidget { 7 | final String title; 8 | final String description; 9 | final Function onTap; 10 | 11 | const NoteCard({ 12 | Key key, 13 | this.title, 14 | this.description, 15 | this.onTap, 16 | }) : super(key: key); 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return Padding( 21 | padding: const EdgeInsets.all(8), 22 | child: Card( 23 | shape: buildBoxShape(), 24 | child: Center( 25 | child: ListTile( 26 | title: buildTitle(), 27 | subtitle: buildSubtitle(), 28 | trailing: buildDeleteButton(), 29 | ), 30 | ), 31 | ), 32 | ); 33 | } 34 | 35 | RoundedRectangleBorder buildBoxShape() { 36 | return RoundedRectangleBorder( 37 | borderRadius: BorderRadius.circular(25), 38 | side: BorderSide(width: 2), 39 | ); 40 | } 41 | 42 | Text buildSubtitle() { 43 | return Text( 44 | description, 45 | style: GoogleFonts.indieFlower( 46 | fontSize: 18, 47 | color: Colors.black.withOpacity(.8), 48 | ), 49 | ); 50 | } 51 | 52 | Text buildTitle() { 53 | return Text( 54 | title, 55 | style: GoogleFonts.indieFlower( 56 | fontSize: 23, 57 | ), 58 | ); 59 | } 60 | 61 | OpacityButton buildDeleteButton() { 62 | return OpacityButton( 63 | child: Icon( 64 | Icons.delete, 65 | color: Colors.black, 66 | size: 30, 67 | ), 68 | onTap: onTap, 69 | opacityValue: .5, 70 | ); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /lib/views/widgets/opacity_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class OpacityButton extends StatefulWidget { 4 | final Widget child; 5 | 6 | final double opacityValue; 7 | 8 | final VoidCallback onTap; 9 | 10 | final bool alwaysIncludeSemantics; 11 | 12 | const OpacityButton({ 13 | Key key, 14 | @required this.child, 15 | this.opacityValue = .5, 16 | this.onTap, 17 | this.alwaysIncludeSemantics, 18 | }) : super(key: key); 19 | 20 | @override 21 | _OpacityButtonState createState() => _OpacityButtonState(); 22 | } 23 | 24 | class _OpacityButtonState extends State { 25 | bool _isTapped = false; 26 | 27 | void _setToTrue() => setState(() => _isTapped = true); 28 | 29 | void _setToFalse() => setState(() => _isTapped = false); 30 | 31 | @override 32 | Widget build(BuildContext context) { 33 | return GestureDetector( 34 | onTapDown: (_) => (widget.onTap != null) ? _setToTrue() : null, 35 | onTapCancel: () => (widget.onTap != null) ? _setToFalse() : null, 36 | onTapUp: (_) { 37 | if (widget.onTap != null) { 38 | _setToFalse(); 39 | return widget.onTap(); 40 | } 41 | }, 42 | child: _buttonBody(), 43 | ); 44 | } 45 | 46 | Opacity _buttonBody() => Opacity( 47 | opacity: _opacityValue, 48 | child: widget.child, 49 | alwaysIncludeSemantics: (widget.alwaysIncludeSemantics != null) 50 | ? widget.alwaysIncludeSemantics 51 | : false, 52 | ); 53 | 54 | double get _opacityValue => _isTapped ? widget.opacityValue : 1; 55 | } 56 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: fckapi 2 | description: A new Flutter project. 3 | 4 | publish_to: "none" 5 | 6 | version: 1.0.0+1 7 | 8 | environment: 9 | sdk: ">=2.7.0 <3.0.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | cupertino_icons: ^1.0.1 15 | google_fonts: ^1.1.1 16 | http: ^0.12.2 17 | 18 | dev_dependencies: 19 | flutter_test: 20 | sdk: flutter 21 | mockito: ^4.1.3 22 | 23 | flutter: 24 | uses-material-design: true 25 | -------------------------------------------------------------------------------- /test/field_validator_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_test/flutter_test.dart'; 2 | 3 | import '../lib/core/validator.dart'; 4 | 5 | void main() { 6 | TitleFieldValidator validator; 7 | var divider = 8 | "========================================================================================================"; 9 | 10 | setUp(() { 11 | validator = TitleFieldValidator(); 12 | }); 13 | 14 | test( 15 | "Less than 2 char - returns errorText", 16 | () { 17 | final result = TitleFieldValidator.validate("1"); 18 | expect(result, validator.errorText); 19 | print(divider); 20 | }, 21 | ); 22 | 23 | test( 24 | "More than 2 char - (Validated) so returns 'null' ", 25 | () { 26 | final result = TitleFieldValidator.validate("Test Title"); 27 | //so when field take more than 2 char field will validate so return null. 28 | expect(result, null); 29 | print(divider); 30 | }, 31 | ); 32 | } 33 | -------------------------------------------------------------------------------- /test/services/rest_fire_service_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:fckapi/core/models/note.dart'; 2 | import 'package:fckapi/core/services/rest_fire_service.dart'; 3 | import 'package:flutter_test/flutter_test.dart'; 4 | import 'package:mockito/mockito.dart'; 5 | 6 | class MockDatabase extends Mock implements RestFireService {} 7 | 8 | void main() { 9 | // MockDatabase mockDatabase; 10 | RestFireService restFireService; 11 | List allNotes; 12 | var divider = 13 | "========================================================================================================"; 14 | 15 | setUp(() async { 16 | restFireService = RestFireService(); 17 | allNotes = await restFireService.fetchNotes(); 18 | // mockDatabase = MockDatabase(); 19 | }); 20 | 21 | test( 22 | "Fetch Notes", 23 | () async { 24 | final response = await restFireService.fetchNotes(); 25 | expect(response is List, true); 26 | expect(response != null, true); 27 | expect(response.length > 0, true); 28 | print(divider); 29 | }, 30 | ); 31 | 32 | test( 33 | "Post Note", 34 | () async { 35 | final response = await restFireService.postNote( 36 | Note( 37 | title: "Test Title", 38 | description: "Test Description", 39 | ), 40 | ); 41 | expect(response != null && response != false, true); 42 | print(divider); 43 | }, 44 | ); 45 | 46 | test( 47 | "Delete Note", 48 | () async { 49 | int noteLenght = allNotes.length - 1; 50 | final response = await restFireService.deleteNote( 51 | Note( 52 | key: allNotes[noteLenght].key, 53 | title: allNotes[noteLenght].title, 54 | description: allNotes[noteLenght].description, 55 | ), 56 | ); 57 | expect(response != null && response != false, true); 58 | print(divider); 59 | }, 60 | ); 61 | } 62 | --------------------------------------------------------------------------------