├── .gitignore
├── .metadata
├── Assets
└── Fonts
│ ├── Roboto-Bold.ttf
│ ├── Roboto-Light.ttf
│ ├── Roboto-Medium.ttf
│ ├── Roboto-Regular.ttf
│ └── Roboto-Thin.ttf
├── README.md
├── android
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── aubergine
│ │ │ │ └── flutter
│ │ │ │ └── demo_13
│ │ │ │ └── MainActivity.java
│ │ └── 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
├── ios
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── 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
├── Models
│ ├── Note.dart
│ ├── SqliteHandler.dart
│ └── Utility.dart
├── ViewControllers
│ ├── HomePage.dart
│ ├── NotePage.dart
│ └── StaggeredView.dart
├── Views
│ ├── ColorSlider.dart
│ ├── MoreOptionsSheet.dart
│ └── StaggeredTiles.dart
└── main.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── widget_test.dart
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # Visual Studio Code related
19 | .vscode/
20 |
21 | # Flutter/Dart/Pub related
22 | **/doc/api/
23 | .dart_tool/
24 | .flutter-plugins
25 | .packages
26 | .pub-cache/
27 | .pub/
28 | /build/
29 |
30 | # Android related
31 | **/android/**/gradle-wrapper.jar
32 | **/android/.gradle
33 | **/android/captures/
34 | **/android/gradlew
35 | **/android/gradlew.bat
36 | **/android/local.properties
37 | **/android/**/GeneratedPluginRegistrant.java
38 |
39 | # iOS/XCode related
40 | **/ios/**/*.mode1v3
41 | **/ios/**/*.mode2v3
42 | **/ios/**/*.moved-aside
43 | **/ios/**/*.pbxuser
44 | **/ios/**/*.perspectivev3
45 | **/ios/**/*sync/
46 | **/ios/**/.sconsign.dblite
47 | **/ios/**/.tags*
48 | **/ios/**/.vagrant/
49 | **/ios/**/DerivedData/
50 | **/ios/**/Icon?
51 | **/ios/**/Pods/
52 | **/ios/**/.symlinks/
53 | **/ios/**/profile
54 | **/ios/**/xcuserdata
55 | **/ios/.generated/
56 | **/ios/Flutter/App.framework
57 | **/ios/Flutter/Flutter.framework
58 | **/ios/Flutter/Generated.xcconfig
59 | **/ios/Flutter/app.flx
60 | **/ios/Flutter/app.zip
61 | **/ios/Flutter/flutter_assets/
62 | **/ios/ServiceDefinitions.json
63 | **/ios/Runner/GeneratedPluginRegistrant.*
64 |
65 | # Exceptions to above rules.
66 | !**/ios/**/default.mode1v3
67 | !**/ios/**/default.mode2v3
68 | !**/ios/**/default.pbxuser
69 | !**/ios/**/default.perspectivev3
70 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
71 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 8661d8aecd626f7f57ccbcb735553edc05a2e713
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/Assets/Fonts/Roboto-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/Assets/Fonts/Roboto-Bold.ttf
--------------------------------------------------------------------------------
/Assets/Fonts/Roboto-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/Assets/Fonts/Roboto-Light.ttf
--------------------------------------------------------------------------------
/Assets/Fonts/Roboto-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/Assets/Fonts/Roboto-Medium.ttf
--------------------------------------------------------------------------------
/Assets/Fonts/Roboto-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/Assets/Fonts/Roboto-Regular.ttf
--------------------------------------------------------------------------------
/Assets/Fonts/Roboto-Thin.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/Assets/Fonts/Roboto-Thin.ttf
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Notes app in flutter
2 |
3 | codebook - theme, orientation, form focus.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook)
13 |
14 | For help getting started with Flutter, view our
15 | [online documentation](https://flutter.io/docs), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/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 from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26 |
27 | android {
28 | compileSdkVersion 28
29 |
30 | lintOptions {
31 | disable 'InvalidPackage'
32 | }
33 |
34 | defaultConfig {
35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
36 | applicationId "com.aubergine.flutter.demo_13"
37 | minSdkVersion 16
38 | targetSdkVersion 28
39 | versionCode flutterVersionCode.toInteger()
40 | versionName flutterVersionName
41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
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 | testImplementation 'junit:junit:4.12'
59 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
61 | }
62 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
9 |
13 |
20 |
24 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/aubergine/flutter/demo_13/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.aubergine.flutter.demo_13;
2 |
3 | import android.os.Bundle;
4 | import io.flutter.app.FlutterActivity;
5 | import io.flutter.plugins.GeneratedPluginRegistrant;
6 |
7 | public class MainActivity extends FlutterActivity {
8 | @Override
9 | protected void onCreate(Bundle savedInstanceState) {
10 | super.onCreate(savedInstanceState);
11 | GeneratedPluginRegistrant.registerWith(this);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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 | repositories {
3 | google()
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:3.2.1'
9 | }
10 | }
11 |
12 | allprojects {
13 | repositories {
14 | google()
15 | jcenter()
16 | }
17 | }
18 |
19 | rootProject.buildDir = '../build'
20 | subprojects {
21 | project.buildDir = "${rootProject.buildDir}/${project.name}"
22 | }
23 | subprojects {
24 | project.evaluationDependsOn(':app')
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 |
--------------------------------------------------------------------------------
/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-4.10.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 |
--------------------------------------------------------------------------------
/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 parse_KV_file(file, separator='=')
14 | file_abs_path = File.expand_path(file)
15 | if !File.exists? file_abs_path
16 | return [];
17 | end
18 | pods_ary = []
19 | skip_line_start_symbols = ["#", "/"]
20 | File.foreach(file_abs_path) { |line|
21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
22 | plugin = line.split(pattern=separator)
23 | if plugin.length == 2
24 | podname = plugin[0].strip()
25 | path = plugin[1].strip()
26 | podpath = File.expand_path("#{path}", file_abs_path)
27 | pods_ary.push({:name => podname, :path => podpath});
28 | else
29 | puts "Invalid plugin specification: #{line}"
30 | end
31 | }
32 | return pods_ary
33 | end
34 |
35 | target 'Runner' do
36 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
37 | # referring to absolute paths on developers' machines.
38 | system('rm -rf .symlinks')
39 | system('mkdir -p .symlinks/plugins')
40 |
41 | # Flutter Pods
42 | generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
43 | if generated_xcode_build_settings.empty?
44 | puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
45 | end
46 | generated_xcode_build_settings.map { |p|
47 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
48 | symlink = File.join('.symlinks', 'flutter')
49 | File.symlink(File.dirname(p[:path]), symlink)
50 | pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
51 | end
52 | }
53 |
54 | # Plugin Pods
55 | plugin_pods = parse_KV_file('../.flutter-plugins')
56 | plugin_pods.map { |p|
57 | symlink = File.join('.symlinks', 'plugins', p[:name])
58 | File.symlink(p[:path], symlink)
59 | pod p[:name], :path => File.join(symlink, 'ios')
60 | }
61 | end
62 |
63 | post_install do |installer|
64 | installer.pods_project.targets.each do |target|
65 | target.build_configurations.each do |config|
66 | config.build_settings['ENABLE_BITCODE'] = 'NO'
67 | end
68 | end
69 | end
70 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - FMDB (2.7.5):
4 | - FMDB/standard (= 2.7.5)
5 | - FMDB/standard (2.7.5)
6 | - share (0.5.2):
7 | - Flutter
8 | - sqflite (0.0.1):
9 | - Flutter
10 | - FMDB (~> 2.7.2)
11 |
12 | DEPENDENCIES:
13 | - Flutter (from `.symlinks/flutter/ios`)
14 | - share (from `.symlinks/plugins/share/ios`)
15 | - sqflite (from `.symlinks/plugins/sqflite/ios`)
16 |
17 | SPEC REPOS:
18 | https://github.com/cocoapods/specs.git:
19 | - FMDB
20 |
21 | EXTERNAL SOURCES:
22 | Flutter:
23 | :path: ".symlinks/flutter/ios"
24 | share:
25 | :path: ".symlinks/plugins/share/ios"
26 | sqflite:
27 | :path: ".symlinks/plugins/sqflite/ios"
28 |
29 | SPEC CHECKSUMS:
30 | Flutter: 9d0fac939486c9aba2809b7982dfdbb47a7b0296
31 | FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
32 | share: 222b5dcc8031238af9d7de91149df65bad1aef75
33 | sqflite: d1612813fa7db7c667bed9f1d1b508deffc56999
34 |
35 | PODFILE CHECKSUM: aff02bfeed411c636180d6812254b2daeea14d09
36 |
37 | COCOAPODS: 1.5.3
38 |
--------------------------------------------------------------------------------
/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 | 3045085DE0BAFFCD61C536D0 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C3B78314F6ABA3474CE34A50 /* libPods-Runner.a */; };
12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.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 | C3B78314F6ABA3474CE34A50 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
58 | /* End PBXFileReference section */
59 |
60 | /* Begin PBXFrameworksBuildPhase section */
61 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
62 | isa = PBXFrameworksBuildPhase;
63 | buildActionMask = 2147483647;
64 | files = (
65 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
66 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
67 | 3045085DE0BAFFCD61C536D0 /* libPods-Runner.a in Frameworks */,
68 | );
69 | runOnlyForDeploymentPostprocessing = 0;
70 | };
71 | /* End PBXFrameworksBuildPhase section */
72 |
73 | /* Begin PBXGroup section */
74 | 66F367F57F09119EF2F58885 /* Pods */ = {
75 | isa = PBXGroup;
76 | children = (
77 | );
78 | name = Pods;
79 | sourceTree = "";
80 | };
81 | 9740EEB11CF90186004384FC /* Flutter */ = {
82 | isa = PBXGroup;
83 | children = (
84 | 3B80C3931E831B6300D905FE /* App.framework */,
85 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
86 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
87 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
88 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
89 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
90 | );
91 | name = Flutter;
92 | sourceTree = "";
93 | };
94 | 97C146E51CF9000F007C117D = {
95 | isa = PBXGroup;
96 | children = (
97 | 9740EEB11CF90186004384FC /* Flutter */,
98 | 97C146F01CF9000F007C117D /* Runner */,
99 | 97C146EF1CF9000F007C117D /* Products */,
100 | 66F367F57F09119EF2F58885 /* Pods */,
101 | E07CD945A7129A689927F787 /* 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 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
117 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
118 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
119 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
120 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
121 | 97C147021CF9000F007C117D /* Info.plist */,
122 | 97C146F11CF9000F007C117D /* Supporting Files */,
123 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
124 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
125 | );
126 | path = Runner;
127 | sourceTree = "";
128 | };
129 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
130 | isa = PBXGroup;
131 | children = (
132 | 97C146F21CF9000F007C117D /* main.m */,
133 | );
134 | name = "Supporting Files";
135 | sourceTree = "";
136 | };
137 | E07CD945A7129A689927F787 /* Frameworks */ = {
138 | isa = PBXGroup;
139 | children = (
140 | C3B78314F6ABA3474CE34A50 /* libPods-Runner.a */,
141 | );
142 | name = Frameworks;
143 | sourceTree = "";
144 | };
145 | /* End PBXGroup section */
146 |
147 | /* Begin PBXNativeTarget section */
148 | 97C146ED1CF9000F007C117D /* Runner */ = {
149 | isa = PBXNativeTarget;
150 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
151 | buildPhases = (
152 | 1AFB662DE753F10890325880 /* [CP] Check Pods Manifest.lock */,
153 | 9740EEB61CF901F6004384FC /* Run Script */,
154 | 97C146EA1CF9000F007C117D /* Sources */,
155 | 97C146EB1CF9000F007C117D /* Frameworks */,
156 | 97C146EC1CF9000F007C117D /* Resources */,
157 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
158 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
159 | 6E78829F1295318B4A0D03E9 /* [CP] Embed Pods Frameworks */,
160 | );
161 | buildRules = (
162 | );
163 | dependencies = (
164 | );
165 | name = Runner;
166 | productName = Runner;
167 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
168 | productType = "com.apple.product-type.application";
169 | };
170 | /* End PBXNativeTarget section */
171 |
172 | /* Begin PBXProject section */
173 | 97C146E61CF9000F007C117D /* Project object */ = {
174 | isa = PBXProject;
175 | attributes = {
176 | LastUpgradeCheck = 0910;
177 | ORGANIZATIONNAME = "The Chromium Authors";
178 | TargetAttributes = {
179 | 97C146ED1CF9000F007C117D = {
180 | CreatedOnToolsVersion = 7.3.1;
181 | };
182 | };
183 | };
184 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
185 | compatibilityVersion = "Xcode 3.2";
186 | developmentRegion = English;
187 | hasScannedForEncodings = 0;
188 | knownRegions = (
189 | en,
190 | Base,
191 | );
192 | mainGroup = 97C146E51CF9000F007C117D;
193 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
194 | projectDirPath = "";
195 | projectRoot = "";
196 | targets = (
197 | 97C146ED1CF9000F007C117D /* Runner */,
198 | );
199 | };
200 | /* End PBXProject section */
201 |
202 | /* Begin PBXResourcesBuildPhase section */
203 | 97C146EC1CF9000F007C117D /* Resources */ = {
204 | isa = PBXResourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
208 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
209 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
210 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
211 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
212 | );
213 | runOnlyForDeploymentPostprocessing = 0;
214 | };
215 | /* End PBXResourcesBuildPhase section */
216 |
217 | /* Begin PBXShellScriptBuildPhase section */
218 | 1AFB662DE753F10890325880 /* [CP] Check Pods Manifest.lock */ = {
219 | isa = PBXShellScriptBuildPhase;
220 | buildActionMask = 2147483647;
221 | files = (
222 | );
223 | inputFileListPaths = (
224 | );
225 | inputPaths = (
226 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
227 | "${PODS_ROOT}/Manifest.lock",
228 | );
229 | name = "[CP] Check Pods Manifest.lock";
230 | outputFileListPaths = (
231 | );
232 | outputPaths = (
233 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
234 | );
235 | runOnlyForDeploymentPostprocessing = 0;
236 | shellPath = /bin/sh;
237 | 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";
238 | showEnvVarsInLog = 0;
239 | };
240 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
241 | isa = PBXShellScriptBuildPhase;
242 | buildActionMask = 2147483647;
243 | files = (
244 | );
245 | inputPaths = (
246 | );
247 | name = "Thin Binary";
248 | outputPaths = (
249 | );
250 | runOnlyForDeploymentPostprocessing = 0;
251 | shellPath = /bin/sh;
252 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
253 | };
254 | 6E78829F1295318B4A0D03E9 /* [CP] Embed Pods Frameworks */ = {
255 | isa = PBXShellScriptBuildPhase;
256 | buildActionMask = 2147483647;
257 | files = (
258 | );
259 | inputFileListPaths = (
260 | );
261 | inputPaths = (
262 | "${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
263 | "${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework",
264 | );
265 | name = "[CP] Embed Pods Frameworks";
266 | outputFileListPaths = (
267 | );
268 | outputPaths = (
269 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
270 | );
271 | runOnlyForDeploymentPostprocessing = 0;
272 | shellPath = /bin/sh;
273 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
274 | showEnvVarsInLog = 0;
275 | };
276 | 9740EEB61CF901F6004384FC /* Run Script */ = {
277 | isa = PBXShellScriptBuildPhase;
278 | buildActionMask = 2147483647;
279 | files = (
280 | );
281 | inputPaths = (
282 | );
283 | name = "Run Script";
284 | outputPaths = (
285 | );
286 | runOnlyForDeploymentPostprocessing = 0;
287 | shellPath = /bin/sh;
288 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
289 | };
290 | /* End PBXShellScriptBuildPhase section */
291 |
292 | /* Begin PBXSourcesBuildPhase section */
293 | 97C146EA1CF9000F007C117D /* Sources */ = {
294 | isa = PBXSourcesBuildPhase;
295 | buildActionMask = 2147483647;
296 | files = (
297 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
298 | 97C146F31CF9000F007C117D /* main.m in Sources */,
299 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
300 | );
301 | runOnlyForDeploymentPostprocessing = 0;
302 | };
303 | /* End PBXSourcesBuildPhase section */
304 |
305 | /* Begin PBXVariantGroup section */
306 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
307 | isa = PBXVariantGroup;
308 | children = (
309 | 97C146FB1CF9000F007C117D /* Base */,
310 | );
311 | name = Main.storyboard;
312 | sourceTree = "";
313 | };
314 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
315 | isa = PBXVariantGroup;
316 | children = (
317 | 97C147001CF9000F007C117D /* Base */,
318 | );
319 | name = LaunchScreen.storyboard;
320 | sourceTree = "";
321 | };
322 | /* End PBXVariantGroup section */
323 |
324 | /* Begin XCBuildConfiguration section */
325 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
326 | isa = XCBuildConfiguration;
327 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
328 | buildSettings = {
329 | ALWAYS_SEARCH_USER_PATHS = NO;
330 | CLANG_ANALYZER_NONNULL = YES;
331 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
332 | CLANG_CXX_LIBRARY = "libc++";
333 | CLANG_ENABLE_MODULES = YES;
334 | CLANG_ENABLE_OBJC_ARC = YES;
335 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
336 | CLANG_WARN_BOOL_CONVERSION = YES;
337 | CLANG_WARN_COMMA = YES;
338 | CLANG_WARN_CONSTANT_CONVERSION = YES;
339 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
340 | CLANG_WARN_EMPTY_BODY = YES;
341 | CLANG_WARN_ENUM_CONVERSION = YES;
342 | CLANG_WARN_INFINITE_RECURSION = YES;
343 | CLANG_WARN_INT_CONVERSION = YES;
344 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
345 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
346 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
347 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
348 | CLANG_WARN_STRICT_PROTOTYPES = YES;
349 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
350 | CLANG_WARN_UNREACHABLE_CODE = YES;
351 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
352 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
353 | COPY_PHASE_STRIP = NO;
354 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
355 | ENABLE_NS_ASSERTIONS = NO;
356 | ENABLE_STRICT_OBJC_MSGSEND = YES;
357 | GCC_C_LANGUAGE_STANDARD = gnu99;
358 | GCC_NO_COMMON_BLOCKS = YES;
359 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
360 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
361 | GCC_WARN_UNDECLARED_SELECTOR = YES;
362 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
363 | GCC_WARN_UNUSED_FUNCTION = YES;
364 | GCC_WARN_UNUSED_VARIABLE = YES;
365 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
366 | MTL_ENABLE_DEBUG_INFO = NO;
367 | SDKROOT = iphoneos;
368 | TARGETED_DEVICE_FAMILY = "1,2";
369 | VALIDATE_PRODUCT = YES;
370 | };
371 | name = Profile;
372 | };
373 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
374 | isa = XCBuildConfiguration;
375 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
376 | buildSettings = {
377 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
378 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
379 | DEVELOPMENT_TEAM = S8QB4VV633;
380 | ENABLE_BITCODE = NO;
381 | FRAMEWORK_SEARCH_PATHS = (
382 | "$(inherited)",
383 | "$(PROJECT_DIR)/Flutter",
384 | );
385 | INFOPLIST_FILE = Runner/Info.plist;
386 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
387 | LIBRARY_SEARCH_PATHS = (
388 | "$(inherited)",
389 | "$(PROJECT_DIR)/Flutter",
390 | );
391 | PRODUCT_BUNDLE_IDENTIFIER = com.aubergine.flutter.demo13;
392 | PRODUCT_NAME = "$(TARGET_NAME)";
393 | VERSIONING_SYSTEM = "apple-generic";
394 | };
395 | name = Profile;
396 | };
397 | 97C147031CF9000F007C117D /* Debug */ = {
398 | isa = XCBuildConfiguration;
399 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
400 | buildSettings = {
401 | ALWAYS_SEARCH_USER_PATHS = NO;
402 | CLANG_ANALYZER_NONNULL = YES;
403 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
404 | CLANG_CXX_LIBRARY = "libc++";
405 | CLANG_ENABLE_MODULES = YES;
406 | CLANG_ENABLE_OBJC_ARC = YES;
407 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
408 | CLANG_WARN_BOOL_CONVERSION = YES;
409 | CLANG_WARN_COMMA = YES;
410 | CLANG_WARN_CONSTANT_CONVERSION = YES;
411 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
412 | CLANG_WARN_EMPTY_BODY = YES;
413 | CLANG_WARN_ENUM_CONVERSION = YES;
414 | CLANG_WARN_INFINITE_RECURSION = YES;
415 | CLANG_WARN_INT_CONVERSION = YES;
416 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
417 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
418 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
419 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
420 | CLANG_WARN_STRICT_PROTOTYPES = YES;
421 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
422 | CLANG_WARN_UNREACHABLE_CODE = YES;
423 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
424 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
425 | COPY_PHASE_STRIP = NO;
426 | DEBUG_INFORMATION_FORMAT = dwarf;
427 | ENABLE_STRICT_OBJC_MSGSEND = YES;
428 | ENABLE_TESTABILITY = YES;
429 | GCC_C_LANGUAGE_STANDARD = gnu99;
430 | GCC_DYNAMIC_NO_PIC = NO;
431 | GCC_NO_COMMON_BLOCKS = YES;
432 | GCC_OPTIMIZATION_LEVEL = 0;
433 | GCC_PREPROCESSOR_DEFINITIONS = (
434 | "DEBUG=1",
435 | "$(inherited)",
436 | );
437 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
438 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
439 | GCC_WARN_UNDECLARED_SELECTOR = YES;
440 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
441 | GCC_WARN_UNUSED_FUNCTION = YES;
442 | GCC_WARN_UNUSED_VARIABLE = YES;
443 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
444 | MTL_ENABLE_DEBUG_INFO = YES;
445 | ONLY_ACTIVE_ARCH = YES;
446 | SDKROOT = iphoneos;
447 | TARGETED_DEVICE_FAMILY = "1,2";
448 | };
449 | name = Debug;
450 | };
451 | 97C147041CF9000F007C117D /* Release */ = {
452 | isa = XCBuildConfiguration;
453 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
454 | buildSettings = {
455 | ALWAYS_SEARCH_USER_PATHS = NO;
456 | CLANG_ANALYZER_NONNULL = YES;
457 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
458 | CLANG_CXX_LIBRARY = "libc++";
459 | CLANG_ENABLE_MODULES = YES;
460 | CLANG_ENABLE_OBJC_ARC = YES;
461 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
462 | CLANG_WARN_BOOL_CONVERSION = YES;
463 | CLANG_WARN_COMMA = YES;
464 | CLANG_WARN_CONSTANT_CONVERSION = YES;
465 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
466 | CLANG_WARN_EMPTY_BODY = YES;
467 | CLANG_WARN_ENUM_CONVERSION = YES;
468 | CLANG_WARN_INFINITE_RECURSION = YES;
469 | CLANG_WARN_INT_CONVERSION = YES;
470 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
471 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
472 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
473 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
474 | CLANG_WARN_STRICT_PROTOTYPES = YES;
475 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
476 | CLANG_WARN_UNREACHABLE_CODE = YES;
477 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
478 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
479 | COPY_PHASE_STRIP = NO;
480 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
481 | ENABLE_NS_ASSERTIONS = NO;
482 | ENABLE_STRICT_OBJC_MSGSEND = YES;
483 | GCC_C_LANGUAGE_STANDARD = gnu99;
484 | GCC_NO_COMMON_BLOCKS = YES;
485 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
486 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
487 | GCC_WARN_UNDECLARED_SELECTOR = YES;
488 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
489 | GCC_WARN_UNUSED_FUNCTION = YES;
490 | GCC_WARN_UNUSED_VARIABLE = YES;
491 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
492 | MTL_ENABLE_DEBUG_INFO = NO;
493 | SDKROOT = iphoneos;
494 | TARGETED_DEVICE_FAMILY = "1,2";
495 | VALIDATE_PRODUCT = YES;
496 | };
497 | name = Release;
498 | };
499 | 97C147061CF9000F007C117D /* Debug */ = {
500 | isa = XCBuildConfiguration;
501 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
502 | buildSettings = {
503 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
504 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
505 | ENABLE_BITCODE = NO;
506 | FRAMEWORK_SEARCH_PATHS = (
507 | "$(inherited)",
508 | "$(PROJECT_DIR)/Flutter",
509 | );
510 | INFOPLIST_FILE = Runner/Info.plist;
511 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
512 | LIBRARY_SEARCH_PATHS = (
513 | "$(inherited)",
514 | "$(PROJECT_DIR)/Flutter",
515 | );
516 | PRODUCT_BUNDLE_IDENTIFIER = com.aubergine.flutter.demo13;
517 | PRODUCT_NAME = "$(TARGET_NAME)";
518 | VERSIONING_SYSTEM = "apple-generic";
519 | };
520 | name = Debug;
521 | };
522 | 97C147071CF9000F007C117D /* Release */ = {
523 | isa = XCBuildConfiguration;
524 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
525 | buildSettings = {
526 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
527 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
528 | ENABLE_BITCODE = NO;
529 | FRAMEWORK_SEARCH_PATHS = (
530 | "$(inherited)",
531 | "$(PROJECT_DIR)/Flutter",
532 | );
533 | INFOPLIST_FILE = Runner/Info.plist;
534 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
535 | LIBRARY_SEARCH_PATHS = (
536 | "$(inherited)",
537 | "$(PROJECT_DIR)/Flutter",
538 | );
539 | PRODUCT_BUNDLE_IDENTIFIER = com.aubergine.flutter.demo13;
540 | PRODUCT_NAME = "$(TARGET_NAME)";
541 | VERSIONING_SYSTEM = "apple-generic";
542 | };
543 | name = Release;
544 | };
545 | /* End XCBuildConfiguration section */
546 |
547 | /* Begin XCConfigurationList section */
548 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
549 | isa = XCConfigurationList;
550 | buildConfigurations = (
551 | 97C147031CF9000F007C117D /* Debug */,
552 | 97C147041CF9000F007C117D /* Release */,
553 | 249021D3217E4FDB00AE95B9 /* Profile */,
554 | );
555 | defaultConfigurationIsVisible = 0;
556 | defaultConfigurationName = Release;
557 | };
558 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
559 | isa = XCConfigurationList;
560 | buildConfigurations = (
561 | 97C147061CF9000F007C117D /* Debug */,
562 | 97C147071CF9000F007C117D /* Release */,
563 | 249021D4217E4FDB00AE95B9 /* Profile */,
564 | );
565 | defaultConfigurationIsVisible = 0;
566 | defaultConfigurationName = Release;
567 | };
568 | /* End XCConfigurationList section */
569 | };
570 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
571 | }
572 |
--------------------------------------------------------------------------------
/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 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/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
7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
8 | [GeneratedPluginRegistrant registerWithRegistry:self];
9 | // Override point for customization after application launch.
10 | return [super application:application didFinishLaunchingWithOptions:launchOptions];
11 | }
12 |
13 | @end
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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jayjonas1996/flutter_notes/8647d0e2d617bbc9fa5294b4b3f52dad64c4493e/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 | demo_13
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/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/Models/Note.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'package:flutter/material.dart';
3 |
4 |
5 | class Note {
6 | int id;
7 | String title;
8 | String content;
9 | DateTime date_created;
10 | DateTime date_last_edited;
11 | Color note_color;
12 | int is_archived = 0;
13 |
14 | Note(this.id, this.title, this.content, this.date_created, this.date_last_edited,this.note_color);
15 |
16 |
17 | Map toMap(bool forUpdate) {
18 | var data = {
19 | // 'id': id, since id is auto incremented in the database we don't need to send it to the insert query.
20 | 'title': utf8.encode(title),
21 | 'content': utf8.encode( content ),
22 | 'date_created': epochFromDate( date_created ),
23 | 'date_last_edited': epochFromDate( date_last_edited ),
24 | 'note_color': note_color.value,
25 | 'is_archived': is_archived // for later use for integrating archiving
26 | };
27 | if(forUpdate){
28 | data["id"] = this.id;
29 | }
30 | return data;
31 | }
32 |
33 | // Converting the date time object into int representing seconds passed after midnight 1st Jan, 1970 UTC
34 | int epochFromDate(DateTime dt) {
35 | return dt.millisecondsSinceEpoch ~/ 1000 ;
36 | }
37 |
38 | void archiveThisNote() {
39 | is_archived = 1;
40 | }
41 |
42 | // overriding toString() of the note class to print a better debug description of this custom class
43 | @override toString() {
44 | return {
45 | 'id': id,
46 | 'title': title,
47 | 'content': content ,
48 | 'date_created': epochFromDate( date_created ),
49 | 'date_last_edited': epochFromDate( date_last_edited ),
50 | 'note_color': note_color.toString(),
51 | 'is_archived':is_archived
52 | }.toString();
53 | }
54 |
55 | }
--------------------------------------------------------------------------------
/lib/Models/SqliteHandler.dart:
--------------------------------------------------------------------------------
1 | import 'package:sqflite/sqflite.dart';
2 | import 'package:path/path.dart';
3 | import 'package:sqflite/sqlite_api.dart';
4 | import 'dart:async';
5 | import 'Note.dart';
6 |
7 | class NotesDBHandler {
8 |
9 | final databaseName = "notes.db";
10 | final tableName = "notes";
11 |
12 |
13 | final fieldMap = {
14 | "id": "INTEGER PRIMARY KEY AUTOINCREMENT",
15 | "title": "BLOB",
16 | "content": "BLOB",
17 | "date_created": "INTEGER",
18 | "date_last_edited": "INTEGER",
19 | "note_color": "INTEGER",
20 | "is_archived": "INTEGER"
21 | };
22 |
23 |
24 | static Database _database;
25 |
26 |
27 | Future get database async {
28 | if (_database != null)
29 | return _database;
30 |
31 | _database = await initDB();
32 | return _database;
33 | }
34 |
35 |
36 | initDB() async {
37 | var path = await getDatabasesPath();
38 | var dbPath = join(path, 'notes.db');
39 | // ignore: argument_type_not_assignable
40 | Database dbConnection = await openDatabase(
41 | dbPath, version: 1, onCreate: (Database db, int version) async {
42 | print("executing create query from onCreate callback");
43 | await db.execute(_buildCreateQuery());
44 | });
45 |
46 | await dbConnection.execute(_buildCreateQuery());
47 | _buildCreateQuery();
48 | return dbConnection;
49 | }
50 |
51 |
52 | // build the create query dynamically using the column:field dictionary.
53 | String _buildCreateQuery() {
54 | String query = "CREATE TABLE IF NOT EXISTS ";
55 | query += tableName;
56 | query += "(";
57 | fieldMap.forEach((column, field){
58 | print("$column : $field");
59 | query += "$column $field,";
60 | });
61 |
62 |
63 | query = query.substring(0, query.length-1);
64 | query += " )";
65 |
66 | return query;
67 |
68 | }
69 |
70 | static Future dbPath() async {
71 | String path = await getDatabasesPath();
72 | return path;
73 | }
74 |
75 | Future insertNote(Note note, bool isNew) async {
76 | // Get a reference to the database
77 | final Database db = await database;
78 | print("insert called");
79 |
80 | // Insert the Notes into the correct table.
81 | await db.insert('notes',
82 | isNew ? note.toMap(false) : note.toMap(true),
83 | conflictAlgorithm: ConflictAlgorithm.replace,
84 | );
85 |
86 | if (isNew) {
87 | // get latest note which isn't archived, limit by 1
88 | var one = await db.query("notes", orderBy: "date_last_edited desc",
89 | where: "is_archived = ?",
90 | whereArgs: [0],
91 | limit: 1);
92 | int latestId = one.first["id"] as int;
93 | return latestId;
94 | }
95 | return note.id;
96 | }
97 |
98 |
99 | Future copyNote(Note note) async {
100 | final Database db = await database;
101 | try {
102 | await db.insert("notes",note.toMap(false), conflictAlgorithm: ConflictAlgorithm.replace);
103 | } catch(Error) {
104 | print(Error);
105 | return false;
106 | }
107 | return true;
108 | }
109 |
110 |
111 | Future archiveNote(Note note) async {
112 | if (note.id != -1) {
113 | final Database db = await database;
114 |
115 | int idToUpdate = note.id;
116 |
117 | db.update("notes", note.toMap(true), where: "id = ?",
118 | whereArgs: [idToUpdate]);
119 | }
120 | }
121 |
122 | Future deleteNote(Note note) async {
123 | if(note.id != -1) {
124 | final Database db = await database;
125 | try {
126 | await db.delete("notes",where: "id = ?",whereArgs: [note.id]);
127 | return true;
128 | } catch (Error){
129 | print("Error deleting ${note.id}: ${Error.toString()}");
130 | return false;
131 | }
132 | }
133 | }
134 |
135 |
136 | Future>> selectAllNotes() async {
137 | final Database db = await database;
138 | // query all the notes sorted by last edited
139 | var data = await db.query("notes", orderBy: "date_last_edited desc",
140 | where: "is_archived = ?",
141 | whereArgs: [0]);
142 |
143 | return data;
144 |
145 | }
146 |
147 |
148 |
149 | }
150 |
151 |
--------------------------------------------------------------------------------
/lib/Models/Utility.dart:
--------------------------------------------------------------------------------
1 | import 'package:intl/intl.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class CentralStation {
5 | static bool _updateNeeded ;
6 |
7 | static final fontColor = Color(0xff595959);
8 | static final borderColor = Color(0xffd3d3d3) ;
9 |
10 | static init() {
11 | if (_updateNeeded == null)
12 | _updateNeeded = true;
13 | }
14 | static bool get updateNeeded {
15 | init();
16 | if (_updateNeeded) {
17 | return true;
18 | } else {
19 | return false;
20 | }
21 | }
22 |
23 | static set updateNeeded(value){
24 | _updateNeeded = value;
25 | }
26 |
27 | static String stringForDatetime(DateTime dt){
28 |
29 | var dtInLocal = dt.toLocal();
30 | //DateTime.fromMillisecondsSinceEpoch( 1490489845 * 1000).toLocal(); //year: 1490489845 //>day: 1556152819 //month: 1553561845 // 1){
43 | var monthFormat = DateFormat("MMM d");
44 | dateString += monthFormat.format(dtInLocal);
45 | } else {
46 | var yearFormat = DateFormat("MMM d y");
47 | dateString += yearFormat.format(dtInLocal);
48 | }
49 |
50 | return dateString;
51 | }
52 |
53 | }
--------------------------------------------------------------------------------
/lib/ViewControllers/HomePage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'StaggeredView.dart';
3 | import '../Models/Note.dart';
4 | import 'NotePage.dart';
5 | import '../Models/Utility.dart';
6 |
7 | enum viewType {
8 | List,
9 | Staggered
10 | }
11 |
12 |
13 | class HomePage extends StatefulWidget {
14 | @override
15 | _HomePageState createState() => _HomePageState();
16 | }
17 |
18 | class _HomePageState extends State {
19 |
20 | var notesViewType ;
21 | @override void initState() {
22 | notesViewType = viewType.Staggered;
23 | }
24 |
25 | @override
26 | Widget build(BuildContext context) {
27 |
28 | return
29 | Scaffold(
30 | resizeToAvoidBottomPadding: false,
31 | appBar: AppBar(brightness: Brightness.light,
32 | actions: _appBarActions(),
33 | elevation: 1,
34 | backgroundColor: Colors.white,
35 | centerTitle: true,
36 | title: Text("Notes"),
37 | ),
38 | body: SafeArea(child: _body(), right: true, left: true, top: true, bottom: true,),
39 | bottomSheet: _bottomBar(),
40 | );
41 |
42 | }
43 |
44 | Widget _body() {
45 | print(notesViewType);
46 | return Container(child: StaggeredGridPage(notesViewType: notesViewType,));
47 | }
48 |
49 | Widget _bottomBar() {
50 | return Row(
51 | mainAxisAlignment: MainAxisAlignment.center,
52 | children: [
53 | FlatButton(
54 | child: Text(
55 | "New Note\n",
56 | style: TextStyle(color: Colors.grey, fontWeight: FontWeight.bold),
57 | ),
58 | onPressed: () => _newNoteTapped(context),
59 | )
60 | ],
61 | );
62 | }
63 |
64 |
65 | void _newNoteTapped(BuildContext ctx) {
66 | // "-1" id indicates the note is not new
67 | var emptyNote = new Note(-1, "", "", DateTime.now(), DateTime.now(), Colors.white);
68 | Navigator.push(ctx,MaterialPageRoute(builder: (ctx) => NotePage(emptyNote)));
69 | }
70 |
71 | void _toggleViewType(){
72 | setState(() {
73 | CentralStation.updateNeeded = true;
74 | if(notesViewType == viewType.List)
75 | {
76 | notesViewType = viewType.Staggered;
77 |
78 | } else {
79 | notesViewType = viewType.List;
80 | }
81 |
82 | });
83 | }
84 |
85 | List _appBarActions() {
86 |
87 | return [
88 | Padding(
89 | padding: EdgeInsets.symmetric(horizontal: 12),
90 | child: InkWell(
91 | child: GestureDetector(
92 | onTap: () => _toggleViewType() ,
93 | child: Icon(
94 | notesViewType == viewType.List ? Icons.developer_board : Icons.view_headline,
95 | color: CentralStation.fontColor,
96 | ),
97 | ),
98 | ),
99 | ),
100 | ];
101 | }
102 |
103 |
104 | }
105 |
--------------------------------------------------------------------------------
/lib/ViewControllers/NotePage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../Models/Note.dart';
3 | import '../Models/SqliteHandler.dart';
4 | import 'dart:async';
5 | import '../Models/Utility.dart';
6 | import '../Views/MoreOptionsSheet.dart';
7 | import 'package:share/share.dart';
8 | import 'package:flutter/services.dart';
9 |
10 | class NotePage extends StatefulWidget {
11 | final Note noteInEditing;
12 |
13 | NotePage(this.noteInEditing);
14 | @override
15 | _NotePageState createState() => _NotePageState();
16 | }
17 |
18 | class _NotePageState extends State {
19 | final _titleController = TextEditingController();
20 | final _contentController = TextEditingController();
21 | var note_color;
22 | bool _isNewNote = false;
23 | final _titleFocus = FocusNode();
24 | final _contentFocus = FocusNode();
25 |
26 | String _titleFrominitial ;
27 | String _contentFromInitial;
28 | DateTime _lastEditedForUndo;
29 |
30 |
31 |
32 | var _editableNote;
33 |
34 | // the timer variable responsible to call persistData function every 5 seconds and cancel the timer when the page pops.
35 | Timer _persistenceTimer;
36 |
37 | final GlobalKey _globalKey = new GlobalKey();
38 |
39 | @override
40 | void initState() {
41 | _editableNote = widget.noteInEditing;
42 | _titleController.text = _editableNote.title;
43 | _contentController.text = _editableNote.content;
44 | note_color = _editableNote.note_color;
45 | _lastEditedForUndo = widget.noteInEditing.date_last_edited;
46 |
47 | _titleFrominitial = widget.noteInEditing.title;
48 | _contentFromInitial = widget.noteInEditing.content;
49 |
50 |
51 | if (widget.noteInEditing.id == -1) {
52 | _isNewNote = true;
53 | }
54 | _persistenceTimer = new Timer.periodic(Duration(seconds: 5), (timer) {
55 | // call insert query here
56 | print("5 seconds passed");
57 | print("editable note id: ${_editableNote.id}");
58 | _persistData();
59 | });
60 | }
61 |
62 | @override
63 | Widget build(BuildContext context) {
64 |
65 | if(_editableNote.id == -1 && _editableNote.title.isEmpty) {
66 | FocusScope.of(context).requestFocus(_titleFocus);
67 | }
68 |
69 | return WillPopScope(
70 | child: Scaffold(
71 | key: _globalKey,
72 | appBar: AppBar(brightness: Brightness.light,
73 | leading: BackButton(
74 | color: Colors.black,
75 | ),
76 | actions: _archiveAction(context),
77 | elevation: 1,
78 | backgroundColor: note_color,
79 | title: _pageTitle(),
80 | ),
81 | body: _body(context),
82 | ),
83 | onWillPop: _readyToPop,
84 | );
85 | }
86 |
87 | Widget _body(BuildContext ctx) {
88 | return
89 |
90 | Container(
91 | color: note_color,
92 | padding: EdgeInsets.only(left: 16, right: 16, top: 12),
93 | child:
94 |
95 | SafeArea(child:
96 | Column(
97 | mainAxisAlignment: MainAxisAlignment.start,
98 | children: [
99 | Flexible(
100 | child: Container(
101 | padding: EdgeInsets.all(5),
102 | // decoration: BoxDecoration(border: Border.all(color: CentralStation.borderColor,width: 1 ),borderRadius: BorderRadius.all(Radius.circular(10)) ),
103 | child: EditableText(
104 | onChanged: (str) => {updateNoteObject()},
105 | maxLines: null,
106 | controller: _titleController,
107 | focusNode: _titleFocus,
108 | style: TextStyle(
109 | color: Colors.black,
110 | fontSize: 22,
111 | fontWeight: FontWeight.bold),
112 | cursorColor: Colors.blue,
113 | backgroundCursorColor: Colors.blue),
114 | ),
115 | ),
116 |
117 | Divider(color: CentralStation.borderColor,),
118 |
119 | Flexible( child: Container(
120 | padding: EdgeInsets.all(5),
121 | // decoration: BoxDecoration(border: Border.all(color: CentralStation.borderColor,width: 1),borderRadius: BorderRadius.all(Radius.circular(10)) ),
122 | child: EditableText(
123 | onChanged: (str) => {updateNoteObject()},
124 | maxLines: 300, // line limit extendable later
125 | controller: _contentController,
126 | focusNode: _contentFocus,
127 | style: TextStyle(color: Colors.black, fontSize: 20),
128 | backgroundCursorColor: Colors.red,
129 | cursorColor: Colors.blue,
130 | )
131 | )
132 | )
133 |
134 | ],
135 | ),
136 | left: true,right: true,top: false,bottom: false,
137 | )
138 | )
139 |
140 |
141 |
142 | ;
143 | }
144 |
145 | Widget _pageTitle() {
146 | return Text(_editableNote.id == -1 ? "New Note" : "Edit Note");
147 | }
148 |
149 |
150 |
151 | List _archiveAction(BuildContext context) {
152 | List actions = [];
153 | if (widget.noteInEditing.id != -1) {
154 | actions.add(Padding(
155 | padding: EdgeInsets.symmetric(horizontal: 12),
156 | child: InkWell(
157 | child: GestureDetector(
158 | onTap: () => _undo(),
159 | child: Icon(
160 | Icons.undo,
161 | color: CentralStation.fontColor,
162 | ),
163 | ),
164 | ),
165 | ));
166 | }
167 | actions += [
168 | Padding(
169 | padding: EdgeInsets.symmetric(horizontal: 12),
170 | child: InkWell(
171 | child: GestureDetector(
172 | onTap: () => _archivePopup(context),
173 | child: Icon(
174 | Icons.archive,
175 | color: CentralStation.fontColor,
176 | ),
177 | ),
178 | ),
179 | ),
180 | Padding(
181 | padding: EdgeInsets.symmetric(horizontal: 12),
182 | child: InkWell(
183 | child: GestureDetector(
184 | onTap: () => bottomSheet(context),
185 | child: Icon(
186 | Icons.more_vert,
187 | color: CentralStation.fontColor,
188 | ),
189 | ),
190 | ),
191 | ),
192 | Padding(
193 | padding: EdgeInsets.symmetric(horizontal: 12),
194 | child: InkWell(
195 | child: GestureDetector(
196 | onTap: () => { _saveAndStartNewNote(context) },
197 | child: Icon(
198 | Icons.add,
199 | color: CentralStation.fontColor,
200 | ),
201 | ),
202 | ),
203 | )
204 | ];
205 | return actions;
206 | }
207 |
208 | void bottomSheet(BuildContext context) {
209 | showModalBottomSheet(
210 | context: context,
211 | builder: (BuildContext ctx) {
212 | return MoreOptionsSheet(
213 | color: note_color,
214 | callBackColorTapped: _changeColor,
215 | callBackOptionTapped: bottomSheetOptionTappedHandler,
216 | date_last_edited: _editableNote.date_last_edited,
217 | );
218 | });
219 | }
220 |
221 | void _persistData() {
222 | updateNoteObject();
223 |
224 | if (_editableNote.content.isNotEmpty) {
225 | var noteDB = NotesDBHandler();
226 |
227 | if (_editableNote.id == -1) {
228 | Future autoIncrementedId =
229 | noteDB.insertNote(_editableNote, true); // for new note
230 | // set the id of the note from the database after inserting the new note so for next persisting
231 | autoIncrementedId.then((value) {
232 | _editableNote.id = value;
233 | });
234 | } else {
235 | noteDB.insertNote(
236 | _editableNote, false); // for updating the existing note
237 | }
238 | }
239 | }
240 |
241 | // this function will ne used to save the updated editing value of the note to the local variables as user types
242 | void updateNoteObject() {
243 | _editableNote.content = _contentController.text;
244 | _editableNote.title = _titleController.text;
245 | _editableNote.note_color = note_color;
246 | print("new content: ${_editableNote.content}");
247 | print(widget.noteInEditing);
248 | print(_editableNote);
249 |
250 | print("same title? ${_editableNote.title == _titleFrominitial}");
251 | print("same content? ${_editableNote.content == _contentFromInitial}");
252 |
253 |
254 | if (!(_editableNote.title == _titleFrominitial &&
255 | _editableNote.content == _contentFromInitial) ||
256 | (_isNewNote)) {
257 | // No changes to the note
258 | // Change last edit time only if the content of the note is mutated in compare to the note which the page was called with.
259 | _editableNote.date_last_edited = DateTime.now();
260 | print("Updating date_last_edited");
261 | CentralStation.updateNeeded = true;
262 | }
263 | }
264 |
265 | void bottomSheetOptionTappedHandler(moreOptions tappedOption) {
266 | print("option tapped: $tappedOption");
267 | switch (tappedOption) {
268 | case moreOptions.delete:
269 | {
270 | if (_editableNote.id != -1) {
271 | _deleteNote(_globalKey.currentContext);
272 | } else {
273 | _exitWithoutSaving(context);
274 | }
275 | break;
276 | }
277 | case moreOptions.share:
278 | {
279 | if (_editableNote.content.isNotEmpty) {
280 | Share.share("${_editableNote.title}\n${_editableNote.content}");
281 | }
282 | break;
283 | }
284 | case moreOptions.copy : {
285 | _copy();
286 | break;
287 | }
288 | }
289 | }
290 |
291 | void _deleteNote(BuildContext context) {
292 | if (_editableNote.id != -1) {
293 | showDialog(
294 | context: context,
295 | builder: (BuildContext context) {
296 | return AlertDialog(
297 | title: Text("Confirm ?"),
298 | content: Text("This note will be deleted permanently"),
299 | actions: [
300 | FlatButton(
301 | onPressed: () {
302 | _persistenceTimer.cancel();
303 | var noteDB = NotesDBHandler();
304 | Navigator.of(context).pop();
305 | noteDB.deleteNote(_editableNote);
306 | CentralStation.updateNeeded = true;
307 |
308 | Navigator.of(context).pop();
309 |
310 | },
311 | child: Text("Yes")),
312 | FlatButton(
313 | onPressed: () => {Navigator.of(context).pop()},
314 | child: Text("No"))
315 | ],
316 | );
317 | });
318 | }
319 | }
320 |
321 | void _changeColor(Color newColorSelected) {
322 | print("note color changed");
323 | setState(() {
324 | note_color = newColorSelected;
325 | _editableNote.note_color = newColorSelected;
326 | });
327 | _persistColorChange();
328 | CentralStation.updateNeeded = true;
329 | }
330 |
331 | void _persistColorChange() {
332 | if (_editableNote.id != -1) {
333 | var noteDB = NotesDBHandler();
334 | _editableNote.note_color = note_color;
335 | noteDB.insertNote(_editableNote, false);
336 | }
337 | }
338 |
339 | void _saveAndStartNewNote(BuildContext context){
340 | _persistenceTimer.cancel();
341 | var emptyNote = new Note(-1, "", "", DateTime.now(), DateTime.now(), Colors.white);
342 | Navigator.of(context).pop();
343 | Navigator.push(context, MaterialPageRoute(builder: (ctx) => NotePage(emptyNote)));
344 |
345 | }
346 |
347 | Future _readyToPop() async {
348 | _persistenceTimer.cancel();
349 | //show saved toast after calling _persistData function.
350 |
351 | _persistData();
352 | return true;
353 | }
354 |
355 | void _archivePopup(BuildContext context) {
356 | if (_editableNote.id != -1) {
357 | showDialog(
358 | context: context,
359 | builder: (BuildContext context) {
360 | return AlertDialog(
361 | title: Text("Confirm ?"),
362 | content: Text("This note will be archived"),
363 | actions: [
364 | FlatButton(
365 | onPressed: () => _archiveThisNote(context),
366 | child: Text("Yes")),
367 | FlatButton(
368 | onPressed: () => {Navigator.of(context).pop()},
369 | child: Text("No"))
370 | ],
371 | );
372 | });
373 | } else {
374 | _exitWithoutSaving(context);
375 | }
376 | }
377 |
378 | void _exitWithoutSaving(BuildContext context) {
379 | _persistenceTimer.cancel();
380 | CentralStation.updateNeeded = false;
381 | Navigator.of(context).pop();
382 | }
383 |
384 | void _archiveThisNote(BuildContext context) {
385 | Navigator.of(context).pop();
386 | // set archived flag to true and send the entire note object in the database to be updated
387 | _editableNote.is_archived = 1;
388 | var noteDB = NotesDBHandler();
389 | noteDB.archiveNote(_editableNote);
390 | // update will be required to remove the archived note from the staggered view
391 | CentralStation.updateNeeded = true;
392 | _persistenceTimer.cancel(); // shutdown the timer
393 |
394 | Navigator.of(context).pop(); // pop back to staggered view
395 | // TODO: OPTIONAL show the toast of deletion completion
396 | Scaffold.of(context).showSnackBar(new SnackBar(content: Text("deleted")));
397 | }
398 |
399 | void _copy(){
400 | var noteDB = NotesDBHandler();
401 | Note copy = Note(-1,
402 | _editableNote.title,
403 | _editableNote.content,
404 | DateTime.now(),
405 | DateTime.now(),
406 | _editableNote.note_color) ;
407 |
408 |
409 | var status = noteDB.copyNote(copy);
410 | status.then((query_success){
411 | if (query_success){
412 | CentralStation.updateNeeded = true;
413 | Navigator.of(_globalKey.currentContext).pop();
414 | }
415 | });
416 | }
417 |
418 |
419 |
420 | void _undo() {
421 | _titleController.text = _titleFrominitial;// widget.noteInEditing.title;
422 | _contentController.text = _contentFromInitial;// widget.noteInEditing.content;
423 | _editableNote.date_last_edited = _lastEditedForUndo;// widget.noteInEditing.date_last_edited;
424 | }
425 | }
426 |
--------------------------------------------------------------------------------
/lib/ViewControllers/StaggeredView.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart';
4 | import '../Models/Note.dart';
5 | import '../Models/SqliteHandler.dart';
6 | import '../Models/Utility.dart';
7 | import '../Views/StaggeredTiles.dart';
8 | import 'HomePage.dart';
9 |
10 | class StaggeredGridPage extends StatefulWidget {
11 | final notesViewType;
12 | const StaggeredGridPage({Key key, this.notesViewType}) : super(key: key);
13 | @override
14 | _StaggeredGridPageState createState() => _StaggeredGridPageState();
15 | }
16 |
17 | class _StaggeredGridPageState extends State {
18 |
19 | var noteDB = NotesDBHandler();
20 | List