├── .flutter-plugins-dependencies
├── .gitignore
├── .metadata
├── README.md
├── android
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── studio
│ │ │ │ └── rideout
│ │ │ │ └── flutter_hive_example
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── ios
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ ├── Flutter.podspec
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── 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
├── main.dart
├── models
│ ├── contact.dart
│ ├── contact.g.dart
│ └── contact_data.dart
├── screens
│ ├── contact_add_screen.dart
│ ├── contact_edit_screen.dart
│ ├── contact_list_screen.dart
│ └── contact_view_screen.dart
└── widgets
│ ├── common_toast.dart
│ ├── contact_list.dart
│ └── contact_tile.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── widget_test.dart
/.flutter-plugins-dependencies:
--------------------------------------------------------------------------------
1 | {"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"fluttertoast","dependencies":[]},{"name":"path_provider","dependencies":[]}]}
--------------------------------------------------------------------------------
/.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 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | .dart_tool/
26 | .flutter-plugins
27 | .packages
28 | .pub-cache/
29 | .pub/
30 | /build/
31 |
32 | # Android related
33 | **/android/**/gradle-wrapper.jar
34 | **/android/.gradle
35 | **/android/captures/
36 | **/android/gradlew
37 | **/android/gradlew.bat
38 | **/android/local.properties
39 | **/android/**/GeneratedPluginRegistrant.java
40 |
41 | # iOS/XCode related
42 | **/ios/**/*.mode1v3
43 | **/ios/**/*.mode2v3
44 | **/ios/**/*.moved-aside
45 | **/ios/**/*.pbxuser
46 | **/ios/**/*.perspectivev3
47 | **/ios/**/*sync/
48 | **/ios/**/.sconsign.dblite
49 | **/ios/**/.tags*
50 | **/ios/**/.vagrant/
51 | **/ios/**/DerivedData/
52 | **/ios/**/Icon?
53 | **/ios/**/Pods/
54 | **/ios/**/.symlinks/
55 | **/ios/**/profile
56 | **/ios/**/xcuserdata
57 | **/ios/.generated/
58 | **/ios/Flutter/App.framework
59 | **/ios/Flutter/Flutter.framework
60 | **/ios/Flutter/Generated.xcconfig
61 | **/ios/Flutter/app.flx
62 | **/ios/Flutter/app.zip
63 | **/ios/Flutter/flutter_assets/
64 | **/ios/Flutter/flutter_export_environment.sh
65 | **/ios/ServiceDefinitions.json
66 | **/ios/Runner/GeneratedPluginRegistrant.*
67 |
68 | # Exceptions to above rules.
69 | !**/ios/**/default.mode1v3
70 | !**/ios/**/default.mode2v3
71 | !**/ios/**/default.pbxuser
72 | !**/ios/**/default.perspectivev3
73 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
74 |
--------------------------------------------------------------------------------
/.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: 68587a0916366e9512a78df22c44163d041dd5f3
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Flutter Hive Provider Example
2 | A basic contact management flutter app demonstrating the use of **Provider** for state management and **Hive** for persistent data storage.
3 |
4 | - [Hive](https://pub.dev/packages/hive)
5 | - [Provider](https://pub.dev/packages/provider)
6 |
7 | Every time persistent data is changed _(when a contact is added or deleted from hive)_, the provider data is refreshed from hive. The ui is updated by calling `notifyListeners();`.
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 28
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "studio.rideout.flutter_hive_example"
42 | minSdkVersion 16
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
47 | }
48 |
49 | buildTypes {
50 | release {
51 | // TODO: Add your own signing config for the release build.
52 | // Signing with the debug keys for now, so `flutter run --release` works.
53 | signingConfig signingConfigs.debug
54 | }
55 | }
56 | }
57 |
58 | flutter {
59 | source '../..'
60 | }
61 |
62 | dependencies {
63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64 | testImplementation 'junit:junit:4.12'
65 | androidTestImplementation 'androidx.test.ext:junit:1.1.1'
66 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
67 | }
68 |
--------------------------------------------------------------------------------
/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/kotlin/studio/rideout/flutter_hive_example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package studio.rideout.flutter_hive_example
2 |
3 | import android.os.Bundle
4 |
5 | import io.flutter.app.FlutterActivity
6 | import io.flutter.plugins.GeneratedPluginRegistrant
7 |
8 | class MainActivity: FlutterActivity() {
9 | override fun onCreate(savedInstanceState: Bundle?) {
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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.10'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.5.3'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | android.enableJetifier=true
2 | android.useAndroidX=true
3 | org.gradle.jvmargs=-Xmx1536M
4 |
5 | android.enableR8=true
6 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Tue Dec 24 21:23:01 EST 2019
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-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 | $(DEVELOPMENT_LANGUAGE)
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/Flutter.podspec:
--------------------------------------------------------------------------------
1 | #
2 | # NOTE: This podspec is NOT to be published. It is only used as a local source!
3 | #
4 |
5 | Pod::Spec.new do |s|
6 | s.name = 'Flutter'
7 | s.version = '1.0.0'
8 | s.summary = 'High-performance, high-fidelity mobile apps.'
9 | s.description = <<-DESC
10 | Flutter provides an easy and productive way to build and deploy high-performance mobile apps for Android and iOS.
11 | DESC
12 | s.homepage = 'https://flutter.io'
13 | s.license = { :type => 'MIT' }
14 | s.author = { 'Flutter Dev Team' => 'flutter-dev@googlegroups.com' }
15 | s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s }
16 | s.ios.deployment_target = '8.0'
17 | s.vendored_frameworks = 'Flutter.framework'
18 | end
19 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "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 | generated_key_values = {}
19 | skip_line_start_symbols = ["#", "/"]
20 | File.foreach(file_abs_path) do |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 | generated_key_values[podname] = podpath
28 | else
29 | puts "Invalid plugin specification: #{line}"
30 | end
31 | end
32 | generated_key_values
33 | end
34 |
35 | target 'Runner' do
36 | use_frameworks!
37 | use_modular_headers!
38 |
39 | # Flutter Pod
40 |
41 | copied_flutter_dir = File.join(__dir__, 'Flutter')
42 | copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
43 | copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
44 | unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)
45 | # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
46 | # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
47 | # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
48 |
49 | generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
50 | unless File.exist?(generated_xcode_build_settings_path)
51 | raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
52 | end
53 | generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
54 | cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];
55 |
56 | unless File.exist?(copied_framework_path)
57 | FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
58 | end
59 | unless File.exist?(copied_podspec_path)
60 | FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
61 | end
62 | end
63 |
64 | # Keep pod path relative so it can be checked into Podfile.lock.
65 | pod 'Flutter', :path => 'Flutter'
66 |
67 | # Plugin Pods
68 |
69 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
70 | # referring to absolute paths on developers' machines.
71 | system('rm -rf .symlinks')
72 | system('mkdir -p .symlinks/plugins')
73 | plugin_pods = parse_KV_file('../.flutter-plugins')
74 | plugin_pods.each do |name, path|
75 | symlink = File.join('.symlinks', 'plugins', name)
76 | File.symlink(path, symlink)
77 | pod name, :path => File.join(symlink, 'ios')
78 | end
79 | end
80 |
81 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
82 | install! 'cocoapods', :disable_input_output_paths => true
83 |
84 | post_install do |installer|
85 | installer.pods_project.targets.each do |target|
86 | target.build_configurations.each do |config|
87 | config.build_settings['ENABLE_BITCODE'] = 'NO'
88 | end
89 | end
90 | end
91 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - fluttertoast (0.0.2):
4 | - Flutter
5 | - path_provider (0.0.1):
6 | - Flutter
7 |
8 | DEPENDENCIES:
9 | - Flutter (from `Flutter`)
10 | - fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
11 | - path_provider (from `.symlinks/plugins/path_provider/ios`)
12 |
13 | EXTERNAL SOURCES:
14 | Flutter:
15 | :path: Flutter
16 | fluttertoast:
17 | :path: ".symlinks/plugins/fluttertoast/ios"
18 | path_provider:
19 | :path: ".symlinks/plugins/path_provider/ios"
20 |
21 | SPEC CHECKSUMS:
22 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
23 | fluttertoast: b644586ef3b16f67fae9a1f8754cef6b2d6b634b
24 | path_provider: fb74bd0465e96b594bb3b5088ee4a4e7bb1f2a9d
25 |
26 | PODFILE CHECKSUM: 1b66dae606f75376c5f2135a8290850eeb09ae83
27 |
28 | COCOAPODS: 1.8.4
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 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
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 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
19 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
20 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
21 | E6F2246CE661340C515C77DF /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 88DC90C0C09807BC19712BF5 /* Pods_Runner.framework */; };
22 | /* End PBXBuildFile section */
23 |
24 | /* Begin PBXCopyFilesBuildPhase section */
25 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
26 | isa = PBXCopyFilesBuildPhase;
27 | buildActionMask = 2147483647;
28 | dstPath = "";
29 | dstSubfolderSpec = 10;
30 | files = (
31 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
32 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
33 | );
34 | name = "Embed Frameworks";
35 | runOnlyForDeploymentPostprocessing = 0;
36 | };
37 | /* End PBXCopyFilesBuildPhase section */
38 |
39 | /* Begin PBXFileReference section */
40 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
41 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
42 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
43 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
44 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
45 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
46 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
47 | 88DC90C0C09807BC19712BF5 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
48 | 96A5649C34A90D0312DC8036 /* 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 = ""; };
49 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
50 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
51 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
52 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
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 | 99DE678C8766D36CA978AB83 /* 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 = ""; };
58 | BF353E3E2BEDEE16D5F4D5FB /* 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 = ""; };
59 | /* End PBXFileReference section */
60 |
61 | /* Begin PBXFrameworksBuildPhase section */
62 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
63 | isa = PBXFrameworksBuildPhase;
64 | buildActionMask = 2147483647;
65 | files = (
66 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
67 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
68 | E6F2246CE661340C515C77DF /* Pods_Runner.framework in Frameworks */,
69 | );
70 | runOnlyForDeploymentPostprocessing = 0;
71 | };
72 | /* End PBXFrameworksBuildPhase section */
73 |
74 | /* Begin PBXGroup section */
75 | 9740EEB11CF90186004384FC /* Flutter */ = {
76 | isa = PBXGroup;
77 | children = (
78 | 3B80C3931E831B6300D905FE /* App.framework */,
79 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
80 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
81 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
82 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
83 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
84 | );
85 | name = Flutter;
86 | sourceTree = "";
87 | };
88 | 97C146E51CF9000F007C117D = {
89 | isa = PBXGroup;
90 | children = (
91 | 9740EEB11CF90186004384FC /* Flutter */,
92 | 97C146F01CF9000F007C117D /* Runner */,
93 | 97C146EF1CF9000F007C117D /* Products */,
94 | C3634FB5F929FFC1905FB637 /* Pods */,
95 | F1F656D5A8FDA859708ABDA2 /* Frameworks */,
96 | );
97 | sourceTree = "";
98 | };
99 | 97C146EF1CF9000F007C117D /* Products */ = {
100 | isa = PBXGroup;
101 | children = (
102 | 97C146EE1CF9000F007C117D /* Runner.app */,
103 | );
104 | name = Products;
105 | sourceTree = "";
106 | };
107 | 97C146F01CF9000F007C117D /* Runner */ = {
108 | isa = PBXGroup;
109 | children = (
110 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
111 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
112 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
113 | 97C147021CF9000F007C117D /* Info.plist */,
114 | 97C146F11CF9000F007C117D /* Supporting Files */,
115 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
116 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
117 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
118 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
119 | );
120 | path = Runner;
121 | sourceTree = "";
122 | };
123 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
124 | isa = PBXGroup;
125 | children = (
126 | );
127 | name = "Supporting Files";
128 | sourceTree = "";
129 | };
130 | C3634FB5F929FFC1905FB637 /* Pods */ = {
131 | isa = PBXGroup;
132 | children = (
133 | 99DE678C8766D36CA978AB83 /* Pods-Runner.debug.xcconfig */,
134 | BF353E3E2BEDEE16D5F4D5FB /* Pods-Runner.release.xcconfig */,
135 | 96A5649C34A90D0312DC8036 /* Pods-Runner.profile.xcconfig */,
136 | );
137 | name = Pods;
138 | path = Pods;
139 | sourceTree = "";
140 | };
141 | F1F656D5A8FDA859708ABDA2 /* Frameworks */ = {
142 | isa = PBXGroup;
143 | children = (
144 | 88DC90C0C09807BC19712BF5 /* Pods_Runner.framework */,
145 | );
146 | name = Frameworks;
147 | sourceTree = "";
148 | };
149 | /* End PBXGroup section */
150 |
151 | /* Begin PBXNativeTarget section */
152 | 97C146ED1CF9000F007C117D /* Runner */ = {
153 | isa = PBXNativeTarget;
154 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
155 | buildPhases = (
156 | E38D4A90EFADFE21731A5DF3 /* [CP] Check Pods Manifest.lock */,
157 | 9740EEB61CF901F6004384FC /* Run Script */,
158 | 97C146EA1CF9000F007C117D /* Sources */,
159 | 97C146EB1CF9000F007C117D /* Frameworks */,
160 | 97C146EC1CF9000F007C117D /* Resources */,
161 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
162 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
163 | 7E2C199AC79503FB3C0C00C7 /* [CP] Embed Pods Frameworks */,
164 | );
165 | buildRules = (
166 | );
167 | dependencies = (
168 | );
169 | name = Runner;
170 | productName = Runner;
171 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
172 | productType = "com.apple.product-type.application";
173 | };
174 | /* End PBXNativeTarget section */
175 |
176 | /* Begin PBXProject section */
177 | 97C146E61CF9000F007C117D /* Project object */ = {
178 | isa = PBXProject;
179 | attributes = {
180 | LastUpgradeCheck = 1020;
181 | ORGANIZATIONNAME = "The Chromium Authors";
182 | TargetAttributes = {
183 | 97C146ED1CF9000F007C117D = {
184 | CreatedOnToolsVersion = 7.3.1;
185 | LastSwiftMigration = 0910;
186 | };
187 | };
188 | };
189 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
190 | compatibilityVersion = "Xcode 3.2";
191 | developmentRegion = en;
192 | hasScannedForEncodings = 0;
193 | knownRegions = (
194 | en,
195 | Base,
196 | );
197 | mainGroup = 97C146E51CF9000F007C117D;
198 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
199 | projectDirPath = "";
200 | projectRoot = "";
201 | targets = (
202 | 97C146ED1CF9000F007C117D /* Runner */,
203 | );
204 | };
205 | /* End PBXProject section */
206 |
207 | /* Begin PBXResourcesBuildPhase section */
208 | 97C146EC1CF9000F007C117D /* Resources */ = {
209 | isa = PBXResourcesBuildPhase;
210 | buildActionMask = 2147483647;
211 | files = (
212 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
213 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
214 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
215 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
216 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
217 | );
218 | runOnlyForDeploymentPostprocessing = 0;
219 | };
220 | /* End PBXResourcesBuildPhase section */
221 |
222 | /* Begin PBXShellScriptBuildPhase section */
223 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
224 | isa = PBXShellScriptBuildPhase;
225 | buildActionMask = 2147483647;
226 | files = (
227 | );
228 | inputPaths = (
229 | );
230 | name = "Thin Binary";
231 | outputPaths = (
232 | );
233 | runOnlyForDeploymentPostprocessing = 0;
234 | shellPath = /bin/sh;
235 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
236 | };
237 | 7E2C199AC79503FB3C0C00C7 /* [CP] Embed Pods Frameworks */ = {
238 | isa = PBXShellScriptBuildPhase;
239 | buildActionMask = 2147483647;
240 | files = (
241 | );
242 | inputPaths = (
243 | );
244 | name = "[CP] Embed Pods Frameworks";
245 | outputPaths = (
246 | );
247 | runOnlyForDeploymentPostprocessing = 0;
248 | shellPath = /bin/sh;
249 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
250 | showEnvVarsInLog = 0;
251 | };
252 | 9740EEB61CF901F6004384FC /* Run Script */ = {
253 | isa = PBXShellScriptBuildPhase;
254 | buildActionMask = 2147483647;
255 | files = (
256 | );
257 | inputPaths = (
258 | );
259 | name = "Run Script";
260 | outputPaths = (
261 | );
262 | runOnlyForDeploymentPostprocessing = 0;
263 | shellPath = /bin/sh;
264 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
265 | };
266 | E38D4A90EFADFE21731A5DF3 /* [CP] Check Pods Manifest.lock */ = {
267 | isa = PBXShellScriptBuildPhase;
268 | buildActionMask = 2147483647;
269 | files = (
270 | );
271 | inputFileListPaths = (
272 | );
273 | inputPaths = (
274 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
275 | "${PODS_ROOT}/Manifest.lock",
276 | );
277 | name = "[CP] Check Pods Manifest.lock";
278 | outputFileListPaths = (
279 | );
280 | outputPaths = (
281 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
282 | );
283 | runOnlyForDeploymentPostprocessing = 0;
284 | shellPath = /bin/sh;
285 | 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";
286 | showEnvVarsInLog = 0;
287 | };
288 | /* End PBXShellScriptBuildPhase section */
289 |
290 | /* Begin PBXSourcesBuildPhase section */
291 | 97C146EA1CF9000F007C117D /* Sources */ = {
292 | isa = PBXSourcesBuildPhase;
293 | buildActionMask = 2147483647;
294 | files = (
295 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
296 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
297 | );
298 | runOnlyForDeploymentPostprocessing = 0;
299 | };
300 | /* End PBXSourcesBuildPhase section */
301 |
302 | /* Begin PBXVariantGroup section */
303 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
304 | isa = PBXVariantGroup;
305 | children = (
306 | 97C146FB1CF9000F007C117D /* Base */,
307 | );
308 | name = Main.storyboard;
309 | sourceTree = "";
310 | };
311 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
312 | isa = PBXVariantGroup;
313 | children = (
314 | 97C147001CF9000F007C117D /* Base */,
315 | );
316 | name = LaunchScreen.storyboard;
317 | sourceTree = "";
318 | };
319 | /* End PBXVariantGroup section */
320 |
321 | /* Begin XCBuildConfiguration section */
322 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
323 | isa = XCBuildConfiguration;
324 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
325 | buildSettings = {
326 | ALWAYS_SEARCH_USER_PATHS = NO;
327 | CLANG_ANALYZER_NONNULL = YES;
328 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
329 | CLANG_CXX_LIBRARY = "libc++";
330 | CLANG_ENABLE_MODULES = YES;
331 | CLANG_ENABLE_OBJC_ARC = YES;
332 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
333 | CLANG_WARN_BOOL_CONVERSION = YES;
334 | CLANG_WARN_COMMA = YES;
335 | CLANG_WARN_CONSTANT_CONVERSION = YES;
336 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
337 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
338 | CLANG_WARN_EMPTY_BODY = YES;
339 | CLANG_WARN_ENUM_CONVERSION = YES;
340 | CLANG_WARN_INFINITE_RECURSION = YES;
341 | CLANG_WARN_INT_CONVERSION = YES;
342 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
343 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
344 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
345 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
346 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
347 | CLANG_WARN_STRICT_PROTOTYPES = YES;
348 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
349 | CLANG_WARN_UNREACHABLE_CODE = YES;
350 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
351 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
352 | COPY_PHASE_STRIP = NO;
353 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
354 | ENABLE_NS_ASSERTIONS = NO;
355 | ENABLE_STRICT_OBJC_MSGSEND = YES;
356 | GCC_C_LANGUAGE_STANDARD = gnu99;
357 | GCC_NO_COMMON_BLOCKS = YES;
358 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
359 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
360 | GCC_WARN_UNDECLARED_SELECTOR = YES;
361 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
362 | GCC_WARN_UNUSED_FUNCTION = YES;
363 | GCC_WARN_UNUSED_VARIABLE = YES;
364 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
365 | MTL_ENABLE_DEBUG_INFO = NO;
366 | SDKROOT = iphoneos;
367 | TARGETED_DEVICE_FAMILY = "1,2";
368 | VALIDATE_PRODUCT = YES;
369 | };
370 | name = Profile;
371 | };
372 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
373 | isa = XCBuildConfiguration;
374 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
375 | buildSettings = {
376 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
377 | CLANG_ENABLE_MODULES = YES;
378 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
379 | ENABLE_BITCODE = NO;
380 | FRAMEWORK_SEARCH_PATHS = (
381 | "$(inherited)",
382 | "$(PROJECT_DIR)/Flutter",
383 | );
384 | INFOPLIST_FILE = Runner/Info.plist;
385 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
386 | LIBRARY_SEARCH_PATHS = (
387 | "$(inherited)",
388 | "$(PROJECT_DIR)/Flutter",
389 | );
390 | PRODUCT_BUNDLE_IDENTIFIER = studio.rideout.flutterHiveExample;
391 | PRODUCT_NAME = "$(TARGET_NAME)";
392 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
393 | SWIFT_VERSION = 4.0;
394 | VERSIONING_SYSTEM = "apple-generic";
395 | };
396 | name = Profile;
397 | };
398 | 97C147031CF9000F007C117D /* Debug */ = {
399 | isa = XCBuildConfiguration;
400 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
401 | buildSettings = {
402 | ALWAYS_SEARCH_USER_PATHS = NO;
403 | CLANG_ANALYZER_NONNULL = YES;
404 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
405 | CLANG_CXX_LIBRARY = "libc++";
406 | CLANG_ENABLE_MODULES = YES;
407 | CLANG_ENABLE_OBJC_ARC = YES;
408 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
409 | CLANG_WARN_BOOL_CONVERSION = YES;
410 | CLANG_WARN_COMMA = YES;
411 | CLANG_WARN_CONSTANT_CONVERSION = YES;
412 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
413 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
414 | CLANG_WARN_EMPTY_BODY = YES;
415 | CLANG_WARN_ENUM_CONVERSION = YES;
416 | CLANG_WARN_INFINITE_RECURSION = YES;
417 | CLANG_WARN_INT_CONVERSION = YES;
418 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
419 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
420 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
421 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
422 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
423 | CLANG_WARN_STRICT_PROTOTYPES = YES;
424 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
425 | CLANG_WARN_UNREACHABLE_CODE = YES;
426 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
427 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
428 | COPY_PHASE_STRIP = NO;
429 | DEBUG_INFORMATION_FORMAT = dwarf;
430 | ENABLE_STRICT_OBJC_MSGSEND = YES;
431 | ENABLE_TESTABILITY = YES;
432 | GCC_C_LANGUAGE_STANDARD = gnu99;
433 | GCC_DYNAMIC_NO_PIC = NO;
434 | GCC_NO_COMMON_BLOCKS = YES;
435 | GCC_OPTIMIZATION_LEVEL = 0;
436 | GCC_PREPROCESSOR_DEFINITIONS = (
437 | "DEBUG=1",
438 | "$(inherited)",
439 | );
440 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
441 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
442 | GCC_WARN_UNDECLARED_SELECTOR = YES;
443 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
444 | GCC_WARN_UNUSED_FUNCTION = YES;
445 | GCC_WARN_UNUSED_VARIABLE = YES;
446 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
447 | MTL_ENABLE_DEBUG_INFO = YES;
448 | ONLY_ACTIVE_ARCH = YES;
449 | SDKROOT = iphoneos;
450 | TARGETED_DEVICE_FAMILY = "1,2";
451 | };
452 | name = Debug;
453 | };
454 | 97C147041CF9000F007C117D /* Release */ = {
455 | isa = XCBuildConfiguration;
456 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
457 | buildSettings = {
458 | ALWAYS_SEARCH_USER_PATHS = NO;
459 | CLANG_ANALYZER_NONNULL = YES;
460 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
461 | CLANG_CXX_LIBRARY = "libc++";
462 | CLANG_ENABLE_MODULES = YES;
463 | CLANG_ENABLE_OBJC_ARC = YES;
464 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
465 | CLANG_WARN_BOOL_CONVERSION = YES;
466 | CLANG_WARN_COMMA = YES;
467 | CLANG_WARN_CONSTANT_CONVERSION = YES;
468 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
469 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
470 | CLANG_WARN_EMPTY_BODY = YES;
471 | CLANG_WARN_ENUM_CONVERSION = YES;
472 | CLANG_WARN_INFINITE_RECURSION = YES;
473 | CLANG_WARN_INT_CONVERSION = YES;
474 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
475 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
476 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
477 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
478 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
479 | CLANG_WARN_STRICT_PROTOTYPES = YES;
480 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
481 | CLANG_WARN_UNREACHABLE_CODE = YES;
482 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
483 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
484 | COPY_PHASE_STRIP = NO;
485 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
486 | ENABLE_NS_ASSERTIONS = NO;
487 | ENABLE_STRICT_OBJC_MSGSEND = YES;
488 | GCC_C_LANGUAGE_STANDARD = gnu99;
489 | GCC_NO_COMMON_BLOCKS = YES;
490 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
491 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
492 | GCC_WARN_UNDECLARED_SELECTOR = YES;
493 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
494 | GCC_WARN_UNUSED_FUNCTION = YES;
495 | GCC_WARN_UNUSED_VARIABLE = YES;
496 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
497 | MTL_ENABLE_DEBUG_INFO = NO;
498 | SDKROOT = iphoneos;
499 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
500 | TARGETED_DEVICE_FAMILY = "1,2";
501 | VALIDATE_PRODUCT = YES;
502 | };
503 | name = Release;
504 | };
505 | 97C147061CF9000F007C117D /* Debug */ = {
506 | isa = XCBuildConfiguration;
507 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
508 | buildSettings = {
509 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
510 | CLANG_ENABLE_MODULES = YES;
511 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
512 | ENABLE_BITCODE = NO;
513 | FRAMEWORK_SEARCH_PATHS = (
514 | "$(inherited)",
515 | "$(PROJECT_DIR)/Flutter",
516 | );
517 | INFOPLIST_FILE = Runner/Info.plist;
518 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
519 | LIBRARY_SEARCH_PATHS = (
520 | "$(inherited)",
521 | "$(PROJECT_DIR)/Flutter",
522 | );
523 | PRODUCT_BUNDLE_IDENTIFIER = studio.rideout.flutterHiveExample;
524 | PRODUCT_NAME = "$(TARGET_NAME)";
525 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
526 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
527 | SWIFT_VERSION = 4.0;
528 | VERSIONING_SYSTEM = "apple-generic";
529 | };
530 | name = Debug;
531 | };
532 | 97C147071CF9000F007C117D /* Release */ = {
533 | isa = XCBuildConfiguration;
534 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
535 | buildSettings = {
536 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
537 | CLANG_ENABLE_MODULES = YES;
538 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
539 | ENABLE_BITCODE = NO;
540 | FRAMEWORK_SEARCH_PATHS = (
541 | "$(inherited)",
542 | "$(PROJECT_DIR)/Flutter",
543 | );
544 | INFOPLIST_FILE = Runner/Info.plist;
545 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
546 | LIBRARY_SEARCH_PATHS = (
547 | "$(inherited)",
548 | "$(PROJECT_DIR)/Flutter",
549 | );
550 | PRODUCT_BUNDLE_IDENTIFIER = studio.rideout.flutterHiveExample;
551 | PRODUCT_NAME = "$(TARGET_NAME)";
552 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
553 | SWIFT_VERSION = 4.0;
554 | VERSIONING_SYSTEM = "apple-generic";
555 | };
556 | name = Release;
557 | };
558 | /* End XCBuildConfiguration section */
559 |
560 | /* Begin XCConfigurationList section */
561 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
562 | isa = XCConfigurationList;
563 | buildConfigurations = (
564 | 97C147031CF9000F007C117D /* Debug */,
565 | 97C147041CF9000F007C117D /* Release */,
566 | 249021D3217E4FDB00AE95B9 /* Profile */,
567 | );
568 | defaultConfigurationIsVisible = 0;
569 | defaultConfigurationName = Release;
570 | };
571 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
572 | isa = XCConfigurationList;
573 | buildConfigurations = (
574 | 97C147061CF9000F007C117D /* Debug */,
575 | 97C147071CF9000F007C117D /* Release */,
576 | 249021D4217E4FDB00AE95B9 /* Profile */,
577 | );
578 | defaultConfigurationIsVisible = 0;
579 | defaultConfigurationName = Release;
580 | };
581 | /* End XCConfigurationList section */
582 | };
583 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
584 | }
585 |
--------------------------------------------------------------------------------
/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 |
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/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mdrideout/flutter_hive_provider_example/38050c96924bec94072a705cdcba6eb8c3237cf6/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 | flutter_hive_example
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"
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_hive_example/models/contact.dart';
3 | import 'package:flutter_hive_example/screens/contact_add_screen.dart';
4 | import 'package:provider/provider.dart';
5 | import 'package:flutter_hive_example/models/contact_data.dart';
6 | import 'package:hive/hive.dart';
7 | import 'package:path_provider/path_provider.dart';
8 | import 'package:flutter_hive_example/screens/contact_list_screen.dart';
9 |
10 | void main() {
11 | Hive.registerAdapter(ContactAdapter());
12 | runApp(MyApp());
13 | }
14 |
15 | Future _initHive() async {
16 | var dir = await getApplicationDocumentsDirectory();
17 | Hive.init(dir.path);
18 | }
19 |
20 | class MyApp extends StatelessWidget {
21 | // This widget is the root of your application.
22 | @override
23 | Widget build(BuildContext context) {
24 | return ChangeNotifierProvider(
25 | create: (context) => ContactsData(),
26 | child: MaterialApp(
27 | title: 'Flutter Demo',
28 | theme: ThemeData(
29 | primarySwatch: Colors.blue,
30 | ),
31 | initialRoute: '/',
32 | routes: {
33 | '/': (context) => FutureBuilder(
34 | future: _initHive(),
35 | builder: (context, snapshot) {
36 | if (snapshot.connectionState == ConnectionState.done) {
37 | if (snapshot.error != null) {
38 | print(snapshot.error);
39 | return Scaffold(
40 | body: Center(
41 | child: Text('Error initializing hive data store.'),
42 | ),
43 | );
44 | } else {
45 | return ContactListScreen();
46 | }
47 | } else {
48 | return Scaffold();
49 | }
50 | },
51 | ),
52 | '/AddContactScreen': (context) => ContactAddScreen(),
53 | },
54 | ),
55 | );
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/lib/models/contact.dart:
--------------------------------------------------------------------------------
1 | /**
2 | * Our contact data model
3 | */
4 |
5 | import 'package:flutter/foundation.dart';
6 | import 'package:hive/hive.dart';
7 |
8 | part 'contact.g.dart';
9 |
10 | @HiveType(typeId: 0) // use Hive to generate a type adapter
11 | class Contact extends HiveObject {
12 | // Define variables
13 |
14 | @HiveField(0)
15 | final String name;
16 |
17 | @HiveField(1)
18 | final String phone;
19 |
20 | @HiveField(2)
21 | final String email;
22 |
23 | // Constructor
24 | Contact({@required this.name, this.phone, this.email});
25 | }
26 |
--------------------------------------------------------------------------------
/lib/models/contact.g.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | part of 'contact.dart';
4 |
5 | // **************************************************************************
6 | // TypeAdapterGenerator
7 | // **************************************************************************
8 |
9 | class ContactAdapter extends TypeAdapter {
10 | @override
11 | final typeId = 0;
12 |
13 | @override
14 | Contact read(BinaryReader reader) {
15 | var numOfFields = reader.readByte();
16 | var fields = {
17 | for (var i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
18 | };
19 | return Contact(
20 | name: fields[0] as String,
21 | phone: fields[1] as String,
22 | email: fields[2] as String,
23 | );
24 | }
25 |
26 | @override
27 | void write(BinaryWriter writer, Contact obj) {
28 | writer
29 | ..writeByte(3)
30 | ..writeByte(0)
31 | ..write(obj.name)
32 | ..writeByte(1)
33 | ..write(obj.phone)
34 | ..writeByte(2)
35 | ..write(obj.email);
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/lib/models/contact_data.dart:
--------------------------------------------------------------------------------
1 | /**
2 | * Manages the data for our contacts
3 | */
4 |
5 | import 'package:flutter/foundation.dart';
6 | import 'contact.dart';
7 | import 'package:hive/hive.dart';
8 |
9 | class ContactsData extends ChangeNotifier {
10 | // Name our hive box for this data
11 | String _boxName = "contactsBox";
12 |
13 | // Initialize our list of contacts
14 | List _contacts = [];
15 |
16 | // Holds our active contact
17 | Contact _activeContact;
18 |
19 | /// Get Contacts
20 | /// Gets all contacts from the hive box and loads them into our state List
21 | void getContacts() async {
22 | var box = await Hive.openBox(_boxName);
23 |
24 | // Update our provider state data with a hive read, and refresh the ui
25 | _contacts = box.values.toList();
26 | notifyListeners();
27 | }
28 |
29 | /// Get Contact
30 | /// Retrieves a specific contact from our state
31 | Contact getContact(index) {
32 | return _contacts[index];
33 | }
34 |
35 | /// Contact Count
36 | /// Returns the length of the contact array
37 | int get contactCount {
38 | return _contacts.length;
39 | }
40 |
41 | /// Add Contact
42 | /// - Saves contact data to Hive box persistent storage
43 | /// - Updates our List with the hive data by read
44 | /// - Notifies listeners to update the UI, which will be a consumer of the _contacts List
45 | void addContact(Contact newContact) async {
46 | var box = await Hive.openBox(_boxName);
47 |
48 | // Add a contact to our box
49 | await box.add(newContact);
50 |
51 | // Update our provider state data with a hive read, and refresh the ui
52 | _contacts = box.values.toList();
53 | notifyListeners();
54 | }
55 |
56 | /// Delete Contact
57 | void deleteContact(key) async {
58 | var box = await Hive.openBox(_boxName);
59 |
60 | await box.delete(key);
61 |
62 | // Update _contacts List with all box values
63 | _contacts = box.values.toList();
64 |
65 | print("Deleted contact with key: " + key.toString());
66 |
67 | // Update UI
68 | notifyListeners();
69 | }
70 |
71 | /// Edit Contact
72 | /// Overwrites our existing contact based on key with a brand new updated Contact object
73 | void editContact({Contact contact, int contactKey}) async {
74 | var box = await Hive.openBox(_boxName);
75 |
76 | // Add a contact to our box
77 | await box.put(contactKey, contact);
78 |
79 | // Update _contacts List with all box values
80 | _contacts = box.values.toList();
81 |
82 | // Update activeContact
83 | _activeContact = box.get(contactKey);
84 |
85 | print('New Name Of Contact: ' + contact.name);
86 |
87 | // Update UI
88 | notifyListeners();
89 | }
90 |
91 | /// Set an active contact we can notify listeners for
92 | void setActiveContact(key) async {
93 | var box = await Hive.openBox(_boxName);
94 | _activeContact = box.get(key);
95 | notifyListeners();
96 | }
97 |
98 | /// Get Active Contact
99 | Contact getActiveContact() {
100 | return _activeContact;
101 | }
102 | }
103 |
--------------------------------------------------------------------------------
/lib/screens/contact_add_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:provider/provider.dart';
3 | import 'package:flutter_hive_example/widgets/common_toast.dart';
4 | import 'package:flutter_hive_example/models/contact_data.dart';
5 | import 'package:flutter_hive_example/models/contact.dart';
6 |
7 | class ContactAddScreen extends StatefulWidget {
8 | @override
9 | _ContactAddScreenState createState() => _ContactAddScreenState();
10 | }
11 |
12 | class _ContactAddScreenState extends State {
13 | String newContactName;
14 | String newContactEmail;
15 | String newContactPhone;
16 |
17 | void _addContact(context) {
18 | /// Validate the client name input
19 | if (newContactName == null) {
20 | commonToast("You must include a name.");
21 | return;
22 | }
23 | if (newContactName.length < 3) {
24 | commonToast("The name must be at least 3 characters.");
25 | return;
26 | }
27 |
28 | /// Save contact data, email and phone are optional - null values replaced by empty string
29 | Provider.of(context, listen: false).addContact(
30 | Contact(
31 | name: newContactName,
32 | email: (newContactEmail != null) ? newContactEmail : '',
33 | phone: (newContactPhone != null) ? newContactPhone : '',
34 | ),
35 | );
36 | Navigator.pop(context);
37 | }
38 |
39 | @override
40 | Widget build(BuildContext context) {
41 | return Scaffold(
42 | appBar: AppBar(
43 | // Here we take the value from the MyHomePage object that was created by
44 | // the App.build method, and use it to set our appbar title.
45 | title: Text('Add A Contact'),
46 | actions: [
47 | FlatButton(
48 | child: Text(
49 | 'Save',
50 | style: TextStyle(
51 | color: Colors.white,
52 | fontSize: 20.0,
53 | ),
54 | ),
55 | onPressed: () {
56 | _addContact(context);
57 | },
58 | ),
59 | ],
60 | ),
61 | body: Center(
62 | child: Padding(
63 | padding: const EdgeInsets.all(16.0),
64 | child: Column(
65 | mainAxisAlignment: MainAxisAlignment.start,
66 | children: [
67 | TextField(
68 | autofocus: true,
69 | decoration: InputDecoration(
70 | hintText: 'Name',
71 | ),
72 | onChanged: (nameV) {
73 | setState(() {
74 | newContactName = nameV;
75 | });
76 | },
77 | ),
78 | SizedBox(
79 | height: 10.0,
80 | ),
81 | TextField(
82 | autofocus: true,
83 | decoration: InputDecoration(
84 | hintText: 'Phone',
85 | ),
86 | onChanged: (phoneV) {
87 | setState(() {
88 | newContactPhone = phoneV;
89 | });
90 | },
91 | ),
92 | SizedBox(
93 | height: 10.0,
94 | ),
95 | TextField(
96 | autofocus: true,
97 | decoration: InputDecoration(
98 | hintText: 'Email',
99 | ),
100 | onChanged: (emailV) {
101 | setState(() {
102 | newContactEmail = emailV;
103 | });
104 | },
105 | ),
106 | ],
107 | ),
108 | ),
109 | ), // This trailing comma makes auto-formatting nicer for build methods.
110 | );
111 | }
112 | }
113 |
--------------------------------------------------------------------------------
/lib/screens/contact_edit_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:provider/provider.dart';
3 | import 'package:flutter_hive_example/widgets/common_toast.dart';
4 | import 'package:flutter_hive_example/models/contact_data.dart';
5 | import 'package:flutter_hive_example/models/contact.dart';
6 |
7 | class ContactEditScreen extends StatefulWidget {
8 | final Contact currentContact;
9 | ContactEditScreen({@required this.currentContact});
10 |
11 | @override
12 | _ContactEditScreenState createState() => _ContactEditScreenState();
13 | }
14 |
15 | class _ContactEditScreenState extends State {
16 | String newContactName;
17 | String newContactEmail;
18 | String newContactPhone;
19 |
20 | void _editContact(context) {
21 | /// Validate the client name input
22 | if (newContactName == null) {
23 | commonToast("You must include a name.");
24 | return;
25 | }
26 | if (newContactName.length < 3) {
27 | commonToast("The name must be at least 3 characters.");
28 | return;
29 | }
30 |
31 | /// Save contact data, email and phone are optional - null values replaced by empty string
32 | Provider.of(context, listen: false).editContact(
33 | contact: Contact(
34 | name: newContactName,
35 | email: (newContactEmail != null) ? newContactEmail : '',
36 | phone: (newContactPhone != null) ? newContactPhone : '',
37 | ),
38 | contactKey: widget.currentContact.key,
39 | );
40 | Navigator.pop(context);
41 | }
42 |
43 | // Controllers for form text controllers
44 | final TextEditingController _nameController = TextEditingController();
45 | final TextEditingController _phoneController = TextEditingController();
46 | final TextEditingController _emailController = TextEditingController();
47 |
48 | @override
49 | void initState() {
50 | /// Set the initial text field value and state value for the currentClient on initial load
51 | _nameController.text = widget.currentContact.name;
52 | newContactName = widget.currentContact.name;
53 |
54 | _phoneController.text = widget.currentContact.phone;
55 | newContactPhone = widget.currentContact.phone;
56 |
57 | _emailController.text = widget.currentContact.email;
58 | newContactEmail = widget.currentContact.email;
59 |
60 | super.initState();
61 | }
62 |
63 | @override
64 | Widget build(BuildContext context) {
65 | return Scaffold(
66 | appBar: AppBar(
67 | // Here we take the value from the MyHomePage object that was created by
68 | // the App.build method, and use it to set our appbar title.
69 | title: Text('Edit ${widget.currentContact.name}'),
70 | actions: [
71 | FlatButton(
72 | child: Text(
73 | 'Save',
74 | style: TextStyle(
75 | color: Colors.white,
76 | fontSize: 20.0,
77 | ),
78 | ),
79 | onPressed: () {
80 | _editContact(context);
81 | },
82 | ),
83 | ],
84 | ),
85 | body: Center(
86 | child: Padding(
87 | padding: const EdgeInsets.all(16.0),
88 | child: Column(
89 | mainAxisAlignment: MainAxisAlignment.start,
90 | children: [
91 | TextField(
92 | autofocus: true,
93 | controller: _nameController,
94 | decoration: InputDecoration(
95 | hintText: 'Name',
96 | ),
97 | onChanged: (nameV) {
98 | setState(() {
99 | newContactName = nameV;
100 | });
101 | },
102 | ),
103 | SizedBox(
104 | height: 10.0,
105 | ),
106 | TextField(
107 | autofocus: true,
108 | controller: _phoneController,
109 | decoration: InputDecoration(
110 | hintText: 'Phone',
111 | ),
112 | onChanged: (phoneV) {
113 | setState(() {
114 | newContactPhone = phoneV;
115 | });
116 | },
117 | ),
118 | SizedBox(
119 | height: 10.0,
120 | ),
121 | TextField(
122 | autofocus: true,
123 | controller: _emailController,
124 | decoration: InputDecoration(
125 | hintText: 'Email',
126 | ),
127 | onChanged: (emailV) {
128 | setState(() {
129 | newContactEmail = emailV;
130 | });
131 | },
132 | ),
133 | ],
134 | ),
135 | ),
136 | ), // This trailing comma makes auto-formatting nicer for build methods.
137 | );
138 | }
139 | }
140 |
--------------------------------------------------------------------------------
/lib/screens/contact_list_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_hive_example/widgets/contact_list.dart';
3 | import 'package:provider/provider.dart';
4 | import 'package:flutter_hive_example/models/contact_data.dart';
5 |
6 | class ContactListScreen extends StatelessWidget {
7 | @override
8 | Widget build(BuildContext context) {
9 | // Get list of contacts but do not listen (would trigger a loop)
10 | Provider.of(context, listen: false).getContacts();
11 |
12 | return Scaffold(
13 | appBar: AppBar(
14 | // Here we take the value from the MyHomePage object that was created by
15 | // the App.build method, and use it to set our appbar title.
16 | title: Text('Contacts'),
17 | ),
18 | body: Center(
19 | child: Column(
20 | mainAxisAlignment: MainAxisAlignment.center,
21 | children: [
22 | Expanded(
23 | child: Container(
24 | child: ContactsList(),
25 | ),
26 | )
27 | ],
28 | ),
29 | ),
30 | floatingActionButton: FloatingActionButton(
31 | tooltip: 'Increment',
32 | child: Icon(Icons.add),
33 | onPressed: () {
34 | Navigator.pushNamed(context, '/AddContactScreen');
35 | },
36 | ), // This trailing comma makes auto-formatting nicer for build methods.
37 | );
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/lib/screens/contact_view_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_hive_example/screens/contact_edit_screen.dart';
3 | import 'package:provider/provider.dart';
4 | import 'package:flutter_hive_example/models/contact_data.dart';
5 | import 'package:flutter_hive_example/models/contact.dart';
6 |
7 | class ContactViewScreen extends StatelessWidget {
8 | @override
9 | Widget build(BuildContext context) {
10 | /// Delete confirmation dialogue
11 | void _showDeleteConfirmation(currentClient) {
12 | showDialog(
13 | context: context,
14 | builder: (BuildContext context) {
15 | return AlertDialog(
16 | title: Text("Are You Sure?"),
17 | content: SingleChildScrollView(
18 | child: ListBody(
19 | children: [
20 | Text(
21 | 'You are about to delete ${currentClient.name} and all of their content.'),
22 | SizedBox(
23 | height: 10.0,
24 | ),
25 | Text(
26 | 'You cannot undo this action.',
27 | style: TextStyle(
28 | fontWeight: FontWeight.bold,
29 | ),
30 | ),
31 | ],
32 | ),
33 | ),
34 | actions: [
35 | FlatButton(
36 | child: Text('Delete'),
37 | onPressed: () {
38 | print("Deleting ${currentClient.name}...");
39 | Provider.of(context, listen: false)
40 | .deleteContact(currentClient.key);
41 | Navigator.popUntil(
42 | context, ModalRoute.withName(Navigator.defaultRouteName));
43 | },
44 | ),
45 | FlatButton(
46 | child: Text('Cancel'),
47 | onPressed: () {
48 | print("Canceled delete.");
49 | Navigator.of(context).pop();
50 | },
51 | ),
52 | ],
53 | );
54 | },
55 | );
56 | }
57 |
58 | return Consumer(builder: (context, contactData, child) {
59 | Contact currentContact = contactData.getActiveContact();
60 |
61 | return Scaffold(
62 | appBar: AppBar(
63 | // Here we take the value from the MyHomePage object that was created by
64 | // the App.build method, and use it to set our appbar title.
65 | title: Text(currentContact.name),
66 | actions: [
67 | PopupMenuButton(
68 | onSelected: (selection) {
69 | switch (selection) {
70 | case 1:
71 | print("Selected Edit");
72 | Navigator.push(
73 | context,
74 | MaterialPageRoute(
75 | builder: (context) {
76 | return ContactEditScreen(
77 | currentContact: currentContact,
78 | );
79 | },
80 | ),
81 | );
82 | break;
83 |
84 | case 2:
85 | print("Selected Delete");
86 | _showDeleteConfirmation(currentContact);
87 | break;
88 | }
89 | },
90 | itemBuilder: (context) => [
91 | PopupMenuItem(
92 | child: Text("Edit"),
93 | value: 1,
94 | ),
95 | PopupMenuItem(
96 | child: Text("Delete"),
97 | value: 2,
98 | ),
99 | ],
100 | ),
101 | ],
102 | ),
103 | body: Padding(
104 | padding: const EdgeInsets.all(16.0),
105 | child: Center(
106 | child: Column(
107 | children: [
108 | Text(currentContact.email),
109 | Text(currentContact.phone),
110 | ],
111 | ),
112 | ),
113 | ),
114 | );
115 | });
116 | }
117 | }
118 |
--------------------------------------------------------------------------------
/lib/widgets/common_toast.dart:
--------------------------------------------------------------------------------
1 | import 'package:fluttertoast/fluttertoast.dart';
2 |
3 | /// A function we can call to easily trigger the same style of toast.
4 | void commonToast(message) {
5 | Fluttertoast.showToast(
6 | msg: message,
7 | toastLength: Toast.LENGTH_LONG,
8 | gravity: ToastGravity.CENTER,
9 | timeInSecForIos: 2,
10 | );
11 | }
12 |
--------------------------------------------------------------------------------
/lib/widgets/contact_list.dart:
--------------------------------------------------------------------------------
1 | // Shows our entire list of contacts, made up of contact_tile objects.
2 | import 'package:flutter/material.dart';
3 | import 'contact_tile.dart';
4 | import 'package:provider/provider.dart';
5 | import 'package:flutter_hive_example/models/contact_data.dart';
6 |
7 | class ContactsList extends StatelessWidget {
8 | @override
9 | Widget build(BuildContext context) {
10 | return ListView.builder(
11 | itemBuilder: (context, index) {
12 | return ContactTile(tileIndex: index);
13 | },
14 | itemCount: Provider.of(context).contactCount,
15 | );
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/lib/widgets/contact_tile.dart:
--------------------------------------------------------------------------------
1 | // The display of a single contact
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:flutter_hive_example/screens/contact_view_screen.dart';
5 | import 'package:provider/provider.dart';
6 | import 'package:flutter_hive_example/models/contact.dart';
7 | import 'package:flutter_hive_example/models/contact_data.dart';
8 |
9 | class ContactTile extends StatelessWidget {
10 | final int tileIndex;
11 |
12 | // Constructor
13 | ContactTile({this.tileIndex});
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return Consumer(
18 | builder: (context, contactData, child) {
19 | Contact currentContact = contactData.getContact(tileIndex);
20 |
21 | return ListTile(
22 | title: Text(
23 | currentContact.name,
24 | ),
25 | onTap: () {
26 | Provider.of(context, listen: false)
27 | .setActiveContact(currentContact.key);
28 |
29 | Navigator.push(
30 | context,
31 | MaterialPageRoute(builder: (context) {
32 | return ContactViewScreen();
33 | }),
34 | );
35 | },
36 | );
37 | },
38 | );
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | _fe_analyzer_shared:
5 | dependency: transitive
6 | description:
7 | name: _fe_analyzer_shared
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "1.0.1"
11 | analyzer:
12 | dependency: transitive
13 | description:
14 | name: analyzer
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "0.39.2+1"
18 | archive:
19 | dependency: transitive
20 | description:
21 | name: archive
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.0.11"
25 | args:
26 | dependency: transitive
27 | description:
28 | name: args
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.5.2"
32 | async:
33 | dependency: transitive
34 | description:
35 | name: async
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "2.4.0"
39 | boolean_selector:
40 | dependency: transitive
41 | description:
42 | name: boolean_selector
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.0.5"
46 | build:
47 | dependency: transitive
48 | description:
49 | name: build
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.2.2"
53 | build_config:
54 | dependency: transitive
55 | description:
56 | name: build_config
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "0.4.1+1"
60 | build_daemon:
61 | dependency: transitive
62 | description:
63 | name: build_daemon
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "2.1.2"
67 | build_resolvers:
68 | dependency: transitive
69 | description:
70 | name: build_resolvers
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "1.3.0"
74 | build_runner:
75 | dependency: "direct dev"
76 | description:
77 | name: build_runner
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "1.7.2"
81 | build_runner_core:
82 | dependency: transitive
83 | description:
84 | name: build_runner_core
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "4.3.0"
88 | built_collection:
89 | dependency: transitive
90 | description:
91 | name: built_collection
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "4.3.2"
95 | built_value:
96 | dependency: transitive
97 | description:
98 | name: built_value
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "7.0.4"
102 | characters:
103 | dependency: transitive
104 | description:
105 | name: characters
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "0.3.1"
109 | charcode:
110 | dependency: transitive
111 | description:
112 | name: charcode
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "1.1.2"
116 | checked_yaml:
117 | dependency: transitive
118 | description:
119 | name: checked_yaml
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "1.0.2"
123 | code_builder:
124 | dependency: transitive
125 | description:
126 | name: code_builder
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "3.2.1"
130 | collection:
131 | dependency: transitive
132 | description:
133 | name: collection
134 | url: "https://pub.dartlang.org"
135 | source: hosted
136 | version: "1.14.11"
137 | convert:
138 | dependency: transitive
139 | description:
140 | name: convert
141 | url: "https://pub.dartlang.org"
142 | source: hosted
143 | version: "2.1.1"
144 | crypto:
145 | dependency: transitive
146 | description:
147 | name: crypto
148 | url: "https://pub.dartlang.org"
149 | source: hosted
150 | version: "2.1.3"
151 | csslib:
152 | dependency: transitive
153 | description:
154 | name: csslib
155 | url: "https://pub.dartlang.org"
156 | source: hosted
157 | version: "0.16.1"
158 | dart_style:
159 | dependency: transitive
160 | description:
161 | name: dart_style
162 | url: "https://pub.dartlang.org"
163 | source: hosted
164 | version: "1.3.3"
165 | dartx:
166 | dependency: transitive
167 | description:
168 | name: dartx
169 | url: "https://pub.dartlang.org"
170 | source: hosted
171 | version: "0.2.0"
172 | fixnum:
173 | dependency: transitive
174 | description:
175 | name: fixnum
176 | url: "https://pub.dartlang.org"
177 | source: hosted
178 | version: "0.10.11"
179 | flutter:
180 | dependency: "direct main"
181 | description: flutter
182 | source: sdk
183 | version: "0.0.0"
184 | flutter_test:
185 | dependency: "direct dev"
186 | description: flutter
187 | source: sdk
188 | version: "0.0.0"
189 | fluttertoast:
190 | dependency: "direct main"
191 | description:
192 | name: fluttertoast
193 | url: "https://pub.dartlang.org"
194 | source: hosted
195 | version: "3.1.3"
196 | glob:
197 | dependency: transitive
198 | description:
199 | name: glob
200 | url: "https://pub.dartlang.org"
201 | source: hosted
202 | version: "1.2.0"
203 | graphs:
204 | dependency: transitive
205 | description:
206 | name: graphs
207 | url: "https://pub.dartlang.org"
208 | source: hosted
209 | version: "0.2.0"
210 | hive:
211 | dependency: "direct main"
212 | description:
213 | name: hive
214 | url: "https://pub.dartlang.org"
215 | source: hosted
216 | version: "1.3.0"
217 | hive_flutter:
218 | dependency: "direct main"
219 | description:
220 | name: hive_flutter
221 | url: "https://pub.dartlang.org"
222 | source: hosted
223 | version: "0.3.0+1"
224 | hive_generator:
225 | dependency: "direct dev"
226 | description:
227 | name: hive_generator
228 | url: "https://pub.dartlang.org"
229 | source: hosted
230 | version: "0.7.0"
231 | html:
232 | dependency: transitive
233 | description:
234 | name: html
235 | url: "https://pub.dartlang.org"
236 | source: hosted
237 | version: "0.14.0+3"
238 | http:
239 | dependency: transitive
240 | description:
241 | name: http
242 | url: "https://pub.dartlang.org"
243 | source: hosted
244 | version: "0.12.0+3"
245 | http_multi_server:
246 | dependency: transitive
247 | description:
248 | name: http_multi_server
249 | url: "https://pub.dartlang.org"
250 | source: hosted
251 | version: "2.1.0"
252 | http_parser:
253 | dependency: transitive
254 | description:
255 | name: http_parser
256 | url: "https://pub.dartlang.org"
257 | source: hosted
258 | version: "3.1.3"
259 | image:
260 | dependency: transitive
261 | description:
262 | name: image
263 | url: "https://pub.dartlang.org"
264 | source: hosted
265 | version: "2.1.4"
266 | io:
267 | dependency: transitive
268 | description:
269 | name: io
270 | url: "https://pub.dartlang.org"
271 | source: hosted
272 | version: "0.3.3"
273 | js:
274 | dependency: transitive
275 | description:
276 | name: js
277 | url: "https://pub.dartlang.org"
278 | source: hosted
279 | version: "0.6.1+1"
280 | json_annotation:
281 | dependency: transitive
282 | description:
283 | name: json_annotation
284 | url: "https://pub.dartlang.org"
285 | source: hosted
286 | version: "3.0.1"
287 | logging:
288 | dependency: transitive
289 | description:
290 | name: logging
291 | url: "https://pub.dartlang.org"
292 | source: hosted
293 | version: "0.11.3+2"
294 | matcher:
295 | dependency: transitive
296 | description:
297 | name: matcher
298 | url: "https://pub.dartlang.org"
299 | source: hosted
300 | version: "0.12.6"
301 | meta:
302 | dependency: transitive
303 | description:
304 | name: meta
305 | url: "https://pub.dartlang.org"
306 | source: hosted
307 | version: "1.1.8"
308 | mime:
309 | dependency: transitive
310 | description:
311 | name: mime
312 | url: "https://pub.dartlang.org"
313 | source: hosted
314 | version: "0.9.6+3"
315 | nested:
316 | dependency: transitive
317 | description:
318 | name: nested
319 | url: "https://pub.dartlang.org"
320 | source: hosted
321 | version: "0.0.4"
322 | node_interop:
323 | dependency: transitive
324 | description:
325 | name: node_interop
326 | url: "https://pub.dartlang.org"
327 | source: hosted
328 | version: "1.0.3"
329 | node_io:
330 | dependency: transitive
331 | description:
332 | name: node_io
333 | url: "https://pub.dartlang.org"
334 | source: hosted
335 | version: "1.0.1+2"
336 | package_config:
337 | dependency: transitive
338 | description:
339 | name: package_config
340 | url: "https://pub.dartlang.org"
341 | source: hosted
342 | version: "1.1.0"
343 | package_resolver:
344 | dependency: transitive
345 | description:
346 | name: package_resolver
347 | url: "https://pub.dartlang.org"
348 | source: hosted
349 | version: "1.0.10"
350 | path:
351 | dependency: transitive
352 | description:
353 | name: path
354 | url: "https://pub.dartlang.org"
355 | source: hosted
356 | version: "1.6.4"
357 | path_provider:
358 | dependency: "direct main"
359 | description:
360 | name: path_provider
361 | url: "https://pub.dartlang.org"
362 | source: hosted
363 | version: "1.5.1"
364 | pedantic:
365 | dependency: transitive
366 | description:
367 | name: pedantic
368 | url: "https://pub.dartlang.org"
369 | source: hosted
370 | version: "1.8.0+1"
371 | petitparser:
372 | dependency: transitive
373 | description:
374 | name: petitparser
375 | url: "https://pub.dartlang.org"
376 | source: hosted
377 | version: "2.4.0"
378 | platform:
379 | dependency: transitive
380 | description:
381 | name: platform
382 | url: "https://pub.dartlang.org"
383 | source: hosted
384 | version: "2.2.1"
385 | pointycastle:
386 | dependency: transitive
387 | description:
388 | name: pointycastle
389 | url: "https://pub.dartlang.org"
390 | source: hosted
391 | version: "1.0.2"
392 | pool:
393 | dependency: transitive
394 | description:
395 | name: pool
396 | url: "https://pub.dartlang.org"
397 | source: hosted
398 | version: "1.4.0"
399 | provider:
400 | dependency: "direct main"
401 | description:
402 | name: provider
403 | url: "https://pub.dartlang.org"
404 | source: hosted
405 | version: "4.0.1"
406 | pub_semver:
407 | dependency: transitive
408 | description:
409 | name: pub_semver
410 | url: "https://pub.dartlang.org"
411 | source: hosted
412 | version: "1.4.2"
413 | pubspec_parse:
414 | dependency: transitive
415 | description:
416 | name: pubspec_parse
417 | url: "https://pub.dartlang.org"
418 | source: hosted
419 | version: "0.1.5"
420 | quiver:
421 | dependency: transitive
422 | description:
423 | name: quiver
424 | url: "https://pub.dartlang.org"
425 | source: hosted
426 | version: "2.0.5"
427 | shelf:
428 | dependency: transitive
429 | description:
430 | name: shelf
431 | url: "https://pub.dartlang.org"
432 | source: hosted
433 | version: "0.7.5"
434 | shelf_web_socket:
435 | dependency: transitive
436 | description:
437 | name: shelf_web_socket
438 | url: "https://pub.dartlang.org"
439 | source: hosted
440 | version: "0.2.3"
441 | sky_engine:
442 | dependency: transitive
443 | description: flutter
444 | source: sdk
445 | version: "0.0.99"
446 | source_gen:
447 | dependency: transitive
448 | description:
449 | name: source_gen
450 | url: "https://pub.dartlang.org"
451 | source: hosted
452 | version: "0.9.4+7"
453 | source_span:
454 | dependency: transitive
455 | description:
456 | name: source_span
457 | url: "https://pub.dartlang.org"
458 | source: hosted
459 | version: "1.5.5"
460 | stack_trace:
461 | dependency: transitive
462 | description:
463 | name: stack_trace
464 | url: "https://pub.dartlang.org"
465 | source: hosted
466 | version: "1.9.3"
467 | stream_channel:
468 | dependency: transitive
469 | description:
470 | name: stream_channel
471 | url: "https://pub.dartlang.org"
472 | source: hosted
473 | version: "2.0.0"
474 | stream_transform:
475 | dependency: transitive
476 | description:
477 | name: stream_transform
478 | url: "https://pub.dartlang.org"
479 | source: hosted
480 | version: "0.0.20"
481 | string_scanner:
482 | dependency: transitive
483 | description:
484 | name: string_scanner
485 | url: "https://pub.dartlang.org"
486 | source: hosted
487 | version: "1.0.5"
488 | term_glyph:
489 | dependency: transitive
490 | description:
491 | name: term_glyph
492 | url: "https://pub.dartlang.org"
493 | source: hosted
494 | version: "1.1.0"
495 | test_api:
496 | dependency: transitive
497 | description:
498 | name: test_api
499 | url: "https://pub.dartlang.org"
500 | source: hosted
501 | version: "0.2.11"
502 | time:
503 | dependency: transitive
504 | description:
505 | name: time
506 | url: "https://pub.dartlang.org"
507 | source: hosted
508 | version: "1.2.0"
509 | timing:
510 | dependency: transitive
511 | description:
512 | name: timing
513 | url: "https://pub.dartlang.org"
514 | source: hosted
515 | version: "0.1.1+2"
516 | typed_data:
517 | dependency: transitive
518 | description:
519 | name: typed_data
520 | url: "https://pub.dartlang.org"
521 | source: hosted
522 | version: "1.1.6"
523 | vector_math:
524 | dependency: transitive
525 | description:
526 | name: vector_math
527 | url: "https://pub.dartlang.org"
528 | source: hosted
529 | version: "2.0.8"
530 | watcher:
531 | dependency: transitive
532 | description:
533 | name: watcher
534 | url: "https://pub.dartlang.org"
535 | source: hosted
536 | version: "0.9.7+13"
537 | web_socket_channel:
538 | dependency: transitive
539 | description:
540 | name: web_socket_channel
541 | url: "https://pub.dartlang.org"
542 | source: hosted
543 | version: "1.1.0"
544 | xml:
545 | dependency: transitive
546 | description:
547 | name: xml
548 | url: "https://pub.dartlang.org"
549 | source: hosted
550 | version: "3.5.0"
551 | yaml:
552 | dependency: transitive
553 | description:
554 | name: yaml
555 | url: "https://pub.dartlang.org"
556 | source: hosted
557 | version: "2.2.0"
558 | sdks:
559 | dart: ">=2.6.0 <3.0.0"
560 | flutter: ">=1.12.1 <2.0.0"
561 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_hive_example
2 | description: A demonstration of using the hive package to store data locally with Flutter.
3 |
4 | version: 1.0.0+1
5 |
6 | environment:
7 | sdk: ">=2.1.0 <3.0.0"
8 |
9 | dependencies:
10 | flutter:
11 | sdk: flutter
12 |
13 | provider: ^4.0.1
14 | hive: ^1.3.0
15 | hive_flutter: ^0.3.0
16 | path_provider: ^1.5.1
17 | fluttertoast: ^3.1.3
18 |
19 | dev_dependencies:
20 | flutter_test:
21 | sdk: flutter
22 | build_runner: ^1.7.1
23 | hive_generator: ^0.7.0
24 |
25 |
26 | # The following section is specific to Flutter.
27 | flutter:
28 |
29 | # The following line ensures that the Material Icons font is
30 | # included with your application, so that you can use the icons in
31 | # the material Icons class.
32 | uses-material-design: true
33 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:flutter_hive_example/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------