├── .gitignore
├── .metadata
├── README.md
├── android
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── fiwic
│ │ │ │ └── firebase_auth_app
│ │ │ │ └── MainActivity.java
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── ios
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── main.m
├── lib
├── components
│ ├── ItemDetailForm.dart
│ ├── ItemsList.dart
│ ├── LoadingCircle.dart
│ ├── MenuDrawer.dart
│ └── MessageSnack.dart
├── main.dart
├── model
│ └── Item.dart
├── screens
│ ├── About.dart
│ ├── AddItem.dart
│ ├── Home.dart
│ ├── ItemDetail.dart
│ ├── Login.dart
│ └── Settings.dart
└── services
│ ├── auth.dart
│ └── data.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── widget_test.dart
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # Visual Studio Code related
19 | .vscode/
20 |
21 | # Flutter/Dart/Pub related
22 | **/doc/api/
23 | .dart_tool/
24 | .flutter-plugins
25 | .packages
26 | .pub-cache/
27 | .pub/
28 | /build/
29 |
30 | # Android related
31 | **/android/**/gradle-wrapper.jar
32 | **/android/.gradle
33 | **/android/captures/
34 | **/android/gradlew
35 | **/android/gradlew.bat
36 | **/android/local.properties
37 | **/android/**/GeneratedPluginRegistrant.java
38 |
39 | # iOS/XCode related
40 | **/ios/**/*.mode1v3
41 | **/ios/**/*.mode2v3
42 | **/ios/**/*.moved-aside
43 | **/ios/**/*.pbxuser
44 | **/ios/**/*.perspectivev3
45 | **/ios/**/*sync/
46 | **/ios/**/.sconsign.dblite
47 | **/ios/**/.tags*
48 | **/ios/**/.vagrant/
49 | **/ios/**/DerivedData/
50 | **/ios/**/Icon?
51 | **/ios/**/Pods/
52 | **/ios/**/.symlinks/
53 | **/ios/**/profile
54 | **/ios/**/xcuserdata
55 | **/ios/.generated/
56 | **/ios/Flutter/App.framework
57 | **/ios/Flutter/Flutter.framework
58 | **/ios/Flutter/Generated.xcconfig
59 | **/ios/Flutter/app.flx
60 | **/ios/Flutter/app.zip
61 | **/ios/Flutter/flutter_assets/
62 | **/ios/ServiceDefinitions.json
63 | **/ios/Runner/GeneratedPluginRegistrant.*
64 |
65 | # ignore the google credentials file
66 | **/android/app/google-services.json
67 | **/ios/Runner/GoogleService-Info.plist
68 |
69 |
70 | # Exceptions to above rules.
71 | !**/ios/**/default.mode1v3
72 | !**/ios/**/default.mode2v3
73 | !**/ios/**/default.pbxuser
74 | !**/ios/**/default.perspectivev3
75 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
76 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 8661d8aecd626f7f57ccbcb735553edc05a2e713
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Flutter Firebase Sample App
2 |
3 | A Flutter application integrating Firebase for data storage
4 |
5 | - Create Account
6 | - Login
7 | - All CRUD actions on data object
8 | - Flutter Features/Functionality Utilized
9 | - Pages
10 | - Snackbar: showing errors and alerts
11 | - Navigation: changing pages and showing modals
12 | - Futures: interacting with firebase
13 | - Forms/Form Fields: login and creating an account
14 | - Date Picker: creating an item
15 | - Dismissible: allows user to swipe to delete list item
16 | - StatefulWidget
17 | - StatelessWidget
18 |
19 | Watch Video Here: https://video.twimg.com/ext_tw_video/1126242410512769026/pu/vid/612x1280/oqi7wxmGwVh2z-CD.mp4?tag=9
20 |
21 | ### Packages Utilized
22 | - https://pub.dev/packages/firebase_core
23 | - https://pub.dartlang.org/packages/cloud_firestore
24 | - https://pub.dev/packages/flutter_icons
25 |
26 | ## Please Follow Firebase Setup Instructions
27 | - there is no google-services.json including in the project, you will need to create your own
28 | - this initial commit supports android and ios
29 | - ran into issue with ios that required me to update all of the podfiles
30 | - ran into issue with android that require me to modify build properties
31 | - see this link for additional setup issues https://codelabs.developers.google.com/codelabs/flutter-firebase/index.html#6
32 |
33 | ## Getting Started
34 |
35 | This project is a starting point for a Flutter application.
36 |
37 | A few resources to get you started if this is your first Flutter project:
38 |
39 | - [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab)
40 | - [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook)
41 |
42 | For help getting started with Flutter, view our
43 | [online documentation](https://flutter.io/docs), which offers tutorials,
44 | samples, guidance on mobile development, and a full API reference.
45 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26 |
27 | android {
28 | compileSdkVersion 28
29 |
30 | lintOptions {
31 | disable 'InvalidPackage'
32 | }
33 |
34 | defaultConfig {
35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
36 | applicationId "com.fiwic.firebase_auth_app"
37 | minSdkVersion 21
38 | targetSdkVersion 28
39 | versionCode flutterVersionCode.toInteger()
40 | versionName flutterVersionName
41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
42 | multiDexEnabled true
43 |
44 | }
45 |
46 | buildTypes {
47 | release {
48 | // TODO: Add your own signing config for the release build.
49 | // Signing with the debug keys for now, so `flutter run --release` works.
50 | signingConfig signingConfigs.debug
51 | }
52 | }
53 | }
54 |
55 | flutter {
56 | source '../..'
57 | }
58 |
59 | dependencies {
60 | testImplementation 'junit:junit:4.12'
61 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
62 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
63 | implementation 'com.google.firebase:firebase-core:16.0.1'
64 | }
65 |
66 | apply plugin: 'com.google.gms.google-services'
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
9 |
13 |
20 |
24 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/fiwic/firebase_auth_app/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.fiwic.firebase_auth_app;
2 |
3 | import android.os.Bundle;
4 | import io.flutter.app.FlutterActivity;
5 | import io.flutter.plugins.GeneratedPluginRegistrant;
6 |
7 | public class MainActivity extends FlutterActivity {
8 | @Override
9 | protected void onCreate(Bundle savedInstanceState) {
10 | super.onCreate(savedInstanceState);
11 | GeneratedPluginRegistrant.registerWith(this);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | google()
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:3.2.1'
9 | classpath 'com.google.gms:google-services:4.0.1'
10 | }
11 | }
12 |
13 | allprojects {
14 | repositories {
15 | google()
16 | jcenter()
17 | }
18 | }
19 |
20 | rootProject.buildDir = '../build'
21 | subprojects {
22 | project.buildDir = "${rootProject.buildDir}/${project.name}"
23 | }
24 | subprojects {
25 | project.evaluationDependsOn(':app')
26 | }
27 |
28 | task clean(type: Delete) {
29 | delete rootProject.buildDir
30 | }
31 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def parse_KV_file(file, separator='=')
14 | file_abs_path = File.expand_path(file)
15 | if !File.exists? file_abs_path
16 | return [];
17 | end
18 | pods_ary = []
19 | skip_line_start_symbols = ["#", "/"]
20 | File.foreach(file_abs_path) { |line|
21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
22 | plugin = line.split(pattern=separator)
23 | if plugin.length == 2
24 | podname = plugin[0].strip()
25 | path = plugin[1].strip()
26 | podpath = File.expand_path("#{path}", file_abs_path)
27 | pods_ary.push({:name => podname, :path => podpath});
28 | else
29 | puts "Invalid plugin specification: #{line}"
30 | end
31 | }
32 | return pods_ary
33 | end
34 |
35 | target 'Runner' do
36 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
37 | # referring to absolute paths on developers' machines.
38 | system('rm -rf .symlinks')
39 | system('mkdir -p .symlinks/plugins')
40 |
41 | # Flutter Pods
42 | generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
43 | if generated_xcode_build_settings.empty?
44 | puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
45 | end
46 | generated_xcode_build_settings.map { |p|
47 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
48 | symlink = File.join('.symlinks', 'flutter')
49 | File.symlink(File.dirname(p[:path]), symlink)
50 | pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
51 | end
52 | }
53 |
54 | # Plugin Pods
55 | plugin_pods = parse_KV_file('../.flutter-plugins')
56 | plugin_pods.map { |p|
57 | symlink = File.join('.symlinks', 'plugins', p[:name])
58 | File.symlink(p[:path], symlink)
59 | pod p[:name], :path => File.join(symlink, 'ios')
60 | }
61 | end
62 |
63 | post_install do |installer|
64 | installer.pods_project.targets.each do |target|
65 | target.build_configurations.each do |config|
66 | config.build_settings['ENABLE_BITCODE'] = 'NO'
67 | end
68 | end
69 | end
70 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - BoringSSL-GRPC (0.0.3):
3 | - BoringSSL-GRPC/Implementation (= 0.0.3)
4 | - BoringSSL-GRPC/Interface (= 0.0.3)
5 | - BoringSSL-GRPC/Implementation (0.0.3):
6 | - BoringSSL-GRPC/Interface (= 0.0.3)
7 | - BoringSSL-GRPC/Interface (0.0.3)
8 | - cloud_firestore (0.0.1):
9 | - Firebase/Core
10 | - Firebase/Firestore (~> 6.0)
11 | - Flutter
12 | - Firebase/Analytics (6.0.0):
13 | - Firebase/Core
14 | - Firebase/Auth (6.0.0):
15 | - Firebase/CoreOnly
16 | - FirebaseAuth (~> 6.0.0)
17 | - Firebase/Core (6.0.0):
18 | - Firebase/CoreOnly
19 | - FirebaseAnalytics (= 6.0.0)
20 | - Firebase/CoreOnly (6.0.0):
21 | - FirebaseCore (= 6.0.0)
22 | - Firebase/Firestore (6.0.0):
23 | - Firebase/CoreOnly
24 | - FirebaseFirestore (~> 1.3.0)
25 | - firebase_analytics (0.0.1):
26 | - Firebase/Analytics (~> 6.0)
27 | - Firebase/Core
28 | - Flutter
29 | - firebase_auth (0.0.1):
30 | - Firebase/Auth (~> 6.0)
31 | - Firebase/Core
32 | - Flutter
33 | - firebase_core (0.0.1):
34 | - Firebase/Core
35 | - Flutter
36 | - FirebaseAnalytics (6.0.0):
37 | - FirebaseCore (~> 6.0)
38 | - FirebaseInstanceID (~> 4.0)
39 | - GoogleAppMeasurement (= 6.0.0)
40 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
41 | - GoogleUtilities/MethodSwizzler (~> 6.0)
42 | - GoogleUtilities/Network (~> 6.0)
43 | - "GoogleUtilities/NSData+zlib (~> 6.0)"
44 | - nanopb (~> 0.3)
45 | - FirebaseAuth (6.0.0):
46 | - FirebaseAuthInterop (~> 1.0)
47 | - FirebaseCore (~> 6.0)
48 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
49 | - GoogleUtilities/Environment (~> 6.0)
50 | - GTMSessionFetcher/Core (~> 1.1)
51 | - FirebaseAuthInterop (1.0.0)
52 | - FirebaseCore (6.0.0):
53 | - GoogleUtilities/Environment (~> 6.0)
54 | - GoogleUtilities/Logger (~> 6.0)
55 | - FirebaseFirestore (1.3.0):
56 | - FirebaseAuthInterop (~> 1.0)
57 | - FirebaseCore (~> 6.0)
58 | - FirebaseFirestore/abseil-cpp (= 1.3.0)
59 | - "gRPC-C++ (= 0.0.8)"
60 | - leveldb-library (~> 1.20)
61 | - nanopb (~> 0.3.901)
62 | - Protobuf (~> 3.1)
63 | - FirebaseFirestore/abseil-cpp (1.3.0):
64 | - FirebaseAuthInterop (~> 1.0)
65 | - FirebaseCore (~> 6.0)
66 | - "gRPC-C++ (= 0.0.8)"
67 | - leveldb-library (~> 1.20)
68 | - nanopb (~> 0.3.901)
69 | - Protobuf (~> 3.1)
70 | - FirebaseInstanceID (4.0.0):
71 | - FirebaseCore (~> 6.0)
72 | - GoogleUtilities/Environment (~> 6.0)
73 | - GoogleUtilities/UserDefaults (~> 6.0)
74 | - Flutter (1.0.0)
75 | - GoogleAppMeasurement (6.0.0):
76 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0)
77 | - GoogleUtilities/MethodSwizzler (~> 6.0)
78 | - GoogleUtilities/Network (~> 6.0)
79 | - "GoogleUtilities/NSData+zlib (~> 6.0)"
80 | - nanopb (~> 0.3)
81 | - GoogleUtilities/AppDelegateSwizzler (6.1.0):
82 | - GoogleUtilities/Environment
83 | - GoogleUtilities/Logger
84 | - GoogleUtilities/Network
85 | - GoogleUtilities/Environment (6.1.0)
86 | - GoogleUtilities/Logger (6.1.0):
87 | - GoogleUtilities/Environment
88 | - GoogleUtilities/MethodSwizzler (6.1.0):
89 | - GoogleUtilities/Logger
90 | - GoogleUtilities/Network (6.1.0):
91 | - GoogleUtilities/Logger
92 | - "GoogleUtilities/NSData+zlib"
93 | - GoogleUtilities/Reachability
94 | - "GoogleUtilities/NSData+zlib (6.1.0)"
95 | - GoogleUtilities/Reachability (6.1.0):
96 | - GoogleUtilities/Logger
97 | - GoogleUtilities/UserDefaults (6.1.0):
98 | - GoogleUtilities/Logger
99 | - "gRPC-C++ (0.0.8)":
100 | - "gRPC-C++/Implementation (= 0.0.8)"
101 | - "gRPC-C++/Interface (= 0.0.8)"
102 | - "gRPC-C++/Implementation (0.0.8)":
103 | - "gRPC-C++/Interface (= 0.0.8)"
104 | - gRPC-Core (= 1.19.0)
105 | - nanopb (~> 0.3)
106 | - "gRPC-C++/Interface (0.0.8)"
107 | - gRPC-Core (1.19.0):
108 | - gRPC-Core/Implementation (= 1.19.0)
109 | - gRPC-Core/Interface (= 1.19.0)
110 | - gRPC-Core/Implementation (1.19.0):
111 | - BoringSSL-GRPC (= 0.0.3)
112 | - gRPC-Core/Interface (= 1.19.0)
113 | - nanopb (~> 0.3)
114 | - gRPC-Core/Interface (1.19.0)
115 | - GTMSessionFetcher/Core (1.2.2)
116 | - leveldb-library (1.20)
117 | - nanopb (0.3.901):
118 | - nanopb/decode (= 0.3.901)
119 | - nanopb/encode (= 0.3.901)
120 | - nanopb/decode (0.3.901)
121 | - nanopb/encode (0.3.901)
122 | - package_info (0.0.1):
123 | - Flutter
124 | - Protobuf (3.7.0)
125 |
126 | DEPENDENCIES:
127 | - cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)
128 | - firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`)
129 | - firebase_auth (from `.symlinks/plugins/firebase_auth/ios`)
130 | - firebase_core (from `.symlinks/plugins/firebase_core/ios`)
131 | - Flutter (from `.symlinks/flutter/ios`)
132 | - package_info (from `.symlinks/plugins/package_info/ios`)
133 |
134 | SPEC REPOS:
135 | https://github.com/cocoapods/specs.git:
136 | - BoringSSL-GRPC
137 | - Firebase
138 | - FirebaseAnalytics
139 | - FirebaseAuth
140 | - FirebaseAuthInterop
141 | - FirebaseCore
142 | - FirebaseFirestore
143 | - FirebaseInstanceID
144 | - GoogleAppMeasurement
145 | - GoogleUtilities
146 | - "gRPC-C++"
147 | - gRPC-Core
148 | - GTMSessionFetcher
149 | - leveldb-library
150 | - nanopb
151 | - Protobuf
152 |
153 | EXTERNAL SOURCES:
154 | cloud_firestore:
155 | :path: ".symlinks/plugins/cloud_firestore/ios"
156 | firebase_analytics:
157 | :path: ".symlinks/plugins/firebase_analytics/ios"
158 | firebase_auth:
159 | :path: ".symlinks/plugins/firebase_auth/ios"
160 | firebase_core:
161 | :path: ".symlinks/plugins/firebase_core/ios"
162 | Flutter:
163 | :path: ".symlinks/flutter/ios"
164 | package_info:
165 | :path: ".symlinks/plugins/package_info/ios"
166 |
167 | SPEC CHECKSUMS:
168 | BoringSSL-GRPC: db8764df3204ccea016e1c8dd15d9a9ad63ff318
169 | cloud_firestore: c6f34148c1dfbb57a6147f9bb49c1c9f5c27036e
170 | Firebase: fa80b9d987ca014a1ba9357496ef2a0178b28b12
171 | firebase_analytics: e5181dde3c26c83748ab07aca073139a572ede7e
172 | firebase_auth: 7a2cc520766f90212b845a5b35316601707bfa25
173 | firebase_core: ce5006bb48508ee4e71e0f429a3f519bb8ee2961
174 | FirebaseAnalytics: 1743c5f4de3687d0745709dfdc4b1dea1484f44c
175 | FirebaseAuth: efc72b0f6fe075d2a6de8d81a6d9de83ef2b47eb
176 | FirebaseAuthInterop: 0ffa57668be100582bb7643d4fcb7615496c41fc
177 | FirebaseCore: e38f025287b413255a53acc1945d048a112047f7
178 | FirebaseFirestore: 0537b2a960a4819fae2834e688e5daeb571c81d6
179 | FirebaseInstanceID: 0e0348a3c00a734fa376a070f5ad4533ad975cb5
180 | Flutter: 58dd7d1b27887414a370fcccb9e645c08ffd7a6a
181 | GoogleAppMeasurement: 7f028ea162b72c8f326daec74afc95d94f7a47d6
182 | GoogleUtilities: 84df567c76ca84f67b7bb40e769fdd4acc746a10
183 | "gRPC-C++": 98be881723177d8c4faf5fdffacb582c7b4971a2
184 | gRPC-Core: bd9472c8daa2e414b9f8038ba667bf56ce0e02b8
185 | GTMSessionFetcher: 61bb0f61a4cb560030f1222021178008a5727a23
186 | leveldb-library: 08cba283675b7ed2d99629a4bc5fd052cd2bb6a5
187 | nanopb: 2901f78ea1b7b4015c860c2fdd1ea2fee1a18d48
188 | package_info: 78cabb3c322943c55d39676f4a5bfc748c01d055
189 | Protobuf: 7a877b7f3e5964e3fce995e2eb323dbc6831bb5a
190 |
191 | PODFILE CHECKSUM: aff02bfeed411c636180d6812254b2daeea14d09
192 |
193 | COCOAPODS: 1.6.0
194 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14 | 8D1C36EC2280E8DE006CB322 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 8D1C36EB2280E8DE006CB322 /* GoogleService-Info.plist */; };
15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
18 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
19 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
20 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
21 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
22 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
23 | E59A4661218D03BF0A5DD7BD /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C92FCA3F8CF6598530208EEA /* libPods-Runner.a */; };
24 | /* End PBXBuildFile section */
25 |
26 | /* Begin PBXCopyFilesBuildPhase section */
27 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
28 | isa = PBXCopyFilesBuildPhase;
29 | buildActionMask = 2147483647;
30 | dstPath = "";
31 | dstSubfolderSpec = 10;
32 | files = (
33 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
34 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
35 | );
36 | name = "Embed Frameworks";
37 | runOnlyForDeploymentPostprocessing = 0;
38 | };
39 | /* End PBXCopyFilesBuildPhase section */
40 |
41 | /* Begin PBXFileReference section */
42 | 0A8239128C3D3103ECA0565C /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
43 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
44 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
45 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
46 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
47 | 794C8D1D063B143CF9835715 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
48 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
49 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
50 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
51 | 8D1C36EB2280E8DE006CB322 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; };
52 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
53 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
54 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
55 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
56 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
57 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
58 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
59 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
60 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
61 | C92FCA3F8CF6598530208EEA /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
62 | D6A4183C25219D5A54811D60 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
63 | /* End PBXFileReference section */
64 |
65 | /* Begin PBXFrameworksBuildPhase section */
66 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
67 | isa = PBXFrameworksBuildPhase;
68 | buildActionMask = 2147483647;
69 | files = (
70 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
71 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
72 | E59A4661218D03BF0A5DD7BD /* libPods-Runner.a in Frameworks */,
73 | );
74 | runOnlyForDeploymentPostprocessing = 0;
75 | };
76 | /* End PBXFrameworksBuildPhase section */
77 |
78 | /* Begin PBXGroup section */
79 | 5CAFCA4F393AA6A57D81B3B6 /* Pods */ = {
80 | isa = PBXGroup;
81 | children = (
82 | D6A4183C25219D5A54811D60 /* Pods-Runner.debug.xcconfig */,
83 | 794C8D1D063B143CF9835715 /* Pods-Runner.release.xcconfig */,
84 | 0A8239128C3D3103ECA0565C /* Pods-Runner.profile.xcconfig */,
85 | );
86 | name = Pods;
87 | sourceTree = "";
88 | };
89 | 9740EEB11CF90186004384FC /* Flutter */ = {
90 | isa = PBXGroup;
91 | children = (
92 | 3B80C3931E831B6300D905FE /* App.framework */,
93 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
94 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
95 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
96 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
97 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
98 | );
99 | name = Flutter;
100 | sourceTree = "";
101 | };
102 | 97C146E51CF9000F007C117D = {
103 | isa = PBXGroup;
104 | children = (
105 | 9740EEB11CF90186004384FC /* Flutter */,
106 | 97C146F01CF9000F007C117D /* Runner */,
107 | 97C146EF1CF9000F007C117D /* Products */,
108 | 5CAFCA4F393AA6A57D81B3B6 /* Pods */,
109 | ECA7054E172A2CD006CE2285 /* Frameworks */,
110 | );
111 | sourceTree = "";
112 | };
113 | 97C146EF1CF9000F007C117D /* Products */ = {
114 | isa = PBXGroup;
115 | children = (
116 | 97C146EE1CF9000F007C117D /* Runner.app */,
117 | );
118 | name = Products;
119 | sourceTree = "";
120 | };
121 | 97C146F01CF9000F007C117D /* Runner */ = {
122 | isa = PBXGroup;
123 | children = (
124 | 8D1C36EB2280E8DE006CB322 /* GoogleService-Info.plist */,
125 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
126 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
127 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
128 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
129 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
130 | 97C147021CF9000F007C117D /* Info.plist */,
131 | 97C146F11CF9000F007C117D /* Supporting Files */,
132 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
133 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
134 | );
135 | path = Runner;
136 | sourceTree = "";
137 | };
138 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
139 | isa = PBXGroup;
140 | children = (
141 | 97C146F21CF9000F007C117D /* main.m */,
142 | );
143 | name = "Supporting Files";
144 | sourceTree = "";
145 | };
146 | ECA7054E172A2CD006CE2285 /* Frameworks */ = {
147 | isa = PBXGroup;
148 | children = (
149 | C92FCA3F8CF6598530208EEA /* libPods-Runner.a */,
150 | );
151 | name = Frameworks;
152 | sourceTree = "";
153 | };
154 | /* End PBXGroup section */
155 |
156 | /* Begin PBXNativeTarget section */
157 | 97C146ED1CF9000F007C117D /* Runner */ = {
158 | isa = PBXNativeTarget;
159 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
160 | buildPhases = (
161 | B52688A3DA3D489877F8A437 /* [CP] Check Pods Manifest.lock */,
162 | 9740EEB61CF901F6004384FC /* Run Script */,
163 | 97C146EA1CF9000F007C117D /* Sources */,
164 | 97C146EB1CF9000F007C117D /* Frameworks */,
165 | 97C146EC1CF9000F007C117D /* Resources */,
166 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
167 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
168 | 653FC733B17E01DC3BF3443A /* [CP] Embed Pods Frameworks */,
169 | 3E18FD74455FE88BD9E2A465 /* [CP] Copy Pods Resources */,
170 | );
171 | buildRules = (
172 | );
173 | dependencies = (
174 | );
175 | name = Runner;
176 | productName = Runner;
177 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
178 | productType = "com.apple.product-type.application";
179 | };
180 | /* End PBXNativeTarget section */
181 |
182 | /* Begin PBXProject section */
183 | 97C146E61CF9000F007C117D /* Project object */ = {
184 | isa = PBXProject;
185 | attributes = {
186 | LastUpgradeCheck = 0910;
187 | ORGANIZATIONNAME = "The Chromium Authors";
188 | TargetAttributes = {
189 | 97C146ED1CF9000F007C117D = {
190 | CreatedOnToolsVersion = 7.3.1;
191 | };
192 | };
193 | };
194 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
195 | compatibilityVersion = "Xcode 3.2";
196 | developmentRegion = English;
197 | hasScannedForEncodings = 0;
198 | knownRegions = (
199 | English,
200 | en,
201 | Base,
202 | );
203 | mainGroup = 97C146E51CF9000F007C117D;
204 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
205 | projectDirPath = "";
206 | projectRoot = "";
207 | targets = (
208 | 97C146ED1CF9000F007C117D /* Runner */,
209 | );
210 | };
211 | /* End PBXProject section */
212 |
213 | /* Begin PBXResourcesBuildPhase section */
214 | 97C146EC1CF9000F007C117D /* Resources */ = {
215 | isa = PBXResourcesBuildPhase;
216 | buildActionMask = 2147483647;
217 | files = (
218 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
219 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
220 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
221 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
222 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
223 | 8D1C36EC2280E8DE006CB322 /* GoogleService-Info.plist in Resources */,
224 | );
225 | runOnlyForDeploymentPostprocessing = 0;
226 | };
227 | /* End PBXResourcesBuildPhase section */
228 |
229 | /* Begin PBXShellScriptBuildPhase section */
230 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
231 | isa = PBXShellScriptBuildPhase;
232 | buildActionMask = 2147483647;
233 | files = (
234 | );
235 | inputPaths = (
236 | );
237 | name = "Thin Binary";
238 | outputPaths = (
239 | );
240 | runOnlyForDeploymentPostprocessing = 0;
241 | shellPath = /bin/sh;
242 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
243 | };
244 | 3E18FD74455FE88BD9E2A465 /* [CP] Copy Pods Resources */ = {
245 | isa = PBXShellScriptBuildPhase;
246 | buildActionMask = 2147483647;
247 | files = (
248 | );
249 | inputFileListPaths = (
250 | );
251 | inputPaths = (
252 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh",
253 | "${PODS_CONFIGURATION_BUILD_DIR}/gRPC-C++/gRPCCertificates.bundle",
254 | );
255 | name = "[CP] Copy Pods Resources";
256 | outputFileListPaths = (
257 | );
258 | outputPaths = (
259 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/gRPCCertificates.bundle",
260 | );
261 | runOnlyForDeploymentPostprocessing = 0;
262 | shellPath = /bin/sh;
263 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
264 | showEnvVarsInLog = 0;
265 | };
266 | 653FC733B17E01DC3BF3443A /* [CP] Embed Pods Frameworks */ = {
267 | isa = PBXShellScriptBuildPhase;
268 | buildActionMask = 2147483647;
269 | files = (
270 | );
271 | inputFileListPaths = (
272 | );
273 | inputPaths = (
274 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
275 | "${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework",
276 | );
277 | name = "[CP] Embed Pods Frameworks";
278 | outputFileListPaths = (
279 | );
280 | outputPaths = (
281 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
282 | );
283 | runOnlyForDeploymentPostprocessing = 0;
284 | shellPath = /bin/sh;
285 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
286 | showEnvVarsInLog = 0;
287 | };
288 | 9740EEB61CF901F6004384FC /* Run Script */ = {
289 | isa = PBXShellScriptBuildPhase;
290 | buildActionMask = 2147483647;
291 | files = (
292 | );
293 | inputPaths = (
294 | );
295 | name = "Run Script";
296 | outputPaths = (
297 | );
298 | runOnlyForDeploymentPostprocessing = 0;
299 | shellPath = /bin/sh;
300 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
301 | };
302 | B52688A3DA3D489877F8A437 /* [CP] Check Pods Manifest.lock */ = {
303 | isa = PBXShellScriptBuildPhase;
304 | buildActionMask = 2147483647;
305 | files = (
306 | );
307 | inputFileListPaths = (
308 | );
309 | inputPaths = (
310 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
311 | "${PODS_ROOT}/Manifest.lock",
312 | );
313 | name = "[CP] Check Pods Manifest.lock";
314 | outputFileListPaths = (
315 | );
316 | outputPaths = (
317 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
318 | );
319 | runOnlyForDeploymentPostprocessing = 0;
320 | shellPath = /bin/sh;
321 | 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";
322 | showEnvVarsInLog = 0;
323 | };
324 | /* End PBXShellScriptBuildPhase section */
325 |
326 | /* Begin PBXSourcesBuildPhase section */
327 | 97C146EA1CF9000F007C117D /* Sources */ = {
328 | isa = PBXSourcesBuildPhase;
329 | buildActionMask = 2147483647;
330 | files = (
331 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
332 | 97C146F31CF9000F007C117D /* main.m in Sources */,
333 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
334 | );
335 | runOnlyForDeploymentPostprocessing = 0;
336 | };
337 | /* End PBXSourcesBuildPhase section */
338 |
339 | /* Begin PBXVariantGroup section */
340 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
341 | isa = PBXVariantGroup;
342 | children = (
343 | 97C146FB1CF9000F007C117D /* Base */,
344 | );
345 | name = Main.storyboard;
346 | sourceTree = "";
347 | };
348 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
349 | isa = PBXVariantGroup;
350 | children = (
351 | 97C147001CF9000F007C117D /* Base */,
352 | );
353 | name = LaunchScreen.storyboard;
354 | sourceTree = "";
355 | };
356 | /* End PBXVariantGroup section */
357 |
358 | /* Begin XCBuildConfiguration section */
359 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
360 | isa = XCBuildConfiguration;
361 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
362 | buildSettings = {
363 | ALWAYS_SEARCH_USER_PATHS = NO;
364 | CLANG_ANALYZER_NONNULL = YES;
365 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
366 | CLANG_CXX_LIBRARY = "libc++";
367 | CLANG_ENABLE_MODULES = YES;
368 | CLANG_ENABLE_OBJC_ARC = YES;
369 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
370 | CLANG_WARN_BOOL_CONVERSION = YES;
371 | CLANG_WARN_COMMA = YES;
372 | CLANG_WARN_CONSTANT_CONVERSION = YES;
373 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
374 | CLANG_WARN_EMPTY_BODY = YES;
375 | CLANG_WARN_ENUM_CONVERSION = YES;
376 | CLANG_WARN_INFINITE_RECURSION = YES;
377 | CLANG_WARN_INT_CONVERSION = YES;
378 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
379 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
380 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
381 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
382 | CLANG_WARN_STRICT_PROTOTYPES = YES;
383 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
384 | CLANG_WARN_UNREACHABLE_CODE = YES;
385 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
386 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
387 | COPY_PHASE_STRIP = NO;
388 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
389 | ENABLE_NS_ASSERTIONS = NO;
390 | ENABLE_STRICT_OBJC_MSGSEND = YES;
391 | GCC_C_LANGUAGE_STANDARD = gnu99;
392 | GCC_NO_COMMON_BLOCKS = YES;
393 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
394 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
395 | GCC_WARN_UNDECLARED_SELECTOR = YES;
396 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
397 | GCC_WARN_UNUSED_FUNCTION = YES;
398 | GCC_WARN_UNUSED_VARIABLE = YES;
399 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
400 | MTL_ENABLE_DEBUG_INFO = NO;
401 | SDKROOT = iphoneos;
402 | TARGETED_DEVICE_FAMILY = "1,2";
403 | VALIDATE_PRODUCT = YES;
404 | };
405 | name = Profile;
406 | };
407 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
408 | isa = XCBuildConfiguration;
409 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
410 | buildSettings = {
411 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
412 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
413 | DEVELOPMENT_TEAM = S8QB4VV633;
414 | ENABLE_BITCODE = NO;
415 | FRAMEWORK_SEARCH_PATHS = (
416 | "$(inherited)",
417 | "$(PROJECT_DIR)/Flutter",
418 | );
419 | INFOPLIST_FILE = Runner/Info.plist;
420 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
421 | LIBRARY_SEARCH_PATHS = (
422 | "$(inherited)",
423 | "$(PROJECT_DIR)/Flutter",
424 | );
425 | PRODUCT_BUNDLE_IDENTIFIER = com.fiwic.firebaseAuthApp;
426 | PRODUCT_NAME = "$(TARGET_NAME)";
427 | VERSIONING_SYSTEM = "apple-generic";
428 | };
429 | name = Profile;
430 | };
431 | 97C147031CF9000F007C117D /* Debug */ = {
432 | isa = XCBuildConfiguration;
433 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
434 | buildSettings = {
435 | ALWAYS_SEARCH_USER_PATHS = NO;
436 | CLANG_ANALYZER_NONNULL = YES;
437 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
438 | CLANG_CXX_LIBRARY = "libc++";
439 | CLANG_ENABLE_MODULES = YES;
440 | CLANG_ENABLE_OBJC_ARC = YES;
441 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
442 | CLANG_WARN_BOOL_CONVERSION = YES;
443 | CLANG_WARN_COMMA = YES;
444 | CLANG_WARN_CONSTANT_CONVERSION = YES;
445 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
446 | CLANG_WARN_EMPTY_BODY = YES;
447 | CLANG_WARN_ENUM_CONVERSION = YES;
448 | CLANG_WARN_INFINITE_RECURSION = YES;
449 | CLANG_WARN_INT_CONVERSION = YES;
450 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
451 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
452 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
453 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
454 | CLANG_WARN_STRICT_PROTOTYPES = YES;
455 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
456 | CLANG_WARN_UNREACHABLE_CODE = YES;
457 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
458 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
459 | COPY_PHASE_STRIP = NO;
460 | DEBUG_INFORMATION_FORMAT = dwarf;
461 | ENABLE_STRICT_OBJC_MSGSEND = YES;
462 | ENABLE_TESTABILITY = YES;
463 | GCC_C_LANGUAGE_STANDARD = gnu99;
464 | GCC_DYNAMIC_NO_PIC = NO;
465 | GCC_NO_COMMON_BLOCKS = YES;
466 | GCC_OPTIMIZATION_LEVEL = 0;
467 | GCC_PREPROCESSOR_DEFINITIONS = (
468 | "DEBUG=1",
469 | "$(inherited)",
470 | );
471 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
472 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
473 | GCC_WARN_UNDECLARED_SELECTOR = YES;
474 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
475 | GCC_WARN_UNUSED_FUNCTION = YES;
476 | GCC_WARN_UNUSED_VARIABLE = YES;
477 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
478 | MTL_ENABLE_DEBUG_INFO = YES;
479 | ONLY_ACTIVE_ARCH = YES;
480 | SDKROOT = iphoneos;
481 | TARGETED_DEVICE_FAMILY = "1,2";
482 | };
483 | name = Debug;
484 | };
485 | 97C147041CF9000F007C117D /* Release */ = {
486 | isa = XCBuildConfiguration;
487 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
488 | buildSettings = {
489 | ALWAYS_SEARCH_USER_PATHS = NO;
490 | CLANG_ANALYZER_NONNULL = YES;
491 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
492 | CLANG_CXX_LIBRARY = "libc++";
493 | CLANG_ENABLE_MODULES = YES;
494 | CLANG_ENABLE_OBJC_ARC = YES;
495 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
496 | CLANG_WARN_BOOL_CONVERSION = YES;
497 | CLANG_WARN_COMMA = YES;
498 | CLANG_WARN_CONSTANT_CONVERSION = YES;
499 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
500 | CLANG_WARN_EMPTY_BODY = YES;
501 | CLANG_WARN_ENUM_CONVERSION = YES;
502 | CLANG_WARN_INFINITE_RECURSION = YES;
503 | CLANG_WARN_INT_CONVERSION = YES;
504 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
505 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
506 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
507 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
508 | CLANG_WARN_STRICT_PROTOTYPES = YES;
509 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
510 | CLANG_WARN_UNREACHABLE_CODE = YES;
511 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
512 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
513 | COPY_PHASE_STRIP = NO;
514 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
515 | ENABLE_NS_ASSERTIONS = NO;
516 | ENABLE_STRICT_OBJC_MSGSEND = YES;
517 | GCC_C_LANGUAGE_STANDARD = gnu99;
518 | GCC_NO_COMMON_BLOCKS = YES;
519 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
520 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
521 | GCC_WARN_UNDECLARED_SELECTOR = YES;
522 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
523 | GCC_WARN_UNUSED_FUNCTION = YES;
524 | GCC_WARN_UNUSED_VARIABLE = YES;
525 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
526 | MTL_ENABLE_DEBUG_INFO = NO;
527 | SDKROOT = iphoneos;
528 | TARGETED_DEVICE_FAMILY = "1,2";
529 | VALIDATE_PRODUCT = YES;
530 | };
531 | name = Release;
532 | };
533 | 97C147061CF9000F007C117D /* Debug */ = {
534 | isa = XCBuildConfiguration;
535 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
536 | buildSettings = {
537 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
538 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
539 | ENABLE_BITCODE = NO;
540 | FRAMEWORK_SEARCH_PATHS = (
541 | "$(inherited)",
542 | "$(PROJECT_DIR)/Flutter",
543 | );
544 | INFOPLIST_FILE = Runner/Info.plist;
545 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
546 | LIBRARY_SEARCH_PATHS = (
547 | "$(inherited)",
548 | "$(PROJECT_DIR)/Flutter",
549 | );
550 | PRODUCT_BUNDLE_IDENTIFIER = com.fiwic.firebaseAuthApp;
551 | PRODUCT_NAME = "$(TARGET_NAME)";
552 | VERSIONING_SYSTEM = "apple-generic";
553 | };
554 | name = Debug;
555 | };
556 | 97C147071CF9000F007C117D /* Release */ = {
557 | isa = XCBuildConfiguration;
558 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
559 | buildSettings = {
560 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
561 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
562 | ENABLE_BITCODE = NO;
563 | FRAMEWORK_SEARCH_PATHS = (
564 | "$(inherited)",
565 | "$(PROJECT_DIR)/Flutter",
566 | );
567 | INFOPLIST_FILE = Runner/Info.plist;
568 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
569 | LIBRARY_SEARCH_PATHS = (
570 | "$(inherited)",
571 | "$(PROJECT_DIR)/Flutter",
572 | );
573 | PRODUCT_BUNDLE_IDENTIFIER = com.fiwic.firebaseAuthApp;
574 | PRODUCT_NAME = "$(TARGET_NAME)";
575 | VERSIONING_SYSTEM = "apple-generic";
576 | };
577 | name = Release;
578 | };
579 | /* End XCBuildConfiguration section */
580 |
581 | /* Begin XCConfigurationList section */
582 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
583 | isa = XCConfigurationList;
584 | buildConfigurations = (
585 | 97C147031CF9000F007C117D /* Debug */,
586 | 97C147041CF9000F007C117D /* Release */,
587 | 249021D3217E4FDB00AE95B9 /* Profile */,
588 | );
589 | defaultConfigurationIsVisible = 0;
590 | defaultConfigurationName = Release;
591 | };
592 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
593 | isa = XCConfigurationList;
594 | buildConfigurations = (
595 | 97C147061CF9000F007C117D /* Debug */,
596 | 97C147071CF9000F007C117D /* Release */,
597 | 249021D4217E4FDB00AE95B9 /* Profile */,
598 | );
599 | defaultConfigurationIsVisible = 0;
600 | defaultConfigurationName = Release;
601 | };
602 | /* End XCConfigurationList section */
603 | };
604 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
605 | }
606 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
31 |
32 |
33 |
34 |
40 |
41 |
42 |
43 |
44 |
45 |
56 |
58 |
64 |
65 |
66 |
67 |
68 |
69 |
75 |
77 |
83 |
84 |
85 |
86 |
88 |
89 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | BuildSystemType
6 | Original
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface AppDelegate : FlutterAppDelegate
5 |
6 | @end
7 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.m:
--------------------------------------------------------------------------------
1 | #include "AppDelegate.h"
2 | #include "GeneratedPluginRegistrant.h"
3 |
4 | @implementation AppDelegate
5 |
6 | - (BOOL)application:(UIApplication *)application
7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
8 | [GeneratedPluginRegistrant registerWithRegistry:self];
9 | // Override point for customization after application launch.
10 | return [super application:application didFinishLaunchingWithOptions:launchOptions];
11 | }
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aaronksaunders/flutter_firebase_auth_app/d02316c66ec1f07a82d743a900923c2119492b8f/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | FlutterFireApp
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | firebase_auth_app
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UIViewControllerBasedStatusBarAppearance
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/ios/Runner/main.m:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 | #import "AppDelegate.h"
4 |
5 | int main(int argc, char* argv[]) {
6 | @autoreleasepool {
7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/lib/components/ItemDetailForm.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth_app/model/Item.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class ItemDetailForm extends StatelessWidget {
5 | const ItemDetailForm({
6 | Key key,
7 | @required this.itemUser,
8 | @required this.currentItem,
9 | }) : super(key: key);
10 |
11 | final Future itemUser;
12 | final Item currentItem;
13 |
14 | String _renderName(ItemOwner data) {
15 | return '${data.firstName} ${data.lastName}';
16 | }
17 |
18 | @override
19 | Widget build(BuildContext context) {
20 | return Container(
21 | child: FutureBuilder(
22 | future: itemUser,
23 | builder: (context, snapshot) {
24 | if (snapshot.hasData == true) {
25 | var itemOwner = snapshot.data;
26 |
27 | return Padding(
28 | padding: const EdgeInsets.all(14.0),
29 | child: Center(
30 | child: Column(
31 | children: [
32 | Text(
33 | currentItem.body,
34 | style: TextStyle(
35 | fontSize: 20,
36 | ),
37 | ),
38 | Padding(
39 | padding: const EdgeInsets.all(8.0),
40 | child: Text(
41 | currentItem.dueDate,
42 | style: TextStyle(fontSize: 18),
43 | ),
44 | ),
45 | Text(
46 | currentItem != null ? _renderName(itemOwner) : "",
47 | style: TextStyle(fontSize: 18),
48 | ),
49 | ],
50 | ),
51 | ),
52 | );
53 | } else {
54 | return Center(child: CircularProgressIndicator());
55 | }
56 | }),
57 | );
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/lib/components/ItemsList.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth_app/model/Item.dart';
2 | import 'package:firebase_auth_app/screens/ItemDetail.dart';
3 | import 'package:firebase_auth_app/services/data.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class ItemsList extends StatelessWidget {
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return StreamBuilder>(
11 | stream: DataService().getItemsSnapshot(),
12 | builder: (context, AsyncSnapshot> snapshot) {
13 | if (snapshot.connectionState == ConnectionState.active) {
14 | var items = snapshot.data;
15 |
16 | return ListView.builder(
17 | itemCount: items != null ? items.length : 0,
18 | itemBuilder: (_, int index) {
19 | final Item item = items[index];
20 | return DismissibleItem(item, Key(item.id));
21 | },
22 | );
23 | } else {
24 | return Container();
25 | }
26 | });
27 | }
28 | }
29 |
30 | class DismissibleItem extends StatelessWidget {
31 | final Item item;
32 | final Key key;
33 |
34 | DismissibleItem(this.item, this.key);
35 |
36 | @override
37 | Widget build(BuildContext context) {
38 | return Dismissible(
39 | direction: DismissDirection.endToStart,
40 | key: key,
41 | background: Container(
42 | alignment: AlignmentDirectional.centerEnd,
43 | color: Colors.red,
44 | child: Padding(
45 | padding: EdgeInsets.fromLTRB(0.0, 0.0, 10.0, 0.0),
46 | child: Icon(
47 | Icons.delete,
48 | color: Colors.white,
49 | ),
50 | ),
51 | ),
52 | onDismissed: (direction) async {
53 | try {
54 | var result = await this.item.deleteItem();
55 | if (result != null) {}
56 | } catch (e) {
57 | print(e);
58 | //_showErrorMessage(e);
59 | }
60 | },
61 | child: ListTile(
62 | title: Text(item.subject ?? ''),
63 | subtitle: Text('Due Date ${item.dueDate}'),
64 | onTap: () {
65 | Navigator.push(
66 | context,
67 | MaterialPageRoute(
68 | builder: (context) => ItemDetailPage(itemId: item.id),
69 | settings: RouteSettings(name: "ItemDetailPage"),
70 | ),
71 | );
72 | },
73 | ),
74 | );
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/lib/components/LoadingCircle.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:flutter/material.dart';
3 |
4 | class LoadingCircle extends StatelessWidget {
5 | @override
6 | Widget build(BuildContext context) {
7 | return Center(
8 | child: Container(
9 | child: CircularProgressIndicator(),
10 | alignment: Alignment(0.0, 0.0),
11 | ),
12 | );
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/lib/components/MenuDrawer.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth_app/screens/About.dart';
2 | import 'package:firebase_auth_app/screens/Home.dart';
3 | import 'package:firebase_auth_app/screens/Settings.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:provider/provider.dart';
6 |
7 | class MenuStateInfo {
8 | String _currentMenuItem = "HomePage";
9 | dynamic _currentUser = {};
10 |
11 | // set initial menu item when creating object
12 | MenuStateInfo(this._currentMenuItem);
13 |
14 | // getter and setter for active menu
15 | getActiveMenu() => _currentMenuItem;
16 | setActiveMenu(String _menuItem) => _currentMenuItem = _menuItem;
17 |
18 | // getter and setter for current user
19 | getCurrentUser() => _currentUser;
20 | setCurrentUser(dynamic _user) => _currentUser = _user;
21 | }
22 |
23 | class MenuDrawer extends StatefulWidget {
24 | @override
25 | _MenuDrawerState createState() => _MenuDrawerState();
26 | }
27 |
28 | class _MenuDrawerState extends State {
29 | String activeMenu;
30 |
31 | final Map menus = {
32 | 'Home': {
33 | 'name': "HomePage",
34 | 'labelText': "Home",
35 | 'component': HomePage(),
36 | 'icon': new Icon(Icons.home)
37 | },
38 | 'Settings': {
39 | 'name': "SettingsPage",
40 | 'labelText': "Application Settings",
41 | 'component': SettingsPage(),
42 | 'icon': new Icon(Icons.settings)
43 | },
44 | "About": {
45 | 'name': "AboutPage",
46 | 'labelText': "About This App",
47 | 'component': AboutPage(),
48 | 'icon': new Icon(Icons.info)
49 | }
50 | };
51 |
52 | void _gotoPage(Widget _page, BuildContext _context) {
53 | Provider.of(_context)
54 | .setActiveMenu(_page.runtimeType.toString());
55 |
56 | setState(() {
57 | activeMenu = _page.runtimeType.toString();
58 | });
59 |
60 | Future.delayed(const Duration(seconds: 1), () {
61 | Navigator.of(_context).pop();
62 | Navigator.of(_context).pushReplacement(
63 | MaterialPageRoute(
64 | settings: RouteSettings(name: _page.runtimeType.toString()),
65 | builder: (BuildContext context) => _page),
66 | );
67 | });
68 | }
69 |
70 |
71 | @override
72 | void initState() {
73 | // TODO: implement initState
74 | super.initState();
75 | }
76 |
77 | @override
78 | Widget build(BuildContext context) {
79 | print("drawing Menu Drawer");
80 | var user = Provider.of(context).getCurrentUser();
81 | return SafeArea(
82 | child: ListView(
83 | // Important: Remove any padding from the ListView.
84 | padding: EdgeInsets.zero,
85 | children: [
86 | DrawerHeader(
87 | child: Text(user != null ? user.email : "Missing Email"),
88 | decoration: BoxDecoration(
89 | color: Colors.teal.shade300,
90 | ),
91 | ),
92 | ...getMenuItems(context),
93 | ],
94 | ),
95 | );
96 | }
97 |
98 | List getMenuItems(_context) {
99 | List items = [];
100 | menus.forEach((String _key, dynamic _value) {
101 | var item = buildMenuEntryContainer(_context, _key);
102 | items.add(item);
103 | });
104 | return items;
105 | }
106 |
107 | Widget buildMenuEntryContainer(BuildContext context, String menuName) {
108 | // get the require values
109 | var menu = menus[menuName];
110 |
111 | // determine if this menu item is selected/active
112 | var isSelected =
113 | Provider.of(context).getActiveMenu() == menu['name'];
114 |
115 | // set properties based on application state
116 | var _textStyle =
117 | TextStyle(fontWeight: isSelected ? FontWeight.bold : FontWeight.normal);
118 | var _boxDecoration = isSelected
119 | ? BoxDecoration(
120 | borderRadius: BorderRadius.circular(8.0),
121 | color: Colors.teal.shade100,
122 | )
123 | : BoxDecoration();
124 |
125 | // create the menu item widget
126 | return AnimatedContainer(
127 | margin: EdgeInsets.only(left: 6.0, right: 6.0),
128 | decoration: _boxDecoration,
129 | child: ListTile(
130 | leading: menu['icon'],
131 | selected: isSelected,
132 | title: Text(
133 | menu['labelText'],
134 | style: _textStyle,
135 | ),
136 | onTap: () {
137 | _gotoPage(menu['component'], context);
138 | },
139 | ),
140 | duration: Duration(seconds: 1),
141 | );
142 | }
143 | }
144 |
--------------------------------------------------------------------------------
/lib/components/MessageSnack.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class MessageSnack {
4 | void showInfoMessage(_message, _scaffoldKey, [void Function() _onClose]) {
5 | _showMessage(_message, false, _scaffoldKey, _onClose);
6 | }
7 |
8 | void showErrorMessage(_error, _scaffoldKey, [void Function() _onClose]) {
9 | _showMessage(_error.message, true, _scaffoldKey, _onClose);
10 | }
11 |
12 | void _showMessage(_message, _isError, _scaffoldKey,
13 | [void Function() _onClose]) {
14 | // if one is open, close it
15 | _scaffoldKey.currentState
16 | .hideCurrentSnackBar(reason: SnackBarClosedReason.action);
17 |
18 | SnackBar snackBar = SnackBar(
19 | key: new Key('error_Snackbar'),
20 | content: Text(_message, key: new Key('error_message')),
21 | duration: Duration(seconds: 5),
22 | backgroundColor: _isError ? Colors.redAccent : Colors.grey,
23 | action: SnackBarAction(
24 | label: 'Close',
25 | textColor: Colors.white,
26 | onPressed: () {
27 | // Some code to undo the change!
28 | _scaffoldKey.currentState
29 | .hideCurrentSnackBar(reason: SnackBarClosedReason.action);
30 | },
31 | ),
32 | );
33 |
34 | // Find the Scaffold in the Widget tree and use it to show a SnackBar!
35 | _scaffoldKey.currentState.showSnackBar(snackBar).closed.then((reason) {
36 | // snackbar is now closed, close window
37 | if (_onClose != null) _onClose();
38 | });
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:firebase_analytics/firebase_analytics.dart';
3 | import 'package:firebase_analytics/observer.dart';
4 | import 'package:firebase_auth_app/components/LoadingCircle.dart';
5 | import 'package:firebase_auth_app/components/MenuDrawer.dart';
6 | import 'package:firebase_auth_app/screens/Home.dart';
7 | import 'package:firebase_auth_app/screens/Login.dart';
8 | import 'package:flutter/material.dart';
9 | import 'package:provider/provider.dart';
10 |
11 | import './services/auth.dart';
12 |
13 | void main() => runApp(MyApp());
14 |
15 | class MyApp extends StatelessWidget {
16 | // This widget is the root of your application.
17 |
18 | static FirebaseAnalytics analytics = FirebaseAnalytics();
19 | static FirebaseAnalyticsObserver observer =
20 | FirebaseAnalyticsObserver(analytics: analytics);
21 |
22 | @override
23 | Widget build(BuildContext context) {
24 | print("drawing Main Page");
25 |
26 | FirebaseAnalytics analytics = FirebaseAnalytics();
27 |
28 | analytics.setCurrentScreen(screenName: "Main Screen").then((v) => {});
29 |
30 | return MultiProvider(
31 | providers: [
32 | Provider.value(value: analytics),
33 | Provider.value(
34 | value: MenuStateInfo("HomePage"),
35 | )
36 | ],
37 | child: MaterialApp(
38 | title: 'Flutter Demo',
39 | theme: ThemeData(
40 | primarySwatch: Colors.teal,
41 | ),
42 | navigatorObservers: [
43 | FirebaseAnalyticsObserver(analytics: analytics),
44 | ],
45 | initialRoute: "/",
46 | home: FutureBuilder(
47 | future: AuthService().getUser,
48 | builder: (context, AsyncSnapshot snapshot) {
49 | if (snapshot.connectionState == ConnectionState.done) {
50 | print("drawing main: target screen" +
51 | snapshot.connectionState.toString());
52 | final bool loggedIn = snapshot.hasData;
53 | return loggedIn ? HomePage() : LoginPage();
54 | } else {
55 | print("drawing main: loading circle" +
56 | snapshot.connectionState.toString());
57 | return LoadingCircle();
58 | }
59 | }),
60 | ),
61 | );
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/lib/model/Item.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 | import 'package:firebase_auth/firebase_auth.dart';
3 |
4 | class Item {
5 | String subject;
6 | String body;
7 | String dueDate;
8 | String owner;
9 | String id;
10 |
11 | Item({this.subject, this.body, this.owner, this.dueDate, this.id});
12 |
13 | factory Item.fromSnap(DocumentSnapshot itemSnap) {
14 | return Item(
15 | subject: itemSnap.data['content']['subject'],
16 | body: itemSnap.data['content']['body'],
17 | dueDate: itemSnap.data['content']['dueDate'],
18 | owner: itemSnap.data['owner'] ?? '',
19 | id: itemSnap.documentID ?? null);
20 | }
21 |
22 | Future updateItem(Item currentItem) async {
23 | if (currentItem.id == null || currentItem.owner == null) {
24 | return new Future(null);
25 | }
26 |
27 | var itemMap = {
28 | 'content': {
29 | 'dueDate': this.dueDate,
30 | 'body': this.body,
31 | 'subject': this.subject
32 | },
33 | 'updated': new DateTime.now().millisecondsSinceEpoch,
34 | };
35 | itemMap['owner'] = currentItem.owner;
36 | Firestore.instance
37 | .collection('items')
38 | .document(currentItem.id)
39 | .setData(itemMap, merge: true);
40 | return Future.value(true);
41 | }
42 |
43 | Future saveItem() async {
44 | var user = await FirebaseAuth.instance.currentUser();
45 | if (user == null) {
46 | return new Future(null);
47 | }
48 | var itemMap = {
49 | 'content': {
50 | 'dueDate': this.dueDate,
51 | 'body': this.body,
52 | 'subject': this.subject
53 | },
54 | 'created': new DateTime.now().millisecondsSinceEpoch,
55 | 'updated': new DateTime.now().millisecondsSinceEpoch,
56 | };
57 | itemMap['owner'] = user.uid;
58 | var response = Firestore.instance.collection('items').add(itemMap);
59 | return response;
60 | }
61 |
62 | Future deleteItem() {
63 | return Firestore.instance.collection('items').document(this.id).delete();
64 | }
65 | }
66 |
67 | class ItemOwner {
68 | String email;
69 | String firstName;
70 | String lastName;
71 | String id;
72 |
73 | ItemOwner({this.email, this.firstName, this.lastName, this.id});
74 |
75 | factory ItemOwner.fromSnap(DocumentSnapshot itemSnap) {
76 | return ItemOwner(
77 | email: itemSnap.data['email'],
78 | firstName: itemSnap.data['firstName'],
79 | lastName: itemSnap.data['lastName'],
80 | id: itemSnap.documentID ?? null);
81 | }
82 |
83 | // Future saveItem() async {
84 | // var user = await FirebaseAuth.instance.currentUser();
85 | // if (user == null) {
86 | // return new Future(null);
87 | // }
88 | // var itemMap = {
89 | // 'content': {
90 | // 'dueDate': this.dueDate,
91 | // 'body': this.body,
92 | // 'subject': this.subject
93 | // },
94 | // 'created': new DateTime.now().millisecondsSinceEpoch,
95 | // 'updated': new DateTime.now().millisecondsSinceEpoch,
96 | // };
97 | // itemMap['owner'] = user.uid;
98 | // var response = Firestore.instance.collection('items').add(itemMap);
99 | // return response;
100 | // }
101 |
102 | // Future deleteItem() {
103 | // return Firestore.instance.collection('items').document(this.id).delete();
104 | // }
105 | }
106 |
--------------------------------------------------------------------------------
/lib/screens/About.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth_app/components/MenuDrawer.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:package_info/package_info.dart';
4 |
5 | class AboutPage extends StatefulWidget {
6 | @override
7 | _AboutPageState createState() => _AboutPageState();
8 | }
9 |
10 | class _AboutPageState extends State {
11 | PackageInfo appInfo = PackageInfo();
12 |
13 | @override
14 | void initState() {
15 | // TODO: implement initState
16 | super.initState();
17 | PackageInfo.fromPlatform().then((PackageInfo packageInfo) {
18 | setState(() {
19 | appInfo = packageInfo;
20 | });
21 | });
22 | }
23 |
24 | @override
25 | Widget build(BuildContext context) {
26 | return Scaffold(
27 | appBar: AppBar(
28 | title: Text("About Flutter Firebase About"),
29 | //actions: [LogoutButton()],
30 | ),
31 | body: Center(
32 | child: Column(
33 | mainAxisAlignment: MainAxisAlignment.start,
34 | children: [
35 | SizedBox(height: 40.0),
36 | Text(
37 | 'About Flutter Firebase About Content',
38 | style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
39 | ),
40 | SizedBox(height: 40.0),
41 | Text(appInfo?.appName ?? "App Name Missing"),
42 | Text("Version ${appInfo?.version}"),
43 | Text("Build ${appInfo?.buildNumber}"),
44 | ],
45 | ),
46 | ),
47 | drawer: Drawer(
48 | child: MenuDrawer(),
49 | ),
50 | );
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/lib/screens/AddItem.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_analytics/firebase_analytics.dart';
2 | import 'package:firebase_auth_app/components/MessageSnack.dart';
3 | import 'package:firebase_auth_app/model/Item.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:flutter_icons/flutter_icons.dart';
6 | import 'package:provider/provider.dart';
7 |
8 | class AddItemPage extends StatefulWidget {
9 | final Item currentItem;
10 |
11 | AddItemPage([this.currentItem]);
12 |
13 | @override
14 | _AddItemPageState createState() => _AddItemPageState();
15 | }
16 |
17 | class _AddItemPageState extends State {
18 | final formKey = GlobalKey();
19 | final _scaffoldKey = GlobalKey();
20 | final _controller = TextEditingController();
21 | SnackBar snackBar;
22 |
23 | String _subject, _body, _dueDate = " ";
24 | Item _currentItem;
25 |
26 | @override
27 | void didChangeDependencies() async {
28 | super.didChangeDependencies();
29 | Provider.of(context)
30 | .setCurrentScreen(screenName: "AddItemPage")
31 | .then((v) => {});
32 | }
33 |
34 | @override
35 | Widget build(BuildContext context) {
36 | var snapshot = widget.currentItem ?? Item();
37 |
38 | return Scaffold(
39 | key: _scaffoldKey,
40 | appBar: AppBar(
41 | title: Text('Add Item Form Page'),
42 | ),
43 | body: Center(
44 | child: Form(
45 | key: formKey,
46 | child: Container(
47 | padding: EdgeInsets.all(20),
48 | child: Column(
49 | children: buildInputs(snapshot) +
50 | [
51 | Padding(
52 | padding: EdgeInsets.only(left: 20, right: 20, top: 30),
53 | child: Column(
54 | children: buildButtons(context),
55 | ),
56 | )
57 | ],
58 | ),
59 | ),
60 | ),
61 | ),
62 | );
63 | }
64 |
65 | List buildButtons(BuildContext context) {
66 | return [
67 | RaisedButton(
68 | child: Align(alignment: Alignment.center, child: Text('Save Item')),
69 | onPressed: () => submit(context),
70 | ),
71 | // RaisedButton(
72 | // child: Align(alignment: Alignment.center, child: Text('Cancel')),
73 | // onPressed: () {},
74 | // ),
75 | ];
76 | }
77 |
78 | List buildInputs(Item snap) {
79 | // if we have data then set the dueDate text from the data
80 | _controller.text = snap.dueDate;
81 |
82 | // if we have id then set it, we will use this to determine
83 | // if we need to save or create the item
84 | _currentItem = snap;
85 |
86 | return [
87 | TextFormField(
88 | decoration: InputDecoration(labelText: 'Subject'),
89 | initialValue: snap.subject,
90 | onSaved: (value) => _subject = value,
91 | validator: (value) {
92 | if (value.isEmpty) {
93 | return 'Please enter some text, Subject Cannot Be Empty';
94 | }
95 | },
96 | ),
97 | TextFormField(
98 | minLines: 3,
99 | maxLines: 3,
100 | initialValue: snap.body,
101 | decoration: InputDecoration(labelText: 'Body'),
102 | onSaved: (value) => _body = value,
103 | validator: (value) {
104 | if (value.isEmpty) {
105 | return 'Please enter some text, Body Cannot Be Empty';
106 | }
107 | },
108 | ),
109 | Padding(
110 | padding: const EdgeInsets.only(top: 10.0),
111 | child: Row(
112 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
113 | children: [
114 | Container(
115 | width: 320,
116 | child: TextFormField(
117 | controller: _controller,
118 | enabled: false,
119 | enableInteractiveSelection: false,
120 | decoration: InputDecoration(labelText: 'Due Date'),
121 | onSaved: (value) => _dueDate = value,
122 | validator: (value) {
123 | if (value.isEmpty) {
124 | return 'Please enter some text, Subject Cannot Be Empty';
125 | }
126 | },
127 | ),
128 | ),
129 | IconButton(
130 | onPressed: _selectDate,
131 | icon: new Icon(FontAwesome.getIconData("calendar"))),
132 | ],
133 | ),
134 | )
135 | ];
136 | }
137 |
138 | void submit(BuildContext context) async {
139 | if (validate()) {
140 | try {
141 | var i = new Item(subject: _subject, body: _body, dueDate: _dueDate);
142 |
143 | if (_currentItem.id != null) {
144 | await i.updateItem(_currentItem);
145 | } else {
146 | await i.saveItem();
147 | }
148 |
149 | MessageSnack().showInfoMessage('Item Added Successfully!', _scaffoldKey,
150 | () => Navigator.pop(context));
151 | } catch (error) {
152 | MessageSnack().showErrorMessage(error, _scaffoldKey);
153 | }
154 | }
155 | }
156 |
157 | bool validate() {
158 | final form = formKey.currentState;
159 | form.save();
160 | if (form.validate()) {
161 | form.save();
162 | return true;
163 | } else {
164 | return false;
165 | }
166 | }
167 |
168 | //
169 | // @todo - convert string date to date time for display when editing
170 | // the item
171 | //
172 | Future _selectDate() async {
173 | DateTime picked = await showDatePicker(
174 | context: context,
175 | initialDate:
176 | _controller.text != null ? new DateTime.now() : new DateTime.now(),
177 | firstDate: new DateTime(2019),
178 | lastDate: new DateTime(2022));
179 |
180 | if (picked != null) {
181 | _controller.text = picked.toString();
182 | setState(() => _dueDate = picked.toString());
183 | }
184 | }
185 | }
186 |
--------------------------------------------------------------------------------
/lib/screens/Home.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:firebase_auth_app/components/ItemsList.dart';
3 | import 'package:firebase_auth_app/components/MenuDrawer.dart';
4 |
5 | import 'package:firebase_auth_app/screens/AddItem.dart';
6 | import 'package:firebase_auth_app/services/auth.dart';
7 | import 'package:flutter/material.dart';
8 | import 'package:provider/provider.dart';
9 |
10 | import 'Login.dart';
11 |
12 | class HomePage extends StatefulWidget {
13 | HomePage({Key key, this.title}) : super(key: key);
14 |
15 | final String title;
16 |
17 | @override
18 | _HomePageState createState() => _HomePageState();
19 | }
20 |
21 | class _HomePageState extends State {
22 | @override
23 | void didChangeDependencies() {
24 | super.didChangeDependencies();
25 | }
26 |
27 | @override
28 | Widget build(BuildContext context) {
29 | print("drawing Home Page");
30 | return Scaffold(
31 | appBar: AppBar(
32 | title: Text("Flutter Firebase"),
33 | actions: [LogoutButton()],
34 | ),
35 | // body: StreamProvider>.value(
36 | // // when this stream changes, the children will get
37 | // // updated appropriately
38 | // stream: DataService().getItemsSnapshot(),
39 | // child: ItemsList(),
40 | // ),
41 | body: ItemsList(),
42 | drawer: Drawer(
43 | child: FutureBuilder(
44 | future: AuthService().getUser,
45 | builder: (context, AsyncSnapshot snapshot) {
46 | if (snapshot.connectionState == ConnectionState.done) {
47 | Provider.of(context)
48 | .setCurrentUser(snapshot.data);
49 | return MenuDrawer();
50 | } else {
51 | return CircularProgressIndicator();
52 | }
53 | }),
54 | ),
55 | floatingActionButton: FloatingActionButton(
56 | onPressed: () {
57 | Navigator.push(
58 | context,
59 | MaterialPageRoute(
60 | builder: (context) => AddItemPage(),
61 | settings: RouteSettings(name: "AddItemPage"),
62 | fullscreenDialog: true),
63 | );
64 | },
65 | tooltip: 'Add Item',
66 | child: Icon(Icons.add),
67 | ), // This trailing comma makes auto-formatting nicer for build methods.
68 | );
69 | }
70 | }
71 |
72 | class LogoutButton extends StatelessWidget {
73 | const LogoutButton({
74 | Key key,
75 | }) : super(key: key);
76 |
77 | @override
78 | Widget build(BuildContext context) {
79 | return new IconButton(
80 | icon: new Icon(Icons.exit_to_app),
81 | onPressed: () async {
82 | await AuthService().logout();
83 |
84 | // Navigator.pushReplacementNamed(context, "/");
85 |
86 | Navigator.pushReplacement(
87 | context,
88 | MaterialPageRoute(
89 | settings: RouteSettings(name: "LoginPage"),
90 | builder: (BuildContext context) => LoginPage()),
91 | );
92 | });
93 | }
94 | }
95 |
--------------------------------------------------------------------------------
/lib/screens/ItemDetail.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:firebase_auth_app/components/ItemDetailForm.dart';
4 | import 'package:firebase_auth_app/components/MessageSnack.dart';
5 | import 'package:firebase_auth_app/model/Item.dart';
6 | import 'package:firebase_auth_app/services/data.dart';
7 | import 'package:flutter/material.dart';
8 |
9 | import 'AddItem.dart';
10 |
11 | class ItemDetailPage extends StatefulWidget {
12 | ItemDetailPage({this.itemId});
13 |
14 | final String itemId;
15 |
16 | @override
17 | _ItemDetailPageState createState() => _ItemDetailPageState();
18 | }
19 |
20 | class _ItemDetailPageState extends State {
21 | final _scaffoldKey = GlobalKey();
22 | String pageTitle = "";
23 | Item currentItem;
24 | Future itemUser;
25 |
26 | @override
27 | void didChangeDependencies() {
28 | super.didChangeDependencies();
29 | }
30 |
31 | @override
32 | void initState() {
33 | super.initState();
34 | loadItem();
35 | }
36 |
37 | @override
38 | Widget build(BuildContext context) {
39 | return Scaffold(
40 | appBar: AppBar(
41 | title: Text(pageTitle),
42 | actions: [EditButton(currentItem, loadItem)],
43 | ),
44 | body: new ItemDetailForm(itemUser: itemUser, currentItem: currentItem),
45 | );
46 | }
47 |
48 | void loadItem() async {
49 | try {
50 | var value = await DataService().getItemById(widget.itemId);
51 |
52 | setState(() {
53 | pageTitle = value.subject;
54 | currentItem = value;
55 | itemUser = DataService().getUserById(value.owner);
56 | });
57 | } catch (e) {
58 | MessageSnack().showErrorMessage(e, _scaffoldKey);
59 | }
60 | }
61 | }
62 |
63 | class EditButton extends StatelessWidget {
64 | final Item currentItem;
65 | final Function completion;
66 |
67 | const EditButton(
68 | this.currentItem,
69 | this.completion, {
70 | Key key,
71 | }) : super(key: key);
72 |
73 | @override
74 | Widget build(BuildContext context) {
75 | return new IconButton(
76 | icon: new Icon(Icons.edit),
77 | onPressed: () async {
78 | Navigator.push(
79 | context,
80 | MaterialPageRoute(
81 | builder: (context) => AddItemPage(this.currentItem),
82 | settings: RouteSettings(name: "AddItemPage"),
83 | fullscreenDialog: true,
84 | ),
85 | ).then((value) {
86 | this.completion();
87 | });
88 | return true;
89 | });
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/lib/screens/Login.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:firebase_auth_app/components/MessageSnack.dart';
3 | import 'package:firebase_auth_app/services/auth.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:modal_progress_hud/modal_progress_hud.dart';
6 |
7 | import 'Home.dart';
8 |
9 | enum FormType { LOGIN, REGISTER }
10 |
11 | class LoginPage extends StatefulWidget {
12 | @override
13 | _LoginPageState createState() => _LoginPageState();
14 | }
15 |
16 | class _LoginPageState extends State {
17 | final formKey = GlobalKey();
18 | final _scaffoldKey = GlobalKey();
19 |
20 | // state variables
21 | String _email, _password, _firstName, _lastName;
22 | String _pageTitle = "Account Login";
23 | FormType _formType = FormType.LOGIN;
24 | bool _loading = false;
25 |
26 | @override
27 | void didChangeDependencies() {
28 | super.didChangeDependencies();
29 | }
30 |
31 | bool validate() {
32 | final form = formKey.currentState;
33 | form.save();
34 | if (form.validate()) {
35 | form.save();
36 | return true;
37 | } else {
38 | return false;
39 | }
40 | }
41 |
42 | void submit(BuildContext context) async {
43 | if (validate()) {
44 | try {
45 | setState(() {
46 | _loading = true;
47 | });
48 | //final auth = Provider.of(context).auth;
49 | if (_formType == FormType.LOGIN) {
50 | // Login user using firebase API
51 | await AuthService().loginUser(email: _email, password: _password);
52 | } else {
53 | // Create New User user using firebase API
54 | await AuthService().createUser(
55 | email: _email,
56 | firstName: _firstName,
57 | lastName: _lastName,
58 | password: _password);
59 | }
60 |
61 | setState(() {
62 | _loading = false;
63 | });
64 |
65 | Navigator.pushReplacement(
66 | context,
67 | MaterialPageRoute(
68 | settings: RouteSettings(name: "HomePage"),
69 | builder: (BuildContext context) => HomePage()),
70 | );
71 | } catch (e) {
72 | MessageSnack().showErrorMessage(
73 | e,
74 | _scaffoldKey,
75 | () => {
76 | setState(() {
77 | _loading = false;
78 | })
79 | });
80 | } finally {}
81 | }
82 | }
83 |
84 | void switchFormState(String state) {
85 | formKey.currentState.reset();
86 |
87 | if (state == 'register') {
88 | setState(() {
89 | _formType = FormType.REGISTER;
90 | _pageTitle = 'Account Registration';
91 | });
92 | } else {
93 | setState(() {
94 | _formType = FormType.LOGIN;
95 | _pageTitle = 'Account Login';
96 | });
97 | }
98 | }
99 |
100 | @override
101 | Widget build(BuildContext context) {
102 | return Scaffold(
103 | key: _scaffoldKey,
104 | appBar: AppBar(
105 | title: Text(_pageTitle),
106 | ),
107 | body: ModalProgressHUD(
108 | child: Center(
109 | child: Form(
110 | key: formKey,
111 | child: Container(
112 | padding: EdgeInsets.all(20),
113 | child: Column(
114 | children: buildInputs(_formType) +
115 | [
116 | Padding(
117 | padding:
118 | EdgeInsets.only(left: 20, right: 20, top: 30),
119 | child: Column(children: buildButtons(context)))
120 | ],
121 | ),
122 | ),
123 | ),
124 | ),
125 | inAsyncCall: _loading),
126 | );
127 | }
128 |
129 | List buildInputs(FormType formType) {
130 | var base = [
131 | TextFormField(
132 | decoration: InputDecoration(labelText: 'Email'),
133 | onSaved: (value) => _email = value,
134 | ),
135 | TextFormField(
136 | //validator: PasswordValidator.validate,
137 | decoration: InputDecoration(labelText: 'Password'),
138 | obscureText: true,
139 | onSaved: (value) => _password = value,
140 | ),
141 | ];
142 |
143 | if (formType == FormType.REGISTER) {
144 | return base +
145 | [
146 | TextFormField(
147 | decoration: InputDecoration(labelText: 'First Name'),
148 | onSaved: (value) => _firstName = value,
149 | ),
150 | TextFormField(
151 | decoration: InputDecoration(labelText: 'LastName'),
152 | onSaved: (value) => _lastName = value,
153 | )
154 | ];
155 | } else {
156 | return base;
157 | }
158 | }
159 |
160 | List buildButtons(BuildContext context) {
161 | if (_formType == FormType.LOGIN) {
162 | return [
163 | RaisedButton(
164 | key: new Key('login'),
165 | child: Align(alignment: Alignment.center, child: Text('Login')),
166 | onPressed: () => submit(context),
167 | ),
168 | RaisedButton(
169 | key: new Key('goto-register'),
170 | child: Align(
171 | alignment: Alignment.center, child: Text('Register Account')),
172 | onPressed: () {
173 | switchFormState('register');
174 | },
175 | ),
176 | ];
177 | } else {
178 | return [
179 | RaisedButton(
180 | key: new Key('create-account'),
181 | child:
182 | Align(alignment: Alignment.center, child: Text('Create Account')),
183 | onPressed: () => submit(context),
184 | ),
185 | RaisedButton(
186 | key: new Key('go-back'),
187 | child: Align(alignment: Alignment.center, child: Text('Back')),
188 | onPressed: () {
189 | switchFormState('login');
190 | },
191 | )
192 | ];
193 | }
194 | }
195 | }
196 |
--------------------------------------------------------------------------------
/lib/screens/Settings.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth_app/components/MenuDrawer.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class SettingsPage extends StatefulWidget {
5 | @override
6 | _SettingsPageState createState() => _SettingsPageState();
7 | }
8 |
9 | class _SettingsPageState extends State {
10 | @override
11 | Widget build(BuildContext context) {
12 | return Scaffold(
13 | appBar: AppBar(
14 | title: Text("Settings Flutter Firebase"),
15 | //actions: [LogoutButton()],
16 | ),
17 | body: Text('Settings Flutter Firebase Content'),
18 | drawer: Drawer(
19 | child: MenuDrawer(),
20 | ),
21 | );
22 | }
23 | }
--------------------------------------------------------------------------------
/lib/services/auth.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'dart:async';
3 |
4 | class AuthService {
5 | final FirebaseAuth _auth = FirebaseAuth.instance;
6 |
7 | Future get getUser => _auth.currentUser();
8 |
9 | Stream get user => _auth.onAuthStateChanged;
10 |
11 | // wrappinhg the firebase calls
12 | Future logout() {
13 | return FirebaseAuth.instance.signOut();
14 | }
15 |
16 | // wrappinhg the firebase calls
17 | Future createUser(
18 | {String firstName,
19 | String lastName,
20 | String email,
21 | String password}) async {
22 | var u = await FirebaseAuth.instance
23 | .createUserWithEmailAndPassword(email: email, password: password);
24 |
25 | UserUpdateInfo info = UserUpdateInfo();
26 | info.displayName = "$firstName $lastName";
27 | return await u.updateProfile(info);
28 | }
29 |
30 | // wrappinhg the firebase calls
31 | Future loginUser({String email, String password}) {
32 | return FirebaseAuth.instance
33 | .signInWithEmailAndPassword(email: email, password: password);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/lib/services/data.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 | import 'dart:async';
3 | import '../model/Item.dart';
4 |
5 | class DataService {
6 | // final FirebaseAuth _auth = FirebaseAuth.instance;
7 | final Firestore _db = Firestore.instance;
8 |
9 | Stream> getItemsSnapshot() {
10 |
11 | try {
12 | var snaps = _db.collection('items').snapshots();
13 | snaps.handleError((e) {
14 | print(e);
15 | return Stream.empty();
16 | });
17 |
18 | return snaps.map(
19 | (list) => list.documents.map((doc) => Item.fromSnap(doc)).toList());
20 | } catch (e) {
21 | return Stream.empty();
22 | }
23 | }
24 |
25 | Future- getItemById(String itemId) async {
26 | var item = await _db.collection('items').document(itemId).get();
27 |
28 | if (item.exists != null) {
29 | return Future(() => Item.fromSnap(item));
30 | } else {
31 | return Future
- .value(null);
32 | }
33 | }
34 |
35 | Future getUserById(String userId) async {
36 | var itemOwner = await _db.collection('users').document(userId).get();
37 |
38 | if (itemOwner.exists != null) {
39 | return Future(() => ItemOwner.fromSnap(itemOwner));
40 | } else {
41 | return Future.value(null);
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://www.dartlang.org/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.1.0"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "1.0.4"
18 | charcode:
19 | dependency: transitive
20 | description:
21 | name: charcode
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "1.1.2"
25 | cloud_firestore:
26 | dependency: "direct main"
27 | description:
28 | name: cloud_firestore
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "0.11.0+2"
32 | collection:
33 | dependency: transitive
34 | description:
35 | name: collection
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.14.11"
39 | cupertino_icons:
40 | dependency: "direct main"
41 | description:
42 | name: cupertino_icons
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "0.1.2"
46 | firebase_analytics:
47 | dependency: "direct main"
48 | description:
49 | name: firebase_analytics
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "3.0.1"
53 | firebase_auth:
54 | dependency: "direct main"
55 | description:
56 | name: firebase_auth
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "0.11.1"
60 | firebase_core:
61 | dependency: "direct main"
62 | description:
63 | name: firebase_core
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "0.4.0+1"
67 | flutter:
68 | dependency: "direct main"
69 | description: flutter
70 | source: sdk
71 | version: "0.0.0"
72 | flutter_icons:
73 | dependency: "direct main"
74 | description:
75 | name: flutter_icons
76 | url: "https://pub.dartlang.org"
77 | source: hosted
78 | version: "0.1.4"
79 | flutter_test:
80 | dependency: "direct dev"
81 | description: flutter
82 | source: sdk
83 | version: "0.0.0"
84 | matcher:
85 | dependency: transitive
86 | description:
87 | name: matcher
88 | url: "https://pub.dartlang.org"
89 | source: hosted
90 | version: "0.12.5"
91 | meta:
92 | dependency: transitive
93 | description:
94 | name: meta
95 | url: "https://pub.dartlang.org"
96 | source: hosted
97 | version: "1.1.6"
98 | modal_progress_hud:
99 | dependency: "direct main"
100 | description:
101 | name: modal_progress_hud
102 | url: "https://pub.dartlang.org"
103 | source: hosted
104 | version: "0.1.3"
105 | package_info:
106 | dependency: "direct main"
107 | description:
108 | name: package_info
109 | url: "https://pub.dartlang.org"
110 | source: hosted
111 | version: "0.4.0+3"
112 | path:
113 | dependency: transitive
114 | description:
115 | name: path
116 | url: "https://pub.dartlang.org"
117 | source: hosted
118 | version: "1.6.2"
119 | pedantic:
120 | dependency: transitive
121 | description:
122 | name: pedantic
123 | url: "https://pub.dartlang.org"
124 | source: hosted
125 | version: "1.5.0"
126 | provider:
127 | dependency: "direct main"
128 | description:
129 | name: provider
130 | url: "https://pub.dartlang.org"
131 | source: hosted
132 | version: "2.0.1"
133 | quiver:
134 | dependency: transitive
135 | description:
136 | name: quiver
137 | url: "https://pub.dartlang.org"
138 | source: hosted
139 | version: "2.0.2"
140 | sky_engine:
141 | dependency: transitive
142 | description: flutter
143 | source: sdk
144 | version: "0.0.99"
145 | source_span:
146 | dependency: transitive
147 | description:
148 | name: source_span
149 | url: "https://pub.dartlang.org"
150 | source: hosted
151 | version: "1.5.5"
152 | stack_trace:
153 | dependency: transitive
154 | description:
155 | name: stack_trace
156 | url: "https://pub.dartlang.org"
157 | source: hosted
158 | version: "1.9.3"
159 | stream_channel:
160 | dependency: transitive
161 | description:
162 | name: stream_channel
163 | url: "https://pub.dartlang.org"
164 | source: hosted
165 | version: "2.0.0"
166 | string_scanner:
167 | dependency: transitive
168 | description:
169 | name: string_scanner
170 | url: "https://pub.dartlang.org"
171 | source: hosted
172 | version: "1.0.4"
173 | term_glyph:
174 | dependency: transitive
175 | description:
176 | name: term_glyph
177 | url: "https://pub.dartlang.org"
178 | source: hosted
179 | version: "1.1.0"
180 | test_api:
181 | dependency: transitive
182 | description:
183 | name: test_api
184 | url: "https://pub.dartlang.org"
185 | source: hosted
186 | version: "0.2.4"
187 | typed_data:
188 | dependency: transitive
189 | description:
190 | name: typed_data
191 | url: "https://pub.dartlang.org"
192 | source: hosted
193 | version: "1.1.6"
194 | vector_math:
195 | dependency: transitive
196 | description:
197 | name: vector_math
198 | url: "https://pub.dartlang.org"
199 | source: hosted
200 | version: "2.0.8"
201 | sdks:
202 | dart: ">=2.2.2 <3.0.0"
203 | flutter: ">=1.2.0 <2.0.0"
204 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: firebase_auth_app
2 | description: A new Flutter application.
3 |
4 | # The following defines the version and build number for your application.
5 | # A version number is three numbers separated by dots, like 1.2.43
6 | # followed by an optional build number separated by a +.
7 | # Both the version and the builder number may be overridden in flutter
8 | # build by specifying --build-name and --build-number, respectively.
9 | # In Android, build-name is used as versionName while build-number used as versionCode.
10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12 | # Read more about iOS versioning at
13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14 | version: 1.0.0+1
15 |
16 | environment:
17 | sdk: ">=2.2.2 <3.0.0"
18 |
19 | dependencies:
20 | flutter:
21 | sdk: flutter
22 |
23 | # The following adds the Cupertino Icons font to your application.
24 | # Use with the CupertinoIcons class for iOS style icons.
25 | cupertino_icons: ^0.1.2
26 | firebase_core: 0.4.0+1
27 | firebase_auth: 0.11.1
28 | cloud_firestore: 0.11.0+2
29 | firebase_analytics: 3.0.1
30 | flutter_icons: 0.1.4
31 | provider: 2.0.1
32 | modal_progress_hud: 0.1.3
33 | package_info: 0.4.0+3
34 |
35 | dev_dependencies:
36 | flutter_test:
37 | sdk: flutter
38 |
39 | # For information on the generic Dart part of this file, see the
40 | # following page: https://www.dartlang.org/tools/pub/pubspec
41 |
42 | # The following section is specific to Flutter.
43 | flutter:
44 | # The following line ensures that the Material Icons font is
45 | # included with your application, so that you can use the icons in
46 | # the material Icons class.
47 | uses-material-design: true
48 | # To add assets to your application, add an assets section, like this:
49 | # assets:
50 | # - images/a_dot_burr.jpeg
51 | # - images/a_dot_ham.jpeg
52 | # An image asset can refer to one or more resolution-specific "variants", see
53 | # https://flutter.io/assets-and-images/#resolution-aware.
54 | # For details regarding adding assets from package dependencies, see
55 | # https://flutter.io/assets-and-images/#from-packages
56 | # To add custom fonts to your application, add a fonts section here,
57 | # in this "flutter" section. Each entry in this list should have a
58 | # "family" key with the font family name, and a "fonts" key with a
59 | # list giving the asset and other descriptors for the font. For
60 | # example:
61 | # fonts:
62 | # - family: Schyler
63 | # fonts:
64 | # - asset: fonts/Schyler-Regular.ttf
65 | # - asset: fonts/Schyler-Italic.ttf
66 | # style: italic
67 | # - family: Trajan Pro
68 | # fonts:
69 | # - asset: fonts/TrajanPro.ttf
70 | # - asset: fonts/TrajanPro_Bold.ttf
71 | # weight: 700
72 | #
73 | # For details regarding fonts from package dependencies,
74 | # see https://flutter.io/custom-fonts/#from-packages
75 |
--------------------------------------------------------------------------------
/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:firebase_auth_app/screens/Login.dart';
9 | import 'package:flutter/material.dart';
10 | import 'package:flutter_test/flutter_test.dart';
11 |
12 | Widget buildTestableWidget(Widget widget) {
13 | // https://docs.flutter.io/flutter/widgets/MediaQuery-class.html
14 | return new MediaQuery(
15 | data: new MediaQueryData(), child: new MaterialApp(home: widget));
16 | }
17 |
18 | void main() {
19 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
20 | // create a LoginPage
21 | LoginPage loginPage = new LoginPage();
22 | // add it to the widget tester
23 | await tester.pumpWidget(buildTestableWidget(loginPage));
24 |
25 | // tap on the login button
26 | Finder loginButton = find.byKey(Key('login'));
27 | expect(loginButton, findsOneWidget);
28 | await tester.tap(loginButton);
29 |
30 | // Verify that our error message is displayed.
31 | await tester.pump(new Duration(milliseconds: 1000));
32 | await tester.pump();
33 | expect(find.text('The password is invalid or the user does not have a password.'), findsOneWidget, reason:'no error text found');
34 |
35 | await tester.pump();
36 | // expect(errorText.toString().contains('invalid'), true);
37 | });
38 | }
39 |
--------------------------------------------------------------------------------