├── .DS_Store
├── .idea
├── dictionaries
│ └── albert.xml
├── libraries
│ ├── Dart_Packages.xml
│ ├── Dart_SDK.xml
│ ├── Flutter_Plugins.xml
│ ├── Flutter_for_Android.xml
│ └── KotlinJavaRuntime.xml
├── modules.xml
├── runConfigurations
│ └── main_dart.xml
├── vcs.xml
└── workspace.xml
├── complete
├── .gitignore
├── .metadata
├── README.md
├── android
│ ├── .gitignore
│ ├── app
│ │ ├── build.gradle
│ │ └── src
│ │ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ │ ├── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── hive_reminder_app
│ │ │ │ │ └── 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
├── fonts
│ ├── Lato-Black.ttf
│ ├── Lato-Bold.ttf
│ ├── Lato-Italic.ttf
│ └── Lato-Regular.ttf
├── ios
│ ├── .gitignore
│ ├── Flutter
│ │ ├── AppFrameworkInfo.plist
│ │ ├── Debug.xcconfig
│ │ └── Release.xcconfig
│ ├── Podfile
│ ├── Podfile.lock
│ ├── Runner.xcodeproj
│ │ ├── project.pbxproj
│ │ ├── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ └── WorkspaceSettings.xcsettings
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ ├── Runner.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── Runner
│ │ ├── AppDelegate.swift
│ │ ├── Assets.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ ├── Contents.json
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ └── LaunchImage.imageset
│ │ │ ├── Contents.json
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ └── README.md
│ │ ├── Base.lproj
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ │ ├── Info.plist
│ │ └── Runner-Bridging-Header.h
├── lib
│ ├── UI
│ │ └── views
│ │ │ └── home
│ │ │ ├── home_model.dart
│ │ │ └── home_view.dart
│ ├── app
│ │ ├── extensions
│ │ │ └── size_extension.dart
│ │ ├── provider_list.dart
│ │ ├── router.dart
│ │ ├── router.gr.dart
│ │ └── size_config.dart
│ ├── core
│ │ └── models
│ │ │ ├── inventory_model.dart
│ │ │ └── inventory_model.g.dart
│ └── main.dart
├── pubspec.lock
├── pubspec.yaml
└── test
│ └── widget_test.dart
└── starter
├── .DS_Store
└── hive_inventory_starter
├── .gitignore
├── .metadata
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── hive_inventory_starter
│ │ │ │ └── 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
├── fonts
├── Lato-Black.ttf
├── Lato-Bold.ttf
├── Lato-Italic.ttf
└── Lato-Regular.ttf
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── UI
│ └── views
│ │ └── home
│ │ ├── home_model.dart
│ │ └── home_view.dart
├── app
│ ├── extensions
│ │ └── size_extension.dart
│ ├── provider_list.dart
│ ├── router.dart
│ ├── router.gr.dart
│ └── size_config.dart
└── main.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── widget_test.dart
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/.DS_Store
--------------------------------------------------------------------------------
/.idea/dictionaries/albert.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | lato
5 |
6 |
7 |
--------------------------------------------------------------------------------
/.idea/libraries/Dart_SDK.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/.idea/libraries/Flutter_Plugins.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.idea/libraries/Flutter_for_Android.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/libraries/KotlinJavaRuntime.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/runConfigurations/main_dart.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/workspace.xml:
--------------------------------------------------------------------------------
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 |
39 |
40 |
41 |
42 | 1594560146163
43 |
44 |
45 | 1594560146163
46 |
47 |
48 | 1594587077105
49 |
50 |
51 |
52 | 1594587077105
53 |
54 |
55 |
56 |
57 |
58 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
--------------------------------------------------------------------------------
/complete/.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 | .flutter-plugins-dependencies
28 | .packages
29 | .pub-cache/
30 | .pub/
31 | /build/
32 |
33 | # Web related
34 | lib/generated_plugin_registrant.dart
35 |
36 | # Symbolication related
37 | app.*.symbols
38 |
39 | # Obfuscation related
40 | app.*.map.json
41 |
42 | # Exceptions to above rules.
43 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
44 |
--------------------------------------------------------------------------------
/complete/.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: b041144f833e05cf463b8887fa12efdec9493488
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/complete/README.md:
--------------------------------------------------------------------------------
1 | # hive_reminder_app
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13 |
14 | For help getting started with Flutter, view our
15 | [online documentation](https://flutter.dev/docs), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/complete/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
--------------------------------------------------------------------------------
/complete/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 "com.example.hive_reminder_app"
42 | minSdkVersion 16
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | }
47 |
48 | buildTypes {
49 | release {
50 | // TODO: Add your own signing config for the release build.
51 | // Signing with the debug keys for now, so `flutter run --release` works.
52 | signingConfig signingConfigs.debug
53 | }
54 | }
55 | }
56 |
57 | flutter {
58 | source '../..'
59 | }
60 |
61 | dependencies {
62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
63 | }
64 |
--------------------------------------------------------------------------------
/complete/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/complete/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
8 |
12 |
19 |
23 |
27 |
32 |
36 |
37 |
38 |
39 |
40 |
41 |
43 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/complete/android/app/src/main/kotlin/com/example/hive_reminder_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.hive_reminder_app
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/complete/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/complete/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/complete/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/complete/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/complete/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/complete/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/complete/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/complete/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/complete/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.5.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/complete/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.enableR8=true
3 | android.useAndroidX=true
4 | android.enableJetifier=true
5 |
--------------------------------------------------------------------------------
/complete/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
7 |
--------------------------------------------------------------------------------
/complete/android/settings.gradle:
--------------------------------------------------------------------------------
1 | // Copyright 2014 The Flutter Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | include ':app'
6 |
7 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
8 | def properties = new Properties()
9 |
10 | assert localPropertiesFile.exists()
11 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
12 |
13 | def flutterSdkPath = properties.getProperty("flutter.sdk")
14 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
15 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
16 |
--------------------------------------------------------------------------------
/complete/fonts/Lato-Black.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/fonts/Lato-Black.ttf
--------------------------------------------------------------------------------
/complete/fonts/Lato-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/fonts/Lato-Bold.ttf
--------------------------------------------------------------------------------
/complete/fonts/Lato-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/fonts/Lato-Italic.ttf
--------------------------------------------------------------------------------
/complete/fonts/Lato-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/fonts/Lato-Regular.ttf
--------------------------------------------------------------------------------
/complete/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/complete/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 |
--------------------------------------------------------------------------------
/complete/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/complete/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/complete/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 | post_install do |installer|
82 | installer.pods_project.targets.each do |target|
83 | target.build_configurations.each do |config|
84 | config.build_settings['ENABLE_BITCODE'] = 'NO'
85 | end
86 | end
87 | end
88 |
--------------------------------------------------------------------------------
/complete/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - path_provider (0.0.1):
4 | - Flutter
5 | - path_provider_linux (0.0.1):
6 | - Flutter
7 | - path_provider_macos (0.0.1):
8 | - Flutter
9 |
10 | DEPENDENCIES:
11 | - Flutter (from `Flutter`)
12 | - path_provider (from `.symlinks/plugins/path_provider/ios`)
13 | - path_provider_linux (from `.symlinks/plugins/path_provider_linux/ios`)
14 | - path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`)
15 |
16 | EXTERNAL SOURCES:
17 | Flutter:
18 | :path: Flutter
19 | path_provider:
20 | :path: ".symlinks/plugins/path_provider/ios"
21 | path_provider_linux:
22 | :path: ".symlinks/plugins/path_provider_linux/ios"
23 | path_provider_macos:
24 | :path: ".symlinks/plugins/path_provider_macos/ios"
25 |
26 | SPEC CHECKSUMS:
27 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
28 | path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c
29 | path_provider_linux: 4d630dc393e1f20364f3e3b4a2ff41d9674a84e4
30 | path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0
31 |
32 | PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a
33 |
34 | COCOAPODS: 1.9.1
35 |
--------------------------------------------------------------------------------
/complete/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 | 09C96EA42E065A137ECFEF86 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 168C97D921A8203B9B3373D5 /* Pods_Runner.framework */; };
11 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXCopyFilesBuildPhase section */
20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
21 | isa = PBXCopyFilesBuildPhase;
22 | buildActionMask = 2147483647;
23 | dstPath = "";
24 | dstSubfolderSpec = 10;
25 | files = (
26 | );
27 | name = "Embed Frameworks";
28 | runOnlyForDeploymentPostprocessing = 0;
29 | };
30 | /* End PBXCopyFilesBuildPhase section */
31 |
32 | /* Begin PBXFileReference section */
33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
35 | 168C97D921A8203B9B3373D5 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
36 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
37 | 6C1D41C056E4F60070775D09 /* 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 = ""; };
38 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
39 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
40 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
41 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
42 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
43 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
44 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
45 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
46 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
47 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
48 | A92493D979F76C2AC12D4415 /* 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 = ""; };
49 | BEC7F5BAA3693A63B57DA91E /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | 09C96EA42E065A137ECFEF86 /* Pods_Runner.framework in Frameworks */,
58 | );
59 | runOnlyForDeploymentPostprocessing = 0;
60 | };
61 | /* End PBXFrameworksBuildPhase section */
62 |
63 | /* Begin PBXGroup section */
64 | 779A7974078BC66F30657ED7 /* Frameworks */ = {
65 | isa = PBXGroup;
66 | children = (
67 | 168C97D921A8203B9B3373D5 /* Pods_Runner.framework */,
68 | );
69 | name = Frameworks;
70 | sourceTree = "";
71 | };
72 | 9740EEB11CF90186004384FC /* Flutter */ = {
73 | isa = PBXGroup;
74 | children = (
75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
76 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
77 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
78 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
79 | );
80 | name = Flutter;
81 | sourceTree = "";
82 | };
83 | 97C146E51CF9000F007C117D = {
84 | isa = PBXGroup;
85 | children = (
86 | 9740EEB11CF90186004384FC /* Flutter */,
87 | 97C146F01CF9000F007C117D /* Runner */,
88 | 97C146EF1CF9000F007C117D /* Products */,
89 | B9784BDC6334A5F1DF58FCC9 /* Pods */,
90 | 779A7974078BC66F30657ED7 /* Frameworks */,
91 | );
92 | sourceTree = "";
93 | };
94 | 97C146EF1CF9000F007C117D /* Products */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 97C146EE1CF9000F007C117D /* Runner.app */,
98 | );
99 | name = Products;
100 | sourceTree = "";
101 | };
102 | 97C146F01CF9000F007C117D /* Runner */ = {
103 | isa = PBXGroup;
104 | children = (
105 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
106 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
107 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
108 | 97C147021CF9000F007C117D /* Info.plist */,
109 | 97C146F11CF9000F007C117D /* Supporting Files */,
110 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
111 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
112 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
113 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
114 | );
115 | path = Runner;
116 | sourceTree = "";
117 | };
118 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
119 | isa = PBXGroup;
120 | children = (
121 | );
122 | name = "Supporting Files";
123 | sourceTree = "";
124 | };
125 | B9784BDC6334A5F1DF58FCC9 /* Pods */ = {
126 | isa = PBXGroup;
127 | children = (
128 | 6C1D41C056E4F60070775D09 /* Pods-Runner.debug.xcconfig */,
129 | A92493D979F76C2AC12D4415 /* Pods-Runner.release.xcconfig */,
130 | BEC7F5BAA3693A63B57DA91E /* Pods-Runner.profile.xcconfig */,
131 | );
132 | name = Pods;
133 | path = Pods;
134 | sourceTree = "";
135 | };
136 | /* End PBXGroup section */
137 |
138 | /* Begin PBXNativeTarget section */
139 | 97C146ED1CF9000F007C117D /* Runner */ = {
140 | isa = PBXNativeTarget;
141 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
142 | buildPhases = (
143 | B8D1CD355A8F893C6521DE5D /* [CP] Check Pods Manifest.lock */,
144 | 9740EEB61CF901F6004384FC /* Run Script */,
145 | 97C146EA1CF9000F007C117D /* Sources */,
146 | 97C146EB1CF9000F007C117D /* Frameworks */,
147 | 97C146EC1CF9000F007C117D /* Resources */,
148 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
149 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
150 | DBFFF93BD62C13A8AAF06335 /* [CP] Embed Pods Frameworks */,
151 | );
152 | buildRules = (
153 | );
154 | dependencies = (
155 | );
156 | name = Runner;
157 | productName = Runner;
158 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
159 | productType = "com.apple.product-type.application";
160 | };
161 | /* End PBXNativeTarget section */
162 |
163 | /* Begin PBXProject section */
164 | 97C146E61CF9000F007C117D /* Project object */ = {
165 | isa = PBXProject;
166 | attributes = {
167 | LastUpgradeCheck = 1020;
168 | ORGANIZATIONNAME = "";
169 | TargetAttributes = {
170 | 97C146ED1CF9000F007C117D = {
171 | CreatedOnToolsVersion = 7.3.1;
172 | LastSwiftMigration = 1100;
173 | };
174 | };
175 | };
176 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
177 | compatibilityVersion = "Xcode 9.3";
178 | developmentRegion = en;
179 | hasScannedForEncodings = 0;
180 | knownRegions = (
181 | en,
182 | Base,
183 | );
184 | mainGroup = 97C146E51CF9000F007C117D;
185 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
186 | projectDirPath = "";
187 | projectRoot = "";
188 | targets = (
189 | 97C146ED1CF9000F007C117D /* Runner */,
190 | );
191 | };
192 | /* End PBXProject section */
193 |
194 | /* Begin PBXResourcesBuildPhase section */
195 | 97C146EC1CF9000F007C117D /* Resources */ = {
196 | isa = PBXResourcesBuildPhase;
197 | buildActionMask = 2147483647;
198 | files = (
199 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
200 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
201 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
202 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
203 | );
204 | runOnlyForDeploymentPostprocessing = 0;
205 | };
206 | /* End PBXResourcesBuildPhase section */
207 |
208 | /* Begin PBXShellScriptBuildPhase section */
209 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
210 | isa = PBXShellScriptBuildPhase;
211 | buildActionMask = 2147483647;
212 | files = (
213 | );
214 | inputPaths = (
215 | );
216 | name = "Thin Binary";
217 | outputPaths = (
218 | );
219 | runOnlyForDeploymentPostprocessing = 0;
220 | shellPath = /bin/sh;
221 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
222 | };
223 | 9740EEB61CF901F6004384FC /* Run Script */ = {
224 | isa = PBXShellScriptBuildPhase;
225 | buildActionMask = 2147483647;
226 | files = (
227 | );
228 | inputPaths = (
229 | );
230 | name = "Run Script";
231 | outputPaths = (
232 | );
233 | runOnlyForDeploymentPostprocessing = 0;
234 | shellPath = /bin/sh;
235 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
236 | };
237 | B8D1CD355A8F893C6521DE5D /* [CP] Check Pods Manifest.lock */ = {
238 | isa = PBXShellScriptBuildPhase;
239 | buildActionMask = 2147483647;
240 | files = (
241 | );
242 | inputFileListPaths = (
243 | );
244 | inputPaths = (
245 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
246 | "${PODS_ROOT}/Manifest.lock",
247 | );
248 | name = "[CP] Check Pods Manifest.lock";
249 | outputFileListPaths = (
250 | );
251 | outputPaths = (
252 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
253 | );
254 | runOnlyForDeploymentPostprocessing = 0;
255 | shellPath = /bin/sh;
256 | 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";
257 | showEnvVarsInLog = 0;
258 | };
259 | DBFFF93BD62C13A8AAF06335 /* [CP] Embed Pods Frameworks */ = {
260 | isa = PBXShellScriptBuildPhase;
261 | buildActionMask = 2147483647;
262 | files = (
263 | );
264 | inputPaths = (
265 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
266 | "${PODS_ROOT}/../Flutter/Flutter.framework",
267 | "${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework",
268 | );
269 | name = "[CP] Embed Pods Frameworks";
270 | outputPaths = (
271 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
272 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework",
273 | );
274 | runOnlyForDeploymentPostprocessing = 0;
275 | shellPath = /bin/sh;
276 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
277 | showEnvVarsInLog = 0;
278 | };
279 | /* End PBXShellScriptBuildPhase section */
280 |
281 | /* Begin PBXSourcesBuildPhase section */
282 | 97C146EA1CF9000F007C117D /* Sources */ = {
283 | isa = PBXSourcesBuildPhase;
284 | buildActionMask = 2147483647;
285 | files = (
286 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
287 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
288 | );
289 | runOnlyForDeploymentPostprocessing = 0;
290 | };
291 | /* End PBXSourcesBuildPhase section */
292 |
293 | /* Begin PBXVariantGroup section */
294 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
295 | isa = PBXVariantGroup;
296 | children = (
297 | 97C146FB1CF9000F007C117D /* Base */,
298 | );
299 | name = Main.storyboard;
300 | sourceTree = "";
301 | };
302 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
303 | isa = PBXVariantGroup;
304 | children = (
305 | 97C147001CF9000F007C117D /* Base */,
306 | );
307 | name = LaunchScreen.storyboard;
308 | sourceTree = "";
309 | };
310 | /* End PBXVariantGroup section */
311 |
312 | /* Begin XCBuildConfiguration section */
313 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
314 | isa = XCBuildConfiguration;
315 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
316 | buildSettings = {
317 | ALWAYS_SEARCH_USER_PATHS = NO;
318 | CLANG_ANALYZER_NONNULL = YES;
319 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
320 | CLANG_CXX_LIBRARY = "libc++";
321 | CLANG_ENABLE_MODULES = YES;
322 | CLANG_ENABLE_OBJC_ARC = YES;
323 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
324 | CLANG_WARN_BOOL_CONVERSION = YES;
325 | CLANG_WARN_COMMA = YES;
326 | CLANG_WARN_CONSTANT_CONVERSION = YES;
327 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
328 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
329 | CLANG_WARN_EMPTY_BODY = YES;
330 | CLANG_WARN_ENUM_CONVERSION = YES;
331 | CLANG_WARN_INFINITE_RECURSION = YES;
332 | CLANG_WARN_INT_CONVERSION = YES;
333 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
334 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
335 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
336 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
337 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
338 | CLANG_WARN_STRICT_PROTOTYPES = YES;
339 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
340 | CLANG_WARN_UNREACHABLE_CODE = YES;
341 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
342 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
343 | COPY_PHASE_STRIP = NO;
344 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
345 | ENABLE_NS_ASSERTIONS = NO;
346 | ENABLE_STRICT_OBJC_MSGSEND = YES;
347 | GCC_C_LANGUAGE_STANDARD = gnu99;
348 | GCC_NO_COMMON_BLOCKS = YES;
349 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
350 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
351 | GCC_WARN_UNDECLARED_SELECTOR = YES;
352 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
353 | GCC_WARN_UNUSED_FUNCTION = YES;
354 | GCC_WARN_UNUSED_VARIABLE = YES;
355 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
356 | MTL_ENABLE_DEBUG_INFO = NO;
357 | SDKROOT = iphoneos;
358 | SUPPORTED_PLATFORMS = iphoneos;
359 | TARGETED_DEVICE_FAMILY = "1,2";
360 | VALIDATE_PRODUCT = YES;
361 | };
362 | name = Profile;
363 | };
364 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
365 | isa = XCBuildConfiguration;
366 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
367 | buildSettings = {
368 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
369 | CLANG_ENABLE_MODULES = YES;
370 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
371 | ENABLE_BITCODE = NO;
372 | FRAMEWORK_SEARCH_PATHS = (
373 | "$(inherited)",
374 | "$(PROJECT_DIR)/Flutter",
375 | );
376 | INFOPLIST_FILE = Runner/Info.plist;
377 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
378 | LIBRARY_SEARCH_PATHS = (
379 | "$(inherited)",
380 | "$(PROJECT_DIR)/Flutter",
381 | );
382 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hiveReminderApp;
383 | PRODUCT_NAME = "$(TARGET_NAME)";
384 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
385 | SWIFT_VERSION = 5.0;
386 | VERSIONING_SYSTEM = "apple-generic";
387 | };
388 | name = Profile;
389 | };
390 | 97C147031CF9000F007C117D /* Debug */ = {
391 | isa = XCBuildConfiguration;
392 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
393 | buildSettings = {
394 | ALWAYS_SEARCH_USER_PATHS = NO;
395 | CLANG_ANALYZER_NONNULL = YES;
396 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
397 | CLANG_CXX_LIBRARY = "libc++";
398 | CLANG_ENABLE_MODULES = YES;
399 | CLANG_ENABLE_OBJC_ARC = YES;
400 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
401 | CLANG_WARN_BOOL_CONVERSION = YES;
402 | CLANG_WARN_COMMA = YES;
403 | CLANG_WARN_CONSTANT_CONVERSION = YES;
404 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
405 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
406 | CLANG_WARN_EMPTY_BODY = YES;
407 | CLANG_WARN_ENUM_CONVERSION = YES;
408 | CLANG_WARN_INFINITE_RECURSION = YES;
409 | CLANG_WARN_INT_CONVERSION = YES;
410 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
411 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
412 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
413 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
414 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
415 | CLANG_WARN_STRICT_PROTOTYPES = YES;
416 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
417 | CLANG_WARN_UNREACHABLE_CODE = YES;
418 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
419 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
420 | COPY_PHASE_STRIP = NO;
421 | DEBUG_INFORMATION_FORMAT = dwarf;
422 | ENABLE_STRICT_OBJC_MSGSEND = YES;
423 | ENABLE_TESTABILITY = YES;
424 | GCC_C_LANGUAGE_STANDARD = gnu99;
425 | GCC_DYNAMIC_NO_PIC = NO;
426 | GCC_NO_COMMON_BLOCKS = YES;
427 | GCC_OPTIMIZATION_LEVEL = 0;
428 | GCC_PREPROCESSOR_DEFINITIONS = (
429 | "DEBUG=1",
430 | "$(inherited)",
431 | );
432 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
433 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
434 | GCC_WARN_UNDECLARED_SELECTOR = YES;
435 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
436 | GCC_WARN_UNUSED_FUNCTION = YES;
437 | GCC_WARN_UNUSED_VARIABLE = YES;
438 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
439 | MTL_ENABLE_DEBUG_INFO = YES;
440 | ONLY_ACTIVE_ARCH = YES;
441 | SDKROOT = iphoneos;
442 | TARGETED_DEVICE_FAMILY = "1,2";
443 | };
444 | name = Debug;
445 | };
446 | 97C147041CF9000F007C117D /* Release */ = {
447 | isa = XCBuildConfiguration;
448 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
449 | buildSettings = {
450 | ALWAYS_SEARCH_USER_PATHS = NO;
451 | CLANG_ANALYZER_NONNULL = YES;
452 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
453 | CLANG_CXX_LIBRARY = "libc++";
454 | CLANG_ENABLE_MODULES = YES;
455 | CLANG_ENABLE_OBJC_ARC = YES;
456 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
457 | CLANG_WARN_BOOL_CONVERSION = YES;
458 | CLANG_WARN_COMMA = YES;
459 | CLANG_WARN_CONSTANT_CONVERSION = YES;
460 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
461 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
462 | CLANG_WARN_EMPTY_BODY = YES;
463 | CLANG_WARN_ENUM_CONVERSION = YES;
464 | CLANG_WARN_INFINITE_RECURSION = YES;
465 | CLANG_WARN_INT_CONVERSION = YES;
466 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
467 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
468 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
469 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
470 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
471 | CLANG_WARN_STRICT_PROTOTYPES = YES;
472 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
473 | CLANG_WARN_UNREACHABLE_CODE = YES;
474 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
475 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
476 | COPY_PHASE_STRIP = NO;
477 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
478 | ENABLE_NS_ASSERTIONS = NO;
479 | ENABLE_STRICT_OBJC_MSGSEND = YES;
480 | GCC_C_LANGUAGE_STANDARD = gnu99;
481 | GCC_NO_COMMON_BLOCKS = YES;
482 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
483 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
484 | GCC_WARN_UNDECLARED_SELECTOR = YES;
485 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
486 | GCC_WARN_UNUSED_FUNCTION = YES;
487 | GCC_WARN_UNUSED_VARIABLE = YES;
488 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
489 | MTL_ENABLE_DEBUG_INFO = NO;
490 | SDKROOT = iphoneos;
491 | SUPPORTED_PLATFORMS = iphoneos;
492 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
493 | TARGETED_DEVICE_FAMILY = "1,2";
494 | VALIDATE_PRODUCT = YES;
495 | };
496 | name = Release;
497 | };
498 | 97C147061CF9000F007C117D /* Debug */ = {
499 | isa = XCBuildConfiguration;
500 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
501 | buildSettings = {
502 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
503 | CLANG_ENABLE_MODULES = YES;
504 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
505 | ENABLE_BITCODE = NO;
506 | FRAMEWORK_SEARCH_PATHS = (
507 | "$(inherited)",
508 | "$(PROJECT_DIR)/Flutter",
509 | );
510 | INFOPLIST_FILE = Runner/Info.plist;
511 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
512 | LIBRARY_SEARCH_PATHS = (
513 | "$(inherited)",
514 | "$(PROJECT_DIR)/Flutter",
515 | );
516 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hiveReminderApp;
517 | PRODUCT_NAME = "$(TARGET_NAME)";
518 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
519 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
520 | SWIFT_VERSION = 5.0;
521 | VERSIONING_SYSTEM = "apple-generic";
522 | };
523 | name = Debug;
524 | };
525 | 97C147071CF9000F007C117D /* Release */ = {
526 | isa = XCBuildConfiguration;
527 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
528 | buildSettings = {
529 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
530 | CLANG_ENABLE_MODULES = YES;
531 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
532 | ENABLE_BITCODE = NO;
533 | FRAMEWORK_SEARCH_PATHS = (
534 | "$(inherited)",
535 | "$(PROJECT_DIR)/Flutter",
536 | );
537 | INFOPLIST_FILE = Runner/Info.plist;
538 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
539 | LIBRARY_SEARCH_PATHS = (
540 | "$(inherited)",
541 | "$(PROJECT_DIR)/Flutter",
542 | );
543 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hiveReminderApp;
544 | PRODUCT_NAME = "$(TARGET_NAME)";
545 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
546 | SWIFT_VERSION = 5.0;
547 | VERSIONING_SYSTEM = "apple-generic";
548 | };
549 | name = Release;
550 | };
551 | /* End XCBuildConfiguration section */
552 |
553 | /* Begin XCConfigurationList section */
554 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
555 | isa = XCConfigurationList;
556 | buildConfigurations = (
557 | 97C147031CF9000F007C117D /* Debug */,
558 | 97C147041CF9000F007C117D /* Release */,
559 | 249021D3217E4FDB00AE95B9 /* Profile */,
560 | );
561 | defaultConfigurationIsVisible = 0;
562 | defaultConfigurationName = Release;
563 | };
564 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
565 | isa = XCConfigurationList;
566 | buildConfigurations = (
567 | 97C147061CF9000F007C117D /* Debug */,
568 | 97C147071CF9000F007C117D /* Release */,
569 | 249021D4217E4FDB00AE95B9 /* Profile */,
570 | );
571 | defaultConfigurationIsVisible = 0;
572 | defaultConfigurationName = Release;
573 | };
574 | /* End XCConfigurationList section */
575 | };
576 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
577 | }
578 |
--------------------------------------------------------------------------------
/complete/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/complete/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/complete/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/complete/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 |
--------------------------------------------------------------------------------
/complete/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/complete/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/complete/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/complete/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 |
--------------------------------------------------------------------------------
/complete/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 |
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/complete/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 |
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/complete/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/complete/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/complete/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.
--------------------------------------------------------------------------------
/complete/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 |
--------------------------------------------------------------------------------
/complete/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 |
--------------------------------------------------------------------------------
/complete/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 | hive_reminder_app
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 |
--------------------------------------------------------------------------------
/complete/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/complete/lib/UI/views/home/home_model.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:hive/hive.dart';
3 | import 'package:hive_reminder_app/core/models/inventory_model.dart';
4 |
5 | class HomeModel with ChangeNotifier {
6 | String _inventoryBox = 'inventory';
7 |
8 | List _inventoryList = [];
9 |
10 | List get inventoryList => _inventoryList;
11 |
12 | addItem(Inventory inventory) async {
13 | var box = await Hive.openBox(_inventoryBox);
14 |
15 | box.add(inventory);
16 |
17 | print('added');
18 |
19 | notifyListeners();
20 | }
21 |
22 | getItem() async {
23 | final box = await Hive.openBox(_inventoryBox);
24 |
25 | _inventoryList = box.values.toList();
26 |
27 | notifyListeners();
28 | }
29 |
30 | updateItem(int index, Inventory inventory) {
31 | final box = Hive.box(_inventoryBox);
32 |
33 | box.putAt(index, inventory);
34 |
35 | notifyListeners();
36 | }
37 |
38 | deleteItem(int index) {
39 | final box = Hive.box(_inventoryBox);
40 |
41 | box.deleteAt(index);
42 |
43 | getItem();
44 |
45 | notifyListeners();
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/complete/lib/UI/views/home/home_view.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:hive_reminder_app/core/models/inventory_model.dart';
3 | import 'package:provider/provider.dart';
4 |
5 | import '../../../app/extensions/size_extension.dart';
6 | import '../../../app/size_config.dart';
7 | import 'home_model.dart';
8 |
9 | class HomeView extends StatelessWidget {
10 | final _formKey = GlobalKey();
11 |
12 | final TextEditingController nameController = TextEditingController();
13 | final TextEditingController descriptionController = TextEditingController();
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | SizeConfig().init(context);
18 | context.watch().getItem();
19 |
20 | return Consumer(
21 | builder: (context, model, child) {
22 | return Scaffold(
23 | backgroundColor: Colors.grey[200],
24 | body: Padding(
25 | padding: EdgeInsets.only(top: 6.height),
26 | child: Column(
27 | children: [
28 | Text(
29 | 'Hive Inventory',
30 | style: TextStyle(
31 | fontSize: 24,
32 | fontWeight: FontWeight.w600,
33 | fontFamily: 'Lato',
34 | ),
35 | ),
36 | Container(
37 | height: 90.height,
38 | child: ListView.builder(
39 | itemCount: model.inventoryList.length,
40 | itemBuilder: (context, index) {
41 | Inventory inv = model.inventoryList[index];
42 | return Container(
43 | margin: EdgeInsets.symmetric(
44 | vertical: 2.height,
45 | horizontal: 4.5.width,
46 | ),
47 | height: 13.height,
48 | // width: 50.width,
49 | decoration: BoxDecoration(
50 | color: Colors.white,
51 | ),
52 | child: Row(
53 | children: [
54 | Container(
55 | margin: EdgeInsets.only(left: 2.width),
56 | width: 16.width,
57 | decoration: BoxDecoration(
58 | color: Colors.green[600],
59 | shape: BoxShape.circle,
60 | ),
61 | child: Center(
62 | child: Icon(
63 | Icons.home,
64 | color: Colors.white,
65 | ),
66 | ),
67 | ),
68 | Padding(
69 | padding: EdgeInsets.symmetric(
70 | vertical: 3.height,
71 | horizontal: 3.width,
72 | ),
73 | child: Column(
74 | crossAxisAlignment: CrossAxisAlignment.start,
75 | children: [
76 | Text(
77 | inv.name,
78 | style: TextStyle(
79 | color: Colors.green[600],
80 | fontWeight: FontWeight.w600,
81 | fontSize: 4.5.text,
82 | ),
83 | ),
84 | SizedBox(
85 | height: 1.height,
86 | ),
87 | Text(
88 | inv.description,
89 | style: TextStyle(
90 | color: Colors.grey,
91 | fontSize: 4.text,
92 | ),
93 | ),
94 | ],
95 | ),
96 | ),
97 | Padding(
98 | padding: EdgeInsets.only(left: 8.width),
99 | child: PopupMenuButton(
100 | onSelected: (item) {
101 | switch (item) {
102 | case 'update':
103 | nameController.text = inv.name;
104 | descriptionController.text =
105 | inv.description;
106 |
107 | inputItemDialog(context, 'update', index);
108 | break;
109 | case 'delete':
110 | model.deleteItem(index);
111 | }
112 | },
113 | itemBuilder: (context) {
114 | return [
115 | PopupMenuItem(
116 | value: 'update',
117 | child: Text('Update'),
118 | ),
119 | PopupMenuItem(
120 | value: 'delete',
121 | child: Text('Delete'),
122 | ),
123 | ];
124 | },
125 | ),
126 | ),
127 | ],
128 | ),
129 | );
130 | },
131 | ),
132 | ),
133 | ],
134 | ),
135 | ),
136 | floatingActionButton: FloatingActionButton(
137 | onPressed: () {
138 | inputItemDialog(context, 'add');
139 | },
140 | child: Icon(
141 | Icons.add,
142 | color: Colors.white,
143 | size: 8.width,
144 | ),
145 | ),
146 | );
147 | },
148 | );
149 | }
150 |
151 | inputItemDialog(BuildContext context, String action, [int index]) {
152 | var inventoryDb = Provider.of(context, listen: false);
153 |
154 | showDialog(
155 | context: context,
156 | builder: (context) {
157 | return Dialog(
158 | child: Container(
159 | padding: EdgeInsets.only(
160 | left: 15,
161 | right: 15,
162 | top: 40,
163 | ),
164 | height: 45.height,
165 | child: SingleChildScrollView(
166 | child: Form(
167 | key: _formKey,
168 | child: Column(
169 | children: [
170 | Text(
171 | action == 'add' ? 'Add Item' : 'Update Item',
172 | style: TextStyle(
173 | fontWeight: FontWeight.bold,
174 | fontSize: 20,
175 | ),
176 | ),
177 | SizedBox(
178 | height: 10,
179 | ),
180 | TextFormField(
181 | controller: nameController,
182 | validator: (value) {
183 | if (value.isEmpty) {
184 | return 'Item name cannot be empty';
185 | }
186 | return null;
187 | },
188 | decoration: InputDecoration(
189 | labelText: 'Item name',
190 | ),
191 | ),
192 | SizedBox(
193 | height: 40,
194 | ),
195 | TextFormField(
196 | controller: descriptionController,
197 | validator: (value) {
198 | if (value.isEmpty) {
199 | return 'Item description cannot be empty';
200 | }
201 | return null;
202 | },
203 | decoration: InputDecoration(
204 | labelText: 'Item description',
205 | ),
206 | ),
207 | SizedBox(
208 | height: 40,
209 | ),
210 | RaisedButton(
211 | onPressed: () async {
212 | if (_formKey.currentState.validate()) {
213 | if (action == 'add') {
214 | await inventoryDb.addItem(Inventory(
215 | name: nameController.text,
216 | description: descriptionController.text,
217 | ));
218 | } else {
219 | await inventoryDb.updateItem(
220 | index,
221 | Inventory(
222 | name: nameController.text,
223 | description: descriptionController.text,
224 | ));
225 | }
226 |
227 | nameController.clear();
228 | descriptionController.clear();
229 |
230 | inventoryDb.getItem();
231 |
232 | Navigator.pop(context);
233 | }
234 | },
235 | color: Colors.green[600],
236 | child: Text(
237 | action == 'add' ? 'Add' : 'update',
238 | style: TextStyle(
239 | fontSize: 16,
240 | color: Colors.white,
241 | ),
242 | ),
243 | ),
244 | SizedBox(
245 | height: 20,
246 | )
247 | ],
248 | ),
249 | ),
250 | ),
251 | ),
252 | );
253 | },
254 | );
255 | }
256 | }
257 |
--------------------------------------------------------------------------------
/complete/lib/app/extensions/size_extension.dart:
--------------------------------------------------------------------------------
1 | import '../size_config.dart';
2 |
3 | extension SizeExtension on num {
4 | num get height => SizeConfig.height(this.toDouble());
5 |
6 | num get width => SizeConfig.width(this.toDouble());
7 |
8 | num get text => SizeConfig.textSize(this.toDouble());
9 | }
10 |
--------------------------------------------------------------------------------
/complete/lib/app/provider_list.dart:
--------------------------------------------------------------------------------
1 | import 'package:hive_reminder_app/UI/views/home/home_model.dart';
2 | import 'package:provider/provider.dart';
3 | import 'package:provider/single_child_widget.dart';
4 |
5 |
6 | List providers = [
7 | ChangeNotifierProvider(create: (context) => HomeModel()),
8 | ];
9 |
10 |
--------------------------------------------------------------------------------
/complete/lib/app/router.dart:
--------------------------------------------------------------------------------
1 | import 'package:auto_route/auto_route_annotations.dart';
2 | import 'package:hive_reminder_app/UI/views/home/home_view.dart';
3 |
4 |
5 | @MaterialAutoRouter(
6 | routes: [
7 | // initial route is named "/"
8 | MaterialRoute(page: HomeView, initial: true),
9 | ],
10 | )
11 | class $Router {}
12 |
--------------------------------------------------------------------------------
/complete/lib/app/router.gr.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | // **************************************************************************
4 | // AutoRouteGenerator
5 | // **************************************************************************
6 |
7 | import 'package:flutter/material.dart';
8 | import 'package:flutter/cupertino.dart';
9 | import 'package:auto_route/auto_route.dart';
10 | import 'package:hive_reminder_app/UI/views/home/home_view.dart';
11 |
12 | class Routes {
13 | static const String homeView = '/';
14 | static const all = {
15 | homeView,
16 | };
17 | }
18 |
19 | class Router extends RouterBase {
20 | @override
21 | List get routes => _routes;
22 | final _routes = [
23 | RouteDef(Routes.homeView, page: HomeView),
24 | ];
25 | @override
26 | Map get pagesMap => _pagesMap;
27 | final _pagesMap = {
28 | HomeView: (RouteData data) {
29 | return MaterialPageRoute(
30 | builder: (context) => HomeView(),
31 | settings: data,
32 | );
33 | },
34 | };
35 | }
36 |
--------------------------------------------------------------------------------
/complete/lib/app/size_config.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | // class SizeConfig {
4 | // static MediaQueryData _mediaQueryData;
5 | // static double screenWidth;
6 | // static double screenHeight;
7 | // static double blockSizeHorizontal;
8 | // static double blockSizeVertical;
9 |
10 | // void init(BuildContext context) {
11 | // _mediaQueryData = MediaQuery.of(context);
12 | // screenWidth = _mediaQueryData.size.width;
13 | // screenHeight = _mediaQueryData.size.height;
14 | // blockSizeHorizontal = screenWidth / 100;
15 | // blockSizeVertical = screenHeight / 100;
16 | // }
17 | // }
18 |
19 | //A custom class for handling text size, margin szie and other responsiveness related issues
20 | class SizeConfig {
21 | // static keyword included so you can call this method without instantiating an object of it like so :
22 | // SizeConfig.height(context, 2)
23 |
24 | static BuildContext appContext;
25 | static MediaQueryData _mediaQueryData;
26 | static double screenWidth;
27 | static double screenHeight;
28 |
29 | void init(BuildContext context) {
30 | _mediaQueryData = MediaQuery.of(context);
31 | appContext = context;
32 | screenWidth = _mediaQueryData.size.width;
33 | screenHeight = _mediaQueryData.size.height;
34 | }
35 |
36 | static double height(double height) {
37 | double screenHeight = _mediaQueryData.size.height / 100;
38 | return height * screenHeight;
39 | }
40 |
41 | static double width(double width) {
42 | double screenWidth = _mediaQueryData.size.width / 100;
43 | return width * screenWidth;
44 | }
45 |
46 | static double textSize(double textSize) {
47 | double screenWidth = _mediaQueryData.size.width / 100;
48 | return textSize * screenWidth;
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/complete/lib/core/models/inventory_model.dart:
--------------------------------------------------------------------------------
1 | import 'package:hive/hive.dart';
2 |
3 | part 'inventory_model.g.dart';
4 |
5 | @HiveType()
6 | class Inventory {
7 | @HiveField(0)
8 | final String name;
9 |
10 | @HiveField(1)
11 | final String description;
12 |
13 | @HiveField(2)
14 | final DateTime date;
15 |
16 | Inventory({this.date, this.name, this.description});
17 | }
18 |
--------------------------------------------------------------------------------
/complete/lib/core/models/inventory_model.g.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | part of 'inventory_model.dart';
4 |
5 | // **************************************************************************
6 | // TypeAdapterGenerator
7 | // **************************************************************************
8 |
9 | class InventoryAdapter extends TypeAdapter {
10 | @override
11 | Inventory read(BinaryReader reader) {
12 | var numOfFields = reader.readByte();
13 | var fields = {
14 | for (var i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
15 | };
16 | return Inventory(
17 | date: fields[2] as DateTime,
18 | name: fields[0] as String,
19 | description: fields[1] as String,
20 | );
21 | }
22 |
23 | @override
24 | void write(BinaryWriter writer, Inventory obj) {
25 | writer
26 | ..writeByte(3)
27 | ..writeByte(0)
28 | ..write(obj.name)
29 | ..writeByte(1)
30 | ..write(obj.description)
31 | ..writeByte(2)
32 | ..write(obj.date);
33 | }
34 |
35 | @override
36 | int get typeId => 0;
37 | }
38 |
--------------------------------------------------------------------------------
/complete/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:hive/hive.dart';
5 | import 'package:hive_reminder_app/app/provider_list.dart';
6 | import 'package:hive_reminder_app/app/router.gr.dart';
7 | import 'package:hive_reminder_app/core/models/inventory_model.dart';
8 | import 'package:path_provider/path_provider.dart' as pathProvider;
9 | import 'package:provider/provider.dart';
10 |
11 | Future main() async {
12 | WidgetsFlutterBinding.ensureInitialized();
13 | Directory directory = await pathProvider.getApplicationDocumentsDirectory();
14 | Hive.init(directory.path);
15 | Hive.registerAdapter(InventoryAdapter());
16 | runApp(MyApp());
17 | }
18 |
19 | class MyApp extends StatelessWidget {
20 | @override
21 | Widget build(BuildContext context) {
22 | return MultiProvider(
23 | providers: providers,
24 | child: MaterialApp(
25 | debugShowCheckedModeBanner: false,
26 | title: 'Hive Inventory',
27 | theme: ThemeData(
28 | primarySwatch: Colors.green,
29 | visualDensity: VisualDensity.adaptivePlatformDensity,
30 | fontFamily: 'Lato',
31 | ),
32 | onGenerateRoute: Router(),
33 | ),
34 | );
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/complete/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: "5.0.0"
11 | analyzer:
12 | dependency: transitive
13 | description:
14 | name: analyzer
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "0.39.13"
18 | archive:
19 | dependency: transitive
20 | description:
21 | name: archive
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.0.13"
25 | args:
26 | dependency: transitive
27 | description:
28 | name: args
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.6.0"
32 | async:
33 | dependency: transitive
34 | description:
35 | name: async
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "2.4.1"
39 | auto_route:
40 | dependency: "direct main"
41 | description:
42 | name: auto_route
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "0.6.1"
46 | auto_route_generator:
47 | dependency: "direct dev"
48 | description:
49 | name: auto_route_generator
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "0.6.0"
53 | boolean_selector:
54 | dependency: transitive
55 | description:
56 | name: boolean_selector
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "2.0.0"
60 | build:
61 | dependency: transitive
62 | description:
63 | name: build
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.3.0"
67 | build_config:
68 | dependency: transitive
69 | description:
70 | name: build_config
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "0.4.2"
74 | build_daemon:
75 | dependency: transitive
76 | description:
77 | name: build_daemon
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "2.1.4"
81 | build_resolvers:
82 | dependency: transitive
83 | description:
84 | name: build_resolvers
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "1.3.10"
88 | build_runner:
89 | dependency: "direct dev"
90 | description:
91 | name: build_runner
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "1.10.0"
95 | build_runner_core:
96 | dependency: transitive
97 | description:
98 | name: build_runner_core
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "5.2.0"
102 | built_collection:
103 | dependency: transitive
104 | description:
105 | name: built_collection
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "4.3.2"
109 | built_value:
110 | dependency: transitive
111 | description:
112 | name: built_value
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "7.1.0"
116 | charcode:
117 | dependency: transitive
118 | description:
119 | name: charcode
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "1.1.3"
123 | checked_yaml:
124 | dependency: transitive
125 | description:
126 | name: checked_yaml
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "1.0.2"
130 | code_builder:
131 | dependency: transitive
132 | description:
133 | name: code_builder
134 | url: "https://pub.dartlang.org"
135 | source: hosted
136 | version: "3.4.0"
137 | collection:
138 | dependency: transitive
139 | description:
140 | name: collection
141 | url: "https://pub.dartlang.org"
142 | source: hosted
143 | version: "1.14.12"
144 | convert:
145 | dependency: transitive
146 | description:
147 | name: convert
148 | url: "https://pub.dartlang.org"
149 | source: hosted
150 | version: "2.1.1"
151 | crypto:
152 | dependency: transitive
153 | description:
154 | name: crypto
155 | url: "https://pub.dartlang.org"
156 | source: hosted
157 | version: "2.1.4"
158 | csslib:
159 | dependency: transitive
160 | description:
161 | name: csslib
162 | url: "https://pub.dartlang.org"
163 | source: hosted
164 | version: "0.16.1"
165 | cupertino_icons:
166 | dependency: "direct main"
167 | description:
168 | name: cupertino_icons
169 | url: "https://pub.dartlang.org"
170 | source: hosted
171 | version: "0.1.3"
172 | dart_style:
173 | dependency: transitive
174 | description:
175 | name: dart_style
176 | url: "https://pub.dartlang.org"
177 | source: hosted
178 | version: "1.3.6"
179 | file:
180 | dependency: transitive
181 | description:
182 | name: file
183 | url: "https://pub.dartlang.org"
184 | source: hosted
185 | version: "5.2.1"
186 | fixnum:
187 | dependency: transitive
188 | description:
189 | name: fixnum
190 | url: "https://pub.dartlang.org"
191 | source: hosted
192 | version: "0.10.11"
193 | flutter:
194 | dependency: "direct main"
195 | description: flutter
196 | source: sdk
197 | version: "0.0.0"
198 | flutter_screenutil:
199 | dependency: "direct main"
200 | description:
201 | name: flutter_screenutil
202 | url: "https://pub.dartlang.org"
203 | source: hosted
204 | version: "1.1.0"
205 | flutter_test:
206 | dependency: "direct dev"
207 | description: flutter
208 | source: sdk
209 | version: "0.0.0"
210 | glob:
211 | dependency: transitive
212 | description:
213 | name: glob
214 | url: "https://pub.dartlang.org"
215 | source: hosted
216 | version: "1.2.0"
217 | graphs:
218 | dependency: transitive
219 | description:
220 | name: graphs
221 | url: "https://pub.dartlang.org"
222 | source: hosted
223 | version: "0.2.0"
224 | hive:
225 | dependency: "direct main"
226 | description:
227 | name: hive
228 | url: "https://pub.dartlang.org"
229 | source: hosted
230 | version: "1.4.1+1"
231 | hive_flutter:
232 | dependency: "direct main"
233 | description:
234 | name: hive_flutter
235 | url: "https://pub.dartlang.org"
236 | source: hosted
237 | version: "0.3.0+2"
238 | hive_generator:
239 | dependency: "direct dev"
240 | description:
241 | name: hive_generator
242 | url: "https://pub.dartlang.org"
243 | source: hosted
244 | version: "0.5.2"
245 | html:
246 | dependency: transitive
247 | description:
248 | name: html
249 | url: "https://pub.dartlang.org"
250 | source: hosted
251 | version: "0.14.0+3"
252 | http_multi_server:
253 | dependency: transitive
254 | description:
255 | name: http_multi_server
256 | url: "https://pub.dartlang.org"
257 | source: hosted
258 | version: "2.2.0"
259 | http_parser:
260 | dependency: transitive
261 | description:
262 | name: http_parser
263 | url: "https://pub.dartlang.org"
264 | source: hosted
265 | version: "3.1.4"
266 | image:
267 | dependency: transitive
268 | description:
269 | name: image
270 | url: "https://pub.dartlang.org"
271 | source: hosted
272 | version: "2.1.12"
273 | intl:
274 | dependency: transitive
275 | description:
276 | name: intl
277 | url: "https://pub.dartlang.org"
278 | source: hosted
279 | version: "0.16.1"
280 | io:
281 | dependency: transitive
282 | description:
283 | name: io
284 | url: "https://pub.dartlang.org"
285 | source: hosted
286 | version: "0.3.4"
287 | js:
288 | dependency: transitive
289 | description:
290 | name: js
291 | url: "https://pub.dartlang.org"
292 | source: hosted
293 | version: "0.6.2"
294 | json_annotation:
295 | dependency: transitive
296 | description:
297 | name: json_annotation
298 | url: "https://pub.dartlang.org"
299 | source: hosted
300 | version: "3.0.1"
301 | logging:
302 | dependency: transitive
303 | description:
304 | name: logging
305 | url: "https://pub.dartlang.org"
306 | source: hosted
307 | version: "0.11.4"
308 | matcher:
309 | dependency: transitive
310 | description:
311 | name: matcher
312 | url: "https://pub.dartlang.org"
313 | source: hosted
314 | version: "0.12.6"
315 | meta:
316 | dependency: transitive
317 | description:
318 | name: meta
319 | url: "https://pub.dartlang.org"
320 | source: hosted
321 | version: "1.1.8"
322 | mime:
323 | dependency: transitive
324 | description:
325 | name: mime
326 | url: "https://pub.dartlang.org"
327 | source: hosted
328 | version: "0.9.6+3"
329 | nested:
330 | dependency: transitive
331 | description:
332 | name: nested
333 | url: "https://pub.dartlang.org"
334 | source: hosted
335 | version: "0.0.4"
336 | node_interop:
337 | dependency: transitive
338 | description:
339 | name: node_interop
340 | url: "https://pub.dartlang.org"
341 | source: hosted
342 | version: "1.1.1"
343 | node_io:
344 | dependency: transitive
345 | description:
346 | name: node_io
347 | url: "https://pub.dartlang.org"
348 | source: hosted
349 | version: "1.1.1"
350 | package_config:
351 | dependency: transitive
352 | description:
353 | name: package_config
354 | url: "https://pub.dartlang.org"
355 | source: hosted
356 | version: "1.9.3"
357 | path:
358 | dependency: transitive
359 | description:
360 | name: path
361 | url: "https://pub.dartlang.org"
362 | source: hosted
363 | version: "1.6.4"
364 | path_provider:
365 | dependency: "direct main"
366 | description:
367 | name: path_provider
368 | url: "https://pub.dartlang.org"
369 | source: hosted
370 | version: "1.6.11"
371 | path_provider_linux:
372 | dependency: transitive
373 | description:
374 | name: path_provider_linux
375 | url: "https://pub.dartlang.org"
376 | source: hosted
377 | version: "0.0.1+2"
378 | path_provider_macos:
379 | dependency: transitive
380 | description:
381 | name: path_provider_macos
382 | url: "https://pub.dartlang.org"
383 | source: hosted
384 | version: "0.0.4+3"
385 | path_provider_platform_interface:
386 | dependency: transitive
387 | description:
388 | name: path_provider_platform_interface
389 | url: "https://pub.dartlang.org"
390 | source: hosted
391 | version: "1.0.2"
392 | pedantic:
393 | dependency: transitive
394 | description:
395 | name: pedantic
396 | url: "https://pub.dartlang.org"
397 | source: hosted
398 | version: "1.9.0"
399 | petitparser:
400 | dependency: transitive
401 | description:
402 | name: petitparser
403 | url: "https://pub.dartlang.org"
404 | source: hosted
405 | version: "2.4.0"
406 | platform:
407 | dependency: transitive
408 | description:
409 | name: platform
410 | url: "https://pub.dartlang.org"
411 | source: hosted
412 | version: "2.2.1"
413 | plugin_platform_interface:
414 | dependency: transitive
415 | description:
416 | name: plugin_platform_interface
417 | url: "https://pub.dartlang.org"
418 | source: hosted
419 | version: "1.0.2"
420 | pool:
421 | dependency: transitive
422 | description:
423 | name: pool
424 | url: "https://pub.dartlang.org"
425 | source: hosted
426 | version: "1.4.0"
427 | process:
428 | dependency: transitive
429 | description:
430 | name: process
431 | url: "https://pub.dartlang.org"
432 | source: hosted
433 | version: "3.0.13"
434 | provider:
435 | dependency: "direct main"
436 | description:
437 | name: provider
438 | url: "https://pub.dartlang.org"
439 | source: hosted
440 | version: "4.3.1"
441 | pub_semver:
442 | dependency: transitive
443 | description:
444 | name: pub_semver
445 | url: "https://pub.dartlang.org"
446 | source: hosted
447 | version: "1.4.4"
448 | pubspec_parse:
449 | dependency: transitive
450 | description:
451 | name: pubspec_parse
452 | url: "https://pub.dartlang.org"
453 | source: hosted
454 | version: "0.1.5"
455 | quiver:
456 | dependency: transitive
457 | description:
458 | name: quiver
459 | url: "https://pub.dartlang.org"
460 | source: hosted
461 | version: "2.1.3"
462 | shelf:
463 | dependency: transitive
464 | description:
465 | name: shelf
466 | url: "https://pub.dartlang.org"
467 | source: hosted
468 | version: "0.7.7"
469 | shelf_web_socket:
470 | dependency: transitive
471 | description:
472 | name: shelf_web_socket
473 | url: "https://pub.dartlang.org"
474 | source: hosted
475 | version: "0.2.3"
476 | sky_engine:
477 | dependency: transitive
478 | description: flutter
479 | source: sdk
480 | version: "0.0.99"
481 | source_gen:
482 | dependency: transitive
483 | description:
484 | name: source_gen
485 | url: "https://pub.dartlang.org"
486 | source: hosted
487 | version: "0.9.6"
488 | source_span:
489 | dependency: transitive
490 | description:
491 | name: source_span
492 | url: "https://pub.dartlang.org"
493 | source: hosted
494 | version: "1.7.0"
495 | stack_trace:
496 | dependency: transitive
497 | description:
498 | name: stack_trace
499 | url: "https://pub.dartlang.org"
500 | source: hosted
501 | version: "1.9.3"
502 | stream_channel:
503 | dependency: transitive
504 | description:
505 | name: stream_channel
506 | url: "https://pub.dartlang.org"
507 | source: hosted
508 | version: "2.0.0"
509 | stream_transform:
510 | dependency: transitive
511 | description:
512 | name: stream_transform
513 | url: "https://pub.dartlang.org"
514 | source: hosted
515 | version: "1.2.0"
516 | string_scanner:
517 | dependency: transitive
518 | description:
519 | name: string_scanner
520 | url: "https://pub.dartlang.org"
521 | source: hosted
522 | version: "1.0.5"
523 | term_glyph:
524 | dependency: transitive
525 | description:
526 | name: term_glyph
527 | url: "https://pub.dartlang.org"
528 | source: hosted
529 | version: "1.1.0"
530 | test_api:
531 | dependency: transitive
532 | description:
533 | name: test_api
534 | url: "https://pub.dartlang.org"
535 | source: hosted
536 | version: "0.2.15"
537 | timing:
538 | dependency: transitive
539 | description:
540 | name: timing
541 | url: "https://pub.dartlang.org"
542 | source: hosted
543 | version: "0.1.1+2"
544 | typed_data:
545 | dependency: transitive
546 | description:
547 | name: typed_data
548 | url: "https://pub.dartlang.org"
549 | source: hosted
550 | version: "1.1.6"
551 | vector_math:
552 | dependency: transitive
553 | description:
554 | name: vector_math
555 | url: "https://pub.dartlang.org"
556 | source: hosted
557 | version: "2.0.8"
558 | watcher:
559 | dependency: transitive
560 | description:
561 | name: watcher
562 | url: "https://pub.dartlang.org"
563 | source: hosted
564 | version: "0.9.7+15"
565 | web_socket_channel:
566 | dependency: transitive
567 | description:
568 | name: web_socket_channel
569 | url: "https://pub.dartlang.org"
570 | source: hosted
571 | version: "1.1.0"
572 | xdg_directories:
573 | dependency: transitive
574 | description:
575 | name: xdg_directories
576 | url: "https://pub.dartlang.org"
577 | source: hosted
578 | version: "0.1.0"
579 | xml:
580 | dependency: transitive
581 | description:
582 | name: xml
583 | url: "https://pub.dartlang.org"
584 | source: hosted
585 | version: "3.6.1"
586 | yaml:
587 | dependency: transitive
588 | description:
589 | name: yaml
590 | url: "https://pub.dartlang.org"
591 | source: hosted
592 | version: "2.2.1"
593 | sdks:
594 | dart: ">=2.7.0 <3.0.0"
595 | flutter: ">=1.16.0 <2.0.0"
596 |
--------------------------------------------------------------------------------
/complete/pubspec.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | name: hive_reminder_app
3 | description: A new Flutter project.
4 | publish_to: none
5 | version: 1.0.0+1
6 | environment:
7 | sdk: '>=2.7.0 <3.0.0'
8 | dependencies:
9 | flutter:
10 | sdk: flutter
11 | provider: ^4.3.1
12 | auto_route: ^0.6.1
13 | cupertino_icons: ^0.1.3
14 | hive: ^1.4.1+1
15 | hive_flutter: ^0.3.0+2
16 | path_provider: ^1.6.5
17 | flutter_screenutil: ^1.1.0
18 |
19 | dev_dependencies:
20 | flutter_test:
21 | sdk: flutter
22 | build_runner: ^1.8.0
23 | auto_route_generator: ^0.6.0
24 | hive_generator: ^0.5.0
25 |
26 | flutter:
27 | uses-material-design: true
28 | fonts:
29 | - family: Lato
30 | fonts:
31 | - asset: fonts/Lato-Regular.ttf
32 | - asset: fonts/Lato-Italic.ttf
33 | style: italic
34 | - asset: fonts/Lato-Bold.ttf
35 | weight: 700
36 |
--------------------------------------------------------------------------------
/complete/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:hive_reminder_app/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 |
--------------------------------------------------------------------------------
/starter/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/.DS_Store
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/.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 | .flutter-plugins-dependencies
28 | .packages
29 | .pub-cache/
30 | .pub/
31 | /build/
32 |
33 | # Web related
34 | lib/generated_plugin_registrant.dart
35 |
36 | # Symbolication related
37 | app.*.symbols
38 |
39 | # Obfuscation related
40 | app.*.map.json
41 |
42 | # Exceptions to above rules.
43 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
44 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/.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: 8af6b2f038c1172e61d418869363a28dffec3cb4
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/README.md:
--------------------------------------------------------------------------------
1 | # hive_inventory_starter
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13 |
14 | For help getting started with Flutter, view our
15 | [online documentation](https://flutter.dev/docs), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/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 "com.example.hive_inventory_starter"
42 | minSdkVersion 16
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | }
47 |
48 | buildTypes {
49 | release {
50 | // TODO: Add your own signing config for the release build.
51 | // Signing with the debug keys for now, so `flutter run --release` works.
52 | signingConfig signingConfigs.debug
53 | }
54 | }
55 | }
56 |
57 | flutter {
58 | source '../..'
59 | }
60 |
61 | dependencies {
62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
63 | }
64 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
8 |
12 |
19 |
23 |
27 |
32 |
36 |
37 |
38 |
39 |
40 |
41 |
43 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/app/src/main/kotlin/com/example/hive_inventory_starter/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.hive_inventory_starter
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.5.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.enableR8=true
3 | android.useAndroidX=true
4 | android.enableJetifier=true
5 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
7 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/android/settings.gradle:
--------------------------------------------------------------------------------
1 | // Copyright 2014 The Flutter Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style license that can be
3 | // found in the LICENSE file.
4 |
5 | include ':app'
6 |
7 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
8 | def properties = new Properties()
9 |
10 | assert localPropertiesFile.exists()
11 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
12 |
13 | def flutterSdkPath = properties.getProperty("flutter.sdk")
14 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
15 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
16 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/fonts/Lato-Black.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/fonts/Lato-Black.ttf
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/fonts/Lato-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/fonts/Lato-Bold.ttf
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/fonts/Lato-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/fonts/Lato-Italic.ttf
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/fonts/Lato-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/fonts/Lato-Regular.ttf
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/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 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 97C146F11CF9000F007C117D /* Supporting Files */,
94 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
95 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
96 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
97 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
98 | );
99 | path = Runner;
100 | sourceTree = "";
101 | };
102 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
103 | isa = PBXGroup;
104 | children = (
105 | );
106 | name = "Supporting Files";
107 | sourceTree = "";
108 | };
109 | /* End PBXGroup section */
110 |
111 | /* Begin PBXNativeTarget section */
112 | 97C146ED1CF9000F007C117D /* Runner */ = {
113 | isa = PBXNativeTarget;
114 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
115 | buildPhases = (
116 | 9740EEB61CF901F6004384FC /* Run Script */,
117 | 97C146EA1CF9000F007C117D /* Sources */,
118 | 97C146EB1CF9000F007C117D /* Frameworks */,
119 | 97C146EC1CF9000F007C117D /* Resources */,
120 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
121 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
122 | );
123 | buildRules = (
124 | );
125 | dependencies = (
126 | );
127 | name = Runner;
128 | productName = Runner;
129 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
130 | productType = "com.apple.product-type.application";
131 | };
132 | /* End PBXNativeTarget section */
133 |
134 | /* Begin PBXProject section */
135 | 97C146E61CF9000F007C117D /* Project object */ = {
136 | isa = PBXProject;
137 | attributes = {
138 | LastUpgradeCheck = 1020;
139 | ORGANIZATIONNAME = "";
140 | TargetAttributes = {
141 | 97C146ED1CF9000F007C117D = {
142 | CreatedOnToolsVersion = 7.3.1;
143 | LastSwiftMigration = 1100;
144 | };
145 | };
146 | };
147 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
148 | compatibilityVersion = "Xcode 9.3";
149 | developmentRegion = en;
150 | hasScannedForEncodings = 0;
151 | knownRegions = (
152 | en,
153 | Base,
154 | );
155 | mainGroup = 97C146E51CF9000F007C117D;
156 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
157 | projectDirPath = "";
158 | projectRoot = "";
159 | targets = (
160 | 97C146ED1CF9000F007C117D /* Runner */,
161 | );
162 | };
163 | /* End PBXProject section */
164 |
165 | /* Begin PBXResourcesBuildPhase section */
166 | 97C146EC1CF9000F007C117D /* Resources */ = {
167 | isa = PBXResourcesBuildPhase;
168 | buildActionMask = 2147483647;
169 | files = (
170 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
171 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
172 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
173 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
174 | );
175 | runOnlyForDeploymentPostprocessing = 0;
176 | };
177 | /* End PBXResourcesBuildPhase section */
178 |
179 | /* Begin PBXShellScriptBuildPhase section */
180 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
181 | isa = PBXShellScriptBuildPhase;
182 | buildActionMask = 2147483647;
183 | files = (
184 | );
185 | inputPaths = (
186 | );
187 | name = "Thin Binary";
188 | outputPaths = (
189 | );
190 | runOnlyForDeploymentPostprocessing = 0;
191 | shellPath = /bin/sh;
192 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
193 | };
194 | 9740EEB61CF901F6004384FC /* Run Script */ = {
195 | isa = PBXShellScriptBuildPhase;
196 | buildActionMask = 2147483647;
197 | files = (
198 | );
199 | inputPaths = (
200 | );
201 | name = "Run Script";
202 | outputPaths = (
203 | );
204 | runOnlyForDeploymentPostprocessing = 0;
205 | shellPath = /bin/sh;
206 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
207 | };
208 | /* End PBXShellScriptBuildPhase section */
209 |
210 | /* Begin PBXSourcesBuildPhase section */
211 | 97C146EA1CF9000F007C117D /* Sources */ = {
212 | isa = PBXSourcesBuildPhase;
213 | buildActionMask = 2147483647;
214 | files = (
215 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
216 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
217 | );
218 | runOnlyForDeploymentPostprocessing = 0;
219 | };
220 | /* End PBXSourcesBuildPhase section */
221 |
222 | /* Begin PBXVariantGroup section */
223 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C146FB1CF9000F007C117D /* Base */,
227 | );
228 | name = Main.storyboard;
229 | sourceTree = "";
230 | };
231 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
232 | isa = PBXVariantGroup;
233 | children = (
234 | 97C147001CF9000F007C117D /* Base */,
235 | );
236 | name = LaunchScreen.storyboard;
237 | sourceTree = "";
238 | };
239 | /* End PBXVariantGroup section */
240 |
241 | /* Begin XCBuildConfiguration section */
242 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
243 | isa = XCBuildConfiguration;
244 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
245 | buildSettings = {
246 | ALWAYS_SEARCH_USER_PATHS = NO;
247 | CLANG_ANALYZER_NONNULL = YES;
248 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
249 | CLANG_CXX_LIBRARY = "libc++";
250 | CLANG_ENABLE_MODULES = YES;
251 | CLANG_ENABLE_OBJC_ARC = YES;
252 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
253 | CLANG_WARN_BOOL_CONVERSION = YES;
254 | CLANG_WARN_COMMA = YES;
255 | CLANG_WARN_CONSTANT_CONVERSION = YES;
256 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
257 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
258 | CLANG_WARN_EMPTY_BODY = YES;
259 | CLANG_WARN_ENUM_CONVERSION = YES;
260 | CLANG_WARN_INFINITE_RECURSION = YES;
261 | CLANG_WARN_INT_CONVERSION = YES;
262 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
263 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
264 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
265 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
266 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
267 | CLANG_WARN_STRICT_PROTOTYPES = YES;
268 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
269 | CLANG_WARN_UNREACHABLE_CODE = YES;
270 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
271 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
272 | COPY_PHASE_STRIP = NO;
273 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
274 | ENABLE_NS_ASSERTIONS = NO;
275 | ENABLE_STRICT_OBJC_MSGSEND = YES;
276 | GCC_C_LANGUAGE_STANDARD = gnu99;
277 | GCC_NO_COMMON_BLOCKS = YES;
278 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
279 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
280 | GCC_WARN_UNDECLARED_SELECTOR = YES;
281 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
282 | GCC_WARN_UNUSED_FUNCTION = YES;
283 | GCC_WARN_UNUSED_VARIABLE = YES;
284 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
285 | MTL_ENABLE_DEBUG_INFO = NO;
286 | SDKROOT = iphoneos;
287 | SUPPORTED_PLATFORMS = iphoneos;
288 | TARGETED_DEVICE_FAMILY = "1,2";
289 | VALIDATE_PRODUCT = YES;
290 | };
291 | name = Profile;
292 | };
293 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
294 | isa = XCBuildConfiguration;
295 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
296 | buildSettings = {
297 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
298 | CLANG_ENABLE_MODULES = YES;
299 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
300 | ENABLE_BITCODE = NO;
301 | FRAMEWORK_SEARCH_PATHS = (
302 | "$(inherited)",
303 | "$(PROJECT_DIR)/Flutter",
304 | );
305 | INFOPLIST_FILE = Runner/Info.plist;
306 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
307 | LIBRARY_SEARCH_PATHS = (
308 | "$(inherited)",
309 | "$(PROJECT_DIR)/Flutter",
310 | );
311 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hiveInventoryStarter;
312 | PRODUCT_NAME = "$(TARGET_NAME)";
313 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
314 | SWIFT_VERSION = 5.0;
315 | VERSIONING_SYSTEM = "apple-generic";
316 | };
317 | name = Profile;
318 | };
319 | 97C147031CF9000F007C117D /* Debug */ = {
320 | isa = XCBuildConfiguration;
321 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
322 | buildSettings = {
323 | ALWAYS_SEARCH_USER_PATHS = NO;
324 | CLANG_ANALYZER_NONNULL = YES;
325 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
326 | CLANG_CXX_LIBRARY = "libc++";
327 | CLANG_ENABLE_MODULES = YES;
328 | CLANG_ENABLE_OBJC_ARC = YES;
329 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
330 | CLANG_WARN_BOOL_CONVERSION = YES;
331 | CLANG_WARN_COMMA = YES;
332 | CLANG_WARN_CONSTANT_CONVERSION = YES;
333 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
334 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
335 | CLANG_WARN_EMPTY_BODY = YES;
336 | CLANG_WARN_ENUM_CONVERSION = YES;
337 | CLANG_WARN_INFINITE_RECURSION = YES;
338 | CLANG_WARN_INT_CONVERSION = YES;
339 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
340 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
341 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
342 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
343 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
344 | CLANG_WARN_STRICT_PROTOTYPES = YES;
345 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
346 | CLANG_WARN_UNREACHABLE_CODE = YES;
347 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
348 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
349 | COPY_PHASE_STRIP = NO;
350 | DEBUG_INFORMATION_FORMAT = dwarf;
351 | ENABLE_STRICT_OBJC_MSGSEND = YES;
352 | ENABLE_TESTABILITY = YES;
353 | GCC_C_LANGUAGE_STANDARD = gnu99;
354 | GCC_DYNAMIC_NO_PIC = NO;
355 | GCC_NO_COMMON_BLOCKS = YES;
356 | GCC_OPTIMIZATION_LEVEL = 0;
357 | GCC_PREPROCESSOR_DEFINITIONS = (
358 | "DEBUG=1",
359 | "$(inherited)",
360 | );
361 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
362 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
363 | GCC_WARN_UNDECLARED_SELECTOR = YES;
364 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
365 | GCC_WARN_UNUSED_FUNCTION = YES;
366 | GCC_WARN_UNUSED_VARIABLE = YES;
367 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
368 | MTL_ENABLE_DEBUG_INFO = YES;
369 | ONLY_ACTIVE_ARCH = YES;
370 | SDKROOT = iphoneos;
371 | TARGETED_DEVICE_FAMILY = "1,2";
372 | };
373 | name = Debug;
374 | };
375 | 97C147041CF9000F007C117D /* Release */ = {
376 | isa = XCBuildConfiguration;
377 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
378 | buildSettings = {
379 | ALWAYS_SEARCH_USER_PATHS = NO;
380 | CLANG_ANALYZER_NONNULL = YES;
381 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
382 | CLANG_CXX_LIBRARY = "libc++";
383 | CLANG_ENABLE_MODULES = YES;
384 | CLANG_ENABLE_OBJC_ARC = YES;
385 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
386 | CLANG_WARN_BOOL_CONVERSION = YES;
387 | CLANG_WARN_COMMA = YES;
388 | CLANG_WARN_CONSTANT_CONVERSION = YES;
389 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
390 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
391 | CLANG_WARN_EMPTY_BODY = YES;
392 | CLANG_WARN_ENUM_CONVERSION = YES;
393 | CLANG_WARN_INFINITE_RECURSION = YES;
394 | CLANG_WARN_INT_CONVERSION = YES;
395 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
396 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
397 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
398 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
399 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
400 | CLANG_WARN_STRICT_PROTOTYPES = YES;
401 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
402 | CLANG_WARN_UNREACHABLE_CODE = YES;
403 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
404 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
405 | COPY_PHASE_STRIP = NO;
406 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
407 | ENABLE_NS_ASSERTIONS = NO;
408 | ENABLE_STRICT_OBJC_MSGSEND = YES;
409 | GCC_C_LANGUAGE_STANDARD = gnu99;
410 | GCC_NO_COMMON_BLOCKS = YES;
411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
413 | GCC_WARN_UNDECLARED_SELECTOR = YES;
414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
415 | GCC_WARN_UNUSED_FUNCTION = YES;
416 | GCC_WARN_UNUSED_VARIABLE = YES;
417 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
418 | MTL_ENABLE_DEBUG_INFO = NO;
419 | SDKROOT = iphoneos;
420 | SUPPORTED_PLATFORMS = iphoneos;
421 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
422 | TARGETED_DEVICE_FAMILY = "1,2";
423 | VALIDATE_PRODUCT = YES;
424 | };
425 | name = Release;
426 | };
427 | 97C147061CF9000F007C117D /* Debug */ = {
428 | isa = XCBuildConfiguration;
429 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
430 | buildSettings = {
431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
432 | CLANG_ENABLE_MODULES = YES;
433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
434 | ENABLE_BITCODE = NO;
435 | FRAMEWORK_SEARCH_PATHS = (
436 | "$(inherited)",
437 | "$(PROJECT_DIR)/Flutter",
438 | );
439 | INFOPLIST_FILE = Runner/Info.plist;
440 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
441 | LIBRARY_SEARCH_PATHS = (
442 | "$(inherited)",
443 | "$(PROJECT_DIR)/Flutter",
444 | );
445 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hiveInventoryStarter;
446 | PRODUCT_NAME = "$(TARGET_NAME)";
447 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
448 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
449 | SWIFT_VERSION = 5.0;
450 | VERSIONING_SYSTEM = "apple-generic";
451 | };
452 | name = Debug;
453 | };
454 | 97C147071CF9000F007C117D /* Release */ = {
455 | isa = XCBuildConfiguration;
456 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
457 | buildSettings = {
458 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
459 | CLANG_ENABLE_MODULES = YES;
460 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
461 | ENABLE_BITCODE = NO;
462 | FRAMEWORK_SEARCH_PATHS = (
463 | "$(inherited)",
464 | "$(PROJECT_DIR)/Flutter",
465 | );
466 | INFOPLIST_FILE = Runner/Info.plist;
467 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
468 | LIBRARY_SEARCH_PATHS = (
469 | "$(inherited)",
470 | "$(PROJECT_DIR)/Flutter",
471 | );
472 | PRODUCT_BUNDLE_IDENTIFIER = com.example.hiveInventoryStarter;
473 | PRODUCT_NAME = "$(TARGET_NAME)";
474 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
475 | SWIFT_VERSION = 5.0;
476 | VERSIONING_SYSTEM = "apple-generic";
477 | };
478 | name = Release;
479 | };
480 | /* End XCBuildConfiguration section */
481 |
482 | /* Begin XCConfigurationList section */
483 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
484 | isa = XCConfigurationList;
485 | buildConfigurations = (
486 | 97C147031CF9000F007C117D /* Debug */,
487 | 97C147041CF9000F007C117D /* Release */,
488 | 249021D3217E4FDB00AE95B9 /* Profile */,
489 | );
490 | defaultConfigurationIsVisible = 0;
491 | defaultConfigurationName = Release;
492 | };
493 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
494 | isa = XCConfigurationList;
495 | buildConfigurations = (
496 | 97C147061CF9000F007C117D /* Debug */,
497 | 97C147071CF9000F007C117D /* Release */,
498 | 249021D4217E4FDB00AE95B9 /* Profile */,
499 | );
500 | defaultConfigurationIsVisible = 0;
501 | defaultConfigurationName = Release;
502 | };
503 | /* End XCConfigurationList section */
504 | };
505 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
506 | }
507 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/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 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/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 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/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 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/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 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/a-oboh/flutter-hive-example/fd776f77567e53b75886166405057ab404129477/starter/hive_inventory_starter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/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.
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/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 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/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 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/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 | hive_inventory_starter
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 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/lib/UI/views/home/home_model.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class HomeModel with ChangeNotifier {}
4 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/lib/UI/views/home/home_view.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:provider/provider.dart';
3 |
4 | import '../../../app/extensions/size_extension.dart';
5 | import '../../../app/size_config.dart';
6 | import 'home_model.dart';
7 |
8 | class HomeView extends StatelessWidget {
9 | final _formKey = GlobalKey();
10 |
11 | final TextEditingController nameController = TextEditingController();
12 | final TextEditingController descriptionController = TextEditingController();
13 |
14 | @override
15 | Widget build(BuildContext context) {
16 | SizeConfig().init(context);
17 |
18 | return Consumer(
19 | builder: (context, model, child) {
20 | return Scaffold(
21 | backgroundColor: Colors.grey[200],
22 | body: Padding(
23 | padding: EdgeInsets.only(top: 6.height),
24 | child: Column(
25 | children: [
26 | Text(
27 | 'Hive Inventory',
28 | style: TextStyle(
29 | fontSize: 24,
30 | fontWeight: FontWeight.w600,
31 | fontFamily: 'Lato',
32 | ),
33 | ),
34 | Container(
35 | height: 90.height,
36 | child: ListView.builder(
37 | itemCount: 3,
38 | itemBuilder: (context, index) {
39 | return Container(
40 | margin: EdgeInsets.symmetric(
41 | vertical: 2.height,
42 | horizontal: 4.5.width,
43 | ),
44 | height: 13.height,
45 | // width: 50.width,
46 | decoration: BoxDecoration(
47 | color: Colors.white,
48 | ),
49 | child: Row(
50 | children: [
51 | Container(
52 | margin: EdgeInsets.only(left: 2.width),
53 | width: 16.width,
54 | decoration: BoxDecoration(
55 | color: Colors.green[600],
56 | shape: BoxShape.circle,
57 | ),
58 | child: Center(
59 | child: Icon(
60 | Icons.home,
61 | color: Colors.white,
62 | ),
63 | ),
64 | ),
65 | Padding(
66 | padding: EdgeInsets.symmetric(
67 | vertical: 3.height,
68 | horizontal: 3.width,
69 | ),
70 | child: Column(
71 | crossAxisAlignment: CrossAxisAlignment.start,
72 | children: [
73 | Text(
74 | 'Name',
75 | style: TextStyle(
76 | color: Colors.green[600],
77 | fontWeight: FontWeight.w600,
78 | fontSize: 4.5.text,
79 | ),
80 | ),
81 | SizedBox(
82 | height: 1.height,
83 | ),
84 | Text(
85 | 'Description',
86 | style: TextStyle(
87 | color: Colors.grey,
88 | fontSize: 4.text,
89 | ),
90 | ),
91 | ],
92 | ),
93 | ),
94 | Padding(
95 | padding: EdgeInsets.only(left: 8.width),
96 | child: PopupMenuButton(
97 | onSelected: (item) {
98 | switch (item) {
99 | case 'update':
100 | nameController.text = 'update name';
101 | descriptionController.text =
102 | 'update description';
103 |
104 | inputItemDialog(context, 'update', index);
105 | break;
106 | case 'delete':
107 | //TODO: delete item
108 | }
109 | },
110 | itemBuilder: (context) {
111 | return [
112 | PopupMenuItem(
113 | value: 'update',
114 | child: Text('Update'),
115 | ),
116 | PopupMenuItem(
117 | value: 'delete',
118 | child: Text('Delete'),
119 | ),
120 | ];
121 | },
122 | ),
123 | ),
124 | ],
125 | ),
126 | );
127 | },
128 | ),
129 | ),
130 | ],
131 | ),
132 | ),
133 | floatingActionButton: FloatingActionButton(
134 | onPressed: () {
135 | inputItemDialog(context, 'add');
136 | },
137 | child: Icon(
138 | Icons.add,
139 | color: Colors.white,
140 | size: 8.width,
141 | ),
142 | ),
143 | );
144 | },
145 | );
146 | }
147 |
148 | inputItemDialog(BuildContext context, String action, [int index]) {
149 | var inventoryDb = Provider.of(context, listen: false);
150 |
151 | showDialog(
152 | context: context,
153 | builder: (context) {
154 | return Dialog(
155 | child: Container(
156 | padding: EdgeInsets.only(
157 | left: 15,
158 | right: 15,
159 | top: 40,
160 | ),
161 | height: 45.height,
162 | child: SingleChildScrollView(
163 | child: Form(
164 | key: _formKey,
165 | child: Column(
166 | children: [
167 | Text(
168 | action == 'add' ? 'Add Item' : 'Update Item',
169 | style: TextStyle(
170 | fontWeight: FontWeight.bold,
171 | fontSize: 20,
172 | ),
173 | ),
174 | SizedBox(
175 | height: 10,
176 | ),
177 | TextFormField(
178 | controller: nameController,
179 | validator: (value) {
180 | if (value.isEmpty) {
181 | return 'Item name cannot be empty';
182 | }
183 | return null;
184 | },
185 | decoration: InputDecoration(
186 | labelText: 'Item name',
187 | ),
188 | ),
189 | SizedBox(
190 | height: 40,
191 | ),
192 | TextFormField(
193 | controller: descriptionController,
194 | validator: (value) {
195 | if (value.isEmpty) {
196 | return 'Item description cannot be empty';
197 | }
198 | return null;
199 | },
200 | decoration: InputDecoration(
201 | labelText: 'Item description',
202 | ),
203 | ),
204 | SizedBox(
205 | height: 40,
206 | ),
207 | RaisedButton(
208 | onPressed: () async {
209 | if (_formKey.currentState.validate()) {
210 | if (action == 'add') {
211 | //TODO: add items
212 | } else {
213 | //TODO: update items
214 | }
215 |
216 | nameController.clear();
217 | descriptionController.clear();
218 |
219 | Navigator.pop(context);
220 | }
221 | },
222 | color: Colors.green[600],
223 | child: Text(
224 | action == 'add' ? 'Add' : 'update',
225 | style: TextStyle(
226 | fontSize: 16,
227 | color: Colors.white,
228 | ),
229 | ),
230 | ),
231 | SizedBox(
232 | height: 20,
233 | )
234 | ],
235 | ),
236 | ),
237 | ),
238 | ),
239 | );
240 | },
241 | );
242 | }
243 | }
244 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/lib/app/extensions/size_extension.dart:
--------------------------------------------------------------------------------
1 | import '../size_config.dart';
2 |
3 | extension SizeExtension on num {
4 | num get height => SizeConfig.height(this.toDouble());
5 |
6 | num get width => SizeConfig.width(this.toDouble());
7 |
8 | num get text => SizeConfig.textSize(this.toDouble());
9 | }
10 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/lib/app/provider_list.dart:
--------------------------------------------------------------------------------
1 | import 'package:hive_inventory_starter/UI/views/home/home_model.dart';
2 | import 'package:provider/provider.dart';
3 | import 'package:provider/single_child_widget.dart';
4 |
5 |
6 | List providers = [
7 | ChangeNotifierProvider(create: (context) => HomeModel()),
8 | ];
9 |
10 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/lib/app/router.dart:
--------------------------------------------------------------------------------
1 | import 'package:auto_route/auto_route_annotations.dart';
2 | import 'package:hive_inventory_starter/UI/views/home/home_view.dart';
3 |
4 |
5 | @MaterialAutoRouter(
6 | routes: [
7 | // initial route is named "/"
8 | MaterialRoute(page: HomeView, initial: true),
9 | ],
10 | )
11 | class $Router {}
12 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/lib/app/router.gr.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | // **************************************************************************
4 | // AutoRouteGenerator
5 | // **************************************************************************
6 |
7 | import 'package:flutter/material.dart';
8 | import 'package:flutter/cupertino.dart';
9 | import 'package:auto_route/auto_route.dart';
10 | import 'package:hive_inventory_starter/UI/views/home/home_view.dart';
11 |
12 | class Routes {
13 | static const String homeView = '/';
14 | static const all = {
15 | homeView,
16 | };
17 | }
18 |
19 | class Router extends RouterBase {
20 | @override
21 | List get routes => _routes;
22 | final _routes = [
23 | RouteDef(Routes.homeView, page: HomeView),
24 | ];
25 | @override
26 | Map get pagesMap => _pagesMap;
27 | final _pagesMap = {
28 | HomeView: (RouteData data) {
29 | return MaterialPageRoute(
30 | builder: (context) => HomeView(),
31 | settings: data,
32 | );
33 | },
34 | };
35 | }
36 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/lib/app/size_config.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | // class SizeConfig {
4 | // static MediaQueryData _mediaQueryData;
5 | // static double screenWidth;
6 | // static double screenHeight;
7 | // static double blockSizeHorizontal;
8 | // static double blockSizeVertical;
9 |
10 | // void init(BuildContext context) {
11 | // _mediaQueryData = MediaQuery.of(context);
12 | // screenWidth = _mediaQueryData.size.width;
13 | // screenHeight = _mediaQueryData.size.height;
14 | // blockSizeHorizontal = screenWidth / 100;
15 | // blockSizeVertical = screenHeight / 100;
16 | // }
17 | // }
18 |
19 | //A custom class for handling text size, margin szie and other responsiveness related issues
20 | class SizeConfig {
21 | // static keyword included so you can call this method without instantiating an object of it like so :
22 | // SizeConfig.height(context, 2)
23 |
24 | static BuildContext appContext;
25 | static MediaQueryData _mediaQueryData;
26 | static double screenWidth;
27 | static double screenHeight;
28 |
29 | void init(BuildContext context) {
30 | _mediaQueryData = MediaQuery.of(context);
31 | appContext = context;
32 | screenWidth = _mediaQueryData.size.width;
33 | screenHeight = _mediaQueryData.size.height;
34 | }
35 |
36 | static double height(double height) {
37 | double screenHeight = _mediaQueryData.size.height / 100;
38 | return height * screenHeight;
39 | }
40 |
41 | static double width(double width) {
42 | double screenWidth = _mediaQueryData.size.width / 100;
43 | return width * screenWidth;
44 | }
45 |
46 | static double textSize(double textSize) {
47 | double screenWidth = _mediaQueryData.size.width / 100;
48 | return textSize * screenWidth;
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:hive_inventory_starter/app/provider_list.dart';
3 | import 'package:provider/provider.dart';
4 |
5 | import 'app/router.gr.dart';
6 |
7 | void main() {
8 | runApp(MyApp());
9 | }
10 |
11 | class MyApp extends StatelessWidget {
12 | @override
13 | Widget build(BuildContext context) {
14 | return MultiProvider(
15 | providers: providers,
16 | child: MaterialApp(
17 | debugShowCheckedModeBanner: false,
18 | title: 'Hive Inventory',
19 | theme: ThemeData(
20 | primarySwatch: Colors.green,
21 | visualDensity: VisualDensity.adaptivePlatformDensity,
22 | fontFamily: 'Lato',
23 | ),
24 | onGenerateRoute: Router(),
25 | ),
26 | );
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/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: "5.0.0"
11 | analyzer:
12 | dependency: transitive
13 | description:
14 | name: analyzer
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "0.39.13"
18 | archive:
19 | dependency: transitive
20 | description:
21 | name: archive
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.0.13"
25 | args:
26 | dependency: transitive
27 | description:
28 | name: args
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.6.0"
32 | async:
33 | dependency: transitive
34 | description:
35 | name: async
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "2.4.1"
39 | auto_route:
40 | dependency: "direct main"
41 | description:
42 | name: auto_route
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "0.6.1"
46 | auto_route_generator:
47 | dependency: "direct main"
48 | description:
49 | name: auto_route_generator
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "0.6.0"
53 | boolean_selector:
54 | dependency: transitive
55 | description:
56 | name: boolean_selector
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "2.0.0"
60 | build:
61 | dependency: transitive
62 | description:
63 | name: build
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.3.0"
67 | build_config:
68 | dependency: transitive
69 | description:
70 | name: build_config
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "0.4.2"
74 | build_daemon:
75 | dependency: transitive
76 | description:
77 | name: build_daemon
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "2.1.4"
81 | build_resolvers:
82 | dependency: transitive
83 | description:
84 | name: build_resolvers
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "1.3.10"
88 | build_runner:
89 | dependency: "direct main"
90 | description:
91 | name: build_runner
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "1.10.0"
95 | build_runner_core:
96 | dependency: transitive
97 | description:
98 | name: build_runner_core
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "5.2.0"
102 | built_collection:
103 | dependency: transitive
104 | description:
105 | name: built_collection
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "4.3.2"
109 | built_value:
110 | dependency: transitive
111 | description:
112 | name: built_value
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "7.1.0"
116 | charcode:
117 | dependency: transitive
118 | description:
119 | name: charcode
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "1.1.3"
123 | checked_yaml:
124 | dependency: transitive
125 | description:
126 | name: checked_yaml
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "1.0.2"
130 | code_builder:
131 | dependency: transitive
132 | description:
133 | name: code_builder
134 | url: "https://pub.dartlang.org"
135 | source: hosted
136 | version: "3.4.0"
137 | collection:
138 | dependency: transitive
139 | description:
140 | name: collection
141 | url: "https://pub.dartlang.org"
142 | source: hosted
143 | version: "1.14.12"
144 | convert:
145 | dependency: transitive
146 | description:
147 | name: convert
148 | url: "https://pub.dartlang.org"
149 | source: hosted
150 | version: "2.1.1"
151 | crypto:
152 | dependency: transitive
153 | description:
154 | name: crypto
155 | url: "https://pub.dartlang.org"
156 | source: hosted
157 | version: "2.1.4"
158 | csslib:
159 | dependency: transitive
160 | description:
161 | name: csslib
162 | url: "https://pub.dartlang.org"
163 | source: hosted
164 | version: "0.16.1"
165 | cupertino_icons:
166 | dependency: "direct main"
167 | description:
168 | name: cupertino_icons
169 | url: "https://pub.dartlang.org"
170 | source: hosted
171 | version: "0.1.3"
172 | dart_style:
173 | dependency: transitive
174 | description:
175 | name: dart_style
176 | url: "https://pub.dartlang.org"
177 | source: hosted
178 | version: "1.3.6"
179 | fixnum:
180 | dependency: transitive
181 | description:
182 | name: fixnum
183 | url: "https://pub.dartlang.org"
184 | source: hosted
185 | version: "0.10.11"
186 | flutter:
187 | dependency: "direct main"
188 | description: flutter
189 | source: sdk
190 | version: "0.0.0"
191 | flutter_test:
192 | dependency: "direct dev"
193 | description: flutter
194 | source: sdk
195 | version: "0.0.0"
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 | html:
211 | dependency: transitive
212 | description:
213 | name: html
214 | url: "https://pub.dartlang.org"
215 | source: hosted
216 | version: "0.14.0+3"
217 | http_multi_server:
218 | dependency: transitive
219 | description:
220 | name: http_multi_server
221 | url: "https://pub.dartlang.org"
222 | source: hosted
223 | version: "2.2.0"
224 | http_parser:
225 | dependency: transitive
226 | description:
227 | name: http_parser
228 | url: "https://pub.dartlang.org"
229 | source: hosted
230 | version: "3.1.4"
231 | image:
232 | dependency: transitive
233 | description:
234 | name: image
235 | url: "https://pub.dartlang.org"
236 | source: hosted
237 | version: "2.1.12"
238 | io:
239 | dependency: transitive
240 | description:
241 | name: io
242 | url: "https://pub.dartlang.org"
243 | source: hosted
244 | version: "0.3.4"
245 | js:
246 | dependency: transitive
247 | description:
248 | name: js
249 | url: "https://pub.dartlang.org"
250 | source: hosted
251 | version: "0.6.2"
252 | json_annotation:
253 | dependency: transitive
254 | description:
255 | name: json_annotation
256 | url: "https://pub.dartlang.org"
257 | source: hosted
258 | version: "3.0.1"
259 | logging:
260 | dependency: transitive
261 | description:
262 | name: logging
263 | url: "https://pub.dartlang.org"
264 | source: hosted
265 | version: "0.11.4"
266 | matcher:
267 | dependency: transitive
268 | description:
269 | name: matcher
270 | url: "https://pub.dartlang.org"
271 | source: hosted
272 | version: "0.12.6"
273 | meta:
274 | dependency: transitive
275 | description:
276 | name: meta
277 | url: "https://pub.dartlang.org"
278 | source: hosted
279 | version: "1.1.8"
280 | mime:
281 | dependency: transitive
282 | description:
283 | name: mime
284 | url: "https://pub.dartlang.org"
285 | source: hosted
286 | version: "0.9.6+3"
287 | nested:
288 | dependency: transitive
289 | description:
290 | name: nested
291 | url: "https://pub.dartlang.org"
292 | source: hosted
293 | version: "0.0.4"
294 | node_interop:
295 | dependency: transitive
296 | description:
297 | name: node_interop
298 | url: "https://pub.dartlang.org"
299 | source: hosted
300 | version: "1.1.1"
301 | node_io:
302 | dependency: transitive
303 | description:
304 | name: node_io
305 | url: "https://pub.dartlang.org"
306 | source: hosted
307 | version: "1.1.1"
308 | package_config:
309 | dependency: transitive
310 | description:
311 | name: package_config
312 | url: "https://pub.dartlang.org"
313 | source: hosted
314 | version: "1.9.3"
315 | path:
316 | dependency: transitive
317 | description:
318 | name: path
319 | url: "https://pub.dartlang.org"
320 | source: hosted
321 | version: "1.6.4"
322 | pedantic:
323 | dependency: transitive
324 | description:
325 | name: pedantic
326 | url: "https://pub.dartlang.org"
327 | source: hosted
328 | version: "1.9.0"
329 | petitparser:
330 | dependency: transitive
331 | description:
332 | name: petitparser
333 | url: "https://pub.dartlang.org"
334 | source: hosted
335 | version: "2.4.0"
336 | pool:
337 | dependency: transitive
338 | description:
339 | name: pool
340 | url: "https://pub.dartlang.org"
341 | source: hosted
342 | version: "1.4.0"
343 | provider:
344 | dependency: "direct main"
345 | description:
346 | name: provider
347 | url: "https://pub.dartlang.org"
348 | source: hosted
349 | version: "4.3.1"
350 | pub_semver:
351 | dependency: transitive
352 | description:
353 | name: pub_semver
354 | url: "https://pub.dartlang.org"
355 | source: hosted
356 | version: "1.4.4"
357 | pubspec_parse:
358 | dependency: transitive
359 | description:
360 | name: pubspec_parse
361 | url: "https://pub.dartlang.org"
362 | source: hosted
363 | version: "0.1.5"
364 | quiver:
365 | dependency: transitive
366 | description:
367 | name: quiver
368 | url: "https://pub.dartlang.org"
369 | source: hosted
370 | version: "2.1.3"
371 | shelf:
372 | dependency: transitive
373 | description:
374 | name: shelf
375 | url: "https://pub.dartlang.org"
376 | source: hosted
377 | version: "0.7.7"
378 | shelf_web_socket:
379 | dependency: transitive
380 | description:
381 | name: shelf_web_socket
382 | url: "https://pub.dartlang.org"
383 | source: hosted
384 | version: "0.2.3"
385 | sky_engine:
386 | dependency: transitive
387 | description: flutter
388 | source: sdk
389 | version: "0.0.99"
390 | source_gen:
391 | dependency: transitive
392 | description:
393 | name: source_gen
394 | url: "https://pub.dartlang.org"
395 | source: hosted
396 | version: "0.9.6"
397 | source_span:
398 | dependency: transitive
399 | description:
400 | name: source_span
401 | url: "https://pub.dartlang.org"
402 | source: hosted
403 | version: "1.7.0"
404 | stack_trace:
405 | dependency: transitive
406 | description:
407 | name: stack_trace
408 | url: "https://pub.dartlang.org"
409 | source: hosted
410 | version: "1.9.3"
411 | stream_channel:
412 | dependency: transitive
413 | description:
414 | name: stream_channel
415 | url: "https://pub.dartlang.org"
416 | source: hosted
417 | version: "2.0.0"
418 | stream_transform:
419 | dependency: transitive
420 | description:
421 | name: stream_transform
422 | url: "https://pub.dartlang.org"
423 | source: hosted
424 | version: "1.2.0"
425 | string_scanner:
426 | dependency: transitive
427 | description:
428 | name: string_scanner
429 | url: "https://pub.dartlang.org"
430 | source: hosted
431 | version: "1.0.5"
432 | term_glyph:
433 | dependency: transitive
434 | description:
435 | name: term_glyph
436 | url: "https://pub.dartlang.org"
437 | source: hosted
438 | version: "1.1.0"
439 | test_api:
440 | dependency: transitive
441 | description:
442 | name: test_api
443 | url: "https://pub.dartlang.org"
444 | source: hosted
445 | version: "0.2.15"
446 | timing:
447 | dependency: transitive
448 | description:
449 | name: timing
450 | url: "https://pub.dartlang.org"
451 | source: hosted
452 | version: "0.1.1+2"
453 | typed_data:
454 | dependency: transitive
455 | description:
456 | name: typed_data
457 | url: "https://pub.dartlang.org"
458 | source: hosted
459 | version: "1.1.6"
460 | vector_math:
461 | dependency: transitive
462 | description:
463 | name: vector_math
464 | url: "https://pub.dartlang.org"
465 | source: hosted
466 | version: "2.0.8"
467 | watcher:
468 | dependency: transitive
469 | description:
470 | name: watcher
471 | url: "https://pub.dartlang.org"
472 | source: hosted
473 | version: "0.9.7+15"
474 | web_socket_channel:
475 | dependency: transitive
476 | description:
477 | name: web_socket_channel
478 | url: "https://pub.dartlang.org"
479 | source: hosted
480 | version: "1.1.0"
481 | xml:
482 | dependency: transitive
483 | description:
484 | name: xml
485 | url: "https://pub.dartlang.org"
486 | source: hosted
487 | version: "3.6.1"
488 | yaml:
489 | dependency: transitive
490 | description:
491 | name: yaml
492 | url: "https://pub.dartlang.org"
493 | source: hosted
494 | version: "2.2.1"
495 | sdks:
496 | dart: ">=2.7.0 <3.0.0"
497 | flutter: ">=1.16.0"
498 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: hive_inventory_starter
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.7.0 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 |
27 |
28 | # The following adds the Cupertino Icons font to your application.
29 | # Use with the CupertinoIcons class for iOS style icons.
30 | cupertino_icons: ^0.1.3
31 | provider: ^4.3.1
32 | auto_route: ^0.6.1
33 | build_runner: ^1.8.0
34 | auto_route_generator: ^0.6.0
35 |
36 | dev_dependencies:
37 | flutter_test:
38 | sdk: flutter
39 |
40 | # For information on the generic Dart part of this file, see the
41 | # following page: https://dart.dev/tools/pub/pubspec
42 |
43 | # The following section is specific to Flutter.
44 | flutter:
45 |
46 | # The following line ensures that the Material Icons font is
47 | # included with your application, so that you can use the icons in
48 | # the material Icons class.
49 | uses-material-design: true
50 | fonts:
51 | - family: Lato
52 | fonts:
53 | - asset: fonts/Lato-Regular.ttf
54 | - asset: fonts/Lato-Italic.ttf
55 | style: italic
56 | - asset: fonts/Lato-Bold.ttf
57 | weight: 700
58 |
59 | # To add assets to your application, add an assets section, like this:
60 | # assets:
61 | # - images/a_dot_burr.jpeg
62 | # - images/a_dot_ham.jpeg
63 |
64 | # An image asset can refer to one or more resolution-specific "variants", see
65 | # https://flutter.dev/assets-and-images/#resolution-aware.
66 |
67 | # For details regarding adding assets from package dependencies, see
68 | # https://flutter.dev/assets-and-images/#from-packages
69 |
70 | # To add custom fonts to your application, add a fonts section here,
71 | # in this "flutter" section. Each entry in this list should have a
72 | # "family" key with the font family name, and a "fonts" key with a
73 | # list giving the asset and other descriptors for the font. For
74 | # example:
75 | # fonts:
76 | # - family: Schyler
77 | # fonts:
78 | # - asset: fonts/Schyler-Regular.ttf
79 | # - asset: fonts/Schyler-Italic.ttf
80 | # style: italic
81 | # - family: Trajan Pro
82 | # fonts:
83 | # - asset: fonts/TrajanPro.ttf
84 | # - asset: fonts/TrajanPro_Bold.ttf
85 | # weight: 700
86 | #
87 | # For details regarding fonts from package dependencies,
88 | # see https://flutter.dev/custom-fonts/#from-packages
89 |
--------------------------------------------------------------------------------
/starter/hive_inventory_starter/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:hive_inventory_starter/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 |
--------------------------------------------------------------------------------