├── lib ├── person │ ├── widgets │ │ └── widgets.dart │ ├── person.dart │ ├── view │ │ ├── view.dart │ │ ├── person_page.dart │ │ └── edit_person_form.dart │ └── cubit │ │ ├── edit_person_state.dart │ │ └── edit_person_cubit.dart ├── profile │ ├── widgets │ │ ├── widgets.dart │ │ └── avatar.dart │ ├── profile.dart │ └── view │ │ └── profile_page.dart ├── splash │ ├── splash.dart │ └── view │ │ └── splash_page.dart ├── family_tree │ ├── family_tree.dart │ └── models │ │ ├── models.dart │ │ ├── last_names.dart │ │ └── first_names.dart ├── home │ ├── home.dart │ ├── widgets │ │ ├── widgets.dart │ │ ├── avatar.dart │ │ └── FabCircularMenuButtom.dart │ └── view │ │ └── home_page.dart ├── login │ ├── login.dart │ ├── view │ │ ├── view.dart │ │ ├── login_page.dart │ │ └── login_form.dart │ └── cubit │ │ ├── login_state.dart │ │ └── login_cubit.dart ├── sign_up │ ├── sign_up.dart │ ├── view │ │ ├── view.dart │ │ ├── sign_up_page.dart │ │ └── sign_up_form.dart │ └── cubit │ │ ├── sign_up_state.dart │ │ └── sign_up_cubit.dart ├── authentication │ ├── authentication.dart │ ├── models │ │ ├── models.dart │ │ ├── email.dart │ │ ├── password.dart │ │ └── confirmed_password.dart │ └── bloc │ │ ├── authentication_event.dart │ │ ├── authentication_state.dart │ │ └── authentication_bloc.dart ├── theme.dart ├── simple_bloc_observer.dart ├── main.dart └── app.dart ├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── 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-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj └── .gitignore ├── packages ├── authentication_repository │ ├── lib │ │ ├── src │ │ │ ├── models │ │ │ │ ├── models.dart │ │ │ │ └── user.dart │ │ │ └── authentication_repository.dart │ │ └── authentication_repository.dart │ ├── pubspec.yaml │ └── pubspec.lock └── database_repository │ ├── lib │ ├── src │ │ ├── models │ │ │ ├── models.dart │ │ │ ├── family_tree.dart │ │ │ ├── user.dart │ │ │ └── person.dart │ │ └── database_repository.dart │ └── database_repository.dart │ ├── pubspec.yaml │ └── pubspec.lock ├── assets ├── bloc_logo_small.png └── fonts │ └── HangingTree.ttf ├── README.md ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── 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 │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ └── values │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── family_tree │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ ├── google-services.json │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle └── build.gradle ├── .metadata ├── .gitignore ├── test └── widget_test.dart ├── pubspec.yaml └── pubspec.lock /lib/person/widgets/widgets.dart: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/profile/widgets/widgets.dart: -------------------------------------------------------------------------------- 1 | export 'avatar.dart'; -------------------------------------------------------------------------------- /lib/splash/splash.dart: -------------------------------------------------------------------------------- 1 | export 'view/splash_page.dart'; -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /lib/family_tree/family_tree.dart: -------------------------------------------------------------------------------- 1 | export 'models/models.dart'; 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/home/home.dart: -------------------------------------------------------------------------------- 1 | export 'view/home_page.dart'; 2 | export 'widgets/widgets.dart'; -------------------------------------------------------------------------------- /lib/person/person.dart: -------------------------------------------------------------------------------- 1 | export 'view/view.dart'; 2 | export 'widgets/widgets.dart'; -------------------------------------------------------------------------------- /packages/authentication_repository/lib/src/models/models.dart: -------------------------------------------------------------------------------- 1 | export 'user.dart'; -------------------------------------------------------------------------------- /lib/login/login.dart: -------------------------------------------------------------------------------- 1 | export 'cubit/login_cubit.dart'; 2 | export 'view/view.dart'; 3 | -------------------------------------------------------------------------------- /lib/login/view/view.dart: -------------------------------------------------------------------------------- 1 | export 'login_form.dart'; 2 | export 'login_page.dart'; 3 | -------------------------------------------------------------------------------- /lib/person/view/view.dart: -------------------------------------------------------------------------------- 1 | export 'person_page.dart'; 2 | export 'edit_person_form.dart'; -------------------------------------------------------------------------------- /lib/sign_up/sign_up.dart: -------------------------------------------------------------------------------- 1 | export 'cubit/sign_up_cubit.dart'; 2 | export 'view/view.dart'; -------------------------------------------------------------------------------- /lib/sign_up/view/view.dart: -------------------------------------------------------------------------------- 1 | export 'sign_up_form.dart'; 2 | export 'sign_up_page.dart'; -------------------------------------------------------------------------------- /lib/home/widgets/widgets.dart: -------------------------------------------------------------------------------- 1 | export 'avatar.dart'; 2 | export 'FabCircularMenuButtom.dart'; -------------------------------------------------------------------------------- /lib/profile/profile.dart: -------------------------------------------------------------------------------- 1 | export 'view/profile_page.dart'; 2 | export 'widgets/widgets.dart'; -------------------------------------------------------------------------------- /lib/family_tree/models/models.dart: -------------------------------------------------------------------------------- 1 | export 'first_names.dart'; 2 | export 'last_names.dart'; 3 | -------------------------------------------------------------------------------- /assets/bloc_logo_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwlock/flutter_family_tree/HEAD/assets/bloc_logo_small.png -------------------------------------------------------------------------------- /assets/fonts/HangingTree.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwlock/flutter_family_tree/HEAD/assets/fonts/HangingTree.ttf -------------------------------------------------------------------------------- /lib/authentication/authentication.dart: -------------------------------------------------------------------------------- 1 | export 'bloc/authentication_bloc.dart'; 2 | export 'models/models.dart'; 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Family Tree 2 | 3 | A new Flutter project created as a tech challenge during my time working for Cookie Jar. -------------------------------------------------------------------------------- /lib/authentication/models/models.dart: -------------------------------------------------------------------------------- 1 | export 'confirmed_password.dart'; 2 | export 'email.dart'; 3 | export 'password.dart'; 4 | -------------------------------------------------------------------------------- /packages/database_repository/lib/src/models/models.dart: -------------------------------------------------------------------------------- 1 | export 'user.dart'; 2 | export 'family_tree.dart'; 3 | export 'person.dart'; 4 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | android.enableR8=true 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwlock/flutter_family_tree/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwlock/flutter_family_tree/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwlock/flutter_family_tree/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwlock/flutter_family_tree/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwlock/flutter_family_tree/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/database_repository/lib/database_repository.dart: -------------------------------------------------------------------------------- 1 | library database_repository; 2 | 3 | export 'src/database_repository.dart'; 4 | export 'src/models/models.dart'; 5 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwlock/flutter_family_tree/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwlock/flutter_family_tree/HEAD/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/mwlock/flutter_family_tree/HEAD/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/mwlock/flutter_family_tree/HEAD/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/mwlock/flutter_family_tree/HEAD/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/mwlock/flutter_family_tree/HEAD/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/mwlock/flutter_family_tree/HEAD/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/mwlock/flutter_family_tree/HEAD/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/mwlock/flutter_family_tree/HEAD/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/mwlock/flutter_family_tree/HEAD/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/mwlock/flutter_family_tree/HEAD/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/mwlock/flutter_family_tree/HEAD/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/mwlock/flutter_family_tree/HEAD/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/mwlock/flutter_family_tree/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwlock/flutter_family_tree/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwlock/flutter_family_tree/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /packages/authentication_repository/lib/authentication_repository.dart: -------------------------------------------------------------------------------- 1 | library authentication_repository; 2 | 3 | export 'src/authentication_repository.dart'; 4 | export 'src/models/models.dart'; -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwlock/flutter_family_tree/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mwlock/flutter_family_tree/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/family_tree/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.matthew.family_tree 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.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: 78910062997c3a836feee883712c241a5fd22983 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/authentication_repository/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: authentication_repository 2 | description: Dart package which manages the authentication domain. 3 | version: 1.0.0 4 | 5 | environment: 6 | sdk: ">=2.7.0 <3.0.0" 7 | 8 | dependencies: 9 | flutter: 10 | sdk: flutter 11 | firebase_auth: ^0.18.4+1 12 | equatable: ^1.2.5 13 | firebase_core: ^0.5.3 14 | google_sign_in: ^4.5.6 15 | meta: ^1.2.4 16 | 17 | dev_dependencies: 18 | flutter_test: 19 | sdk: flutter 20 | mockito: ^4.1.3 -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /packages/database_repository/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: database_repository 2 | description: Dart package which manages database queries. 3 | version: 1.0.0 4 | 5 | environment: 6 | sdk: ">=2.7.0 <3.0.0" 7 | 8 | dependencies: 9 | flutter: 10 | sdk: flutter 11 | equatable: ^1.2.5 12 | firebase_core: ^0.5.3 13 | meta: ^1.2.4 14 | cloud_firestore: ^0.14.4 15 | authentication_repository: 16 | path: ../authentication_repository 17 | 18 | dev_dependencies: 19 | flutter_test: 20 | sdk: flutter 21 | mockito: ^4.1.3 -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /lib/authentication/bloc/authentication_event.dart: -------------------------------------------------------------------------------- 1 | part of 'authentication_bloc.dart'; 2 | 3 | abstract class AuthenticationEvent extends Equatable { 4 | const AuthenticationEvent(); 5 | 6 | @override 7 | List get props => []; 8 | } 9 | 10 | class AuthenticationUserChanged extends AuthenticationEvent { 11 | const AuthenticationUserChanged(this.user); 12 | 13 | final User user; 14 | 15 | @override 16 | List get props => [user]; 17 | } 18 | 19 | class AuthenticationLogoutRequested extends AuthenticationEvent {} -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/splash/view/splash_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SplashPage extends StatelessWidget { 4 | static Route route() { 5 | return MaterialPageRoute( 6 | builder: (_) => SplashPage(), 7 | ); 8 | } 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return Scaffold( 13 | body: Center( 14 | child: Image.asset( 15 | 'assets/bloc_logo_small.png', 16 | key: const Key('splash_bloc_image'), 17 | width: 150, 18 | ), 19 | ), 20 | ); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /lib/home/widgets/avatar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | const _avatarSize = 48.0; 4 | 5 | class Avatar extends StatelessWidget { 6 | const Avatar({Key key, this.photo}) : super(key: key); 7 | 8 | final String photo; 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return CircleAvatar( 13 | radius: _avatarSize, 14 | backgroundImage: photo != null ? NetworkImage(photo) : null, 15 | child: photo == null 16 | ? const Icon(Icons.person_outline, size: _avatarSize) 17 | : null, 18 | ); 19 | } 20 | } -------------------------------------------------------------------------------- /lib/profile/widgets/avatar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | const _avatarSize = 48.0; 4 | 5 | class Avatar extends StatelessWidget { 6 | const Avatar({Key key, this.photo}) : super(key: key); 7 | 8 | final String photo; 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return CircleAvatar( 13 | radius: _avatarSize, 14 | backgroundImage: photo != null ? NetworkImage(photo) : null, 15 | child: photo == null 16 | ? const Icon(Icons.person_outline, size: _avatarSize) 17 | : null, 18 | ); 19 | } 20 | } -------------------------------------------------------------------------------- /lib/authentication/models/email.dart: -------------------------------------------------------------------------------- 1 | import 'package:formz/formz.dart'; 2 | 3 | enum EmailValidationError { invalid } 4 | 5 | class Email extends FormzInput { 6 | const Email.pure() : super.pure(''); 7 | const Email.dirty([String value = '']) : super.dirty(value); 8 | 9 | static final RegExp _emailRegExp = RegExp( 10 | r'^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$', 11 | ); 12 | 13 | @override 14 | EmailValidationError validator(String value) { 15 | return _emailRegExp.hasMatch(value) ? null : EmailValidationError.invalid; 16 | } 17 | } -------------------------------------------------------------------------------- /lib/authentication/models/password.dart: -------------------------------------------------------------------------------- 1 | import 'package:formz/formz.dart'; 2 | 3 | enum PasswordValidationError { invalid } 4 | 5 | class Password extends FormzInput { 6 | const Password.pure() : super.pure(''); 7 | const Password.dirty([String value = '']) : super.dirty(value); 8 | 9 | static final _passwordRegExp = RegExp( 10 | r'^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$', 11 | ); 12 | 13 | @override 14 | PasswordValidationError validator(String value) { 15 | return _passwordRegExp.hasMatch(value) 16 | ? null 17 | : PasswordValidationError.invalid; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /lib/theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | 4 | final theme = ThemeData( 5 | textTheme: GoogleFonts.openSansTextTheme(), 6 | primaryColorDark: const Color(0xFF0097A7), 7 | primaryColorLight: const Color(0xFFB2EBF2), 8 | primaryColor: const Color(0xFF28B463), 9 | accentColor: const Color(0xFF784212), 10 | secondaryHeaderColor: const Color(0xFF784212), 11 | scaffoldBackgroundColor: const Color(0xFFD5F5E3), 12 | inputDecorationTheme: InputDecorationTheme( 13 | border: OutlineInputBorder( 14 | borderRadius: BorderRadius.circular(8), 15 | ), 16 | ), 17 | ); 18 | -------------------------------------------------------------------------------- /lib/family_tree/models/last_names.dart: -------------------------------------------------------------------------------- 1 | import 'package:formz/formz.dart'; 2 | 3 | enum LastNamesValidationError { invalid } 4 | 5 | class LastNames extends FormzInput { 6 | const LastNames.pure() : super.pure(''); 7 | const LastNames.dirty([String value = '']) : super.dirty(value); 8 | 9 | // static final RegExp _emailRegExp = RegExp( 10 | // r'^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$', 11 | // ); 12 | 13 | @override 14 | LastNamesValidationError validator(String value) { 15 | return (!(value.isEmpty || value == null)) 16 | ? null 17 | : LastNamesValidationError.invalid; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /lib/authentication/models/confirmed_password.dart: -------------------------------------------------------------------------------- 1 | import 'package:formz/formz.dart'; 2 | import 'package:meta/meta.dart'; 3 | 4 | enum ConfirmedPasswordValidationError { invalid } 5 | 6 | class ConfirmedPassword 7 | extends FormzInput { 8 | const ConfirmedPassword.pure({this.password = ''}) : super.pure(''); 9 | const ConfirmedPassword.dirty({@required this.password, String value = ''}) 10 | : super.dirty(value); 11 | 12 | final String password; 13 | 14 | @override 15 | ConfirmedPasswordValidationError validator(String value) { 16 | return password == value ? null : ConfirmedPasswordValidationError.invalid; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /lib/family_tree/models/first_names.dart: -------------------------------------------------------------------------------- 1 | import 'package:formz/formz.dart'; 2 | 3 | enum FirstNamesValidationError { invalid } 4 | 5 | class FirstNames extends FormzInput { 6 | const FirstNames.pure() : super.pure(''); 7 | const FirstNames.dirty([String value = '']) : super.dirty(value); 8 | 9 | // static final RegExp _emailRegExp = RegExp( 10 | // r'^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$', 11 | // ); 12 | 13 | @override 14 | FirstNamesValidationError validator(String value) { 15 | return (!(value.isEmpty || value == null)) 16 | ? null 17 | : FirstNamesValidationError.invalid; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /lib/simple_bloc_observer.dart: -------------------------------------------------------------------------------- 1 | import 'package:bloc/bloc.dart'; 2 | 3 | class SimpleBlocObserver extends BlocObserver { 4 | @override 5 | void onEvent(Bloc bloc, Object event) { 6 | print(event); 7 | super.onEvent(bloc, event); 8 | } 9 | 10 | @override 11 | void onError(Cubit cubit, Object error, StackTrace stackTrace) { 12 | print(error); 13 | super.onError(cubit, error, stackTrace); 14 | } 15 | 16 | @override 17 | void onChange(Cubit cubit, Change change) { 18 | print(change); 19 | super.onChange(cubit, change); 20 | } 21 | 22 | @override 23 | void onTransition(Bloc bloc, Transition transition) { 24 | print(transition); 25 | super.onTransition(bloc, transition); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /lib/login/cubit/login_state.dart: -------------------------------------------------------------------------------- 1 | part of 'login_cubit.dart'; 2 | 3 | class LoginState extends Equatable { 4 | const LoginState({ 5 | this.email = const Email.pure(), 6 | this.password = const Password.pure(), 7 | this.status = FormzStatus.pure, 8 | }); 9 | 10 | final Email email; 11 | final Password password; 12 | final FormzStatus status; 13 | 14 | @override 15 | List get props => [email, password, status]; 16 | 17 | LoginState copyWith({ 18 | Email email, 19 | Password password, 20 | FormzStatus status, 21 | }) { 22 | return LoginState( 23 | email: email ?? this.email, 24 | password: password ?? this.password, 25 | status: status ?? this.status, 26 | ); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | classpath 'com.google.gms:google-services:4.3.4' 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | google() 18 | jcenter() 19 | } 20 | } 21 | 22 | rootProject.buildDir = '../build' 23 | subprojects { 24 | project.buildDir = "${rootProject.buildDir}/${project.name}" 25 | } 26 | subprojects { 27 | project.evaluationDependsOn(':app') 28 | } 29 | 30 | task clean(type: Delete) { 31 | delete rootProject.buildDir 32 | } 33 | -------------------------------------------------------------------------------- /lib/authentication/bloc/authentication_state.dart: -------------------------------------------------------------------------------- 1 | part of 'authentication_bloc.dart'; 2 | 3 | enum AuthenticationStatus { authenticated, unauthenticated, unknown } 4 | 5 | class AuthenticationState extends Equatable { 6 | const AuthenticationState._({ 7 | this.status = AuthenticationStatus.unknown, 8 | this.user = User.empty, 9 | }); 10 | 11 | const AuthenticationState.unknown() : this._(); 12 | 13 | const AuthenticationState.authenticated(User user) 14 | : this._(status: AuthenticationStatus.authenticated, user: user); 15 | 16 | const AuthenticationState.unauthenticated() 17 | : this._(status: AuthenticationStatus.unauthenticated); 18 | 19 | final AuthenticationStatus status; 20 | final User user; 21 | 22 | @override 23 | List get props => [status, user]; 24 | } -------------------------------------------------------------------------------- /lib/person/cubit/edit_person_state.dart: -------------------------------------------------------------------------------- 1 | part of 'edit_person_cubit.dart'; 2 | 3 | class EditPersonState extends Equatable { 4 | const EditPersonState({ 5 | this.firstNames = const FirstNames.pure(), 6 | this.lastNames = const LastNames.pure(), 7 | this.status = FormzStatus.pure, 8 | }); 9 | 10 | final FirstNames firstNames; 11 | final LastNames lastNames; 12 | final FormzStatus status; 13 | 14 | @override 15 | List get props => [firstNames, lastNames]; 16 | 17 | EditPersonState copyWith({ 18 | FirstNames firstNames, 19 | LastNames lastNames, 20 | FormzStatus status, 21 | }) { 22 | return EditPersonState( 23 | firstNames: firstNames ?? this.firstNames, 24 | lastNames: lastNames ?? this.lastNames, 25 | status: status ?? this.status, 26 | ); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /.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 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Secret Information 44 | android\app\google-services.json -------------------------------------------------------------------------------- /lib/home/widgets/FabCircularMenuButtom.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class FabCircularMenuButtom extends StatelessWidget { 4 | final IconData icon; 5 | final String label; 6 | final Function onTap; 7 | 8 | FabCircularMenuButtom({ 9 | @required this.icon, 10 | @required this.label, 11 | @required this.onTap, 12 | }); 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | const widthAndSize = 75.0; 17 | return InkWell( 18 | child: Ink( 19 | width: widthAndSize, 20 | height: widthAndSize, 21 | child: Column(mainAxisSize: MainAxisSize.min, children: [ 22 | Padding(padding: const EdgeInsets.all(5), child: Icon(icon)), 23 | Text(label, textAlign: TextAlign.center) 24 | ]), 25 | ), 26 | onTap: onTap, 27 | borderRadius: BorderRadius.circular(100), 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /packages/database_repository/lib/src/models/family_tree.dart: -------------------------------------------------------------------------------- 1 | import 'package:equatable/equatable.dart'; 2 | import 'package:database_repository/database_repository.dart'; 3 | import 'package:meta/meta.dart'; 4 | 5 | /// {@template user} 6 | /// FamilyTree model 7 | /// 8 | /// [FamilyTree.empty] represents an uninitialized FamilyTree. 9 | /// {@endtemplate} 10 | class FamilyTree extends Equatable { 11 | /// {@macro FamilyTree} 12 | const FamilyTree({ 13 | @required this.id, 14 | @required this.people, 15 | }) : assert(id != null); 16 | 17 | /// The FamilyTrees's unique identifier. 18 | final String id; 19 | 20 | /// List of people belonging to the family tree. 21 | final List people; 22 | 23 | /// Empty person which represents an uninitialized Person. 24 | static FamilyTree empty = FamilyTree( 25 | id: '', 26 | people: null 27 | ); 28 | 29 | @override 30 | List get props => [id, people]; 31 | } 32 | -------------------------------------------------------------------------------- /lib/person/view/person_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:family_tree/person/cubit/edit_person_cubit.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_bloc/flutter_bloc.dart'; 4 | import 'package:family_tree/person/person.dart'; 5 | import 'edit_person_form.dart'; 6 | 7 | class PersonPage extends StatelessWidget { 8 | static Route route() { 9 | return MaterialPageRoute(builder: (_) => PersonPage()); 10 | } 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | return Scaffold( 15 | appBar: AppBar( 16 | title: const Text('Edit Person'), 17 | ), 18 | body: Padding( 19 | padding: const EdgeInsets.all(20.0), 20 | child: BlocProvider( 21 | // One time lookup, similar to "listen:false" for provider 22 | create: (_) => EditPersonCubit(), 23 | child: EditPersonForm(), 24 | ), 25 | ), 26 | ); 27 | 28 | // EditPersonForm(), 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:authentication_repository/authentication_repository.dart'; 2 | import 'package:bloc/bloc.dart'; 3 | import 'package:database_repository/database_repository.dart'; 4 | import 'package:equatable/equatable.dart'; 5 | import 'package:flutter/foundation.dart'; 6 | import 'package:flutter/widgets.dart'; 7 | import 'package:firebase_core/firebase_core.dart'; 8 | import 'package:family_tree/app.dart'; 9 | import 'package:family_tree/simple_bloc_observer.dart'; 10 | 11 | void main() async { 12 | WidgetsFlutterBinding.ensureInitialized(); 13 | await Firebase.initializeApp(); 14 | EquatableConfig.stringify = kDebugMode; 15 | Bloc.observer = SimpleBlocObserver(); 16 | final authenticationRepository = AuthenticationRepository(); 17 | final dataBaseRepository = DataBaseRepository( 18 | authenticationRepository: authenticationRepository, 19 | ); 20 | runApp(App( 21 | authenticationRepository: authenticationRepository, 22 | dataBaseRepository: dataBaseRepository, 23 | )); 24 | } 25 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /lib/person/cubit/edit_person_cubit.dart: -------------------------------------------------------------------------------- 1 | import 'package:family_tree/family_tree/family_tree.dart'; 2 | import 'package:bloc/bloc.dart'; 3 | import 'package:equatable/equatable.dart'; 4 | import 'package:formz/formz.dart'; 5 | 6 | part 'edit_person_state.dart'; 7 | 8 | class EditPersonCubit extends Cubit { 9 | EditPersonCubit() : super(const EditPersonState()); 10 | 11 | void firstNamesChanged(String value) { 12 | final firstNames = FirstNames.dirty(value); 13 | emit(state.copyWith( 14 | firstNames: firstNames, 15 | status: Formz.validate([ 16 | firstNames, 17 | ]), 18 | )); 19 | } 20 | 21 | void lastNamesChanged(String value) { 22 | print("test"); 23 | final lastNames = LastNames.dirty(value); 24 | print( 25 | Formz.validate([ 26 | lastNames, 27 | ]), 28 | ); 29 | emit(state.copyWith( 30 | lastNames: lastNames, 31 | status: Formz.validate([ 32 | lastNames, 33 | state.firstNames, 34 | ]), 35 | )); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /lib/sign_up/cubit/sign_up_state.dart: -------------------------------------------------------------------------------- 1 | part of 'sign_up_cubit.dart'; 2 | 3 | enum ConfirmPasswordValidationError { invalid } 4 | 5 | class SignUpState extends Equatable { 6 | const SignUpState({ 7 | this.email = const Email.pure(), 8 | this.password = const Password.pure(), 9 | this.confirmedPassword = const ConfirmedPassword.pure(), 10 | this.status = FormzStatus.pure, 11 | }); 12 | 13 | final Email email; 14 | final Password password; 15 | final ConfirmedPassword confirmedPassword; 16 | final FormzStatus status; 17 | 18 | @override 19 | List get props => [email, password, confirmedPassword, status]; 20 | 21 | SignUpState copyWith({ 22 | Email email, 23 | Password password, 24 | ConfirmedPassword confirmedPassword, 25 | FormzStatus status, 26 | }) { 27 | return SignUpState( 28 | email: email ?? this.email, 29 | password: password ?? this.password, 30 | confirmedPassword: confirmedPassword ?? this.confirmedPassword, 31 | status: status ?? this.status, 32 | ); 33 | } 34 | } -------------------------------------------------------------------------------- /packages/authentication_repository/lib/src/models/user.dart: -------------------------------------------------------------------------------- 1 | import 'package:equatable/equatable.dart'; 2 | import 'package:meta/meta.dart'; 3 | 4 | /// {@template user} 5 | /// User model 6 | /// 7 | /// [User.empty] represents an unauthenticated user. 8 | /// {@endtemplate} 9 | 10 | class User extends Equatable { 11 | /// {@macro user} 12 | const User({ 13 | @required this.email, 14 | @required this.id, 15 | @required this.name, 16 | @required this.photo, 17 | }) : assert(email != null), 18 | assert(id != null); 19 | 20 | /// The current user's email address. 21 | final String email; 22 | 23 | /// The current user's id. 24 | final String id; 25 | 26 | /// The current user's name (display name). 27 | final String name; 28 | 29 | /// Url for the current user's photo. 30 | final String photo; 31 | 32 | /// Empty user which represents an unauthenticated user. 33 | static const empty = User(email: '', id: '', name: null, photo: null); 34 | 35 | @override 36 | List get props => [email, id, name, photo]; 37 | } 38 | -------------------------------------------------------------------------------- /packages/database_repository/lib/src/models/user.dart: -------------------------------------------------------------------------------- 1 | import 'package:equatable/equatable.dart'; 2 | import 'package:meta/meta.dart'; 3 | 4 | /// {@template user} 5 | /// User model 6 | /// 7 | /// [User.empty] represents an unauthenticated user. 8 | /// {@endtemplate} 9 | 10 | class User extends Equatable { 11 | /// {@macro user} 12 | const User({ 13 | @required this.email, 14 | @required this.uid, 15 | @required this.name, 16 | @required this.photoURL, 17 | }) : assert(email != null), 18 | assert(uid != null), 19 | assert(name != null); 20 | 21 | /// The user's email address. 22 | final String email; 23 | 24 | /// The user's uid as assigned by firebase. 25 | final String uid; 26 | 27 | /// The user's name (display name). 28 | final String name; 29 | 30 | /// Url for the user's photo stored in web storage. 31 | final String photoURL; 32 | 33 | /// Empty user which represents user not yet added to the database 34 | static const empty = User(email: '', uid: '', name: '', photoURL: null); 35 | 36 | @override 37 | List get props => [email, uid, name, photoURL]; 38 | } 39 | -------------------------------------------------------------------------------- /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:family_tree/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(App()); 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 | -------------------------------------------------------------------------------- /android/app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "412678701405", 4 | "project_id": "family-tree-4a1b3", 5 | "storage_bucket": "family-tree-4a1b3.appspot.com" 6 | }, 7 | "client": [ 8 | { 9 | "client_info": { 10 | "mobilesdk_app_id": "1:412678701405:android:479534249918895184e8b4", 11 | "android_client_info": { 12 | "package_name": "com.matthew.family_tree" 13 | } 14 | }, 15 | "oauth_client": [ 16 | { 17 | "client_id": "412678701405-032ur7hbv779699rrbfo4ppr4bmoppv7.apps.googleusercontent.com", 18 | "client_type": 3 19 | } 20 | ], 21 | "api_key": [ 22 | { 23 | "current_key": "AIzaSyAdYveBXXVt1DDtG54IsSwxulwJCfl7gZk" 24 | } 25 | ], 26 | "services": { 27 | "appinvite_service": { 28 | "other_platform_oauth_client": [ 29 | { 30 | "client_id": "412678701405-032ur7hbv779699rrbfo4ppr4bmoppv7.apps.googleusercontent.com", 31 | "client_type": 3 32 | } 33 | ] 34 | } 35 | } 36 | } 37 | ], 38 | "configuration_version": "1" 39 | } -------------------------------------------------------------------------------- /lib/sign_up/view/sign_up_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:authentication_repository/authentication_repository.dart'; 2 | import 'package:database_repository/database_repository.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_bloc/flutter_bloc.dart'; 5 | import 'package:family_tree/sign_up/sign_up.dart'; 6 | 7 | class SignUpPage extends StatelessWidget { 8 | const SignUpPage({Key key}) : super(key: key); 9 | 10 | static Route route() { 11 | return MaterialPageRoute(builder: (_) => const SignUpPage()); 12 | } 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return Scaffold( 17 | appBar: AppBar(title: const Text('Sign Up')), 18 | body: Padding( 19 | padding: const EdgeInsets.all(20.0), 20 | // A Flutter widget which provides a cubit to its children 21 | child: BlocProvider( 22 | // One time lookup, similar to "listen:false" for provider 23 | create: (_) => SignUpCubit( 24 | context.read(), 25 | context.read(), 26 | ), 27 | child: SignUpForm(), 28 | ), 29 | ), 30 | ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /lib/profile/view/profile_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_bloc/flutter_bloc.dart'; 3 | import 'package:family_tree/authentication/authentication.dart'; 4 | import 'package:family_tree/profile/profile.dart'; 5 | 6 | class ProfilePage extends StatelessWidget { 7 | static Route route() { 8 | return MaterialPageRoute(builder: (_) => ProfilePage()); 9 | } 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | final textTheme = Theme.of(context).textTheme; 14 | final user = context.select((AuthenticationBloc bloc) => bloc.state.user); 15 | return Scaffold( 16 | appBar: AppBar( 17 | title: const Text('Profile Page'), 18 | ), 19 | body: Align( 20 | alignment: const Alignment(0, -1 / 3), 21 | child: Column( 22 | mainAxisSize: MainAxisSize.min, 23 | children: [ 24 | Avatar(photo: user.photo), 25 | const SizedBox(height: 4.0), 26 | Text(user.email, style: textTheme.headline6), 27 | const SizedBox(height: 4.0), 28 | Text(user.name ?? '', style: textTheme.headline5), 29 | ], 30 | ), 31 | ), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /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 | family_tree 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 | -------------------------------------------------------------------------------- /lib/login/view/login_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:authentication_repository/authentication_repository.dart'; 2 | import 'package:family_tree/theme.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_bloc/flutter_bloc.dart'; 5 | import 'package:family_tree/login/login.dart'; 6 | 7 | class LoginPage extends StatelessWidget { 8 | static Route route() { 9 | return MaterialPageRoute(builder: (_) => LoginPage()); 10 | } 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | return Scaffold( 15 | body: Padding( 16 | padding: const EdgeInsets.all(20.0), 17 | child: BlocProvider( 18 | create: (_) => LoginCubit(context.read()), 19 | child: Align( 20 | alignment: const Alignment(0, 0), 21 | child: Column( 22 | mainAxisSize: MainAxisSize.min, 23 | children: [ 24 | _LoginPageHeader(), 25 | LoginForm(), 26 | ], 27 | ), 28 | ), 29 | ), 30 | ), 31 | ); 32 | } 33 | } 34 | 35 | class _LoginPageHeader extends StatelessWidget { 36 | @override 37 | Widget build(BuildContext context) { 38 | return Container( 39 | margin: EdgeInsets.only(bottom: 20), 40 | child: Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ 41 | Container(child: Image.asset('assets/bloc_logo_small.png', height: 60)), 42 | const Text( 43 | 'Family Tree', 44 | style: TextStyle( 45 | fontFamily: 'HangingTree', 46 | fontSize: 60, 47 | color: Colors.brown, 48 | ), 49 | ) 50 | ]), 51 | ); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /lib/authentication/bloc/authentication_bloc.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:authentication_repository/authentication_repository.dart'; 4 | import 'package:bloc/bloc.dart'; 5 | import 'package:equatable/equatable.dart'; 6 | import 'package:meta/meta.dart'; 7 | import 'package:pedantic/pedantic.dart'; 8 | 9 | part 'authentication_event.dart'; 10 | part 'authentication_state.dart'; 11 | 12 | class AuthenticationBloc 13 | extends Bloc { 14 | AuthenticationBloc({ 15 | @required AuthenticationRepository authenticationRepository, 16 | }) : assert(authenticationRepository != null), 17 | _authenticationRepository = authenticationRepository, 18 | super( 19 | const AuthenticationState.unknown(), 20 | ) { 21 | _userSubscription = _authenticationRepository.user.listen( 22 | (user) => add( 23 | AuthenticationUserChanged(user), 24 | ), 25 | ); 26 | } 27 | 28 | final AuthenticationRepository _authenticationRepository; 29 | StreamSubscription _userSubscription; 30 | 31 | @override 32 | Stream mapEventToState( 33 | AuthenticationEvent event, 34 | ) async* { 35 | if (event is AuthenticationUserChanged) { 36 | yield _mapAuthenticationUserChangedToState(event); 37 | } else if (event is AuthenticationLogoutRequested) { 38 | unawaited(_authenticationRepository.logOut()); 39 | } 40 | } 41 | 42 | @override 43 | Future close() { 44 | _userSubscription?.cancel(); 45 | return super.close(); 46 | } 47 | 48 | AuthenticationState _mapAuthenticationUserChangedToState( 49 | AuthenticationUserChanged event, 50 | ) { 51 | return event.user != User.empty 52 | ? AuthenticationState.authenticated(event.user) 53 | : const AuthenticationState.unauthenticated(); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /lib/login/cubit/login_cubit.dart: -------------------------------------------------------------------------------- 1 | import 'package:authentication_repository/authentication_repository.dart'; 2 | import 'package:bloc/bloc.dart'; 3 | import 'package:equatable/equatable.dart'; 4 | import 'package:family_tree/authentication/authentication.dart'; 5 | import 'package:formz/formz.dart'; 6 | 7 | part 'login_state.dart'; 8 | 9 | class LoginCubit extends Cubit { 10 | LoginCubit(this._authenticationRepository) 11 | : assert(_authenticationRepository != null), 12 | super(const LoginState()); 13 | 14 | final AuthenticationRepository _authenticationRepository; 15 | 16 | void emailChanged(String value) { 17 | final email = Email.dirty(value); 18 | emit(state.copyWith( 19 | email: email, 20 | status: Formz.validate([email, state.password]), 21 | )); 22 | } 23 | 24 | void passwordChanged(String value) { 25 | final password = Password.dirty(value); 26 | emit(state.copyWith( 27 | password: password, 28 | status: Formz.validate([state.email, password]), 29 | )); 30 | } 31 | 32 | Future logInWithCredentials() async { 33 | if (!state.status.isValidated) return; 34 | emit(state.copyWith(status: FormzStatus.submissionInProgress)); 35 | try { 36 | await _authenticationRepository.logInWithEmailAndPassword( 37 | email: state.email.value, 38 | password: state.password.value, 39 | ); 40 | emit(state.copyWith(status: FormzStatus.submissionSuccess)); 41 | } on Exception { 42 | emit(state.copyWith(status: FormzStatus.submissionFailure)); 43 | } 44 | } 45 | 46 | Future logInWithGoogle() async { 47 | emit(state.copyWith(status: FormzStatus.submissionInProgress)); 48 | try { 49 | await _authenticationRepository.logInWithGoogle(); 50 | emit(state.copyWith(status: FormzStatus.submissionSuccess)); 51 | } on Exception { 52 | emit(state.copyWith(status: FormzStatus.submissionFailure)); 53 | } on NoSuchMethodError { 54 | emit(state.copyWith(status: FormzStatus.pure)); 55 | } 56 | } 57 | } -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | apply plugin: 'com.google.gms.google-services' 28 | 29 | android { 30 | compileSdkVersion 29 31 | 32 | sourceSets { 33 | main.java.srcDirs += 'src/main/kotlin' 34 | } 35 | 36 | lintOptions { 37 | disable 'InvalidPackage' 38 | } 39 | 40 | defaultConfig { 41 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 42 | applicationId "com.matthew.family_tree" 43 | minSdkVersion 21 44 | targetSdkVersion 29 45 | versionCode flutterVersionCode.toInteger() 46 | versionName flutterVersionName 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | } 57 | 58 | flutter { 59 | source '../..' 60 | } 61 | 62 | dependencies { 63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 64 | implementation platform('com.google.firebase:firebase-bom:26.2.0') 65 | implementation 'com.google.firebase:firebase-analytics' 66 | implementation 'com.google.android.gms:play-services-basement:17.4.0' 67 | } 68 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /packages/database_repository/lib/src/models/person.dart: -------------------------------------------------------------------------------- 1 | import 'package:equatable/equatable.dart'; 2 | import 'package:meta/meta.dart'; 3 | 4 | /// {@template user} 5 | /// Person model 6 | /// 7 | /// [Person.empty] represents an uninitialized Person. 8 | /// {@endtemplate} 9 | 10 | class Person extends Equatable { 11 | /// {@macro person} 12 | const Person( 13 | {@required this.id, 14 | @required this.familyTreeId, 15 | @required this.firstNames, 16 | @required this.surname, 17 | @required this.birthDate, 18 | @required this.deathDate, 19 | @required this.description, 20 | @required this.mother, 21 | @required this.father, 22 | @required this.spouses, 23 | @required this.children}) 24 | : assert(id != null), 25 | assert(familyTreeId != null), 26 | assert(firstNames != null), 27 | assert(surname != null), 28 | assert(birthDate != null), 29 | assert(description != null); 30 | 31 | /// The person's first name unique identifier. 32 | final String id; 33 | 34 | /// The unique identifier of the family tree to which the person belongs. 35 | final String familyTreeId; 36 | 37 | /// The person's first names (includes "middle names"). 38 | final String firstNames; 39 | 40 | /// The person's last name (family name). 41 | final String surname; 42 | 43 | /// The person's date of birth. 44 | final DateTime birthDate; 45 | 46 | /// The person's date of death. 47 | final DateTime deathDate; 48 | 49 | /// General description of who the person is, what they achieved during their lifetime, where they lived, how they died, etc. 50 | final String description; 51 | 52 | /// Biological mother of the person. 53 | final Person mother; 54 | 55 | /// Biological father of the person. 56 | final Person father; 57 | 58 | /// List of spouses to whom the person was commited. 59 | final List spouses; 60 | 61 | /// List of children reared by the person. 62 | final List children; 63 | 64 | /// Empty person which represents an uninitialized Person. 65 | static Person empty = Person( 66 | id: '', 67 | familyTreeId: '', 68 | firstNames: '', 69 | surname: '', 70 | birthDate: DateTime.now(), 71 | deathDate: null, 72 | description: '', 73 | mother: null, 74 | father: null, 75 | spouses: null, 76 | children: null, 77 | ); 78 | 79 | @override 80 | List get props => [ 81 | id, 82 | familyTreeId, 83 | firstNames, 84 | surname, 85 | birthDate, 86 | deathDate, 87 | description, 88 | mother, 89 | father, 90 | spouses, 91 | children 92 | ]; 93 | } 94 | -------------------------------------------------------------------------------- /lib/sign_up/cubit/sign_up_cubit.dart: -------------------------------------------------------------------------------- 1 | import 'package:authentication_repository/authentication_repository.dart'; 2 | import 'package:database_repository/database_repository.dart'; 3 | 4 | import 'package:bloc/bloc.dart'; 5 | import 'package:equatable/equatable.dart'; 6 | import 'package:family_tree/authentication/authentication.dart'; 7 | import 'package:formz/formz.dart'; 8 | 9 | part 'sign_up_state.dart'; 10 | 11 | class SignUpCubit extends Cubit { 12 | SignUpCubit(this._authenticationRepository, this._dataBaseRepository) 13 | : assert(_authenticationRepository != null), 14 | assert(_dataBaseRepository != null), 15 | super(const SignUpState()); 16 | 17 | final AuthenticationRepository _authenticationRepository; 18 | final DataBaseRepository _dataBaseRepository; 19 | 20 | void emailChanged(String value) { 21 | final email = Email.dirty(value); 22 | emit(state.copyWith( 23 | email: email, 24 | status: Formz.validate([ 25 | email, 26 | state.password, 27 | state.confirmedPassword, 28 | ]), 29 | )); 30 | } 31 | 32 | void passwordChanged(String value) { 33 | final password = Password.dirty(value); 34 | final confirmedPassword = ConfirmedPassword.dirty( 35 | password: password.value, 36 | value: state.confirmedPassword.value, 37 | ); 38 | emit(state.copyWith( 39 | password: password, 40 | confirmedPassword: confirmedPassword, 41 | status: Formz.validate([ 42 | state.email, 43 | password, 44 | state.confirmedPassword, 45 | ]), 46 | )); 47 | } 48 | 49 | void confirmedPasswordChanged(String value) { 50 | final confirmedPassword = ConfirmedPassword.dirty( 51 | password: state.password.value, 52 | value: value, 53 | ); 54 | emit(state.copyWith( 55 | confirmedPassword: confirmedPassword, 56 | status: Formz.validate([ 57 | state.email, 58 | state.password, 59 | confirmedPassword, 60 | ]), 61 | )); 62 | } 63 | 64 | Future signUpFormSubmitted() async { 65 | if (!state.status.isValidated) return; 66 | emit(state.copyWith(status: FormzStatus.submissionInProgress)); 67 | try { 68 | await _authenticationRepository.signUp( 69 | email: state.email.value, 70 | password: state.password.value, 71 | ); 72 | final user = _authenticationRepository.getCurrentUser; 73 | final userUid = _authenticationRepository.getCurrentUserUid; 74 | await _dataBaseRepository.insertUser(user: user, uid: userUid); 75 | emit(state.copyWith(status: FormzStatus.submissionSuccess)); 76 | } on Exception { 77 | emit(state.copyWith(status: FormzStatus.submissionFailure)); 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 23 | 27 | 32 | 36 | 37 | 38 | 39 | 40 | 41 | 43 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /lib/home/view/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_bloc/flutter_bloc.dart'; 3 | import 'package:family_tree/authentication/authentication.dart'; 4 | import 'package:family_tree/home/home.dart' as home; 5 | import 'package:family_tree/person/person.dart' as person; 6 | import 'package:family_tree/profile/profile.dart' as profile; 7 | 8 | import 'package:fab_circular_menu/fab_circular_menu.dart'; 9 | 10 | class HomePage extends StatelessWidget { 11 | final GlobalKey fabKey = GlobalKey(); 12 | 13 | static Route route() { 14 | return MaterialPageRoute(builder: (_) => HomePage()); 15 | } 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | // final textTheme = Theme.of(context).textTheme; 20 | // final user = context.select((AuthenticationBloc bloc) => bloc.state.user); 21 | return Scaffold( 22 | appBar: AppBar( 23 | title: const Text('Family Tree'), 24 | actions: [ 25 | IconButton( 26 | key: const Key('homePage_profile_iconButton'), 27 | icon: const Icon(Icons.person), 28 | onPressed: () { 29 | Navigator.of(context).push(profile.ProfilePage.route()); 30 | }, 31 | ), 32 | IconButton( 33 | key: const Key('homePage_logout_iconButton'), 34 | icon: const Icon(Icons.exit_to_app), 35 | onPressed: () => context 36 | .read() 37 | .add(AuthenticationLogoutRequested()), 38 | ) 39 | ], 40 | ), 41 | floatingActionButton: FabCircularMenu( 42 | key: fabKey, 43 | animationDuration: const Duration(milliseconds: 300), 44 | animationCurve: Curves.linear, 45 | ringColor: Theme.of(context).primaryColor.withAlpha(90), 46 | ringDiameter: 350, 47 | ringWidth: 100, 48 | children: [ 49 | home.FabCircularMenuButtom( 50 | icon: Icons.share, 51 | label: 'Share\nTree', 52 | onTap: () {}, 53 | ), 54 | home.FabCircularMenuButtom( 55 | icon: Icons.share, 56 | label: 'Share\nTree', 57 | onTap: () {}, 58 | ), 59 | home.FabCircularMenuButtom( 60 | icon: Icons.person_add, 61 | label: 'Add\nPerson', 62 | onTap: () { 63 | fabKey.currentState.close(); 64 | Navigator.of(context).push(person.PersonPage.route()); 65 | }, 66 | ), 67 | ], 68 | ), 69 | body: Align( 70 | alignment: const Alignment(0, -1 / 3), 71 | child: Column( 72 | mainAxisSize: MainAxisSize.min, 73 | children: [ 74 | // Avatar(photo: user.photo), 75 | // const SizedBox(height: 4.0), 76 | // Text(user.email, style: textTheme.headline6), 77 | // const SizedBox(height: 4.0), 78 | // Text(user.name ?? '', style: textTheme.headline5), 79 | ], 80 | ), 81 | ), 82 | ); 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /packages/database_repository/lib/src/database_repository.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:cloud_firestore/cloud_firestore.dart' as firestore; 4 | import 'package:authentication_repository/authentication_repository.dart'; 5 | import 'package:database_repository/src/models/models.dart' as dataBaseModels; 6 | import 'package:authentication_repository/src/models/models.dart' as AuthModel; 7 | import 'package:meta/meta.dart'; 8 | 9 | import 'models/models.dart'; 10 | 11 | /// Thrown during the database insert process if a failure occurs. 12 | class InsertFailure implements Exception {} 13 | 14 | /// Thrown during the database insert process if a failure occurs due to loss in furebase_auth status. 15 | class LoginStatusFailure implements Exception {} 16 | 17 | /// {@template database_repository} 18 | /// Repository which database requests. 19 | /// {@endtemplate} 20 | class DataBaseRepository { 21 | /// {@macro database_repository} 22 | DataBaseRepository({ 23 | firestore.FirebaseFirestore firestoreDatabase, 24 | @required AuthenticationRepository authenticationRepository, 25 | }) 26 | // { 27 | // this._authenticationRepository = authenticationRepository; 28 | // this._firestoreDatabase = firestoreDatabase; 29 | // print('========= DATABASE REPO CONSTRUCTOR'); 30 | // print(this.hashCode); 31 | // } 32 | : _firestoreDatabase = 33 | firestoreDatabase ?? firestore.FirebaseFirestore.instance, 34 | _authenticationRepository = authenticationRepository; 35 | 36 | firestore.FirebaseFirestore _firestoreDatabase; 37 | AuthenticationRepository _authenticationRepository; 38 | 39 | /// Stream of [FamilyTree] which will emit the current family tree when 40 | /// the database is changed. 41 | /// 42 | /// Emits [dataBaseModels.FamilyTree.empty] if the family tree does not exist. 43 | Stream get familyTree { 44 | return _firestoreDatabase 45 | .collection('family_trees') 46 | .doc('test') 47 | .snapshots() 48 | .map((query) { 49 | print("QUUUUUUUUUUUUUUEEEEEEEEERRRRRRRRTTTTTTTTTTTTY"); 50 | return query == null 51 | ? dataBaseModels.FamilyTree(id: '', people: null) 52 | : query.toFamilyTree; 53 | }); 54 | 55 | // return _firebaseAuth.authStateChanges().map((firebaseUser) { 56 | // return firebaseUser == null ? User.empty : firebaseUser.toUser; 57 | // }); 58 | } 59 | 60 | /// Insets a new user into FireStore using information provided by the authentification package. 61 | /// 62 | /// Throws an [InsertFailure] if an exception occurs. 63 | Future insertUser( 64 | {@required AuthModel.User user, @required String uid}) async { 65 | assert(user != AuthModel.User.empty); 66 | assert(user != null); 67 | try { 68 | final users = _firestoreDatabase.collection('users'); 69 | await users.doc(uid).set({ 70 | 'username': user.name, 71 | 'email': user.email, 72 | 'imageUrl': user.photo, 73 | }); 74 | } on Exception { 75 | throw InsertFailure(); 76 | } 77 | } 78 | } 79 | 80 | extension on firestore.DocumentSnapshot { 81 | dataBaseModels.FamilyTree get toFamilyTree { 82 | print("==========FAMILY TREE============"); 83 | print(data()); 84 | return dataBaseModels.FamilyTree.empty; 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /lib/app.dart: -------------------------------------------------------------------------------- 1 | import 'package:authentication_repository/authentication_repository.dart'; 2 | import 'package:database_repository/database_repository.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_bloc/flutter_bloc.dart'; 5 | import 'package:family_tree/authentication/authentication.dart'; 6 | import 'package:family_tree/home/home.dart'; 7 | import 'package:family_tree/login/login.dart'; 8 | import 'package:family_tree/splash/splash.dart'; 9 | import 'package:family_tree/theme.dart'; 10 | 11 | class App extends StatelessWidget { 12 | const App( 13 | {Key key, 14 | @required this.authenticationRepository, 15 | this.dataBaseRepository}) 16 | : assert(authenticationRepository != null), 17 | super(key: key); 18 | 19 | final AuthenticationRepository authenticationRepository; 20 | final DataBaseRepository dataBaseRepository; 21 | 22 | @override 23 | Widget build(BuildContext context) { 24 | return MultiRepositoryProvider( 25 | providers: [ 26 | RepositoryProvider( 27 | create: (_) => authenticationRepository, 28 | ), 29 | RepositoryProvider( 30 | create: (_) => dataBaseRepository, 31 | ), 32 | ], 33 | child: BlocProvider( 34 | create: (_) => AuthenticationBloc( 35 | authenticationRepository: authenticationRepository, 36 | ), 37 | child: AppView(), 38 | ), 39 | ); 40 | // return RepositoryProvider.value( 41 | // value: authenticationRepository, 42 | // child: BlocProvider( 43 | // create: (_) => AuthenticationBloc( 44 | // authenticationRepository: authenticationRepository, 45 | // ), 46 | // child: AppView(), 47 | // ), 48 | // ); 49 | } 50 | } 51 | 52 | class AppView extends StatefulWidget { 53 | @override 54 | _AppViewState createState() => _AppViewState(); 55 | } 56 | 57 | class _AppViewState extends State { 58 | final _navigatorKey = GlobalKey(); 59 | 60 | NavigatorState get _navigator => _navigatorKey.currentState; 61 | 62 | @override 63 | Widget build(BuildContext context) { 64 | return MaterialApp( 65 | theme: theme, 66 | navigatorKey: _navigatorKey, 67 | routes: {}, 68 | builder: (context, child) { 69 | // blocListener is a Flutter widget which takes a BlocWidgetListener and an optional cubit and invokes the listener in response to state changes in the cubit. 70 | // should be used for functionality that needs to occur once per state change such as navigation, showing a SnackBar 71 | // is a void function 72 | return BlocListener( 73 | listener: (context, state) { 74 | switch (state.status) { 75 | case AuthenticationStatus.authenticated: 76 | _navigator.pushAndRemoveUntil( 77 | HomePage.route(), 78 | (route) => false, 79 | ); 80 | break; 81 | case AuthenticationStatus.unauthenticated: 82 | _navigator.pushAndRemoveUntil( 83 | LoginPage.route(), 84 | (route) => false, 85 | ); 86 | break; 87 | default: 88 | break; 89 | } 90 | }, 91 | child: child, 92 | ); 93 | }, 94 | onGenerateRoute: (_) => SplashPage.route(), 95 | ); 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: family_tree 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.7.0 <3.0.0" 22 | 23 | dependencies: 24 | flutter: 25 | sdk: flutter 26 | equatable: ^1.2.5 27 | bloc: ^6.1.1 28 | flutter_bloc: ^6.1.1 29 | font_awesome_flutter: ^8.4.0 30 | pedantic: ^1.9.2 31 | meta: ^1.2.4 32 | google_fonts: ^1.1.1 33 | formz: ^0.3.2 34 | # Widgets 35 | fab_circular_menu: ^1.0.1 36 | # Repositories 37 | authentication_repository: 38 | path: packages/authentication_repository 39 | database_repository: 40 | path: packages/database_repository 41 | family_tree_repository: 42 | path: packages/family_tree_repository 43 | 44 | 45 | # The following adds the Cupertino Icons font to your application. 46 | # Use with the CupertinoIcons class for iOS style icons. 47 | cupertino_icons: ^1.0.0 48 | 49 | dev_dependencies: 50 | flutter_test: 51 | sdk: flutter 52 | mockito: ^4.1.3 53 | bloc_test: ^7.1.0 54 | 55 | # For information on the generic Dart part of this file, see the 56 | # following page: https://dart.dev/tools/pub/pubspec 57 | 58 | # The following section is specific to Flutter. 59 | flutter: 60 | 61 | # The following line ensures that the Material Icons font is 62 | # included with your application, so that you can use the icons in 63 | # the material Icons class. 64 | uses-material-design: true 65 | 66 | # To add assets to your application, add an assets section, like this: 67 | assets: 68 | - assets/ 69 | # - images/a_dot_burr.jpeg 70 | # - images/a_dot_ham.jpeg 71 | 72 | # An image asset can refer to one or more resolution-specific "variants", see 73 | # https://flutter.dev/assets-and-images/#resolution-aware. 74 | 75 | # For details regarding adding assets from package dependencies, see 76 | # https://flutter.dev/assets-and-images/#from-packages 77 | 78 | # To add custom fonts to your application, add a fonts section here, 79 | # in this "flutter" section. Each entry in this list should have a 80 | # "family" key with the font family name, and a "fonts" key with a 81 | # list giving the asset and other descriptors for the font. For 82 | # example: 83 | fonts: 84 | - family: HangingTree 85 | fonts: 86 | - asset: assets/fonts/HangingTree.ttf 87 | # - asset: fonts/Schyler-Italic.ttf 88 | # style: italic 89 | # - family: Trajan Pro 90 | # fonts: 91 | # - asset: fonts/TrajanPro.ttf 92 | # - asset: fonts/TrajanPro_Bold.ttf 93 | # weight: 700 94 | # 95 | # For details regarding fonts from package dependencies, 96 | # see https://flutter.dev/custom-fonts/#from-packages 97 | -------------------------------------------------------------------------------- /packages/authentication_repository/lib/src/authentication_repository.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:firebase_auth/firebase_auth.dart' as firebase_auth; 4 | import 'package:google_sign_in/google_sign_in.dart'; 5 | import 'package:meta/meta.dart'; 6 | 7 | import 'models/models.dart'; 8 | 9 | /// Thrown if during the sign up process if a failure occurs. 10 | class SignUpFailure implements Exception {} 11 | 12 | // Thrown during the login process if a failure occurs. 13 | class LogInWithEmailAndPasswordFailure implements Exception {} 14 | 15 | /// Thrown during the sign in with google process if a failure occurs. 16 | class LogInWithGoogleFailure implements Exception {} 17 | 18 | /// Thrown during the logout process if a failure occurs. 19 | class LogOutFailure implements Exception {} 20 | 21 | /// {@template authentication_repository} 22 | /// Repository which manages user authentication. 23 | /// {@endtemplate} 24 | class AuthenticationRepository { 25 | /// {@macro authentication_repository} 26 | AuthenticationRepository({ 27 | firebase_auth.FirebaseAuth firebaseAuth, 28 | GoogleSignIn googleSignIn, 29 | }) { 30 | _firebaseAuth = firebaseAuth ?? firebase_auth.FirebaseAuth.instance; 31 | _googleSignIn = googleSignIn ?? GoogleSignIn.standard(); 32 | _currentUser = null; 33 | 34 | _firebaseAuth.authStateChanges().listen((firebaseUser) { 35 | _currentUser = firebaseUser.toUser; 36 | _currentUserUid = firebaseUser.uid; 37 | }); 38 | } 39 | // : _firebaseAuth = firebaseAuth ?? firebase_auth.FirebaseAuth.instance, 40 | // _googleSignIn = googleSignIn ?? GoogleSignIn.standard(), 41 | // currentUser = null, 42 | // _currentUserSubscription = _firebaseAuth.authStateChanges().listen(); 43 | 44 | firebase_auth.FirebaseAuth _firebaseAuth; 45 | GoogleSignIn _googleSignIn; 46 | 47 | // StreamSubscription _currentUserSubscription; 48 | User _currentUser; 49 | String _currentUserUid; 50 | 51 | /// Stream of [User] which will emit the current user when 52 | /// the authentication state changes. 53 | /// 54 | /// Emits [User.empty] if the user is not authenticated. 55 | Stream get user { 56 | return _firebaseAuth.authStateChanges().map((firebaseUser) { 57 | return firebaseUser == null ? User.empty : firebaseUser.toUser; 58 | }); 59 | } 60 | 61 | User get getCurrentUser { 62 | return _currentUser; 63 | } 64 | 65 | String get getCurrentUserUid { 66 | return _currentUserUid; 67 | } 68 | 69 | /// Creates a new user with the provided [email] and [password]. 70 | /// 71 | /// Throws a [SignUpFailure] if an exception occurs. 72 | Future signUp({ 73 | @required String email, 74 | @required String password, 75 | }) async { 76 | assert(email != null && password != null); 77 | try { 78 | await _firebaseAuth.createUserWithEmailAndPassword( 79 | email: email, 80 | password: password, 81 | ); 82 | } on Exception { 83 | throw SignUpFailure(); 84 | } 85 | } 86 | 87 | /// Starts the Sign In with Google Flow. 88 | /// 89 | /// Throws a [LogInWithGoogleFailure] if an exception occurs. 90 | Future logInWithGoogle() async { 91 | try { 92 | final googleUser = await _googleSignIn.signIn(); 93 | final googleAuth = await googleUser.authentication; 94 | final credential = firebase_auth.GoogleAuthProvider.credential( 95 | accessToken: googleAuth.accessToken, 96 | idToken: googleAuth.idToken, 97 | ); 98 | await _firebaseAuth.signInWithCredential(credential); 99 | } on Exception { 100 | throw LogInWithGoogleFailure(); 101 | } 102 | } 103 | 104 | /// Signs in with the provided [email] and [password]. 105 | /// 106 | /// Throws a [LogInWithEmailAndPasswordFailure] if an exception occurs. 107 | Future logInWithEmailAndPassword({ 108 | @required String email, 109 | @required String password, 110 | }) async { 111 | assert(email != null && password != null); 112 | try { 113 | await _firebaseAuth.signInWithEmailAndPassword( 114 | email: email, 115 | password: password, 116 | ); 117 | } on Exception { 118 | throw LogInWithEmailAndPasswordFailure(); 119 | } 120 | } 121 | 122 | /// Signs out the current user which will emit 123 | /// [User.empty] from the [user] Stream. 124 | /// 125 | /// Throws a [LogOutFailure] if an exception occurs. 126 | Future logOut() async { 127 | try { 128 | await Future.wait([ 129 | _firebaseAuth.signOut(), 130 | _googleSignIn.signOut(), 131 | ]); 132 | } on Exception { 133 | throw LogOutFailure(); 134 | } 135 | } 136 | } 137 | 138 | extension on firebase_auth.User { 139 | User get toUser { 140 | return User( 141 | id: uid, 142 | email: email, 143 | name: displayName, 144 | photo: photoURL, 145 | ); 146 | } 147 | } 148 | -------------------------------------------------------------------------------- /lib/login/view/login_form.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_bloc/flutter_bloc.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:family_tree/login/login.dart'; 4 | import 'package:family_tree/sign_up/sign_up.dart'; 5 | import 'package:font_awesome_flutter/font_awesome_flutter.dart'; 6 | import 'package:formz/formz.dart'; 7 | 8 | class LoginForm extends StatelessWidget { 9 | @override 10 | Widget build(BuildContext context) { 11 | return BlocListener( 12 | listener: (context, state) { 13 | if (state.status.isSubmissionFailure) { 14 | Scaffold.of(context) 15 | ..hideCurrentSnackBar() 16 | ..showSnackBar( 17 | const SnackBar(content: Text('Authentication Failure')), 18 | ); 19 | } 20 | }, 21 | child: Align( 22 | alignment: const Alignment(0, 0), 23 | child: SingleChildScrollView( 24 | child: Column( 25 | mainAxisSize: MainAxisSize.min, 26 | children: [ 27 | const SizedBox(height: 16.0), 28 | _EmailInput(), 29 | const SizedBox(height: 8.0), 30 | _PasswordInput(), 31 | const SizedBox(height: 8.0), 32 | _LoginButton(), 33 | const SizedBox(height: 8.0), 34 | _GoogleLoginButton(), 35 | const SizedBox(height: 4.0), 36 | _SignUpButton(), 37 | ], 38 | ), 39 | ), 40 | ), 41 | ); 42 | } 43 | } 44 | 45 | class _EmailInput extends StatelessWidget { 46 | @override 47 | Widget build(BuildContext context) { 48 | return BlocBuilder( 49 | buildWhen: (previous, current) => previous.email != current.email, 50 | builder: (context, state) { 51 | return TextField( 52 | key: const Key('loginForm_emailInput_textField'), 53 | onChanged: (email) => context.read().emailChanged(email), 54 | keyboardType: TextInputType.emailAddress, 55 | decoration: InputDecoration( 56 | prefixIcon: Icon(Icons.email_outlined), 57 | labelText: 'email', 58 | helperText: '', 59 | errorText: state.email.invalid ? 'invalid email' : null, 60 | ), 61 | ); 62 | }, 63 | ); 64 | } 65 | } 66 | 67 | class _PasswordInput extends StatelessWidget { 68 | @override 69 | Widget build(BuildContext context) { 70 | return BlocBuilder( 71 | buildWhen: (previous, current) => previous.password != current.password, 72 | builder: (context, state) { 73 | return TextField( 74 | key: const Key('loginForm_passwordInput_textField'), 75 | onChanged: (password) => 76 | context.read().passwordChanged(password), 77 | obscureText: true, 78 | decoration: InputDecoration( 79 | prefixIcon: Icon(Icons.lock_outline), 80 | labelText: 'password', 81 | helperText: '', 82 | errorText: state.password.invalid ? 'invalid password' : null, 83 | ), 84 | ); 85 | }, 86 | ); 87 | } 88 | } 89 | 90 | class _LoginButton extends StatelessWidget { 91 | @override 92 | Widget build(BuildContext context) { 93 | return BlocBuilder( 94 | buildWhen: (previous, current) => previous.status != current.status, 95 | builder: (context, state) { 96 | return state.status.isSubmissionInProgress 97 | ? const CircularProgressIndicator() 98 | : RaisedButton( 99 | key: const Key('loginForm_continue_raisedButton'), 100 | child: const Text('LOGIN'), 101 | shape: RoundedRectangleBorder( 102 | borderRadius: BorderRadius.circular(30.0), 103 | ), 104 | color: const Color(0xFFFFD600), 105 | onPressed: state.status.isValidated 106 | ? () => context.read().logInWithCredentials() 107 | : null, 108 | ); 109 | }, 110 | ); 111 | } 112 | } 113 | 114 | class _GoogleLoginButton extends StatelessWidget { 115 | @override 116 | Widget build(BuildContext context) { 117 | final theme = Theme.of(context); 118 | return RaisedButton.icon( 119 | key: const Key('loginForm_googleLogin_raisedButton'), 120 | padding: EdgeInsets.all(8), 121 | label: const Text( 122 | 'SIGN IN WITH GOOGLE', 123 | style: TextStyle(color: Colors.white), 124 | ), 125 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(30.0)), 126 | icon: const Icon(FontAwesomeIcons.google, color: Colors.white), 127 | color: theme.accentColor, 128 | onPressed: () => context.read().logInWithGoogle(), 129 | ); 130 | } 131 | } 132 | 133 | class _SignUpButton extends StatelessWidget { 134 | @override 135 | Widget build(BuildContext context) { 136 | final theme = Theme.of(context); 137 | return FlatButton( 138 | key: const Key('loginForm_createAccount_flatButton'), 139 | child: Text( 140 | 'CREATE ACCOUNT', 141 | style: TextStyle(color: theme.accentColor), 142 | ), 143 | onPressed: () => Navigator.of(context).push(SignUpPage.route()), 144 | ); 145 | } 146 | } 147 | -------------------------------------------------------------------------------- /lib/sign_up/view/sign_up_form.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_bloc/flutter_bloc.dart'; 3 | import 'package:family_tree/sign_up/sign_up.dart'; 4 | import 'package:formz/formz.dart'; 5 | 6 | class SignUpForm extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | // blocListener is a Flutter widget which takes a BlocWidgetListener and an optional cubit and invokes the listener in response to state changes in the cubit. 10 | // should be used for functionality that needs to occur once per state change such as navigation, showing a SnackBar 11 | // is a void function 12 | return BlocListener( 13 | listener: (context, state) { 14 | if (state.status.isSubmissionFailure) { 15 | Scaffold.of(context) 16 | ..hideCurrentSnackBar() 17 | ..showSnackBar( 18 | const SnackBar(content: Text('Sign Up Failure')), 19 | ); 20 | } 21 | }, 22 | child: Align( 23 | alignment: const Alignment(0, 0 / 3), 24 | child: SingleChildScrollView( 25 | child: Column( 26 | mainAxisSize: MainAxisSize.min, 27 | children: [ 28 | _EmailInput(), 29 | const SizedBox(height: 8.0), 30 | _PasswordInput(), 31 | const SizedBox(height: 8.0), 32 | _ConfirmPasswordInput(), 33 | const SizedBox(height: 8.0), 34 | _SignUpButton(), 35 | ], 36 | ), 37 | ), 38 | ), 39 | ); 40 | } 41 | } 42 | 43 | class _EmailInput extends StatelessWidget { 44 | @override 45 | Widget build(BuildContext context) { 46 | // handles building the widget in response to new states 47 | // should only be used when it is necessary to both rebuild UI and execute other reactions to state changes in the cubit 48 | return BlocBuilder( 49 | buildWhen: (previous, current) => previous.email != current.email, 50 | builder: (context, state) { 51 | return TextField( 52 | key: const Key('signUpForm_emailInput_textField'), 53 | onChanged: (email) => context.read().emailChanged(email), 54 | keyboardType: TextInputType.emailAddress, 55 | decoration: InputDecoration( 56 | prefixIcon: Icon(Icons.email_outlined), 57 | labelText: 'email', 58 | helperText: '', 59 | errorText: state.email.invalid ? 'invalid email' : null, 60 | ), 61 | ); 62 | }, 63 | ); 64 | } 65 | } 66 | 67 | class _PasswordInput extends StatelessWidget { 68 | @override 69 | Widget build(BuildContext context) { 70 | return BlocBuilder( 71 | buildWhen: (previous, current) => previous.password != current.password, 72 | builder: (context, state) { 73 | return TextField( 74 | key: const Key('signUpForm_passwordInput_textField'), 75 | onChanged: (password) => 76 | context.read().passwordChanged(password), 77 | obscureText: true, 78 | decoration: InputDecoration( 79 | prefixIcon: Icon( 80 | Icons.lock_outline, 81 | // color: !state.password.invalid 82 | // ? Theme.of(context).errorColor 83 | // : Colors.green, 84 | ), 85 | labelText: 'password', 86 | helperText: '', 87 | errorText: state.password.invalid ? 'invalid password' : null, 88 | ), 89 | ); 90 | }, 91 | ); 92 | } 93 | } 94 | 95 | class _ConfirmPasswordInput extends StatelessWidget { 96 | @override 97 | Widget build(BuildContext context) { 98 | return BlocBuilder( 99 | buildWhen: (previous, current) => 100 | previous.password != current.password || 101 | previous.confirmedPassword != current.confirmedPassword, 102 | builder: (context, state) { 103 | return TextField( 104 | key: const Key('signUpForm_confirmedPasswordInput_textField'), 105 | onChanged: (confirmPassword) => context 106 | .read() 107 | .confirmedPasswordChanged(confirmPassword), 108 | obscureText: true, 109 | decoration: InputDecoration( 110 | prefixIcon: Icon(Icons.lock_outline), 111 | labelText: 'confirm password', 112 | helperText: '', 113 | errorText: state.confirmedPassword.invalid 114 | ? 'passwords do not match' 115 | : null, 116 | ), 117 | ); 118 | }, 119 | ); 120 | } 121 | } 122 | 123 | class _SignUpButton extends StatelessWidget { 124 | @override 125 | Widget build(BuildContext context) { 126 | return BlocBuilder( 127 | buildWhen: (previous, current) => previous.status != current.status, 128 | builder: (context, state) { 129 | return state.status.isSubmissionInProgress 130 | ? const CircularProgressIndicator() 131 | : RaisedButton.icon( 132 | icon: Icon(Icons.check_box_outlined), 133 | key: const Key('signUpForm_continue_raisedButton'), 134 | label: const Text('SIGN UP'), 135 | shape: RoundedRectangleBorder( 136 | borderRadius: BorderRadius.circular(30.0), 137 | ), 138 | color: Colors.orangeAccent, 139 | onPressed: state.status.isValidated 140 | ? () => context.read().signUpFormSubmitted() 141 | : null, 142 | ); 143 | }, 144 | ); 145 | } 146 | } 147 | -------------------------------------------------------------------------------- /lib/person/view/edit_person_form.dart: -------------------------------------------------------------------------------- 1 | import 'package:family_tree/person/cubit/edit_person_cubit.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_bloc/flutter_bloc.dart'; 4 | 5 | class EditPersonForm extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | return Container( 9 | margin: const EdgeInsets.all(10.0), 10 | child: SingleChildScrollView( 11 | padding: const EdgeInsets.all(8.0), 12 | child: Column( 13 | mainAxisSize: MainAxisSize.min, 14 | children: [ 15 | Container( 16 | color: Colors.grey.withAlpha(40), 17 | child: Row( 18 | children: [ 19 | Flexible( 20 | flex: 2, 21 | fit: FlexFit.tight, 22 | child: CircleAvatar( 23 | radius: 40, 24 | backgroundColor: Colors.grey, 25 | ), 26 | ), 27 | Flexible( 28 | flex: 6, 29 | fit: FlexFit.tight, 30 | child: Container( 31 | color: Colors.grey.withAlpha(40), 32 | padding: const EdgeInsets.symmetric(horizontal: 10.0), 33 | child: Column( 34 | crossAxisAlignment: CrossAxisAlignment.start, 35 | children: [ 36 | _FirstNamesInput(), 37 | _LastNamesInput(), 38 | ], 39 | ), 40 | ), 41 | ) 42 | ], 43 | ), 44 | ), 45 | Container( 46 | margin: EdgeInsets.only(top: 15), 47 | color: Colors.grey.withAlpha(40), 48 | child: Row( 49 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 50 | children: [ 51 | Text('Birthdate'), 52 | Text(' ->'), 53 | Text('Deathdate'), 54 | ], 55 | ), 56 | ), 57 | Container( 58 | margin: EdgeInsets.only(top: 15), 59 | color: Colors.grey.withAlpha(40), 60 | child: Row( 61 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 62 | children: [ 63 | Text('Add Mother'), 64 | Text('Add Father'), 65 | ], 66 | ), 67 | ), 68 | Container( 69 | margin: EdgeInsets.only(top: 15), 70 | color: Colors.grey.withAlpha(40), 71 | child: Row( 72 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 73 | children: [ 74 | Text('Add Spouses'), 75 | ], 76 | ), 77 | ), 78 | Container( 79 | margin: EdgeInsets.only(top: 15), 80 | color: Colors.grey.withAlpha(40), 81 | child: Row( 82 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 83 | children: [ 84 | Text('Add Children'), 85 | ], 86 | ), 87 | ), 88 | Container( 89 | margin: EdgeInsets.only(top: 15), 90 | color: Colors.grey.withAlpha(40), 91 | child: Row( 92 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 93 | children: [ 94 | Expanded( 95 | child: TextField( 96 | keyboardType: TextInputType.multiline, 97 | maxLines: 10, 98 | decoration: InputDecoration( 99 | alignLabelWithHint: true, 100 | hintText: 'Description', 101 | ), 102 | ), 103 | ), 104 | ], 105 | ), 106 | ), 107 | ], 108 | ), 109 | ), 110 | ); 111 | } 112 | } 113 | 114 | class _FirstNamesInput extends StatelessWidget { 115 | @override 116 | Widget build(BuildContext context) { 117 | return BlocBuilder( 118 | buildWhen: (prev, current) => prev.firstNames != current.firstNames, 119 | builder: (context, state) { 120 | return TextField( 121 | key: const Key('editPersonForm_firstNameInput_textField'), 122 | onChanged: (firstNames) => 123 | context.read().firstNamesChanged(firstNames), 124 | decoration: InputDecoration( 125 | contentPadding: const EdgeInsets.symmetric(horizontal: 8), 126 | enabledBorder: InputBorder.none, 127 | focusedBorder: InputBorder.none, 128 | hintText: 'First Names', 129 | errorText: state.firstNames.invalid ? 'Invalid First Names' : null, 130 | ), 131 | ); 132 | }, 133 | ); 134 | } 135 | } 136 | 137 | class _LastNamesInput extends StatelessWidget { 138 | @override 139 | Widget build(BuildContext context) { 140 | return BlocBuilder( 141 | buildWhen: (prev, current) => prev.lastNames != current.lastNames, 142 | builder: (context, state) { 143 | return TextField( 144 | key: const Key('editPersonForm_lastNameInput_textField'), 145 | onChanged: (lastNames) => 146 | context.read().lastNamesChanged(lastNames), 147 | decoration: InputDecoration( 148 | contentPadding: const EdgeInsets.symmetric(horizontal: 8), 149 | enabledBorder: InputBorder.none, 150 | focusedBorder: InputBorder.none, 151 | hintText: 'Last Names', 152 | labelStyle: TextStyle(color: Colors.red), 153 | errorText: state.lastNames.invalid ? 'Invalid Last Names' : null, 154 | ), 155 | ); 156 | }, 157 | ); 158 | } 159 | } 160 | -------------------------------------------------------------------------------- /packages/authentication_repository/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "12.0.0" 11 | analyzer: 12 | dependency: transitive 13 | description: 14 | name: analyzer 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "0.40.6" 18 | args: 19 | dependency: transitive 20 | description: 21 | name: args 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.6.0" 25 | async: 26 | dependency: transitive 27 | description: 28 | name: async 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.5.0-nullsafety.1" 32 | boolean_selector: 33 | dependency: transitive 34 | description: 35 | name: boolean_selector 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "2.1.0-nullsafety.1" 39 | build: 40 | dependency: transitive 41 | description: 42 | name: build 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.6.0" 46 | built_collection: 47 | dependency: transitive 48 | description: 49 | name: built_collection 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "4.3.2" 53 | built_value: 54 | dependency: transitive 55 | description: 56 | name: built_value 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "7.1.0" 60 | characters: 61 | dependency: transitive 62 | description: 63 | name: characters 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.1.0-nullsafety.3" 67 | charcode: 68 | dependency: transitive 69 | description: 70 | name: charcode 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "1.2.0-nullsafety.1" 74 | cli_util: 75 | dependency: transitive 76 | description: 77 | name: cli_util 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "0.2.0" 81 | clock: 82 | dependency: transitive 83 | description: 84 | name: clock 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "1.1.0-nullsafety.1" 88 | code_builder: 89 | dependency: transitive 90 | description: 91 | name: code_builder 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "3.5.0" 95 | collection: 96 | dependency: transitive 97 | description: 98 | name: collection 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "1.15.0-nullsafety.3" 102 | convert: 103 | dependency: transitive 104 | description: 105 | name: convert 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "2.1.1" 109 | crypto: 110 | dependency: transitive 111 | description: 112 | name: crypto 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "2.1.5" 116 | dart_style: 117 | dependency: transitive 118 | description: 119 | name: dart_style 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "1.3.10" 123 | equatable: 124 | dependency: "direct main" 125 | description: 126 | name: equatable 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "1.2.5" 130 | fake_async: 131 | dependency: transitive 132 | description: 133 | name: fake_async 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "1.2.0-nullsafety.1" 137 | file: 138 | dependency: transitive 139 | description: 140 | name: file 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "5.2.1" 144 | firebase_auth: 145 | dependency: "direct main" 146 | description: 147 | name: firebase_auth 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "0.18.4+1" 151 | firebase_auth_platform_interface: 152 | dependency: transitive 153 | description: 154 | name: firebase_auth_platform_interface 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "2.1.4" 158 | firebase_auth_web: 159 | dependency: transitive 160 | description: 161 | name: firebase_auth_web 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "0.3.2+3" 165 | firebase_core: 166 | dependency: "direct main" 167 | description: 168 | name: firebase_core 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "0.5.3" 172 | firebase_core_platform_interface: 173 | dependency: transitive 174 | description: 175 | name: firebase_core_platform_interface 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "2.1.0" 179 | firebase_core_web: 180 | dependency: transitive 181 | description: 182 | name: firebase_core_web 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "0.2.1+1" 186 | fixnum: 187 | dependency: transitive 188 | description: 189 | name: fixnum 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "0.10.11" 193 | flutter: 194 | dependency: "direct main" 195 | description: flutter 196 | source: sdk 197 | version: "0.0.0" 198 | flutter_test: 199 | dependency: "direct dev" 200 | description: flutter 201 | source: sdk 202 | version: "0.0.0" 203 | flutter_web_plugins: 204 | dependency: transitive 205 | description: flutter 206 | source: sdk 207 | version: "0.0.0" 208 | glob: 209 | dependency: transitive 210 | description: 211 | name: glob 212 | url: "https://pub.dartlang.org" 213 | source: hosted 214 | version: "1.2.0" 215 | google_sign_in: 216 | dependency: "direct main" 217 | description: 218 | name: google_sign_in 219 | url: "https://pub.dartlang.org" 220 | source: hosted 221 | version: "4.5.6" 222 | google_sign_in_platform_interface: 223 | dependency: transitive 224 | description: 225 | name: google_sign_in_platform_interface 226 | url: "https://pub.dartlang.org" 227 | source: hosted 228 | version: "1.1.2" 229 | google_sign_in_web: 230 | dependency: transitive 231 | description: 232 | name: google_sign_in_web 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "0.9.2" 236 | http_parser: 237 | dependency: transitive 238 | description: 239 | name: http_parser 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "3.1.4" 243 | intl: 244 | dependency: transitive 245 | description: 246 | name: intl 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "0.16.1" 250 | js: 251 | dependency: transitive 252 | description: 253 | name: js 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "0.6.2" 257 | logging: 258 | dependency: transitive 259 | description: 260 | name: logging 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "0.11.4" 264 | matcher: 265 | dependency: transitive 266 | description: 267 | name: matcher 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "0.12.10-nullsafety.1" 271 | meta: 272 | dependency: "direct main" 273 | description: 274 | name: meta 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "1.3.0-nullsafety.3" 278 | mockito: 279 | dependency: "direct dev" 280 | description: 281 | name: mockito 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "4.1.3" 285 | node_interop: 286 | dependency: transitive 287 | description: 288 | name: node_interop 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "1.2.1" 292 | node_io: 293 | dependency: transitive 294 | description: 295 | name: node_io 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "1.2.0" 299 | package_config: 300 | dependency: transitive 301 | description: 302 | name: package_config 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "1.9.3" 306 | path: 307 | dependency: transitive 308 | description: 309 | name: path 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "1.8.0-nullsafety.1" 313 | pedantic: 314 | dependency: transitive 315 | description: 316 | name: pedantic 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "1.9.2" 320 | plugin_platform_interface: 321 | dependency: transitive 322 | description: 323 | name: plugin_platform_interface 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "1.0.3" 327 | pub_semver: 328 | dependency: transitive 329 | description: 330 | name: pub_semver 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "1.4.4" 334 | quiver: 335 | dependency: transitive 336 | description: 337 | name: quiver 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "2.1.5" 341 | sky_engine: 342 | dependency: transitive 343 | description: flutter 344 | source: sdk 345 | version: "0.0.99" 346 | source_gen: 347 | dependency: transitive 348 | description: 349 | name: source_gen 350 | url: "https://pub.dartlang.org" 351 | source: hosted 352 | version: "0.9.10+1" 353 | source_span: 354 | dependency: transitive 355 | description: 356 | name: source_span 357 | url: "https://pub.dartlang.org" 358 | source: hosted 359 | version: "1.8.0-nullsafety.2" 360 | stack_trace: 361 | dependency: transitive 362 | description: 363 | name: stack_trace 364 | url: "https://pub.dartlang.org" 365 | source: hosted 366 | version: "1.10.0-nullsafety.1" 367 | stream_channel: 368 | dependency: transitive 369 | description: 370 | name: stream_channel 371 | url: "https://pub.dartlang.org" 372 | source: hosted 373 | version: "2.1.0-nullsafety.1" 374 | string_scanner: 375 | dependency: transitive 376 | description: 377 | name: string_scanner 378 | url: "https://pub.dartlang.org" 379 | source: hosted 380 | version: "1.1.0-nullsafety.1" 381 | term_glyph: 382 | dependency: transitive 383 | description: 384 | name: term_glyph 385 | url: "https://pub.dartlang.org" 386 | source: hosted 387 | version: "1.2.0-nullsafety.1" 388 | test_api: 389 | dependency: transitive 390 | description: 391 | name: test_api 392 | url: "https://pub.dartlang.org" 393 | source: hosted 394 | version: "0.2.19-nullsafety.2" 395 | typed_data: 396 | dependency: transitive 397 | description: 398 | name: typed_data 399 | url: "https://pub.dartlang.org" 400 | source: hosted 401 | version: "1.3.0-nullsafety.3" 402 | vector_math: 403 | dependency: transitive 404 | description: 405 | name: vector_math 406 | url: "https://pub.dartlang.org" 407 | source: hosted 408 | version: "2.1.0-nullsafety.3" 409 | watcher: 410 | dependency: transitive 411 | description: 412 | name: watcher 413 | url: "https://pub.dartlang.org" 414 | source: hosted 415 | version: "0.9.7+15" 416 | yaml: 417 | dependency: transitive 418 | description: 419 | name: yaml 420 | url: "https://pub.dartlang.org" 421 | source: hosted 422 | version: "2.2.1" 423 | sdks: 424 | dart: ">=2.10.0 <2.11.0" 425 | flutter: ">=1.12.13+hotfix.5 <2.0.0" 426 | -------------------------------------------------------------------------------- /packages/database_repository/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "12.0.0" 11 | analyzer: 12 | dependency: transitive 13 | description: 14 | name: analyzer 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "0.40.6" 18 | args: 19 | dependency: transitive 20 | description: 21 | name: args 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.6.0" 25 | async: 26 | dependency: transitive 27 | description: 28 | name: async 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.5.0-nullsafety.1" 32 | authentication_repository: 33 | dependency: "direct main" 34 | description: 35 | path: "../authentication_repository" 36 | relative: true 37 | source: path 38 | version: "1.0.0" 39 | boolean_selector: 40 | dependency: transitive 41 | description: 42 | name: boolean_selector 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "2.1.0-nullsafety.1" 46 | build: 47 | dependency: transitive 48 | description: 49 | name: build 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.6.0" 53 | built_collection: 54 | dependency: transitive 55 | description: 56 | name: built_collection 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "4.3.2" 60 | built_value: 61 | dependency: transitive 62 | description: 63 | name: built_value 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "7.1.0" 67 | characters: 68 | dependency: transitive 69 | description: 70 | name: characters 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "1.1.0-nullsafety.3" 74 | charcode: 75 | dependency: transitive 76 | description: 77 | name: charcode 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "1.2.0-nullsafety.1" 81 | cli_util: 82 | dependency: transitive 83 | description: 84 | name: cli_util 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "0.2.0" 88 | clock: 89 | dependency: transitive 90 | description: 91 | name: clock 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "1.1.0-nullsafety.1" 95 | cloud_firestore: 96 | dependency: "direct main" 97 | description: 98 | name: cloud_firestore 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "0.14.4" 102 | cloud_firestore_platform_interface: 103 | dependency: transitive 104 | description: 105 | name: cloud_firestore_platform_interface 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "2.2.1" 109 | cloud_firestore_web: 110 | dependency: transitive 111 | description: 112 | name: cloud_firestore_web 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "0.2.1+2" 116 | code_builder: 117 | dependency: transitive 118 | description: 119 | name: code_builder 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "3.5.0" 123 | collection: 124 | dependency: transitive 125 | description: 126 | name: collection 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "1.15.0-nullsafety.3" 130 | convert: 131 | dependency: transitive 132 | description: 133 | name: convert 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "2.1.1" 137 | crypto: 138 | dependency: transitive 139 | description: 140 | name: crypto 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "2.1.5" 144 | dart_style: 145 | dependency: transitive 146 | description: 147 | name: dart_style 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "1.3.10" 151 | equatable: 152 | dependency: "direct main" 153 | description: 154 | name: equatable 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "1.2.5" 158 | fake_async: 159 | dependency: transitive 160 | description: 161 | name: fake_async 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "1.2.0-nullsafety.1" 165 | file: 166 | dependency: transitive 167 | description: 168 | name: file 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "5.2.1" 172 | firebase_auth: 173 | dependency: transitive 174 | description: 175 | name: firebase_auth 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "0.18.4+1" 179 | firebase_auth_platform_interface: 180 | dependency: transitive 181 | description: 182 | name: firebase_auth_platform_interface 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "2.1.4" 186 | firebase_auth_web: 187 | dependency: transitive 188 | description: 189 | name: firebase_auth_web 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "0.3.2+3" 193 | firebase_core: 194 | dependency: "direct main" 195 | description: 196 | name: firebase_core 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "0.5.3" 200 | firebase_core_platform_interface: 201 | dependency: transitive 202 | description: 203 | name: firebase_core_platform_interface 204 | url: "https://pub.dartlang.org" 205 | source: hosted 206 | version: "2.1.0" 207 | firebase_core_web: 208 | dependency: transitive 209 | description: 210 | name: firebase_core_web 211 | url: "https://pub.dartlang.org" 212 | source: hosted 213 | version: "0.2.1+1" 214 | fixnum: 215 | dependency: transitive 216 | description: 217 | name: fixnum 218 | url: "https://pub.dartlang.org" 219 | source: hosted 220 | version: "0.10.11" 221 | flutter: 222 | dependency: "direct main" 223 | description: flutter 224 | source: sdk 225 | version: "0.0.0" 226 | flutter_test: 227 | dependency: "direct dev" 228 | description: flutter 229 | source: sdk 230 | version: "0.0.0" 231 | flutter_web_plugins: 232 | dependency: transitive 233 | description: flutter 234 | source: sdk 235 | version: "0.0.0" 236 | glob: 237 | dependency: transitive 238 | description: 239 | name: glob 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "1.2.0" 243 | google_sign_in: 244 | dependency: transitive 245 | description: 246 | name: google_sign_in 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "4.5.6" 250 | google_sign_in_platform_interface: 251 | dependency: transitive 252 | description: 253 | name: google_sign_in_platform_interface 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "1.1.2" 257 | google_sign_in_web: 258 | dependency: transitive 259 | description: 260 | name: google_sign_in_web 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "0.9.2" 264 | http_parser: 265 | dependency: transitive 266 | description: 267 | name: http_parser 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "3.1.4" 271 | intl: 272 | dependency: transitive 273 | description: 274 | name: intl 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "0.16.1" 278 | js: 279 | dependency: transitive 280 | description: 281 | name: js 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "0.6.2" 285 | logging: 286 | dependency: transitive 287 | description: 288 | name: logging 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "0.11.4" 292 | matcher: 293 | dependency: transitive 294 | description: 295 | name: matcher 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "0.12.10-nullsafety.1" 299 | meta: 300 | dependency: "direct main" 301 | description: 302 | name: meta 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "1.3.0-nullsafety.3" 306 | mockito: 307 | dependency: "direct dev" 308 | description: 309 | name: mockito 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "4.1.3" 313 | node_interop: 314 | dependency: transitive 315 | description: 316 | name: node_interop 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "1.2.1" 320 | node_io: 321 | dependency: transitive 322 | description: 323 | name: node_io 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "1.2.0" 327 | package_config: 328 | dependency: transitive 329 | description: 330 | name: package_config 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "1.9.3" 334 | path: 335 | dependency: transitive 336 | description: 337 | name: path 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "1.8.0-nullsafety.1" 341 | pedantic: 342 | dependency: transitive 343 | description: 344 | name: pedantic 345 | url: "https://pub.dartlang.org" 346 | source: hosted 347 | version: "1.9.2" 348 | plugin_platform_interface: 349 | dependency: transitive 350 | description: 351 | name: plugin_platform_interface 352 | url: "https://pub.dartlang.org" 353 | source: hosted 354 | version: "1.0.3" 355 | pub_semver: 356 | dependency: transitive 357 | description: 358 | name: pub_semver 359 | url: "https://pub.dartlang.org" 360 | source: hosted 361 | version: "1.4.4" 362 | quiver: 363 | dependency: transitive 364 | description: 365 | name: quiver 366 | url: "https://pub.dartlang.org" 367 | source: hosted 368 | version: "2.1.5" 369 | sky_engine: 370 | dependency: transitive 371 | description: flutter 372 | source: sdk 373 | version: "0.0.99" 374 | source_gen: 375 | dependency: transitive 376 | description: 377 | name: source_gen 378 | url: "https://pub.dartlang.org" 379 | source: hosted 380 | version: "0.9.10+1" 381 | source_span: 382 | dependency: transitive 383 | description: 384 | name: source_span 385 | url: "https://pub.dartlang.org" 386 | source: hosted 387 | version: "1.8.0-nullsafety.2" 388 | stack_trace: 389 | dependency: transitive 390 | description: 391 | name: stack_trace 392 | url: "https://pub.dartlang.org" 393 | source: hosted 394 | version: "1.10.0-nullsafety.1" 395 | stream_channel: 396 | dependency: transitive 397 | description: 398 | name: stream_channel 399 | url: "https://pub.dartlang.org" 400 | source: hosted 401 | version: "2.1.0-nullsafety.1" 402 | string_scanner: 403 | dependency: transitive 404 | description: 405 | name: string_scanner 406 | url: "https://pub.dartlang.org" 407 | source: hosted 408 | version: "1.1.0-nullsafety.1" 409 | term_glyph: 410 | dependency: transitive 411 | description: 412 | name: term_glyph 413 | url: "https://pub.dartlang.org" 414 | source: hosted 415 | version: "1.2.0-nullsafety.1" 416 | test_api: 417 | dependency: transitive 418 | description: 419 | name: test_api 420 | url: "https://pub.dartlang.org" 421 | source: hosted 422 | version: "0.2.19-nullsafety.2" 423 | typed_data: 424 | dependency: transitive 425 | description: 426 | name: typed_data 427 | url: "https://pub.dartlang.org" 428 | source: hosted 429 | version: "1.3.0-nullsafety.3" 430 | vector_math: 431 | dependency: transitive 432 | description: 433 | name: vector_math 434 | url: "https://pub.dartlang.org" 435 | source: hosted 436 | version: "2.1.0-nullsafety.3" 437 | watcher: 438 | dependency: transitive 439 | description: 440 | name: watcher 441 | url: "https://pub.dartlang.org" 442 | source: hosted 443 | version: "0.9.7+15" 444 | yaml: 445 | dependency: transitive 446 | description: 447 | name: yaml 448 | url: "https://pub.dartlang.org" 449 | source: hosted 450 | version: "2.2.1" 451 | sdks: 452 | dart: ">=2.10.0 <2.11.0" 453 | flutter: ">=1.12.13+hotfix.5 <2.0.0" 454 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "12.0.0" 11 | analyzer: 12 | dependency: transitive 13 | description: 14 | name: analyzer 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "0.40.6" 18 | args: 19 | dependency: transitive 20 | description: 21 | name: args 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.6.0" 25 | async: 26 | dependency: transitive 27 | description: 28 | name: async 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.5.0-nullsafety.1" 32 | authentication_repository: 33 | dependency: "direct main" 34 | description: 35 | path: "packages/authentication_repository" 36 | relative: true 37 | source: path 38 | version: "1.0.0" 39 | bloc: 40 | dependency: "direct main" 41 | description: 42 | name: bloc 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "6.1.1" 46 | bloc_test: 47 | dependency: "direct dev" 48 | description: 49 | name: bloc_test 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "7.1.0" 53 | boolean_selector: 54 | dependency: transitive 55 | description: 56 | name: boolean_selector 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.0-nullsafety.1" 60 | build: 61 | dependency: transitive 62 | description: 63 | name: build 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.6.0" 67 | built_collection: 68 | dependency: transitive 69 | description: 70 | name: built_collection 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "4.3.2" 74 | built_value: 75 | dependency: transitive 76 | description: 77 | name: built_value 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "7.1.0" 81 | characters: 82 | dependency: transitive 83 | description: 84 | name: characters 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "1.1.0-nullsafety.3" 88 | charcode: 89 | dependency: transitive 90 | description: 91 | name: charcode 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "1.2.0-nullsafety.1" 95 | cli_util: 96 | dependency: transitive 97 | description: 98 | name: cli_util 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "0.2.0" 102 | clock: 103 | dependency: transitive 104 | description: 105 | name: clock 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "1.1.0-nullsafety.1" 109 | cloud_firestore: 110 | dependency: transitive 111 | description: 112 | name: cloud_firestore 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "0.14.4" 116 | cloud_firestore_platform_interface: 117 | dependency: transitive 118 | description: 119 | name: cloud_firestore_platform_interface 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "2.2.1" 123 | cloud_firestore_web: 124 | dependency: transitive 125 | description: 126 | name: cloud_firestore_web 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "0.2.1+2" 130 | code_builder: 131 | dependency: transitive 132 | description: 133 | name: code_builder 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "3.5.0" 137 | collection: 138 | dependency: transitive 139 | description: 140 | name: collection 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "1.15.0-nullsafety.3" 144 | convert: 145 | dependency: transitive 146 | description: 147 | name: convert 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "2.1.1" 151 | coverage: 152 | dependency: transitive 153 | description: 154 | name: coverage 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "0.14.2" 158 | crypto: 159 | dependency: transitive 160 | description: 161 | name: crypto 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "2.1.5" 165 | cupertino_icons: 166 | dependency: "direct main" 167 | description: 168 | name: cupertino_icons 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "1.0.0" 172 | dart_style: 173 | dependency: transitive 174 | description: 175 | name: dart_style 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "1.3.10" 179 | database_repository: 180 | dependency: "direct main" 181 | description: 182 | path: "packages/database_repository" 183 | relative: true 184 | source: path 185 | version: "1.0.0" 186 | equatable: 187 | dependency: "direct main" 188 | description: 189 | name: equatable 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "1.2.5" 193 | fab_circular_menu: 194 | dependency: "direct main" 195 | description: 196 | name: fab_circular_menu 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "1.0.1" 200 | fake_async: 201 | dependency: transitive 202 | description: 203 | name: fake_async 204 | url: "https://pub.dartlang.org" 205 | source: hosted 206 | version: "1.2.0-nullsafety.1" 207 | family_tree_repository: 208 | dependency: "direct main" 209 | description: 210 | path: "packages/family_tree_repository" 211 | relative: true 212 | source: path 213 | version: "1.0.0" 214 | ffi: 215 | dependency: transitive 216 | description: 217 | name: ffi 218 | url: "https://pub.dartlang.org" 219 | source: hosted 220 | version: "0.1.3" 221 | file: 222 | dependency: transitive 223 | description: 224 | name: file 225 | url: "https://pub.dartlang.org" 226 | source: hosted 227 | version: "5.2.1" 228 | firebase_auth: 229 | dependency: transitive 230 | description: 231 | name: firebase_auth 232 | url: "https://pub.dartlang.org" 233 | source: hosted 234 | version: "0.18.4+1" 235 | firebase_auth_platform_interface: 236 | dependency: transitive 237 | description: 238 | name: firebase_auth_platform_interface 239 | url: "https://pub.dartlang.org" 240 | source: hosted 241 | version: "2.1.4" 242 | firebase_auth_web: 243 | dependency: transitive 244 | description: 245 | name: firebase_auth_web 246 | url: "https://pub.dartlang.org" 247 | source: hosted 248 | version: "0.3.2+3" 249 | firebase_core: 250 | dependency: transitive 251 | description: 252 | name: firebase_core 253 | url: "https://pub.dartlang.org" 254 | source: hosted 255 | version: "0.5.3" 256 | firebase_core_platform_interface: 257 | dependency: transitive 258 | description: 259 | name: firebase_core_platform_interface 260 | url: "https://pub.dartlang.org" 261 | source: hosted 262 | version: "2.1.0" 263 | firebase_core_web: 264 | dependency: transitive 265 | description: 266 | name: firebase_core_web 267 | url: "https://pub.dartlang.org" 268 | source: hosted 269 | version: "0.2.1+1" 270 | fixnum: 271 | dependency: transitive 272 | description: 273 | name: fixnum 274 | url: "https://pub.dartlang.org" 275 | source: hosted 276 | version: "0.10.11" 277 | flutter: 278 | dependency: "direct main" 279 | description: flutter 280 | source: sdk 281 | version: "0.0.0" 282 | flutter_bloc: 283 | dependency: "direct main" 284 | description: 285 | name: flutter_bloc 286 | url: "https://pub.dartlang.org" 287 | source: hosted 288 | version: "6.1.1" 289 | flutter_test: 290 | dependency: "direct dev" 291 | description: flutter 292 | source: sdk 293 | version: "0.0.0" 294 | flutter_web_plugins: 295 | dependency: transitive 296 | description: flutter 297 | source: sdk 298 | version: "0.0.0" 299 | font_awesome_flutter: 300 | dependency: "direct main" 301 | description: 302 | name: font_awesome_flutter 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "8.11.0" 306 | formz: 307 | dependency: "direct main" 308 | description: 309 | name: formz 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "0.3.2" 313 | glob: 314 | dependency: transitive 315 | description: 316 | name: glob 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "1.2.0" 320 | google_fonts: 321 | dependency: "direct main" 322 | description: 323 | name: google_fonts 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "1.1.1" 327 | google_sign_in: 328 | dependency: transitive 329 | description: 330 | name: google_sign_in 331 | url: "https://pub.dartlang.org" 332 | source: hosted 333 | version: "4.5.6" 334 | google_sign_in_platform_interface: 335 | dependency: transitive 336 | description: 337 | name: google_sign_in_platform_interface 338 | url: "https://pub.dartlang.org" 339 | source: hosted 340 | version: "1.1.2" 341 | google_sign_in_web: 342 | dependency: transitive 343 | description: 344 | name: google_sign_in_web 345 | url: "https://pub.dartlang.org" 346 | source: hosted 347 | version: "0.9.2" 348 | http: 349 | dependency: transitive 350 | description: 351 | name: http 352 | url: "https://pub.dartlang.org" 353 | source: hosted 354 | version: "0.12.2" 355 | http_multi_server: 356 | dependency: transitive 357 | description: 358 | name: http_multi_server 359 | url: "https://pub.dartlang.org" 360 | source: hosted 361 | version: "2.2.0" 362 | http_parser: 363 | dependency: transitive 364 | description: 365 | name: http_parser 366 | url: "https://pub.dartlang.org" 367 | source: hosted 368 | version: "3.1.4" 369 | intl: 370 | dependency: transitive 371 | description: 372 | name: intl 373 | url: "https://pub.dartlang.org" 374 | source: hosted 375 | version: "0.16.1" 376 | io: 377 | dependency: transitive 378 | description: 379 | name: io 380 | url: "https://pub.dartlang.org" 381 | source: hosted 382 | version: "0.3.4" 383 | js: 384 | dependency: transitive 385 | description: 386 | name: js 387 | url: "https://pub.dartlang.org" 388 | source: hosted 389 | version: "0.6.3-nullsafety.2" 390 | logging: 391 | dependency: transitive 392 | description: 393 | name: logging 394 | url: "https://pub.dartlang.org" 395 | source: hosted 396 | version: "0.11.4" 397 | matcher: 398 | dependency: transitive 399 | description: 400 | name: matcher 401 | url: "https://pub.dartlang.org" 402 | source: hosted 403 | version: "0.12.10-nullsafety.1" 404 | meta: 405 | dependency: "direct main" 406 | description: 407 | name: meta 408 | url: "https://pub.dartlang.org" 409 | source: hosted 410 | version: "1.3.0-nullsafety.3" 411 | mime: 412 | dependency: transitive 413 | description: 414 | name: mime 415 | url: "https://pub.dartlang.org" 416 | source: hosted 417 | version: "0.9.7" 418 | mockito: 419 | dependency: "direct dev" 420 | description: 421 | name: mockito 422 | url: "https://pub.dartlang.org" 423 | source: hosted 424 | version: "4.1.3" 425 | nested: 426 | dependency: transitive 427 | description: 428 | name: nested 429 | url: "https://pub.dartlang.org" 430 | source: hosted 431 | version: "0.0.4" 432 | node_interop: 433 | dependency: transitive 434 | description: 435 | name: node_interop 436 | url: "https://pub.dartlang.org" 437 | source: hosted 438 | version: "1.2.1" 439 | node_io: 440 | dependency: transitive 441 | description: 442 | name: node_io 443 | url: "https://pub.dartlang.org" 444 | source: hosted 445 | version: "1.2.0" 446 | node_preamble: 447 | dependency: transitive 448 | description: 449 | name: node_preamble 450 | url: "https://pub.dartlang.org" 451 | source: hosted 452 | version: "1.4.12" 453 | package_config: 454 | dependency: transitive 455 | description: 456 | name: package_config 457 | url: "https://pub.dartlang.org" 458 | source: hosted 459 | version: "1.9.3" 460 | path: 461 | dependency: transitive 462 | description: 463 | name: path 464 | url: "https://pub.dartlang.org" 465 | source: hosted 466 | version: "1.8.0-nullsafety.1" 467 | path_provider: 468 | dependency: transitive 469 | description: 470 | name: path_provider 471 | url: "https://pub.dartlang.org" 472 | source: hosted 473 | version: "1.6.24" 474 | path_provider_linux: 475 | dependency: transitive 476 | description: 477 | name: path_provider_linux 478 | url: "https://pub.dartlang.org" 479 | source: hosted 480 | version: "0.0.1+2" 481 | path_provider_macos: 482 | dependency: transitive 483 | description: 484 | name: path_provider_macos 485 | url: "https://pub.dartlang.org" 486 | source: hosted 487 | version: "0.0.4+6" 488 | path_provider_platform_interface: 489 | dependency: transitive 490 | description: 491 | name: path_provider_platform_interface 492 | url: "https://pub.dartlang.org" 493 | source: hosted 494 | version: "1.0.4" 495 | path_provider_windows: 496 | dependency: transitive 497 | description: 498 | name: path_provider_windows 499 | url: "https://pub.dartlang.org" 500 | source: hosted 501 | version: "0.0.4+3" 502 | pedantic: 503 | dependency: "direct main" 504 | description: 505 | name: pedantic 506 | url: "https://pub.dartlang.org" 507 | source: hosted 508 | version: "1.10.0-nullsafety.2" 509 | platform: 510 | dependency: transitive 511 | description: 512 | name: platform 513 | url: "https://pub.dartlang.org" 514 | source: hosted 515 | version: "2.2.1" 516 | plugin_platform_interface: 517 | dependency: transitive 518 | description: 519 | name: plugin_platform_interface 520 | url: "https://pub.dartlang.org" 521 | source: hosted 522 | version: "1.0.3" 523 | pool: 524 | dependency: transitive 525 | description: 526 | name: pool 527 | url: "https://pub.dartlang.org" 528 | source: hosted 529 | version: "1.5.0-nullsafety.2" 530 | process: 531 | dependency: transitive 532 | description: 533 | name: process 534 | url: "https://pub.dartlang.org" 535 | source: hosted 536 | version: "3.0.13" 537 | provider: 538 | dependency: transitive 539 | description: 540 | name: provider 541 | url: "https://pub.dartlang.org" 542 | source: hosted 543 | version: "4.3.2+3" 544 | pub_semver: 545 | dependency: transitive 546 | description: 547 | name: pub_semver 548 | url: "https://pub.dartlang.org" 549 | source: hosted 550 | version: "1.4.4" 551 | quiver: 552 | dependency: transitive 553 | description: 554 | name: quiver 555 | url: "https://pub.dartlang.org" 556 | source: hosted 557 | version: "2.1.5" 558 | shelf: 559 | dependency: transitive 560 | description: 561 | name: shelf 562 | url: "https://pub.dartlang.org" 563 | source: hosted 564 | version: "0.7.9" 565 | shelf_packages_handler: 566 | dependency: transitive 567 | description: 568 | name: shelf_packages_handler 569 | url: "https://pub.dartlang.org" 570 | source: hosted 571 | version: "2.0.0" 572 | shelf_static: 573 | dependency: transitive 574 | description: 575 | name: shelf_static 576 | url: "https://pub.dartlang.org" 577 | source: hosted 578 | version: "0.2.9+1" 579 | shelf_web_socket: 580 | dependency: transitive 581 | description: 582 | name: shelf_web_socket 583 | url: "https://pub.dartlang.org" 584 | source: hosted 585 | version: "0.2.3" 586 | sky_engine: 587 | dependency: transitive 588 | description: flutter 589 | source: sdk 590 | version: "0.0.99" 591 | source_gen: 592 | dependency: transitive 593 | description: 594 | name: source_gen 595 | url: "https://pub.dartlang.org" 596 | source: hosted 597 | version: "0.9.10+1" 598 | source_map_stack_trace: 599 | dependency: transitive 600 | description: 601 | name: source_map_stack_trace 602 | url: "https://pub.dartlang.org" 603 | source: hosted 604 | version: "2.1.0-nullsafety.3" 605 | source_maps: 606 | dependency: transitive 607 | description: 608 | name: source_maps 609 | url: "https://pub.dartlang.org" 610 | source: hosted 611 | version: "0.10.10-nullsafety.2" 612 | source_span: 613 | dependency: transitive 614 | description: 615 | name: source_span 616 | url: "https://pub.dartlang.org" 617 | source: hosted 618 | version: "1.8.0-nullsafety.2" 619 | stack_trace: 620 | dependency: transitive 621 | description: 622 | name: stack_trace 623 | url: "https://pub.dartlang.org" 624 | source: hosted 625 | version: "1.10.0-nullsafety.1" 626 | stream_channel: 627 | dependency: transitive 628 | description: 629 | name: stream_channel 630 | url: "https://pub.dartlang.org" 631 | source: hosted 632 | version: "2.1.0-nullsafety.1" 633 | string_scanner: 634 | dependency: transitive 635 | description: 636 | name: string_scanner 637 | url: "https://pub.dartlang.org" 638 | source: hosted 639 | version: "1.1.0-nullsafety.1" 640 | term_glyph: 641 | dependency: transitive 642 | description: 643 | name: term_glyph 644 | url: "https://pub.dartlang.org" 645 | source: hosted 646 | version: "1.2.0-nullsafety.1" 647 | test: 648 | dependency: transitive 649 | description: 650 | name: test 651 | url: "https://pub.dartlang.org" 652 | source: hosted 653 | version: "1.16.0-nullsafety.5" 654 | test_api: 655 | dependency: transitive 656 | description: 657 | name: test_api 658 | url: "https://pub.dartlang.org" 659 | source: hosted 660 | version: "0.2.19-nullsafety.2" 661 | test_core: 662 | dependency: transitive 663 | description: 664 | name: test_core 665 | url: "https://pub.dartlang.org" 666 | source: hosted 667 | version: "0.3.12-nullsafety.5" 668 | typed_data: 669 | dependency: transitive 670 | description: 671 | name: typed_data 672 | url: "https://pub.dartlang.org" 673 | source: hosted 674 | version: "1.3.0-nullsafety.3" 675 | vector_math: 676 | dependency: transitive 677 | description: 678 | name: vector_math 679 | url: "https://pub.dartlang.org" 680 | source: hosted 681 | version: "2.1.0-nullsafety.3" 682 | vm_service: 683 | dependency: transitive 684 | description: 685 | name: vm_service 686 | url: "https://pub.dartlang.org" 687 | source: hosted 688 | version: "5.5.0" 689 | watcher: 690 | dependency: transitive 691 | description: 692 | name: watcher 693 | url: "https://pub.dartlang.org" 694 | source: hosted 695 | version: "0.9.7+15" 696 | web_socket_channel: 697 | dependency: transitive 698 | description: 699 | name: web_socket_channel 700 | url: "https://pub.dartlang.org" 701 | source: hosted 702 | version: "1.1.0" 703 | webkit_inspection_protocol: 704 | dependency: transitive 705 | description: 706 | name: webkit_inspection_protocol 707 | url: "https://pub.dartlang.org" 708 | source: hosted 709 | version: "0.7.4" 710 | win32: 711 | dependency: transitive 712 | description: 713 | name: win32 714 | url: "https://pub.dartlang.org" 715 | source: hosted 716 | version: "1.7.4" 717 | xdg_directories: 718 | dependency: transitive 719 | description: 720 | name: xdg_directories 721 | url: "https://pub.dartlang.org" 722 | source: hosted 723 | version: "0.1.2" 724 | yaml: 725 | dependency: transitive 726 | description: 727 | name: yaml 728 | url: "https://pub.dartlang.org" 729 | source: hosted 730 | version: "2.2.1" 731 | sdks: 732 | dart: ">=2.10.0 <2.11.0" 733 | flutter: ">=1.17.0 <2.0.0" 734 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1020; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | FRAMEWORK_SEARCH_PATHS = ( 293 | "$(inherited)", 294 | "$(PROJECT_DIR)/Flutter", 295 | ); 296 | INFOPLIST_FILE = Runner/Info.plist; 297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 298 | LIBRARY_SEARCH_PATHS = ( 299 | "$(inherited)", 300 | "$(PROJECT_DIR)/Flutter", 301 | ); 302 | PRODUCT_BUNDLE_IDENTIFIER = com.example.familyTree; 303 | PRODUCT_NAME = "$(TARGET_NAME)"; 304 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 305 | SWIFT_VERSION = 5.0; 306 | VERSIONING_SYSTEM = "apple-generic"; 307 | }; 308 | name = Profile; 309 | }; 310 | 97C147031CF9000F007C117D /* Debug */ = { 311 | isa = XCBuildConfiguration; 312 | buildSettings = { 313 | ALWAYS_SEARCH_USER_PATHS = NO; 314 | CLANG_ANALYZER_NONNULL = YES; 315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 316 | CLANG_CXX_LIBRARY = "libc++"; 317 | CLANG_ENABLE_MODULES = YES; 318 | CLANG_ENABLE_OBJC_ARC = YES; 319 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 320 | CLANG_WARN_BOOL_CONVERSION = YES; 321 | CLANG_WARN_COMMA = YES; 322 | CLANG_WARN_CONSTANT_CONVERSION = YES; 323 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 325 | CLANG_WARN_EMPTY_BODY = YES; 326 | CLANG_WARN_ENUM_CONVERSION = YES; 327 | CLANG_WARN_INFINITE_RECURSION = YES; 328 | CLANG_WARN_INT_CONVERSION = YES; 329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 334 | CLANG_WARN_STRICT_PROTOTYPES = YES; 335 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 336 | CLANG_WARN_UNREACHABLE_CODE = YES; 337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 339 | COPY_PHASE_STRIP = NO; 340 | DEBUG_INFORMATION_FORMAT = dwarf; 341 | ENABLE_STRICT_OBJC_MSGSEND = YES; 342 | ENABLE_TESTABILITY = YES; 343 | GCC_C_LANGUAGE_STANDARD = gnu99; 344 | GCC_DYNAMIC_NO_PIC = NO; 345 | GCC_NO_COMMON_BLOCKS = YES; 346 | GCC_OPTIMIZATION_LEVEL = 0; 347 | GCC_PREPROCESSOR_DEFINITIONS = ( 348 | "DEBUG=1", 349 | "$(inherited)", 350 | ); 351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 353 | GCC_WARN_UNDECLARED_SELECTOR = YES; 354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 355 | GCC_WARN_UNUSED_FUNCTION = YES; 356 | GCC_WARN_UNUSED_VARIABLE = YES; 357 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 358 | MTL_ENABLE_DEBUG_INFO = YES; 359 | ONLY_ACTIVE_ARCH = YES; 360 | SDKROOT = iphoneos; 361 | TARGETED_DEVICE_FAMILY = "1,2"; 362 | }; 363 | name = Debug; 364 | }; 365 | 97C147041CF9000F007C117D /* Release */ = { 366 | isa = XCBuildConfiguration; 367 | buildSettings = { 368 | ALWAYS_SEARCH_USER_PATHS = NO; 369 | CLANG_ANALYZER_NONNULL = YES; 370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 371 | CLANG_CXX_LIBRARY = "libc++"; 372 | CLANG_ENABLE_MODULES = YES; 373 | CLANG_ENABLE_OBJC_ARC = YES; 374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 375 | CLANG_WARN_BOOL_CONVERSION = YES; 376 | CLANG_WARN_COMMA = YES; 377 | CLANG_WARN_CONSTANT_CONVERSION = YES; 378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 380 | CLANG_WARN_EMPTY_BODY = YES; 381 | CLANG_WARN_ENUM_CONVERSION = YES; 382 | CLANG_WARN_INFINITE_RECURSION = YES; 383 | CLANG_WARN_INT_CONVERSION = YES; 384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 389 | CLANG_WARN_STRICT_PROTOTYPES = YES; 390 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 391 | CLANG_WARN_UNREACHABLE_CODE = YES; 392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 394 | COPY_PHASE_STRIP = NO; 395 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 396 | ENABLE_NS_ASSERTIONS = NO; 397 | ENABLE_STRICT_OBJC_MSGSEND = YES; 398 | GCC_C_LANGUAGE_STANDARD = gnu99; 399 | GCC_NO_COMMON_BLOCKS = YES; 400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 402 | GCC_WARN_UNDECLARED_SELECTOR = YES; 403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 404 | GCC_WARN_UNUSED_FUNCTION = YES; 405 | GCC_WARN_UNUSED_VARIABLE = YES; 406 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 407 | MTL_ENABLE_DEBUG_INFO = NO; 408 | SDKROOT = iphoneos; 409 | SUPPORTED_PLATFORMS = iphoneos; 410 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 411 | TARGETED_DEVICE_FAMILY = "1,2"; 412 | VALIDATE_PRODUCT = YES; 413 | }; 414 | name = Release; 415 | }; 416 | 97C147061CF9000F007C117D /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 419 | buildSettings = { 420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 421 | CLANG_ENABLE_MODULES = YES; 422 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 423 | ENABLE_BITCODE = NO; 424 | FRAMEWORK_SEARCH_PATHS = ( 425 | "$(inherited)", 426 | "$(PROJECT_DIR)/Flutter", 427 | ); 428 | INFOPLIST_FILE = Runner/Info.plist; 429 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 430 | LIBRARY_SEARCH_PATHS = ( 431 | "$(inherited)", 432 | "$(PROJECT_DIR)/Flutter", 433 | ); 434 | PRODUCT_BUNDLE_IDENTIFIER = com.example.familyTree; 435 | PRODUCT_NAME = "$(TARGET_NAME)"; 436 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 437 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 438 | SWIFT_VERSION = 5.0; 439 | VERSIONING_SYSTEM = "apple-generic"; 440 | }; 441 | name = Debug; 442 | }; 443 | 97C147071CF9000F007C117D /* Release */ = { 444 | isa = XCBuildConfiguration; 445 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 446 | buildSettings = { 447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 448 | CLANG_ENABLE_MODULES = YES; 449 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 450 | ENABLE_BITCODE = NO; 451 | FRAMEWORK_SEARCH_PATHS = ( 452 | "$(inherited)", 453 | "$(PROJECT_DIR)/Flutter", 454 | ); 455 | INFOPLIST_FILE = Runner/Info.plist; 456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 457 | LIBRARY_SEARCH_PATHS = ( 458 | "$(inherited)", 459 | "$(PROJECT_DIR)/Flutter", 460 | ); 461 | PRODUCT_BUNDLE_IDENTIFIER = com.example.familyTree; 462 | PRODUCT_NAME = "$(TARGET_NAME)"; 463 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 464 | SWIFT_VERSION = 5.0; 465 | VERSIONING_SYSTEM = "apple-generic"; 466 | }; 467 | name = Release; 468 | }; 469 | /* End XCBuildConfiguration section */ 470 | 471 | /* Begin XCConfigurationList section */ 472 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 473 | isa = XCConfigurationList; 474 | buildConfigurations = ( 475 | 97C147031CF9000F007C117D /* Debug */, 476 | 97C147041CF9000F007C117D /* Release */, 477 | 249021D3217E4FDB00AE95B9 /* Profile */, 478 | ); 479 | defaultConfigurationIsVisible = 0; 480 | defaultConfigurationName = Release; 481 | }; 482 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 483 | isa = XCConfigurationList; 484 | buildConfigurations = ( 485 | 97C147061CF9000F007C117D /* Debug */, 486 | 97C147071CF9000F007C117D /* Release */, 487 | 249021D4217E4FDB00AE95B9 /* Profile */, 488 | ); 489 | defaultConfigurationIsVisible = 0; 490 | defaultConfigurationName = Release; 491 | }; 492 | /* End XCConfigurationList section */ 493 | }; 494 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 495 | } 496 | --------------------------------------------------------------------------------