├── .gitignore
├── .metadata
├── README.md
├── android
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── dev
│ │ │ │ └── flutterbook
│ │ │ │ └── sample_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
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ └── contents.xcworkspacedata
└── 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
├── blocs
│ ├── authentication
│ │ ├── authentication_bloc.dart
│ │ ├── authentication_event.dart
│ │ ├── authentication_repository.dart
│ │ └── authentication_state.dart
│ ├── event_list
│ │ ├── event_list_bloc.dart
│ │ ├── event_list_event.dart
│ │ ├── event_list_repository.dart
│ │ └── event_list_state.dart
│ └── sign_in
│ │ ├── sign_in_bloc.dart
│ │ ├── sign_in_event.dart
│ │ ├── sign_in_repository.dart
│ │ └── sing_in_state.dart
├── main.dart
├── models
│ ├── current_user.dart
│ ├── event.dart
│ └── user.dart
├── repositories
│ ├── firebase_authentication_repository.dart
│ ├── firebase_sign_in_repository.dart
│ └── firestore_event_list_repository.dart
└── screens
│ ├── event_list_screen.dart
│ ├── sign_in_screen.dart
│ └── splash_screen.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 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | .dart_tool/
26 | .flutter-plugins
27 | .packages
28 | .pub-cache/
29 | .pub/
30 | /build/
31 |
32 | # Android related
33 | **/android/**/gradle-wrapper.jar
34 | **/android/.gradle
35 | **/android/captures/
36 | **/android/gradlew
37 | **/android/gradlew.bat
38 | **/android/local.properties
39 | **/android/**/GeneratedPluginRegistrant.java
40 |
41 | # iOS/XCode related
42 | **/ios/**/*.mode1v3
43 | **/ios/**/*.mode2v3
44 | **/ios/**/*.moved-aside
45 | **/ios/**/*.pbxuser
46 | **/ios/**/*.perspectivev3
47 | **/ios/**/*sync/
48 | **/ios/**/.sconsign.dblite
49 | **/ios/**/.tags*
50 | **/ios/**/.vagrant/
51 | **/ios/**/DerivedData/
52 | **/ios/**/Icon?
53 | **/ios/**/Pods/
54 | **/ios/**/.symlinks/
55 | **/ios/**/profile
56 | **/ios/**/xcuserdata
57 | **/ios/.generated/
58 | **/ios/Flutter/App.framework
59 | **/ios/Flutter/Flutter.framework
60 | **/ios/Flutter/Generated.xcconfig
61 | **/ios/Flutter/app.flx
62 | **/ios/Flutter/app.zip
63 | **/ios/Flutter/flutter_assets/
64 | **/ios/Flutter/flutter_export_environment.sh
65 | **/ios/ServiceDefinitions.json
66 | **/ios/Runner/GeneratedPluginRegistrant.*
67 |
68 | # Exceptions to above rules.
69 | !**/ios/**/default.mode1v3
70 | !**/ios/**/default.mode2v3
71 | !**/ios/**/default.pbxuser
72 | !**/ios/**/default.perspectivev3
73 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
74 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 2d2a1ffec95cc70a3218872a2cd3f8de4933c42f
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Flutter モバイルアプリ開発バイブル
2 |
3 | このリポジトリでは、南里勇気、太田佳敬、矢田裕基、片桐寛貴[著] [「Flutter モバイルアプリ開発バイブル」(マイナビ出版)](https://www.amazon.co.jp/Flutter-%E3%83%A2%E3%83%90%E3%82%A4%E3%83%AB%E3%82%A2%E3%83%97%E3%83%AA%E9%96%8B%E7%99%BA%E3%83%90%E3%82%A4%E3%83%96%E3%83%AB-%E5%8D%97%E9%87%8C%E5%8B%87%E6%B0%97/dp/4839970874)のサンプルコードを公開します。
4 |
5 | ## サンプルコードリスト
6 |
7 | 下記の章で掲載したサンプルコードをダウンロードできます。
8 |
9 | * Chapter6 サンプルアプリ
10 |
11 | また、このプロジェクトを実際に動かすには、Firebaseへの登録が必要となります。
12 | 詳しくは、こちらを参照してください
13 | https://firebase.google.com/docs/flutter/setup?hl=ja
14 |
15 | ※ 本書に記載されている内容や本ダウンロードデータの運用によって、いかなる損害が生じても、株式会社マイナビ出版および著者は責任を負いかねますので、あらかじめご了承ください。
16 |
--------------------------------------------------------------------------------
/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 "dev.flutterbook.sample_app"
37 | minSdkVersion 16
38 | targetSdkVersion 28
39 | multiDexEnabled true
40 | versionCode flutterVersionCode.toInteger()
41 | versionName flutterVersionName
42 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
43 | }
44 |
45 | buildTypes {
46 | release {
47 | // TODO: Add your own signing config for the release build.
48 | // Signing with the debug keys for now, so `flutter run --release` works.
49 | signingConfig signingConfigs.debug
50 | }
51 | }
52 | }
53 |
54 | flutter {
55 | source '../..'
56 | }
57 |
58 | dependencies {
59 | testImplementation 'junit:junit:4.12'
60 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
61 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
62 | }
63 |
64 | apply plugin: 'com.google.gms.google-services'
65 |
--------------------------------------------------------------------------------
/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/dev/flutterbook/sample_app/MainActivity.java:
--------------------------------------------------------------------------------
1 | package dev.flutterbook.sample_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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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.4.0'
9 | classpath 'com.google.gms:google-services:4.2.0'
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
4 |
5 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Oct 25 20:27:03 JST 2019
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/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 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
15 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
16 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
17 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
18 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
19 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
20 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
21 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
22 | /* End PBXBuildFile section */
23 |
24 | /* Begin PBXCopyFilesBuildPhase section */
25 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
26 | isa = PBXCopyFilesBuildPhase;
27 | buildActionMask = 2147483647;
28 | dstPath = "";
29 | dstSubfolderSpec = 10;
30 | files = (
31 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
32 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
33 | );
34 | name = "Embed Frameworks";
35 | runOnlyForDeploymentPostprocessing = 0;
36 | };
37 | /* End PBXCopyFilesBuildPhase section */
38 |
39 | /* Begin PBXFileReference section */
40 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
41 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
42 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
43 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
45 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
46 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
47 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
48 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
49 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
50 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
51 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
56 | /* End PBXFileReference section */
57 |
58 | /* Begin PBXFrameworksBuildPhase section */
59 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
60 | isa = PBXFrameworksBuildPhase;
61 | buildActionMask = 2147483647;
62 | files = (
63 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
64 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
65 | );
66 | runOnlyForDeploymentPostprocessing = 0;
67 | };
68 | /* End PBXFrameworksBuildPhase section */
69 |
70 | /* Begin PBXGroup section */
71 | 9740EEB11CF90186004384FC /* Flutter */ = {
72 | isa = PBXGroup;
73 | children = (
74 | 3B80C3931E831B6300D905FE /* App.framework */,
75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
76 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
78 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
79 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
80 | );
81 | name = Flutter;
82 | sourceTree = "";
83 | };
84 | 97C146E51CF9000F007C117D = {
85 | isa = PBXGroup;
86 | children = (
87 | 9740EEB11CF90186004384FC /* Flutter */,
88 | 97C146F01CF9000F007C117D /* Runner */,
89 | 97C146EF1CF9000F007C117D /* Products */,
90 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */,
91 | );
92 | sourceTree = "";
93 | };
94 | 97C146EF1CF9000F007C117D /* Products */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 97C146EE1CF9000F007C117D /* Runner.app */,
98 | );
99 | name = Products;
100 | sourceTree = "";
101 | };
102 | 97C146F01CF9000F007C117D /* Runner */ = {
103 | isa = PBXGroup;
104 | children = (
105 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
106 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
107 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
108 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
109 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
110 | 97C147021CF9000F007C117D /* Info.plist */,
111 | 97C146F11CF9000F007C117D /* Supporting Files */,
112 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
113 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
114 | );
115 | path = Runner;
116 | sourceTree = "";
117 | };
118 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
119 | isa = PBXGroup;
120 | children = (
121 | 97C146F21CF9000F007C117D /* main.m */,
122 | );
123 | name = "Supporting Files";
124 | sourceTree = "";
125 | };
126 | /* End PBXGroup section */
127 |
128 | /* Begin PBXNativeTarget section */
129 | 97C146ED1CF9000F007C117D /* Runner */ = {
130 | isa = PBXNativeTarget;
131 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
132 | buildPhases = (
133 | 9740EEB61CF901F6004384FC /* Run Script */,
134 | 97C146EA1CF9000F007C117D /* Sources */,
135 | 97C146EB1CF9000F007C117D /* Frameworks */,
136 | 97C146EC1CF9000F007C117D /* Resources */,
137 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
138 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
139 | );
140 | buildRules = (
141 | );
142 | dependencies = (
143 | );
144 | name = Runner;
145 | productName = Runner;
146 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
147 | productType = "com.apple.product-type.application";
148 | };
149 | /* End PBXNativeTarget section */
150 |
151 | /* Begin PBXProject section */
152 | 97C146E61CF9000F007C117D /* Project object */ = {
153 | isa = PBXProject;
154 | attributes = {
155 | LastUpgradeCheck = 1020;
156 | ORGANIZATIONNAME = "The Chromium Authors";
157 | TargetAttributes = {
158 | 97C146ED1CF9000F007C117D = {
159 | CreatedOnToolsVersion = 7.3.1;
160 | };
161 | };
162 | };
163 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
164 | compatibilityVersion = "Xcode 3.2";
165 | developmentRegion = en;
166 | hasScannedForEncodings = 0;
167 | knownRegions = (
168 | en,
169 | Base,
170 | );
171 | mainGroup = 97C146E51CF9000F007C117D;
172 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
173 | projectDirPath = "";
174 | projectRoot = "";
175 | targets = (
176 | 97C146ED1CF9000F007C117D /* Runner */,
177 | );
178 | };
179 | /* End PBXProject section */
180 |
181 | /* Begin PBXResourcesBuildPhase section */
182 | 97C146EC1CF9000F007C117D /* Resources */ = {
183 | isa = PBXResourcesBuildPhase;
184 | buildActionMask = 2147483647;
185 | files = (
186 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
187 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
188 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
189 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
190 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
191 | );
192 | runOnlyForDeploymentPostprocessing = 0;
193 | };
194 | /* End PBXResourcesBuildPhase section */
195 |
196 | /* Begin PBXShellScriptBuildPhase section */
197 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
198 | isa = PBXShellScriptBuildPhase;
199 | buildActionMask = 2147483647;
200 | files = (
201 | );
202 | inputPaths = (
203 | );
204 | name = "Thin Binary";
205 | outputPaths = (
206 | );
207 | runOnlyForDeploymentPostprocessing = 0;
208 | shellPath = /bin/sh;
209 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
210 | };
211 | 9740EEB61CF901F6004384FC /* Run Script */ = {
212 | isa = PBXShellScriptBuildPhase;
213 | buildActionMask = 2147483647;
214 | files = (
215 | );
216 | inputPaths = (
217 | );
218 | name = "Run Script";
219 | outputPaths = (
220 | );
221 | runOnlyForDeploymentPostprocessing = 0;
222 | shellPath = /bin/sh;
223 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
224 | };
225 | /* End PBXShellScriptBuildPhase section */
226 |
227 | /* Begin PBXSourcesBuildPhase section */
228 | 97C146EA1CF9000F007C117D /* Sources */ = {
229 | isa = PBXSourcesBuildPhase;
230 | buildActionMask = 2147483647;
231 | files = (
232 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
233 | 97C146F31CF9000F007C117D /* main.m in Sources */,
234 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
235 | );
236 | runOnlyForDeploymentPostprocessing = 0;
237 | };
238 | /* End PBXSourcesBuildPhase section */
239 |
240 | /* Begin PBXVariantGroup section */
241 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
242 | isa = PBXVariantGroup;
243 | children = (
244 | 97C146FB1CF9000F007C117D /* Base */,
245 | );
246 | name = Main.storyboard;
247 | sourceTree = "";
248 | };
249 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
250 | isa = PBXVariantGroup;
251 | children = (
252 | 97C147001CF9000F007C117D /* Base */,
253 | );
254 | name = LaunchScreen.storyboard;
255 | sourceTree = "";
256 | };
257 | /* End PBXVariantGroup section */
258 |
259 | /* Begin XCBuildConfiguration section */
260 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
261 | isa = XCBuildConfiguration;
262 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
263 | buildSettings = {
264 | ALWAYS_SEARCH_USER_PATHS = NO;
265 | CLANG_ANALYZER_NONNULL = YES;
266 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
267 | CLANG_CXX_LIBRARY = "libc++";
268 | CLANG_ENABLE_MODULES = YES;
269 | CLANG_ENABLE_OBJC_ARC = YES;
270 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
271 | CLANG_WARN_BOOL_CONVERSION = YES;
272 | CLANG_WARN_COMMA = YES;
273 | CLANG_WARN_CONSTANT_CONVERSION = YES;
274 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
275 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
276 | CLANG_WARN_EMPTY_BODY = YES;
277 | CLANG_WARN_ENUM_CONVERSION = YES;
278 | CLANG_WARN_INFINITE_RECURSION = YES;
279 | CLANG_WARN_INT_CONVERSION = YES;
280 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
281 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
282 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
283 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
284 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
285 | CLANG_WARN_STRICT_PROTOTYPES = YES;
286 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
287 | CLANG_WARN_UNREACHABLE_CODE = YES;
288 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
289 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
290 | COPY_PHASE_STRIP = NO;
291 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
292 | ENABLE_NS_ASSERTIONS = NO;
293 | ENABLE_STRICT_OBJC_MSGSEND = YES;
294 | GCC_C_LANGUAGE_STANDARD = gnu99;
295 | GCC_NO_COMMON_BLOCKS = YES;
296 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
297 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
298 | GCC_WARN_UNDECLARED_SELECTOR = YES;
299 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
300 | GCC_WARN_UNUSED_FUNCTION = YES;
301 | GCC_WARN_UNUSED_VARIABLE = YES;
302 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
303 | MTL_ENABLE_DEBUG_INFO = NO;
304 | SDKROOT = iphoneos;
305 | TARGETED_DEVICE_FAMILY = "1,2";
306 | VALIDATE_PRODUCT = YES;
307 | };
308 | name = Profile;
309 | };
310 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
311 | isa = XCBuildConfiguration;
312 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
313 | buildSettings = {
314 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
315 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
316 | ENABLE_BITCODE = NO;
317 | FRAMEWORK_SEARCH_PATHS = (
318 | "$(inherited)",
319 | "$(PROJECT_DIR)/Flutter",
320 | );
321 | INFOPLIST_FILE = Runner/Info.plist;
322 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
323 | LIBRARY_SEARCH_PATHS = (
324 | "$(inherited)",
325 | "$(PROJECT_DIR)/Flutter",
326 | );
327 | PRODUCT_BUNDLE_IDENTIFIER = dev.flutterbook.sampleApp;
328 | PRODUCT_NAME = "$(TARGET_NAME)";
329 | VERSIONING_SYSTEM = "apple-generic";
330 | };
331 | name = Profile;
332 | };
333 | 97C147031CF9000F007C117D /* Debug */ = {
334 | isa = XCBuildConfiguration;
335 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
336 | buildSettings = {
337 | ALWAYS_SEARCH_USER_PATHS = NO;
338 | CLANG_ANALYZER_NONNULL = YES;
339 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
340 | CLANG_CXX_LIBRARY = "libc++";
341 | CLANG_ENABLE_MODULES = YES;
342 | CLANG_ENABLE_OBJC_ARC = YES;
343 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
344 | CLANG_WARN_BOOL_CONVERSION = YES;
345 | CLANG_WARN_COMMA = YES;
346 | CLANG_WARN_CONSTANT_CONVERSION = YES;
347 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
348 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
349 | CLANG_WARN_EMPTY_BODY = YES;
350 | CLANG_WARN_ENUM_CONVERSION = YES;
351 | CLANG_WARN_INFINITE_RECURSION = YES;
352 | CLANG_WARN_INT_CONVERSION = YES;
353 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
354 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
355 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
356 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
357 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
358 | CLANG_WARN_STRICT_PROTOTYPES = YES;
359 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
360 | CLANG_WARN_UNREACHABLE_CODE = YES;
361 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
362 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
363 | COPY_PHASE_STRIP = NO;
364 | DEBUG_INFORMATION_FORMAT = dwarf;
365 | ENABLE_STRICT_OBJC_MSGSEND = YES;
366 | ENABLE_TESTABILITY = YES;
367 | GCC_C_LANGUAGE_STANDARD = gnu99;
368 | GCC_DYNAMIC_NO_PIC = NO;
369 | GCC_NO_COMMON_BLOCKS = YES;
370 | GCC_OPTIMIZATION_LEVEL = 0;
371 | GCC_PREPROCESSOR_DEFINITIONS = (
372 | "DEBUG=1",
373 | "$(inherited)",
374 | );
375 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
376 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
377 | GCC_WARN_UNDECLARED_SELECTOR = YES;
378 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
379 | GCC_WARN_UNUSED_FUNCTION = YES;
380 | GCC_WARN_UNUSED_VARIABLE = YES;
381 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
382 | MTL_ENABLE_DEBUG_INFO = YES;
383 | ONLY_ACTIVE_ARCH = YES;
384 | SDKROOT = iphoneos;
385 | TARGETED_DEVICE_FAMILY = "1,2";
386 | };
387 | name = Debug;
388 | };
389 | 97C147041CF9000F007C117D /* Release */ = {
390 | isa = XCBuildConfiguration;
391 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
392 | buildSettings = {
393 | ALWAYS_SEARCH_USER_PATHS = NO;
394 | CLANG_ANALYZER_NONNULL = YES;
395 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
396 | CLANG_CXX_LIBRARY = "libc++";
397 | CLANG_ENABLE_MODULES = YES;
398 | CLANG_ENABLE_OBJC_ARC = YES;
399 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
400 | CLANG_WARN_BOOL_CONVERSION = YES;
401 | CLANG_WARN_COMMA = YES;
402 | CLANG_WARN_CONSTANT_CONVERSION = YES;
403 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
404 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
405 | CLANG_WARN_EMPTY_BODY = YES;
406 | CLANG_WARN_ENUM_CONVERSION = YES;
407 | CLANG_WARN_INFINITE_RECURSION = YES;
408 | CLANG_WARN_INT_CONVERSION = YES;
409 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
410 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
411 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
412 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
413 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
414 | CLANG_WARN_STRICT_PROTOTYPES = YES;
415 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
416 | CLANG_WARN_UNREACHABLE_CODE = YES;
417 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
418 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
419 | COPY_PHASE_STRIP = NO;
420 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
421 | ENABLE_NS_ASSERTIONS = NO;
422 | ENABLE_STRICT_OBJC_MSGSEND = YES;
423 | GCC_C_LANGUAGE_STANDARD = gnu99;
424 | GCC_NO_COMMON_BLOCKS = YES;
425 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
426 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
427 | GCC_WARN_UNDECLARED_SELECTOR = YES;
428 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
429 | GCC_WARN_UNUSED_FUNCTION = YES;
430 | GCC_WARN_UNUSED_VARIABLE = YES;
431 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
432 | MTL_ENABLE_DEBUG_INFO = NO;
433 | SDKROOT = iphoneos;
434 | TARGETED_DEVICE_FAMILY = "1,2";
435 | VALIDATE_PRODUCT = YES;
436 | };
437 | name = Release;
438 | };
439 | 97C147061CF9000F007C117D /* Debug */ = {
440 | isa = XCBuildConfiguration;
441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
442 | buildSettings = {
443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
444 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
445 | ENABLE_BITCODE = NO;
446 | FRAMEWORK_SEARCH_PATHS = (
447 | "$(inherited)",
448 | "$(PROJECT_DIR)/Flutter",
449 | );
450 | INFOPLIST_FILE = Runner/Info.plist;
451 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
452 | LIBRARY_SEARCH_PATHS = (
453 | "$(inherited)",
454 | "$(PROJECT_DIR)/Flutter",
455 | );
456 | PRODUCT_BUNDLE_IDENTIFIER = dev.flutterbook.sampleApp;
457 | PRODUCT_NAME = "$(TARGET_NAME)";
458 | VERSIONING_SYSTEM = "apple-generic";
459 | };
460 | name = Debug;
461 | };
462 | 97C147071CF9000F007C117D /* Release */ = {
463 | isa = XCBuildConfiguration;
464 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
465 | buildSettings = {
466 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
467 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
468 | ENABLE_BITCODE = NO;
469 | FRAMEWORK_SEARCH_PATHS = (
470 | "$(inherited)",
471 | "$(PROJECT_DIR)/Flutter",
472 | );
473 | INFOPLIST_FILE = Runner/Info.plist;
474 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
475 | LIBRARY_SEARCH_PATHS = (
476 | "$(inherited)",
477 | "$(PROJECT_DIR)/Flutter",
478 | );
479 | PRODUCT_BUNDLE_IDENTIFIER = dev.flutterbook.sampleApp;
480 | PRODUCT_NAME = "$(TARGET_NAME)";
481 | VERSIONING_SYSTEM = "apple-generic";
482 | };
483 | name = Release;
484 | };
485 | /* End XCBuildConfiguration section */
486 |
487 | /* Begin XCConfigurationList section */
488 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
489 | isa = XCConfigurationList;
490 | buildConfigurations = (
491 | 97C147031CF9000F007C117D /* Debug */,
492 | 97C147041CF9000F007C117D /* Release */,
493 | 249021D3217E4FDB00AE95B9 /* Profile */,
494 | );
495 | defaultConfigurationIsVisible = 0;
496 | defaultConfigurationName = Release;
497 | };
498 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
499 | isa = XCConfigurationList;
500 | buildConfigurations = (
501 | 97C147061CF9000F007C117D /* Debug */,
502 | 97C147071CF9000F007C117D /* Release */,
503 | 249021D4217E4FDB00AE95B9 /* Profile */,
504 | );
505 | defaultConfigurationIsVisible = 0;
506 | defaultConfigurationName = Release;
507 | };
508 | /* End XCConfigurationList section */
509 | };
510 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
511 | }
512 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/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/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AwaseFlutter/Sample/8949052b55f86e17837b6f1e10af29f384cd7866/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | sample_app
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/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/blocs/authentication/authentication_bloc.dart:
--------------------------------------------------------------------------------
1 | import 'package:bloc/bloc.dart';
2 | import 'package:meta/meta.dart';
3 | import 'package:sample_app/blocs/authentication/authentication_event.dart';
4 | import 'package:sample_app/blocs/authentication/authentication_repository.dart';
5 | import 'package:sample_app/blocs/authentication/authentication_state.dart';
6 |
7 | class AuthenticationBloc
8 | extends Bloc {
9 | final AuthenticationRepository _authRepository;
10 |
11 | AuthenticationBloc({@required AuthenticationRepository authRepository})
12 | : assert(authRepository != null),
13 | _authRepository = authRepository;
14 |
15 | @override
16 | AuthenticationState get initialState => AuthenticationInProgress();
17 |
18 | @override
19 | Stream mapEventToState(
20 | AuthenticationEvent event,
21 | ) async* {
22 | if (event is AppStarted) {
23 | yield* _mapAppStartedToState();
24 | } else if (event is LoggedIn) {
25 | yield* _mapLoggedInToState();
26 | } else if (event is LoggedOut) {
27 | yield* _mapLoggedOutToState();
28 | }
29 | }
30 |
31 | Stream _mapAppStartedToState() async* {
32 | try {
33 | final isSignedIn = await _authRepository.isSignedIn();
34 | if (isSignedIn) {
35 | final currentUser = await _authRepository.getCurrentUser();
36 | yield AuthenticationSuccess(currentUser);
37 | } else {
38 | yield AuthenticationFailure();
39 | }
40 | } catch (_) {
41 | yield AuthenticationFailure();
42 | }
43 | }
44 |
45 | Stream _mapLoggedInToState() async* {
46 | yield AuthenticationSuccess(await _authRepository.getCurrentUser());
47 | }
48 |
49 | Stream _mapLoggedOutToState() async* {
50 | yield AuthenticationFailure();
51 | _authRepository.signOut();
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/lib/blocs/authentication/authentication_event.dart:
--------------------------------------------------------------------------------
1 | import 'package:equatable/equatable.dart';
2 | import 'package:meta/meta.dart';
3 |
4 | @immutable
5 | abstract class AuthenticationEvent extends Equatable {
6 | AuthenticationEvent([List props = const []]) : super(props);
7 | }
8 |
9 | class AppStarted extends AuthenticationEvent {
10 | @override
11 | String toString() => 'AppStarted';
12 | }
13 |
14 | class LoggedIn extends AuthenticationEvent {
15 | @override
16 | String toString() => 'LoggedIn';
17 | }
18 |
19 | class LoggedOut extends AuthenticationEvent {
20 | @override
21 | String toString() => 'LoggedOut';
22 | }
23 |
--------------------------------------------------------------------------------
/lib/blocs/authentication/authentication_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:sample_app/models/current_user.dart';
2 |
3 | abstract class AuthenticationRepository {
4 | Future signOut();
5 |
6 | Future isSignedIn();
7 |
8 | Future getCurrentUser();
9 | }
10 |
--------------------------------------------------------------------------------
/lib/blocs/authentication/authentication_state.dart:
--------------------------------------------------------------------------------
1 | import 'package:equatable/equatable.dart';
2 | import 'package:meta/meta.dart';
3 | import 'package:sample_app/models/current_user.dart';
4 |
5 | @immutable
6 | abstract class AuthenticationState extends Equatable {
7 | AuthenticationState([List props = const []]) : super(props);
8 | }
9 |
10 | class AuthenticationInProgress extends AuthenticationState {
11 | @override
12 | String toString() => 'Uninitialized';
13 | }
14 |
15 | class AuthenticationSuccess extends AuthenticationState {
16 | final CurrentUser currentUser;
17 |
18 | AuthenticationSuccess(this.currentUser) : super([currentUser]);
19 |
20 | @override
21 | String toString() => 'AuthenticationSuccess';
22 | }
23 |
24 | class AuthenticationFailure extends AuthenticationState {
25 | @override
26 | String toString() => 'AuthenticationFailure';
27 | }
28 |
--------------------------------------------------------------------------------
/lib/blocs/event_list/event_list_bloc.dart:
--------------------------------------------------------------------------------
1 | import 'package:bloc/bloc.dart';
2 | import 'package:meta/meta.dart';
3 | import 'package:sample_app/blocs/event_list/event_list_event.dart';
4 | import 'package:sample_app/blocs/event_list/event_list_repository.dart';
5 | import 'package:sample_app/blocs/event_list/event_list_state.dart';
6 |
7 | class EventListBloc extends Bloc {
8 | final EventListRepository _eventListRepository;
9 |
10 | EventListBloc({@required EventListRepository eventListRepository})
11 | : assert(eventListRepository != null),
12 | _eventListRepository = eventListRepository;
13 |
14 | @override
15 | EventListState get initialState => EventListEmpty();
16 |
17 | @override
18 | Stream mapEventToState(EventListEvent event) async* {
19 | if (event is EventListLoad) {
20 | yield* _mapEventListLoadToState();
21 | }
22 | }
23 |
24 | Stream _mapEventListLoadToState() async* {
25 | yield EventListInProgress();
26 | try {
27 | yield EventListSuccess(eventList: _eventListRepository.fetch());
28 | } catch (_) {
29 | yield EventListFailure(error: _);
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/lib/blocs/event_list/event_list_event.dart:
--------------------------------------------------------------------------------
1 | import 'package:equatable/equatable.dart';
2 | import 'package:meta/meta.dart';
3 |
4 | @immutable
5 | abstract class EventListEvent extends Equatable {
6 | EventListEvent([List props = const []]) : super(props);
7 | }
8 |
9 | class EventListLoad extends EventListEvent {
10 | @override
11 | String toString() => 'EventListLoad';
12 | }
13 |
--------------------------------------------------------------------------------
/lib/blocs/event_list/event_list_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:sample_app/models/event.dart';
2 |
3 | abstract class EventListRepository {
4 | Stream> fetch();
5 | }
6 |
--------------------------------------------------------------------------------
/lib/blocs/event_list/event_list_state.dart:
--------------------------------------------------------------------------------
1 | import 'package:equatable/equatable.dart';
2 | import 'package:meta/meta.dart';
3 | import 'package:sample_app/models/event.dart';
4 |
5 | @immutable
6 | abstract class EventListState extends Equatable {
7 | EventListState([List props = const []]) : super(props);
8 | }
9 |
10 | class EventListEmpty extends EventListState {
11 | @override
12 | String toString() => 'EventListEmpty';
13 | }
14 |
15 | class EventListInProgress extends EventListState {
16 | @override
17 | String toString() => 'EventListInProgress';
18 | }
19 |
20 | class EventListSuccess extends EventListState {
21 | final Stream> eventList;
22 |
23 | EventListSuccess({@required this.eventList})
24 | : assert(eventList != null),
25 | super([eventList]);
26 |
27 | @override
28 | String toString() => 'EventListSuccess';
29 | }
30 |
31 | class EventListFailure extends EventListState {
32 | final Error error;
33 |
34 | EventListFailure({@required this.error})
35 | : assert(error != null),
36 | super([error]);
37 |
38 | @override
39 | String toString() => 'EventListFailure';
40 | }
41 |
--------------------------------------------------------------------------------
/lib/blocs/sign_in/sign_in_bloc.dart:
--------------------------------------------------------------------------------
1 | import 'package:bloc/bloc.dart';
2 | import 'package:meta/meta.dart';
3 | import 'package:sample_app/blocs/sign_in/sign_in_event.dart';
4 | import 'package:sample_app/blocs/sign_in/sign_in_repository.dart';
5 | import 'package:sample_app/blocs/sign_in/sing_in_state.dart';
6 |
7 | class SignInBloc extends Bloc {
8 | final SignInRepository _signInRepository;
9 |
10 | SignInBloc({@required SignInRepository signInRepository})
11 | : assert(signInRepository != null),
12 | _signInRepository = signInRepository;
13 |
14 | @override
15 | SignInState get initialState => SignInEmpty();
16 |
17 | @override
18 | Stream mapEventToState(SignInEvent event) async* {
19 | if (event is SignInWithGoogleOnPressed) {
20 | yield* _mapSignInWithGoogleOnPressed();
21 | }
22 | if (event is SignInAnonymouslyOnPressed) {
23 | yield* _mapSignInAnonymouslyOnPressed();
24 | }
25 | }
26 |
27 | Stream _mapSignInWithGoogleOnPressed() async* {
28 | yield SignInLoading();
29 | try {
30 | await _signInRepository.signInWithGoogle();
31 | yield SignInSuccess();
32 | } catch (_) {
33 | yield SignInFailure();
34 | }
35 | }
36 |
37 | Stream _mapSignInAnonymouslyOnPressed() async* {
38 | yield SignInLoading();
39 | try {
40 | await _signInRepository.signInAnonymously();
41 | yield SignInSuccess();
42 | } catch (_) {
43 | yield SignInFailure();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/lib/blocs/sign_in/sign_in_event.dart:
--------------------------------------------------------------------------------
1 | import 'package:equatable/equatable.dart';
2 | import 'package:meta/meta.dart';
3 |
4 | @immutable
5 | abstract class SignInEvent extends Equatable {}
6 |
7 | class SignInWithGoogleOnPressed extends SignInEvent {}
8 |
9 | class SignInAnonymouslyOnPressed extends SignInEvent {}
10 |
--------------------------------------------------------------------------------
/lib/blocs/sign_in/sign_in_repository.dart:
--------------------------------------------------------------------------------
1 | abstract class SignInRepository {
2 | Future signInWithGoogle();
3 |
4 | Future signInAnonymously();
5 | }
6 |
--------------------------------------------------------------------------------
/lib/blocs/sign_in/sing_in_state.dart:
--------------------------------------------------------------------------------
1 | import 'package:equatable/equatable.dart';
2 | import 'package:meta/meta.dart';
3 |
4 | @immutable
5 | abstract class SignInState extends Equatable {}
6 |
7 | class SignInEmpty extends SignInState {}
8 |
9 | class SignInLoading extends SignInState {}
10 |
11 | class SignInSuccess extends SignInState {}
12 |
13 | class SignInFailure extends SignInState {}
14 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 | import 'package:sample_app/blocs/authentication/authentication_bloc.dart';
4 | import 'package:sample_app/blocs/authentication/authentication_event.dart';
5 | import 'package:sample_app/blocs/authentication/authentication_state.dart';
6 | import 'package:sample_app/repositories/firebase_authentication_repository.dart';
7 | import 'package:sample_app/screens/event_list_screen.dart';
8 | import 'package:sample_app/screens/sign_in_screen.dart';
9 | import 'package:sample_app/screens/splash_screen.dart';
10 |
11 | void main() {
12 | final authenticationRepository = FirebaseAuthenticationRepository();
13 | runApp(
14 | BlocProvider(
15 | builder: (context) =>
16 | AuthenticationBloc(authRepository: authenticationRepository)
17 | ..dispatch(AppStarted()),
18 | child: MyApp(),
19 | ),
20 | );
21 | }
22 |
23 | class MyApp extends StatelessWidget {
24 | @override
25 | Widget build(BuildContext context) {
26 | final authenticationBloc = BlocProvider.of(context);
27 | return MaterialApp(
28 | title: 'Awase',
29 | theme: ThemeData(
30 | primaryColor: Colors.indigo[900],
31 | accentColor: Colors.pink[800],
32 | brightness: Brightness.light),
33 | home: BlocBuilder(
34 | bloc: authenticationBloc,
35 | builder: (context, state) {
36 | if (state is AuthenticationInProgress) {
37 | return SplashScreen();
38 | }
39 | if (state is AuthenticationSuccess) {
40 | return EventListScreen();
41 | }
42 | if (state is AuthenticationFailure) {
43 | return SignInScreen();
44 | }
45 | return Container();
46 | }),
47 | );
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/lib/models/current_user.dart:
--------------------------------------------------------------------------------
1 | import 'package:meta/meta.dart';
2 |
3 | @immutable
4 | class CurrentUser {
5 | final String id; // ID
6 | final String name; // タイトル
7 | final String photoUrl; // 紹介文
8 | final bool isAnonymous; // 匿名かどうか
9 | final DateTime createdAt;
10 | final DateTime updatedAt;
11 |
12 | CurrentUser(
13 | {@required this.id,
14 | @required this.name,
15 | @required this.photoUrl,
16 | @required this.isAnonymous,
17 | @required this.createdAt,
18 | @required this.updatedAt})
19 | : assert(id != null),
20 | assert(name != null),
21 | assert(photoUrl != null),
22 | assert(isAnonymous != null),
23 | assert(createdAt != null),
24 | assert(updatedAt != null);
25 | }
26 |
--------------------------------------------------------------------------------
/lib/models/event.dart:
--------------------------------------------------------------------------------
1 | import 'package:meta/meta.dart';
2 |
3 | @immutable
4 | class Event {
5 | final String id; // ID
6 | final String title; // タイトル
7 | final String description; // 紹介文
8 | final DateTime date; // 開催日
9 | final String imageUrl; // イベント画像(URL)
10 |
11 | Event({
12 | @required this.id,
13 | @required this.title,
14 | @required this.description,
15 | @required this.date,
16 | @required this.imageUrl,
17 | }) : assert(id != null),
18 | assert(title != null),
19 | assert(description != null),
20 | assert(date != null),
21 | assert(imageUrl != null);
22 |
23 | static Event fromJson(Map json) {
24 | return Event(
25 | id: json['id'],
26 | title: json['title'],
27 | description: json['description'],
28 | imageUrl: json['image_url'],
29 | );
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/lib/models/user.dart:
--------------------------------------------------------------------------------
1 | import 'package:meta/meta.dart';
2 |
3 | @immutable
4 | class User {
5 | final String id;
6 | final String name;
7 | final String photoUrl;
8 | final String createAt;
9 | final String updateAt;
10 |
11 | User(
12 | {@required this.id,
13 | @required this.name,
14 | @required this.photoUrl,
15 | @required this.createAt,
16 | @required this.updateAt})
17 | : assert(id != null),
18 | assert(name != null);
19 | }
20 |
--------------------------------------------------------------------------------
/lib/repositories/firebase_authentication_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:google_sign_in/google_sign_in.dart';
3 | import 'package:sample_app/blocs/authentication/authentication_repository.dart';
4 | import 'package:sample_app/models/current_user.dart';
5 |
6 | class FirebaseAuthenticationRepository extends AuthenticationRepository {
7 | final FirebaseAuth _firebaseAuth;
8 | final GoogleSignIn _googleSignIn;
9 |
10 | FirebaseAuthenticationRepository(
11 | {FirebaseAuth firebaseAuth, GoogleSignIn googleSignIn})
12 | : _firebaseAuth = firebaseAuth ?? FirebaseAuth.instance,
13 | _googleSignIn = googleSignIn ?? GoogleSignIn();
14 |
15 | @override
16 | Future getCurrentUser() async {
17 | final currentUser = await _firebaseAuth.currentUser();
18 | return CurrentUser(
19 | id: currentUser.uid,
20 | name: currentUser.displayName ?? "",
21 | photoUrl: currentUser.photoUrl ?? "",
22 | isAnonymous: currentUser.isAnonymous,
23 | createdAt: DateTime.fromMillisecondsSinceEpoch(
24 | currentUser.metadata.creationTimestamp),
25 | updatedAt: DateTime.fromMillisecondsSinceEpoch(
26 | currentUser.metadata.lastSignInTimestamp));
27 | }
28 |
29 | @override
30 | Future isSignedIn() async {
31 | final currentUser = await _firebaseAuth.currentUser();
32 | return currentUser != null;
33 | }
34 |
35 | @override
36 | Future signOut() {
37 | return Future.wait([_firebaseAuth.signOut(), _googleSignIn.signOut()]);
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/lib/repositories/firebase_sign_in_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:firebase_auth/firebase_auth.dart';
2 | import 'package:google_sign_in/google_sign_in.dart';
3 | import 'package:sample_app/blocs/sign_in/sign_in_repository.dart';
4 |
5 | class FirebaseSignInRepository extends SignInRepository {
6 | final FirebaseAuth _firebaseAuth;
7 | final GoogleSignIn _googleSignIn;
8 |
9 | FirebaseSignInRepository(
10 | {FirebaseAuth firebaseAuth, GoogleSignIn googleSignIn})
11 | : _firebaseAuth = firebaseAuth ?? FirebaseAuth.instance,
12 | _googleSignIn = googleSignIn ?? GoogleSignIn();
13 |
14 | @override
15 | Future signInWithGoogle() async {
16 | final GoogleSignInAccount googleUser = await _googleSignIn.signIn();
17 | final GoogleSignInAuthentication googleAuth =
18 | await googleUser.authentication;
19 | final AuthCredential credential = GoogleAuthProvider.getCredential(
20 | accessToken: googleAuth.accessToken,
21 | idToken: googleAuth.idToken,
22 | );
23 | await _firebaseAuth.signInWithCredential(credential);
24 | }
25 |
26 | @override
27 | Future signInAnonymously() async {
28 | await _firebaseAuth.signInAnonymously();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/lib/repositories/firestore_event_list_repository.dart:
--------------------------------------------------------------------------------
1 | import 'package:cloud_firestore/cloud_firestore.dart';
2 | import 'package:sample_app/blocs/event_list/event_list_repository.dart';
3 | import 'package:sample_app/models/event.dart';
4 |
5 | class FirestoreEventListRepository extends EventListRepository {
6 | final Firestore _firestore;
7 |
8 | FirestoreEventListRepository({Firestore firestore})
9 | : _firestore = firestore ?? Firestore.instance;
10 |
11 | @override
12 | Stream> fetch() {
13 | return _firestore.collection("events").snapshots().map((snapshot) {
14 | return snapshot.documents.map((docs) {
15 | return Event(
16 | id: docs.documentID,
17 | title: docs.data["title"] ?? "",
18 | description: docs.data["description"] ?? "",
19 | date: docs.data["date"]?.toDate() ?? DateTime.utc(2019),
20 | imageUrl: docs.data["image_url"] ?? "",
21 | );
22 | }).toList();
23 | });
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/lib/screens/event_list_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 | import 'package:sample_app/blocs/event_list/event_list_bloc.dart';
4 | import 'package:sample_app/blocs/event_list/event_list_event.dart';
5 | import 'package:sample_app/blocs/event_list/event_list_state.dart';
6 | import 'package:sample_app/models/event.dart';
7 | import 'package:sample_app/repositories/firestore_event_list_repository.dart';
8 |
9 | class EventListScreen extends StatelessWidget {
10 | @override
11 | Widget build(BuildContext context) {
12 | final eventListBloc =
13 | EventListBloc(eventListRepository: FirestoreEventListRepository());
14 | eventListBloc.dispatch(EventListLoad());
15 |
16 | return Scaffold(
17 | appBar: AppBar(
18 | title: Text("Events"),
19 | ),
20 | body: BlocBuilder(
21 | bloc: eventListBloc,
22 | builder: (context, state) {
23 | if (state is EventListInProgress) {
24 | return Center(
25 | child: CircularProgressIndicator(),
26 | );
27 | }
28 |
29 | if (state is EventListSuccess) {
30 | return StreamBuilder(
31 | stream: state.eventList,
32 | builder:
33 | (BuildContext context, AsyncSnapshot> snapshot) {
34 | if (!snapshot.hasData) {
35 | return Center(
36 | child: CircularProgressIndicator(),
37 | );
38 | }
39 |
40 | if (snapshot.hasError) {
41 | return Center(
42 | child: Column(
43 | mainAxisSize: MainAxisSize.min,
44 | children: [Text("Failure")],
45 | ));
46 | }
47 |
48 | return ListView.builder(
49 | itemBuilder: (BuildContext context, int index) {
50 | final event = snapshot.data[index];
51 | return Card(
52 | child: Column(
53 | mainAxisSize: MainAxisSize.max,
54 | children: [
55 | ListTile(
56 | title: Text(event.title,
57 | style: TextStyle(fontWeight: FontWeight.bold)),
58 | subtitle: Text(event.date.toIso8601String()),
59 | ),
60 | Row(
61 | children: [
62 | Expanded(
63 | child: Image.network(
64 | event.imageUrl,
65 | fit: BoxFit.none,
66 | height: 128,
67 | ))
68 | ],
69 | ),
70 | Text(event.description)
71 | ]));
72 | },
73 | itemCount: snapshot.data.length,
74 | );
75 | },
76 | );
77 | }
78 |
79 | if (state is EventListFailure) {
80 | return Center(
81 | child: Text("Failure"),
82 | );
83 | }
84 |
85 | return Container();
86 | },
87 | ),
88 | );
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/lib/screens/sign_in_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 | import 'package:font_awesome_flutter/font_awesome_flutter.dart';
4 | import 'package:sample_app/blocs/authentication/authentication_bloc.dart';
5 | import 'package:sample_app/blocs/authentication/authentication_event.dart';
6 | import 'package:sample_app/blocs/sign_in/sign_in_bloc.dart';
7 | import 'package:sample_app/blocs/sign_in/sign_in_event.dart';
8 | import 'package:sample_app/blocs/sign_in/sing_in_state.dart';
9 | import 'package:sample_app/repositories/firebase_sign_in_repository.dart';
10 |
11 | class SignInScreen extends StatelessWidget {
12 | @override
13 | Widget build(BuildContext context) {
14 | final signInBloc = SignInBloc(signInRepository: FirebaseSignInRepository());
15 | final authenticationBloc = BlocProvider.of(context);
16 |
17 | return Scaffold(
18 | appBar: AppBar(
19 | title: Text("Sign In"),
20 | ),
21 | body: BlocBuilder(
22 | bloc: signInBloc,
23 | builder: (context, state) {
24 | if (state is SignInLoading) {
25 | return Center(
26 | child: CircularProgressIndicator(),
27 | );
28 | }
29 |
30 | if (state is SignInSuccess) {
31 | return Center(
32 | child: Column(
33 | mainAxisSize: MainAxisSize.min,
34 | children: [
35 | Text("Success"),
36 | RaisedButton(
37 | onPressed: () {
38 | authenticationBloc.dispatch(LoggedIn());
39 | },
40 | child: Text('StartApp'),
41 | )
42 | ],
43 | ));
44 | }
45 |
46 | if (state is SignInFailure) {
47 | return Center(
48 | child: Text("Failure"),
49 | );
50 | }
51 |
52 | return Center(
53 | child: Column(
54 | mainAxisSize: MainAxisSize.min,
55 | children: [
56 | RaisedButton.icon(
57 | onPressed: () {
58 | signInBloc.dispatch(SignInAnonymouslyOnPressed());
59 | },
60 | icon: Icon(Icons.account_circle),
61 | label: Text("Guest Login")),
62 | RaisedButton.icon(
63 | onPressed: () {
64 | signInBloc.dispatch(SignInWithGoogleOnPressed());
65 | },
66 | icon: Icon(
67 | FontAwesomeIcons.google,
68 | color: Colors.white,
69 | ),
70 | label: Text("Login With Google",
71 | style: TextStyle(color: Colors.white)))
72 | ],
73 | ),
74 | );
75 | }),
76 | );
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/lib/screens/splash_screen.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class SplashScreen extends StatelessWidget {
4 | @override
5 | Widget build(BuildContext context) {
6 | return Center(
7 | child: CircularProgressIndicator(),
8 | );
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/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.3.0"
11 | bloc:
12 | dependency: transitive
13 | description:
14 | name: bloc
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "0.15.0"
18 | boolean_selector:
19 | dependency: transitive
20 | description:
21 | name: boolean_selector
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "1.0.5"
25 | charcode:
26 | dependency: transitive
27 | description:
28 | name: charcode
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.1.2"
32 | cloud_firestore:
33 | dependency: "direct main"
34 | description:
35 | name: cloud_firestore
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "0.11.0+2"
39 | collection:
40 | dependency: transitive
41 | description:
42 | name: collection
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.14.11"
46 | cupertino_icons:
47 | dependency: "direct main"
48 | description:
49 | name: cupertino_icons
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "0.1.2"
53 | equatable:
54 | dependency: "direct main"
55 | description:
56 | name: equatable
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "0.2.6"
60 | firebase_auth:
61 | dependency: "direct main"
62 | description:
63 | name: firebase_auth
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "0.12.0+1"
67 | firebase_core:
68 | dependency: "direct main"
69 | description:
70 | name: firebase_core
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "0.4.0+9"
74 | firebase_storage:
75 | dependency: "direct main"
76 | description:
77 | name: firebase_storage
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "3.0.6"
81 | flutter:
82 | dependency: "direct main"
83 | description: flutter
84 | source: sdk
85 | version: "0.0.0"
86 | flutter_bloc:
87 | dependency: "direct main"
88 | description:
89 | name: flutter_bloc
90 | url: "https://pub.dartlang.org"
91 | source: hosted
92 | version: "0.21.0"
93 | flutter_localizations:
94 | dependency: "direct main"
95 | description: flutter
96 | source: sdk
97 | version: "0.0.0"
98 | flutter_test:
99 | dependency: "direct dev"
100 | description: flutter
101 | source: sdk
102 | version: "0.0.0"
103 | font_awesome_flutter:
104 | dependency: "direct main"
105 | description:
106 | name: font_awesome_flutter
107 | url: "https://pub.dartlang.org"
108 | source: hosted
109 | version: "8.5.0"
110 | google_sign_in:
111 | dependency: "direct main"
112 | description:
113 | name: google_sign_in
114 | url: "https://pub.dartlang.org"
115 | source: hosted
116 | version: "4.0.7"
117 | image_picker:
118 | dependency: "direct main"
119 | description:
120 | name: image_picker
121 | url: "https://pub.dartlang.org"
122 | source: hosted
123 | version: "0.6.1+8"
124 | intl:
125 | dependency: transitive
126 | description:
127 | name: intl
128 | url: "https://pub.dartlang.org"
129 | source: hosted
130 | version: "0.15.8"
131 | matcher:
132 | dependency: transitive
133 | description:
134 | name: matcher
135 | url: "https://pub.dartlang.org"
136 | source: hosted
137 | version: "0.12.5"
138 | meta:
139 | dependency: "direct main"
140 | description:
141 | name: meta
142 | url: "https://pub.dartlang.org"
143 | source: hosted
144 | version: "1.1.7"
145 | path:
146 | dependency: transitive
147 | description:
148 | name: path
149 | url: "https://pub.dartlang.org"
150 | source: hosted
151 | version: "1.6.4"
152 | pedantic:
153 | dependency: transitive
154 | description:
155 | name: pedantic
156 | url: "https://pub.dartlang.org"
157 | source: hosted
158 | version: "1.8.0+1"
159 | provider:
160 | dependency: transitive
161 | description:
162 | name: provider
163 | url: "https://pub.dartlang.org"
164 | source: hosted
165 | version: "3.1.0+1"
166 | quiver:
167 | dependency: transitive
168 | description:
169 | name: quiver
170 | url: "https://pub.dartlang.org"
171 | source: hosted
172 | version: "2.0.5"
173 | rxdart:
174 | dependency: transitive
175 | description:
176 | name: rxdart
177 | url: "https://pub.dartlang.org"
178 | source: hosted
179 | version: "0.22.4"
180 | sky_engine:
181 | dependency: transitive
182 | description: flutter
183 | source: sdk
184 | version: "0.0.99"
185 | source_span:
186 | dependency: transitive
187 | description:
188 | name: source_span
189 | url: "https://pub.dartlang.org"
190 | source: hosted
191 | version: "1.5.5"
192 | stack_trace:
193 | dependency: transitive
194 | description:
195 | name: stack_trace
196 | url: "https://pub.dartlang.org"
197 | source: hosted
198 | version: "1.9.3"
199 | stream_channel:
200 | dependency: transitive
201 | description:
202 | name: stream_channel
203 | url: "https://pub.dartlang.org"
204 | source: hosted
205 | version: "2.0.0"
206 | string_scanner:
207 | dependency: transitive
208 | description:
209 | name: string_scanner
210 | url: "https://pub.dartlang.org"
211 | source: hosted
212 | version: "1.0.5"
213 | term_glyph:
214 | dependency: transitive
215 | description:
216 | name: term_glyph
217 | url: "https://pub.dartlang.org"
218 | source: hosted
219 | version: "1.1.0"
220 | test_api:
221 | dependency: transitive
222 | description:
223 | name: test_api
224 | url: "https://pub.dartlang.org"
225 | source: hosted
226 | version: "0.2.5"
227 | typed_data:
228 | dependency: transitive
229 | description:
230 | name: typed_data
231 | url: "https://pub.dartlang.org"
232 | source: hosted
233 | version: "1.1.6"
234 | vector_math:
235 | dependency: transitive
236 | description:
237 | name: vector_math
238 | url: "https://pub.dartlang.org"
239 | source: hosted
240 | version: "2.0.8"
241 | sdks:
242 | dart: ">=2.2.2 <3.0.0"
243 | flutter: ">=1.5.0 <2.0.0"
244 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: sample_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.1.0 <3.0.0"
18 |
19 | dependencies:
20 | flutter:
21 | sdk: flutter
22 | cupertino_icons: ^0.1.2
23 | meta: ^1.1.7
24 | equatable: ^0.2.3
25 | flutter_bloc: ^0.21.0
26 | firebase_core: ^0.4.0+1
27 | firebase_auth: ^0.12.0+1
28 | cloud_firestore: ^0.11.0+2
29 | firebase_storage: ^3.0.0
30 | google_sign_in: ^4.0.1+3
31 | image_picker: ^0.6.0+3
32 | flutter_localizations:
33 | sdk: flutter
34 | font_awesome_flutter: ^8.4.0
35 |
36 | dev_dependencies:
37 | flutter_test:
38 | sdk: flutter
39 |
40 |
41 | # For information on the generic Dart part of this file, see the
42 | # following page: https://dart.dev/tools/pub/pubspec
43 |
44 | # The following section is specific to Flutter.
45 | flutter:
46 |
47 | # The following line ensures that the Material Icons font is
48 | # included with your application, so that you can use the icons in
49 | # the material Icons class.
50 | uses-material-design: true
51 |
52 | # To add assets to your application, add an assets section, like this:
53 | # assets:
54 | # - images/a_dot_burr.jpeg
55 | # - images/a_dot_ham.jpeg
56 |
57 | # An image asset can refer to one or more resolution-specific "variants", see
58 | # https://flutter.dev/assets-and-images/#resolution-aware.
59 |
60 | # For details regarding adding assets from package dependencies, see
61 | # https://flutter.dev/assets-and-images/#from-packages
62 |
63 | # To add custom fonts to your application, add a fonts section here,
64 | # in this "flutter" section. Each entry in this list should have a
65 | # "family" key with the font family name, and a "fonts" key with a
66 | # list giving the asset and other descriptors for the font. For
67 | # example:
68 | # fonts:
69 | # - family: Schyler
70 | # fonts:
71 | # - asset: fonts/Schyler-Regular.ttf
72 | # - asset: fonts/Schyler-Italic.ttf
73 | # style: italic
74 | # - family: Trajan Pro
75 | # fonts:
76 | # - asset: fonts/TrajanPro.ttf
77 | # - asset: fonts/TrajanPro_Bold.ttf
78 | # weight: 700
79 | #
80 | # For details regarding fonts from package dependencies,
81 | # see https://flutter.dev/custom-fonts/#from-packages
82 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:sample_app/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------