diff --git a/packages/wyatt_authentication_bloc/example/.gitignore b/packages/wyatt_authentication_bloc/example/.gitignore index 4368e66a..f0edd542 100644 --- a/packages/wyatt_authentication_bloc/example/.gitignore +++ b/packages/wyatt_authentication_bloc/example/.gitignore @@ -8,6 +8,7 @@ .buildlog/ .history .svn/ +migrate_working_dir/ # IntelliJ related *.iml @@ -45,4 +46,4 @@ app.*.map.json /android/app/profile /android/app/release -lib/firebase_options.dart \ No newline at end of file +firebase_options.dart \ No newline at end of file diff --git a/packages/wyatt_authentication_bloc/example/.metadata b/packages/wyatt_authentication_bloc/example/.metadata index 3c3e4b52..8c2e2e3d 100644 --- a/packages/wyatt_authentication_bloc/example/.metadata +++ b/packages/wyatt_authentication_bloc/example/.metadata @@ -1,10 +1,30 @@ # This file tracks properties of this Flutter project. # Used by Flutter tool to assess capabilities and perform upgrades etc. # -# This file should be version controlled and should not be manually edited. +# This file should be version controlled. version: - revision: 5464c5bac742001448fe4fc0597be939379f88ea + revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4 channel: stable project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4 + base_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4 + - platform: ios + create_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4 + base_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4 + + # User provided section + + # List of Local paths (relative to this file) that should be + # ignored by the migrate tool. + # + # Files that are not part of the templates will be ignored by default. + unmanaged_files: + - 'lib/main.dart' + - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/packages/wyatt_authentication_bloc/example_router/.vscode/launch.json b/packages/wyatt_authentication_bloc/example/.vscode/launch.json similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/.vscode/launch.json rename to packages/wyatt_authentication_bloc/example/.vscode/launch.json diff --git a/packages/wyatt_authentication_bloc/example/CHANGELOG.md b/packages/wyatt_authentication_bloc/example/CHANGELOG.md deleted file mode 100644 index e9bf0b29..00000000 --- a/packages/wyatt_authentication_bloc/example/CHANGELOG.md +++ /dev/null @@ -1,4 +0,0 @@ -## 1.0.1 - - - Update a dependency to the latest release. - diff --git a/packages/wyatt_authentication_bloc/example/README.md b/packages/wyatt_authentication_bloc/example/README.md index fdbadcff..139e82ee 100644 --- a/packages/wyatt_authentication_bloc/example/README.md +++ b/packages/wyatt_authentication_bloc/example/README.md @@ -1,4 +1,4 @@ -# authentication_bloc_example +# example_router A new Flutter project. @@ -8,9 +8,9 @@ This project is a starting point for a Flutter application. A few resources to get you started if this is your first Flutter project: -- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) +- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) -For help getting started with Flutter, view our -[online documentation](https://flutter.dev/docs), which offers tutorials, +For help getting started with Flutter development, view the +[online documentation](https://docs.flutter.dev/), which offers tutorials, samples, guidance on mobile development, and a full API reference. diff --git a/packages/wyatt_authentication_bloc/example/android/app/build.gradle b/packages/wyatt_authentication_bloc/example/android/app/build.gradle index 4f90c8ff..c0822b30 100644 --- a/packages/wyatt_authentication_bloc/example/android/app/build.gradle +++ b/packages/wyatt_authentication_bloc/example/android/app/build.gradle @@ -30,6 +30,7 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { compileSdkVersion flutter.compileSdkVersion + ndkVersion flutter.ndkVersion compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 @@ -46,7 +47,9 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.authentication_bloc_example" + applicationId "com.example.example_router" + // You can update the following values to match your application needs. + // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. minSdkVersion 21 targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() diff --git a/packages/wyatt_authentication_bloc/example/android/app/src/debug/AndroidManifest.xml b/packages/wyatt_authentication_bloc/example/android/app/src/debug/AndroidManifest.xml index 5c8faebc..4ee1d947 100644 --- a/packages/wyatt_authentication_bloc/example/android/app/src/debug/AndroidManifest.xml +++ b/packages/wyatt_authentication_bloc/example/android/app/src/debug/AndroidManifest.xml @@ -1,6 +1,7 @@ - diff --git a/packages/wyatt_authentication_bloc/example/android/app/src/main/AndroidManifest.xml b/packages/wyatt_authentication_bloc/example/android/app/src/main/AndroidManifest.xml index ad585ac2..7c354a29 100644 --- a/packages/wyatt_authentication_bloc/example/android/app/src/main/AndroidManifest.xml +++ b/packages/wyatt_authentication_bloc/example/android/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ + package="com.example.example_router"> diff --git a/packages/wyatt_authentication_bloc/example/android/build.gradle b/packages/wyatt_authentication_bloc/example/android/build.gradle index 111a0724..9192654d 100644 --- a/packages/wyatt_authentication_bloc/example/android/build.gradle +++ b/packages/wyatt_authentication_bloc/example/android/build.gradle @@ -6,7 +6,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:4.1.0' + classpath 'com.android.tools.build:gradle:7.1.2' // START: FlutterFire Configuration classpath 'com.google.gms:google-services:4.3.10' // END: FlutterFire Configuration diff --git a/packages/wyatt_authentication_bloc/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/wyatt_authentication_bloc/example/android/gradle/wrapper/gradle-wrapper.properties index bc6a58af..cc5527d7 100644 --- a/packages/wyatt_authentication_bloc/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/packages/wyatt_authentication_bloc/example/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip diff --git a/packages/wyatt_authentication_bloc/example_router/ios/.gitignore b/packages/wyatt_authentication_bloc/example/ios/.gitignore similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/.gitignore rename to packages/wyatt_authentication_bloc/example/ios/.gitignore diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Flutter/AppFrameworkInfo.plist b/packages/wyatt_authentication_bloc/example/ios/Flutter/AppFrameworkInfo.plist similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Flutter/AppFrameworkInfo.plist rename to packages/wyatt_authentication_bloc/example/ios/Flutter/AppFrameworkInfo.plist diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Flutter/Debug.xcconfig b/packages/wyatt_authentication_bloc/example/ios/Flutter/Debug.xcconfig similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Flutter/Debug.xcconfig rename to packages/wyatt_authentication_bloc/example/ios/Flutter/Debug.xcconfig diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Flutter/Release.xcconfig b/packages/wyatt_authentication_bloc/example/ios/Flutter/Release.xcconfig similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Flutter/Release.xcconfig rename to packages/wyatt_authentication_bloc/example/ios/Flutter/Release.xcconfig diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Podfile b/packages/wyatt_authentication_bloc/example/ios/Podfile similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Podfile rename to packages/wyatt_authentication_bloc/example/ios/Podfile diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Podfile.lock b/packages/wyatt_authentication_bloc/example/ios/Podfile.lock similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Podfile.lock rename to packages/wyatt_authentication_bloc/example/ios/Podfile.lock diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner.xcodeproj/project.pbxproj b/packages/wyatt_authentication_bloc/example/ios/Runner.xcodeproj/project.pbxproj similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner.xcodeproj/project.pbxproj rename to packages/wyatt_authentication_bloc/example/ios/Runner.xcodeproj/project.pbxproj diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/packages/wyatt_authentication_bloc/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to packages/wyatt_authentication_bloc/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/wyatt_authentication_bloc/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/wyatt_authentication_bloc/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/wyatt_authentication_bloc/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to packages/wyatt_authentication_bloc/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/wyatt_authentication_bloc/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to packages/wyatt_authentication_bloc/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner.xcworkspace/contents.xcworkspacedata b/packages/wyatt_authentication_bloc/example/ios/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner.xcworkspace/contents.xcworkspacedata rename to packages/wyatt_authentication_bloc/example/ios/Runner.xcworkspace/contents.xcworkspacedata diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/wyatt_authentication_bloc/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/wyatt_authentication_bloc/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/wyatt_authentication_bloc/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to packages/wyatt_authentication_bloc/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/AppDelegate.swift b/packages/wyatt_authentication_bloc/example/ios/Runner/AppDelegate.swift similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/AppDelegate.swift rename to packages/wyatt_authentication_bloc/example/ios/Runner/AppDelegate.swift diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md rename to packages/wyatt_authentication_bloc/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Base.lproj/LaunchScreen.storyboard b/packages/wyatt_authentication_bloc/example/ios/Runner/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Base.lproj/LaunchScreen.storyboard rename to packages/wyatt_authentication_bloc/example/ios/Runner/Base.lproj/LaunchScreen.storyboard diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Base.lproj/Main.storyboard b/packages/wyatt_authentication_bloc/example/ios/Runner/Base.lproj/Main.storyboard similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Base.lproj/Main.storyboard rename to packages/wyatt_authentication_bloc/example/ios/Runner/Base.lproj/Main.storyboard diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Info.plist b/packages/wyatt_authentication_bloc/example/ios/Runner/Info.plist similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Info.plist rename to packages/wyatt_authentication_bloc/example/ios/Runner/Info.plist diff --git a/packages/wyatt_authentication_bloc/example_router/ios/Runner/Runner-Bridging-Header.h b/packages/wyatt_authentication_bloc/example/ios/Runner/Runner-Bridging-Header.h similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/Runner/Runner-Bridging-Header.h rename to packages/wyatt_authentication_bloc/example/ios/Runner/Runner-Bridging-Header.h diff --git a/packages/wyatt_authentication_bloc/example_router/ios/firebase_app_id_file.json b/packages/wyatt_authentication_bloc/example/ios/firebase_app_id_file.json similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/ios/firebase_app_id_file.json rename to packages/wyatt_authentication_bloc/example/ios/firebase_app_id_file.json diff --git a/packages/wyatt_authentication_bloc/example/lib/app/app.dart b/packages/wyatt_authentication_bloc/example/lib/app/app.dart deleted file mode 100644 index 89338fe5..00000000 --- a/packages/wyatt_authentication_bloc/example/lib/app/app.dart +++ /dev/null @@ -1,182 +0,0 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -import 'dart:developer'; - -import 'package:authentication_bloc_example/constants.dart'; -import 'package:authentication_bloc_example/home/home_page.dart'; -import 'package:authentication_bloc_example/login/login_page.dart'; -import 'package:authentication_bloc_example/model.dart'; -import 'package:cloud_firestore/cloud_firestore.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:wyatt_authentication_bloc/wyatt_authentication_bloc.dart'; -import 'package:wyatt_form_bloc/wyatt_form_bloc.dart'; - -class App extends StatelessWidget { - const App({Key? key}) : super(key: key); - - static FormData getNormalFormData() { - return const FormData([ - FormInput(formFieldName, Name.pure()), - FormInput(formFieldPhone, Phone.pure()), - FormInput(formFieldPro, Boolean.pure()), - FormInput( - formFieldConfirmedPassword, - ConfirmedPassword.pure(), - metadata: FormInputMetadata(export: false), - ), - ]); - } - - static FormData getProFormData() { - return const FormData([ - FormInput(formFieldName, Name.pure()), - FormInput(formFieldPhone, Phone.pure()), - FormInput(formFieldPro, Boolean.pure()), - FormInput(formFieldSiren, Siren.pure()), - FormInput(formFieldIban, Iban.pure()), - FormInput( - formFieldConfirmedPassword, - ConfirmedPassword.pure(), - metadata: FormInputMetadata(export: false), - ), - ]); - } - - // On Authentication Success. (Authenticated or Anonymous) - // User callback. - Future> onAuthSuccess(UserInterface user) async { - if (user.isNotEmpty && !user.isAnonymous) { - // Check if user is register in Firesore. - DocumentSnapshot firestoreUser = await FirebaseFirestore.instance - .collection(firestoreCollectionUsers) - .doc(user.uid) - .get(); - - if (!firestoreUser.exists) { - // Register user in Firestore when sign in with social account. - final uid = user.uid; - final u = {'uid': uid, 'email': user.email}; - await FirebaseFirestore.instance - .collection(firestoreCollectionUsers) - .doc(uid) - .set(u); - return { - 'user': UserFirestore( - uid: uid, - email: user.email ?? '', - name: user.displayName ?? '', - phone: user.phoneNumber ?? ''), - }; - } else { - return { - 'user': UserFirestore.fromMap( - firestoreUser.data() as Map), - ...firestoreUser.data() as Map? ?? {} - }; - } - } else { - return {}; - } - } - - // On Sign Up Success. - Future onSignUpSuccess(SignUpState state, String? uid) async { - if (uid != null) { - final data = state.data.toMap(); - final user = {'uid': uid, 'email': state.email.value, ...data}; - log('onSignUpSuccess: $user'); - await FirebaseFirestore.instance - .collection(firestoreCollectionUsers) - .doc(uid) - .set(user); - } - } - - @override - Widget build(BuildContext context) { - AuthenticationRepositoryInterface authenticationRepository = - AuthenticationRepositoryFirebase(); - - AuthenticationCubit authenticationCubit = AuthenticationCubit( - authenticationRepository: authenticationRepository, - onAuthSuccess: onAuthSuccess, - ); - - SignUpCubit signUpCubit = SignUpCubit( - authenticationRepository: authenticationRepository, - authenticationCubit: authenticationCubit, - entries: getNormalFormData(), - onSignUpSuccess: onSignUpSuccess, - ); - - SignInCubit signInCubit = SignInCubit( - authenticationRepository: authenticationRepository, - authenticationCubit: authenticationCubit, - ); - - return MultiRepositoryProvider( - providers: [ - RepositoryProvider( - create: (context) => authenticationRepository, - ), - ], - child: MultiBlocProvider( - providers: [ - BlocProvider( - create: (context) => authenticationCubit..init(), - ), - BlocProvider( - create: (context) => signUpCubit, - ), - BlocProvider( - create: (context) => signInCubit, - ), - ], - child: const AppView(), - ), - ); - } -} - -class AppView extends StatelessWidget { - const AppView({Key? key}) : super(key: key); - - @override - Widget build(BuildContext context) { - return MaterialApp( - theme: ThemeData( - primarySwatch: Colors.blue, - buttonTheme: const ButtonThemeData( - buttonColor: Colors.blue, - textTheme: ButtonTextTheme.primary, - ), - ), - home: AuthenticationBuilder( - unknown: (context) { - return const Scaffold( - body: Center( - child: CircularProgressIndicator(), - ), - ); - }, - authenticated: (context, user, userData) => const HomePage(), - unauthenticated: (context) => const LoginPage(), - ), - ); - } -} diff --git a/packages/wyatt_authentication_bloc/example/lib/app/bloc_observer.dart b/packages/wyatt_authentication_bloc/example/lib/app/bloc_observer.dart deleted file mode 100644 index 83b019f8..00000000 --- a/packages/wyatt_authentication_bloc/example/lib/app/bloc_observer.dart +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -import 'package:bloc/bloc.dart'; -import 'package:flutter/foundation.dart'; - -class AppBlocObserver extends BlocObserver { - @override - void onEvent(Bloc bloc, Object? event) { - super.onEvent(bloc, event); - debugPrint(event.toString()); - } - - @override - void onError(BlocBase bloc, Object error, StackTrace stackTrace) { - debugPrint(error.toString()); - super.onError(bloc, error, stackTrace); - } - - @override - void onChange(BlocBase bloc, Change change) { - super.onChange(bloc, change); - debugPrint('curr:\t${change.currentState}\nnext:\t${change.nextState}'); - } - - @override - void onTransition(Bloc bloc, Transition transition) { - super.onTransition(bloc, transition); - debugPrint(transition.toString()); - } -} diff --git a/packages/wyatt_authentication_bloc/example_router/lib/bootstrap.dart b/packages/wyatt_authentication_bloc/example/lib/bootstrap.dart similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/lib/bootstrap.dart rename to packages/wyatt_authentication_bloc/example/lib/bootstrap.dart diff --git a/packages/wyatt_authentication_bloc/example/lib/constants.dart b/packages/wyatt_authentication_bloc/example/lib/constants.dart deleted file mode 100644 index 03422520..00000000 --- a/packages/wyatt_authentication_bloc/example/lib/constants.dart +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -const String formFieldName = 'name'; -const String formFieldPhone = 'phone'; -const String formFieldPro = 'isPro'; -const String formFieldConfirmedPassword = 'confirmedPassword'; -const String formFieldSiren = 'siren'; -const String formFieldIban = 'iban'; - -const String firestoreCollectionUsers = 'authentication_bloc_users'; \ No newline at end of file diff --git a/packages/wyatt_authentication_bloc/example_router/lib/core/constants/form_field.dart b/packages/wyatt_authentication_bloc/example/lib/core/constants/form_field.dart similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/lib/core/constants/form_field.dart rename to packages/wyatt_authentication_bloc/example/lib/core/constants/form_field.dart diff --git a/packages/wyatt_authentication_bloc/example_router/lib/core/dependency_injection/get_it.dart b/packages/wyatt_authentication_bloc/example/lib/core/dependency_injection/get_it.dart similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/lib/core/dependency_injection/get_it.dart rename to packages/wyatt_authentication_bloc/example/lib/core/dependency_injection/get_it.dart diff --git a/packages/wyatt_authentication_bloc/example_router/lib/core/routes/router.dart b/packages/wyatt_authentication_bloc/example/lib/core/routes/router.dart similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/lib/core/routes/router.dart rename to packages/wyatt_authentication_bloc/example/lib/core/routes/router.dart diff --git a/packages/wyatt_authentication_bloc/example_router/lib/core/utils/app_bloc_observer.dart b/packages/wyatt_authentication_bloc/example/lib/core/utils/app_bloc_observer.dart similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/lib/core/utils/app_bloc_observer.dart rename to packages/wyatt_authentication_bloc/example/lib/core/utils/app_bloc_observer.dart diff --git a/packages/wyatt_authentication_bloc/example/lib/forgot_password/forgot_password_page.dart b/packages/wyatt_authentication_bloc/example/lib/forgot_password/forgot_password_page.dart deleted file mode 100644 index 7d24b2a7..00000000 --- a/packages/wyatt_authentication_bloc/example/lib/forgot_password/forgot_password_page.dart +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -import 'package:authentication_bloc_example/forgot_password/widgets/forgot_password_form.dart'; -import 'package:flutter/material.dart'; -import 'package:wyatt_authentication_bloc/wyatt_authentication_bloc.dart'; -import 'package:flutter_bloc/flutter_bloc.dart'; - -class ForgotPasswordPage extends StatelessWidget { - const ForgotPasswordPage({Key? key}) : super(key: key); - - static Route route() { - return MaterialPageRoute(builder: (_) => const ForgotPasswordPage()); - } - - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar(title: const Text('Forgot Password')), - body: Padding( - padding: const EdgeInsets.all(8), - child: BlocProvider( - create: (_) => PasswordResetCubit( - context.read(), - ), - child: const ForgotPasswordForm(), - ), - ), - ); - } -} diff --git a/packages/wyatt_authentication_bloc/example/lib/forgot_password/widgets/forgot_password_form.dart b/packages/wyatt_authentication_bloc/example/lib/forgot_password/widgets/forgot_password_form.dart deleted file mode 100644 index 11f2d6a3..00000000 --- a/packages/wyatt_authentication_bloc/example/lib/forgot_password/widgets/forgot_password_form.dart +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -import 'package:flutter/material.dart'; -import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:wyatt_authentication_bloc/wyatt_authentication_bloc.dart'; -import 'package:wyatt_form_bloc/wyatt_form_bloc.dart'; - -class _EmailInput extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - buildWhen: (previous, current) => previous.email != current.email, - builder: (context, state) { - return TextField( - onChanged: (email) => - context.read().emailChanged(email), - keyboardType: TextInputType.emailAddress, - decoration: InputDecoration( - labelText: 'email', - helperText: '', - errorText: state.email.invalid ? 'invalid email' : null, - ), - ); - }, - ); - } -} - -class _ResetButton extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - buildWhen: (previous, current) => previous.status != current.status, - builder: (context, state) { - return state.status.isSubmissionInProgress - ? const CircularProgressIndicator() - : ElevatedButton( - onPressed: state.status.isValidated - ? () => context - .read() - .sendPasswordResetEmail() - : null, - child: const Text('SEND EMAIL'), - ); - }, - ); - } -} - -class ForgotPasswordForm extends StatelessWidget { - const ForgotPasswordForm({Key? key}) : super(key: key); - - @override - Widget build(BuildContext context) { - return BlocListener( - listener: (context, state) { - if (state.status.isSubmissionSuccess) { - Navigator.of(context).pop(); - } else if (state.status.isSubmissionFailure) { - ScaffoldMessenger.of(context) - ..hideCurrentSnackBar() - ..showSnackBar( - SnackBar( - content: Text(state.errorMessage ?? 'Password reset Failure'), - ), - ); - } - }, - child: Align( - alignment: const Alignment(0, -1 / 3), - child: Column( - mainAxisSize: MainAxisSize.min, - children: [_EmailInput(), const SizedBox(height: 8), _ResetButton()], - ), - ), - ); - } -} diff --git a/packages/wyatt_authentication_bloc/example/lib/home/home_page.dart b/packages/wyatt_authentication_bloc/example/lib/home/home_page.dart deleted file mode 100644 index 2874834c..00000000 --- a/packages/wyatt_authentication_bloc/example/lib/home/home_page.dart +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -import 'package:authentication_bloc_example/home/widgets/infos.dart'; -import 'package:flutter/material.dart'; -import 'package:wyatt_authentication_bloc/wyatt_authentication_bloc.dart'; -import 'package:flutter_bloc/flutter_bloc.dart'; - -import 'package:authentication_bloc_example/home/widgets/email_verification.dart'; - -class HomePage extends StatelessWidget { - const HomePage({Key? key}) : super(key: key); - - static Route route() { - return MaterialPageRoute(builder: (_) => const HomePage()); - } - - @override - Widget build(BuildContext context) { - final user = context.select((AuthenticationCubit cubit) => cubit.state.user); - return Scaffold( - appBar: AppBar( - title: const Text('Home'), - actions: [ - IconButton( - icon: const Icon(Icons.exit_to_app), - onPressed: () => context - .read() - .logOut(), - ) - ], - ), - body: Padding( - padding: const EdgeInsets.all(8), - child: BlocProvider( - create: (_) => EmailVerificationCubit( - context.read(), - )..checkEmailVerification(), - child: BlocBuilder( - builder: (context, state) { - if (state.isVerified || user!.isAnonymous) { - return const UserInfo(); - } else { - return const EmailVerification(); - } - }, - ), - ), - ), - ); - } -} diff --git a/packages/wyatt_authentication_bloc/example/lib/home/widgets/avatar.dart b/packages/wyatt_authentication_bloc/example/lib/home/widgets/avatar.dart deleted file mode 100644 index 6c9936b8..00000000 --- a/packages/wyatt_authentication_bloc/example/lib/home/widgets/avatar.dart +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -import 'package:flutter/material.dart'; - -const _avatarSize = 48.0; - -class Avatar extends StatelessWidget { - const Avatar({Key? key, this.photo}) : super(key: key); - - final String? photo; - - @override - Widget build(BuildContext context) { - final photo = this.photo; - return CircleAvatar( - radius: _avatarSize, - backgroundImage: photo != null ? NetworkImage(photo) : null, - child: photo == null - ? const Icon(Icons.person_outline, size: _avatarSize) - : null, - ); - } -} diff --git a/packages/wyatt_authentication_bloc/example/lib/home/widgets/email_verification.dart b/packages/wyatt_authentication_bloc/example/lib/home/widgets/email_verification.dart deleted file mode 100644 index 22c98c30..00000000 --- a/packages/wyatt_authentication_bloc/example/lib/home/widgets/email_verification.dart +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -import 'package:flutter/material.dart'; -import 'package:wyatt_authentication_bloc/wyatt_authentication_bloc.dart'; -import 'package:flutter_bloc/flutter_bloc.dart'; - -class EmailVerification extends StatelessWidget { - const EmailVerification({Key? key}) : super(key: key); - - @override - Widget build(BuildContext context) { - final user = context.select((AuthenticationCubit cubit) => cubit.state.user); - final userData = context.select((AuthenticationCubit cubit) => cubit.state.userData); - return Align( - alignment: const Alignment(0, -1 / 3), - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - Text("Hello ${userData!['name'] ?? 'null'}!"), - const SizedBox(height: 4), - Text("Email '${user?.email ?? 'null'}' is not verified"), - const SizedBox(height: 4), - ElevatedButton( - onPressed: () { - context.read().sendEmailVerification(); - }, - child: const Text('(Re)send email'), - ), - ElevatedButton( - onPressed: () { - context.read().checkEmailVerification(); - }, - child: const Text('Refresh'), - ), - ], - ), - ); - } -} diff --git a/packages/wyatt_authentication_bloc/example/lib/home/widgets/infos.dart b/packages/wyatt_authentication_bloc/example/lib/home/widgets/infos.dart deleted file mode 100644 index 3821f589..00000000 --- a/packages/wyatt_authentication_bloc/example/lib/home/widgets/infos.dart +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -import 'package:authentication_bloc_example/home/widgets/avatar.dart'; -import 'package:flutter/material.dart'; -import 'package:wyatt_authentication_bloc/wyatt_authentication_bloc.dart'; -import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:authentication_bloc_example/constants.dart'; - -class UserInfo extends StatelessWidget { - const UserInfo({Key? key}) : super(key: key); - - @override - Widget build(BuildContext context) { - final textTheme = Theme.of(context).textTheme; - final user = context.select((AuthenticationCubit cubit) => cubit.state.user); - final userData = context.select((AuthenticationCubit cubit) => cubit.state.userData); - return Align( - alignment: const Alignment(0, -1 / 3), - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - Avatar(photo: user?.photoURL), - const SizedBox(height: 4), - Text("Email: ${user?.email ?? 'null'}", style: textTheme.headline6), - const SizedBox(height: 4), - Text("Name: ${userData![formFieldName] ?? 'null'}", - style: textTheme.headline6), - const SizedBox(height: 4), - Text("Phone: ${userData[formFieldPhone] ?? 'null'}", - style: textTheme.headline6), - const SizedBox(height: 4), - Text("IsPro: ${userData[formFieldPro] ?? 'null'}", - style: textTheme.headline6), - const SizedBox(height: 4), - Text("IsAnonymous: ${user?.isAnonymous.toString() ?? 'null'}", - style: textTheme.headline6), - const SizedBox(height: 4), - Text("IsEmailVerified: ${user?.emailVerified.toString() ?? 'null'}", - style: textTheme.headline6), - ], - ), - ); - } -} diff --git a/packages/wyatt_authentication_bloc/example/lib/login/login_page.dart b/packages/wyatt_authentication_bloc/example/lib/login/login_page.dart deleted file mode 100644 index f718af9a..00000000 --- a/packages/wyatt_authentication_bloc/example/lib/login/login_page.dart +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -import 'package:authentication_bloc_example/login/widgets/login_form.dart'; -import 'package:flutter/material.dart'; - -class LoginPage extends StatelessWidget { - const LoginPage({Key? key}) : super(key: key); - - static Route route() { - return MaterialPageRoute(builder: (_) => const LoginPage()); - } - - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar(title: const Text('Login')), - body: const Padding( - padding: EdgeInsets.all(8), - child: LoginForm(), - ), - ); - } -} diff --git a/packages/wyatt_authentication_bloc/example/lib/login/widgets/login_form.dart b/packages/wyatt_authentication_bloc/example/lib/login/widgets/login_form.dart deleted file mode 100644 index e5c9f55d..00000000 --- a/packages/wyatt_authentication_bloc/example/lib/login/widgets/login_form.dart +++ /dev/null @@ -1,214 +0,0 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -import 'package:authentication_bloc_example/app/app.dart'; -import 'package:authentication_bloc_example/constants.dart'; -import 'package:authentication_bloc_example/forgot_password/forgot_password_page.dart'; -import 'package:authentication_bloc_example/sign_up/sign_up_page.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:wyatt_authentication_bloc/wyatt_authentication_bloc.dart'; -import 'package:wyatt_form_bloc/wyatt_form_bloc.dart'; - -class _EmailInput extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - buildWhen: (previous, current) => previous.email != current.email, - builder: (context, state) { - return TextField( - onChanged: (email) => context.read().emailChanged(email), - keyboardType: TextInputType.emailAddress, - decoration: InputDecoration( - labelText: 'email', - helperText: '', - errorText: state.email.invalid ? 'invalid email' : null, - ), - ); - }, - ); - } -} - -class _PasswordInput extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - buildWhen: (previous, current) => previous.password != current.password, - builder: (context, state) { - return TextField( - onChanged: (password) => - context.read().passwordChanged(password), - obscureText: true, - decoration: InputDecoration( - labelText: 'password', - helperText: '', - errorText: state.password.invalid ? 'invalid password' : null, - ), - ); - }, - ); - } -} - -class _LoginAnonButton extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - buildWhen: (previous, current) => previous.status != current.status, - builder: (context, state) { - return state.status.isSubmissionInProgress - ? const CircularProgressIndicator() - : ElevatedButton( - onPressed: () => - context.read().signInAnonymously(), - child: const Text('LOGIN ANONYMOUSLY'), - ); - }, - ); - } -} - -class _LoginWithPasswordButton extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - buildWhen: (previous, current) => previous.status != current.status, - builder: (context, state) { - return state.status.isSubmissionInProgress - ? const CircularProgressIndicator() - : ElevatedButton( - onPressed: state.status.isValidated - ? () => - context.read().signInWithEmailAndPassword() - : null, - child: const Text('LOGIN WITH PASSWORD'), - ); - }, - ); - } -} - -class _LoginWithGoogleButton extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - buildWhen: (previous, current) => previous.status != current.status, - builder: (context, state) { - return state.status.isSubmissionInProgress - ? const CircularProgressIndicator() - : ElevatedButton( - onPressed: () => - context.read().signInWithGoogle(), - child: const Text('LOGIN GOOGLE'), - ); - }, - ); - } -} - -class _SignUpButton extends StatelessWidget { - @override - Widget build(BuildContext context) { - final theme = Theme.of(context); - return TextButton( - onPressed: () { - context.read().updateFormData(App.getNormalFormData()); - Navigator.of(context).push(SignUpPage.route()); - }, - child: Text( - 'CREATE ACCOUNT', - style: TextStyle(color: theme.primaryColor), - ), - ); - } -} - -class _SignUpAsProButton extends StatelessWidget { - @override - Widget build(BuildContext context) { - final theme = Theme.of(context); - return TextButton( - onPressed: () { - context.read().updateFormData(App.getProFormData()); - context.read().dataChanged( - formFieldPro, - const Boolean.dirty(value: true), - ); - Navigator.of(context).push(SignUpPage.route()); - }, - child: Text( - 'CREATE PRO ACCOUNT', - style: TextStyle(color: theme.primaryColor), - ), - ); - } -} - -class LoginForm extends StatelessWidget { - const LoginForm({Key? key}) : super(key: key); - - @override - Widget build(BuildContext context) { - return BlocListener( - listener: (context, state) { - if (state.status.isSubmissionFailure) { - ScaffoldMessenger.of(context) - ..hideCurrentSnackBar() - ..showSnackBar( - SnackBar( - content: Text(state.errorMessage ?? 'Authentication Failure'), - ), - ); - } - }, - child: Align( - alignment: const Alignment(0, -1 / 3), - child: SingleChildScrollView( - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - const SizedBox(height: 120), - _EmailInput(), - const SizedBox(height: 8), - _PasswordInput(), - const SizedBox(height: 8), - GestureDetector( - onTap: () { - Navigator.of(context).push(ForgotPasswordPage.route()); - }, - child: Text( - 'Forgot password ?', - style: Theme.of(context).textTheme.bodyText2, - ), - ), - const SizedBox(height: 8), - _LoginWithPasswordButton(), - const SizedBox(height: 8), - _LoginAnonButton(), - const SizedBox(height: 8), - _LoginWithGoogleButton(), - const SizedBox(height: 8), - _SignUpButton(), - const SizedBox(height: 8), - _SignUpAsProButton(), - ], - ), - ), - ), - ); - } -} diff --git a/packages/wyatt_authentication_bloc/example/lib/main.dart b/packages/wyatt_authentication_bloc/example/lib/main.dart index c8fd941f..06b15c7c 100644 --- a/packages/wyatt_authentication_bloc/example/lib/main.dart +++ b/packages/wyatt_authentication_bloc/example/lib/main.dart @@ -1,35 +1,6 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . +import 'package:example_router/bootstrap.dart'; +import 'package:example_router/presentation/features/app/app.dart'; -import 'package:authentication_bloc_example/app/app.dart'; -import 'package:authentication_bloc_example/app/bloc_observer.dart'; -import 'package:authentication_bloc_example/firebase_options.dart'; -import 'package:firebase_core/firebase_core.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_bloc/flutter_bloc.dart'; - -Future main() async { - WidgetsFlutterBinding.ensureInitialized(); - await Firebase.initializeApp( - options: DefaultFirebaseOptions.currentPlatform, - ); - BlocOverrides.runZoned( - () => runApp( - const App(), - ), - blocObserver: AppBlocObserver(), - ); +void main() { + bootstrap(App.new); } diff --git a/packages/wyatt_authentication_bloc/example/lib/model.dart b/packages/wyatt_authentication_bloc/example/lib/model.dart deleted file mode 100644 index 9dfc1069..00000000 --- a/packages/wyatt_authentication_bloc/example/lib/model.dart +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -class UserFirestore { - final String email; - final String name; - final String phone; - final String uid; - - UserFirestore({ - required this.email, - required this.name, - required this.phone, - required this.uid, - }); - - factory UserFirestore.fromMap(Map map) { - return UserFirestore( - uid: map['uid'], - email: map['email'], - name: map['name'], - phone: map['phone'], - ); - } - - Map toMap() { - return { - 'uid': uid, - 'email': email, - 'name': name, - 'phone': phone, - }; - } - - @override - String toString() { - return 'UserFirestore(email: $email, name: $name, phone: $phone, uid: $uid)'; - } -} diff --git a/packages/wyatt_authentication_bloc/example_router/lib/presentation/features/app/app.dart b/packages/wyatt_authentication_bloc/example/lib/presentation/features/app/app.dart similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/lib/presentation/features/app/app.dart rename to packages/wyatt_authentication_bloc/example/lib/presentation/features/app/app.dart diff --git a/packages/wyatt_authentication_bloc/example_router/lib/presentation/features/home/home_page.dart b/packages/wyatt_authentication_bloc/example/lib/presentation/features/home/home_page.dart similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/lib/presentation/features/home/home_page.dart rename to packages/wyatt_authentication_bloc/example/lib/presentation/features/home/home_page.dart diff --git a/packages/wyatt_authentication_bloc/example_router/lib/presentation/features/sign_in/sign_in_page.dart b/packages/wyatt_authentication_bloc/example/lib/presentation/features/sign_in/sign_in_page.dart similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/lib/presentation/features/sign_in/sign_in_page.dart rename to packages/wyatt_authentication_bloc/example/lib/presentation/features/sign_in/sign_in_page.dart diff --git a/packages/wyatt_authentication_bloc/example_router/lib/presentation/features/sign_in/widgets/sign_in_form.dart b/packages/wyatt_authentication_bloc/example/lib/presentation/features/sign_in/widgets/sign_in_form.dart similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/lib/presentation/features/sign_in/widgets/sign_in_form.dart rename to packages/wyatt_authentication_bloc/example/lib/presentation/features/sign_in/widgets/sign_in_form.dart diff --git a/packages/wyatt_authentication_bloc/example_router/lib/presentation/features/sign_up/sign_up_page.dart b/packages/wyatt_authentication_bloc/example/lib/presentation/features/sign_up/sign_up_page.dart similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/lib/presentation/features/sign_up/sign_up_page.dart rename to packages/wyatt_authentication_bloc/example/lib/presentation/features/sign_up/sign_up_page.dart diff --git a/packages/wyatt_authentication_bloc/example_router/lib/presentation/features/sign_up/widgets/sign_up_form.dart b/packages/wyatt_authentication_bloc/example/lib/presentation/features/sign_up/widgets/sign_up_form.dart similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/lib/presentation/features/sign_up/widgets/sign_up_form.dart rename to packages/wyatt_authentication_bloc/example/lib/presentation/features/sign_up/widgets/sign_up_form.dart diff --git a/packages/wyatt_authentication_bloc/example_router/lib/presentation/features/sub/sub_page.dart b/packages/wyatt_authentication_bloc/example/lib/presentation/features/sub/sub_page.dart similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/lib/presentation/features/sub/sub_page.dart rename to packages/wyatt_authentication_bloc/example/lib/presentation/features/sub/sub_page.dart diff --git a/packages/wyatt_authentication_bloc/example_router/lib/presentation/features/welcome/welcome_page.dart b/packages/wyatt_authentication_bloc/example/lib/presentation/features/welcome/welcome_page.dart similarity index 100% rename from packages/wyatt_authentication_bloc/example_router/lib/presentation/features/welcome/welcome_page.dart rename to packages/wyatt_authentication_bloc/example/lib/presentation/features/welcome/welcome_page.dart diff --git a/packages/wyatt_authentication_bloc/example/lib/sign_up/sign_up_page.dart b/packages/wyatt_authentication_bloc/example/lib/sign_up/sign_up_page.dart deleted file mode 100644 index 64dd8717..00000000 --- a/packages/wyatt_authentication_bloc/example/lib/sign_up/sign_up_page.dart +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -import 'package:authentication_bloc_example/sign_up/widgets/sign_up_form.dart'; -import 'package:flutter/material.dart'; - -class SignUpPage extends StatelessWidget { - const SignUpPage({Key? key}) : super(key: key); - - static Route route() { - return MaterialPageRoute(builder: (_) => const SignUpPage()); - } - - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar(title: const Text('Sign Up')), - body: const Padding( - padding: EdgeInsets.all(8), - child: SingleChildScrollView( - child: SignUpForm(), - ), - ), - ); - } -} diff --git a/packages/wyatt_authentication_bloc/example/lib/sign_up/widgets/sign_up_form.dart b/packages/wyatt_authentication_bloc/example/lib/sign_up/widgets/sign_up_form.dart deleted file mode 100644 index 8672edbe..00000000 --- a/packages/wyatt_authentication_bloc/example/lib/sign_up/widgets/sign_up_form.dart +++ /dev/null @@ -1,325 +0,0 @@ -// Copyright (C) 2022 WYATT GROUP -// Please see the AUTHORS file for details. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see . - -import 'dart:developer'; - -import 'package:authentication_bloc_example/app/app.dart'; -import 'package:authentication_bloc_example/constants.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:wyatt_authentication_bloc/wyatt_authentication_bloc.dart'; -import 'package:wyatt_form_bloc/wyatt_form_bloc.dart'; - -class _NameInput extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - builder: (context, state) { - return TextField( - onChanged: (name) => context - .read() - .dataChanged(formFieldName, Name.dirty(name)), - keyboardType: TextInputType.name, - decoration: InputDecoration( - labelText: 'name', - helperText: '', - errorText: - state.data.isNotValid(formFieldName) ? 'invalid name' : null, - ), - ); - }, - ); - } -} - -class _PhoneInput extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - builder: (context, state) { - return TextField( - onChanged: (phone) => context - .read() - .dataChanged(formFieldPhone, Phone.dirty(phone)), - keyboardType: TextInputType.phone, - decoration: InputDecoration( - labelText: 'phone', - helperText: '', - errorText: state.data.isNotValid(formFieldPhone) - ? 'invalid phone' - : null, - ), - ); - }, - ); - } -} - -class _SirenInput extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - builder: (context, state) { - return TextField( - onChanged: (siren) => context - .read() - .dataChanged(formFieldSiren, Siren.dirty(siren)), - keyboardType: TextInputType.number, - decoration: InputDecoration( - labelText: 'siren', - helperText: '', - errorText: state.data.isNotValid(formFieldSiren) - ? 'invalid SIREN' - : null, - ), - ); - }, - ); - } -} - -class _IbanInput extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - builder: (context, state) { - return TextField( - onChanged: (iban) => context - .read() - .dataChanged(formFieldIban, Iban.dirty(iban)), - keyboardType: TextInputType.text, - decoration: InputDecoration( - labelText: 'iban', - helperText: '', - errorText: - state.data.isNotValid(formFieldIban) ? 'invalid IBAN' : null, - ), - ); - }, - ); - } -} - -class _EmailInput extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - buildWhen: (previous, current) => previous.email != current.email, - builder: (context, state) { - return TextField( - onChanged: (email) => context.read().emailChanged(email), - keyboardType: TextInputType.emailAddress, - decoration: InputDecoration( - labelText: 'email', - helperText: '', - errorText: state.email.invalid ? 'invalid email' : null, - ), - ); - }, - ); - } -} - -class _PasswordInput extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - builder: (context, state) { - return TextField( - onChanged: (password) { - context.read().passwordChanged(password); - context.read().dataChanged( - formFieldConfirmedPassword, - ConfirmedPassword.dirty( - password: password, - value: context - .read() - .state - .data - .valueOf(formFieldConfirmedPassword), - ), - ); - }, - obscureText: true, - decoration: InputDecoration( - labelText: 'password', - helperText: '', - errorText: state.password.invalid ? 'invalid password' : null, - ), - ); - }, - ); - } -} - -class _ConfirmPasswordInput extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - builder: (context, state) { - return TextField( - onChanged: (confirmPassword) => context - .read() - .dataChanged( - formFieldConfirmedPassword, - ConfirmedPassword.dirty( - password: context.read().state.password.value, - value: confirmPassword, - ), - ), - obscureText: true, - decoration: InputDecoration( - labelText: 'confirm password', - helperText: '', - errorText: state.data.isNotValid(formFieldConfirmedPassword) - ? 'passwords do not match' - : null, - ), - ); - }, - ); - } -} - -class _CheckIsProInput extends StatelessWidget { - @override - Widget build(BuildContext context) { - return ListTile( - title: const Text('Are you a pro?'), - trailing: BlocBuilder( - builder: (context, state) { - return Checkbox( - value: state.data.valueOf(formFieldPro), - onChanged: (isPro) { - final value = - isPro!; // tristate is false, so value can't be null - - context.read().dataChanged( - formFieldPro, - Boolean.dirty(value: value), - ); - - if (value) { - context.read().updateFormData( - App.getProFormData(), - operation: SetOperation.union); - } else { - context.read().updateFormData( - App.getNormalFormData(), - operation: SetOperation.intersection); - } - }); - }, - ), - ); - } -} - -class _SignUpButton extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - buildWhen: (previous, current) => previous.status != current.status, - builder: (context, state) { - return state.status.isSubmissionInProgress - ? const CircularProgressIndicator() - : ElevatedButton( - onPressed: state.status.isValidated - ? () => context.read().signUpFormSubmitted() - : null, - child: const Text('SIGN UP'), - ); - }, - ); - } -} - -class _DebugButton extends StatelessWidget { - @override - Widget build(BuildContext context) { - return BlocBuilder( - builder: (context, state) { - return ElevatedButton( - onPressed: () { - // log(state.toString()); - log(state.data.toMap().toString()); - }, - child: const Text('DEBUG'), - ); - }, - ); - } -} - -class SignUpForm extends StatelessWidget { - const SignUpForm({Key? key}) : super(key: key); - - @override - Widget build(BuildContext context) { - return BlocListener( - listener: (context, state) { - if (state.status.isSubmissionSuccess) { - Navigator.of(context).pop(); - } else if (state.status.isSubmissionFailure) { - ScaffoldMessenger.of(context) - ..hideCurrentSnackBar() - ..showSnackBar( - SnackBar(content: Text(state.errorMessage ?? 'Sign Up Failure')), - ); - } - }, - child: SizedBox( - height: MediaQuery.of(context).size.height, - child: Align( - alignment: const Alignment(0, -1 / 3), - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - _NameInput(), - const SizedBox(height: 8), - _PhoneInput(), - const SizedBox(height: 8), - _CheckIsProInput(), - const SizedBox(height: 8), - BlocBuilder( - builder: (context, state) { - if (state.data.valueOf(formFieldPro)) { - return Column(children: [ - _SirenInput(), - const SizedBox(height: 8), - _IbanInput(), - const SizedBox(height: 8), - ]); - } - return const SizedBox.shrink(); - }, - ), - _EmailInput(), - const SizedBox(height: 8), - _PasswordInput(), - const SizedBox(height: 8), - _ConfirmPasswordInput(), - const SizedBox(height: 8), - _SignUpButton(), - const SizedBox(height: 8), - _DebugButton(), - ], - ), - ), - ), - ); - } -} diff --git a/packages/wyatt_authentication_bloc/example/pubspec.yaml b/packages/wyatt_authentication_bloc/example/pubspec.yaml index 0cacc019..3d087b93 100644 --- a/packages/wyatt_authentication_bloc/example/pubspec.yaml +++ b/packages/wyatt_authentication_bloc/example/pubspec.yaml @@ -1,4 +1,4 @@ -name: authentication_bloc_example +name: example_router description: A new Flutter project. # The following line prevents the package from being accidentally published to @@ -15,10 +15,10 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.1 +version: 1.0.0+1 environment: - sdk: ">=2.16.2 <3.0.0" + sdk: ">=2.17.6 <3.0.0" # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions @@ -29,22 +29,30 @@ environment: dependencies: flutter: sdk: flutter + + go_router: ^5.1.5 + firebase_core: ^2.1.1 + flutter_bloc: ^8.1.1 + get_it: ^7.2.0 - firebase_core: ^1.14.1 - flutter_bloc: ^8.0.1 wyatt_authentication_bloc: path: "../" wyatt_form_bloc: - git: - url: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages - ref: wyatt_form_bloc-v0.1.0+1 - path: packages/wyatt_form_bloc + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/ + version: 0.1.0+1 + + wyatt_architecture: + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/ + version: 0.0.2 + + wyatt_type_utils: + hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/ + version: 0.0.3+1 # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^1.0.4 - cloud_firestore: ^3.1.12 + cupertino_icons: ^1.0.5 dev_dependencies: flutter_test: @@ -60,7 +68,7 @@ dev_dependencies: # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec -# The following section is specific to Flutter. +# The following section is specific to Flutter packages. flutter: # The following line ensures that the Material Icons font is @@ -74,7 +82,7 @@ flutter: # - images/a_dot_ham.jpeg # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware. + # https://flutter.dev/assets-and-images/#resolution-aware # For details regarding adding assets from package dependencies, see # https://flutter.dev/assets-and-images/#from-packages diff --git a/packages/wyatt_authentication_bloc/example_router/.gitignore b/packages/wyatt_authentication_bloc/example_router/.gitignore deleted file mode 100644 index f0edd542..00000000 --- a/packages/wyatt_authentication_bloc/example_router/.gitignore +++ /dev/null @@ -1,49 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.buildlog/ -.history -.svn/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.packages -.pub-cache/ -.pub/ -/build/ - -# Web related -lib/generated_plugin_registrant.dart - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release - -firebase_options.dart \ No newline at end of file diff --git a/packages/wyatt_authentication_bloc/example_router/.metadata b/packages/wyatt_authentication_bloc/example_router/.metadata deleted file mode 100644 index 8c2e2e3d..00000000 --- a/packages/wyatt_authentication_bloc/example_router/.metadata +++ /dev/null @@ -1,30 +0,0 @@ -# This file tracks properties of this Flutter project. -# Used by Flutter tool to assess capabilities and perform upgrades etc. -# -# This file should be version controlled. - -version: - revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4 - channel: stable - -project_type: app - -# Tracks metadata for the flutter migrate command -migration: - platforms: - - platform: root - create_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4 - base_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4 - - platform: ios - create_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4 - base_revision: e99c9c7cd9f6c0b2f8ae6e3ebfd585239f5568f4 - - # User provided section - - # List of Local paths (relative to this file) that should be - # ignored by the migrate tool. - # - # Files that are not part of the templates will be ignored by default. - unmanaged_files: - - 'lib/main.dart' - - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/packages/wyatt_authentication_bloc/example_router/README.md b/packages/wyatt_authentication_bloc/example_router/README.md deleted file mode 100644 index 139e82ee..00000000 --- a/packages/wyatt_authentication_bloc/example_router/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# example_router - -A new Flutter project. - -## Getting Started - -This project is a starting point for a Flutter application. - -A few resources to get you started if this is your first Flutter project: - -- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) - -For help getting started with Flutter development, view the -[online documentation](https://docs.flutter.dev/), which offers tutorials, -samples, guidance on mobile development, and a full API reference. diff --git a/packages/wyatt_authentication_bloc/example_router/analysis_options.yaml b/packages/wyatt_authentication_bloc/example_router/analysis_options.yaml deleted file mode 100644 index 61b6c4de..00000000 --- a/packages/wyatt_authentication_bloc/example_router/analysis_options.yaml +++ /dev/null @@ -1,29 +0,0 @@ -# This file configures the analyzer, which statically analyzes Dart code to -# check for errors, warnings, and lints. -# -# The issues identified by the analyzer are surfaced in the UI of Dart-enabled -# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be -# invoked from the command line by running `flutter analyze`. - -# The following line activates a set of recommended lints for Flutter apps, -# packages, and plugins designed to encourage good coding practices. -include: package:flutter_lints/flutter.yaml - -linter: - # The lint rules applied to this project can be customized in the - # section below to disable rules from the `package:flutter_lints/flutter.yaml` - # included above or to enable additional rules. A list of all available lints - # and their documentation is published at - # https://dart-lang.github.io/linter/lints/index.html. - # - # Instead of disabling a lint rule for the entire project in the - # section below, it can also be suppressed for a single line of code - # or a specific dart file by using the `// ignore: name_of_lint` and - # `// ignore_for_file: name_of_lint` syntax on the line or in the file - # producing the lint. - rules: - # avoid_print: false # Uncomment to disable the `avoid_print` rule - # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule - -# Additional information about this file can be found at -# https://dart.dev/guides/language/analysis-options diff --git a/packages/wyatt_authentication_bloc/example_router/android/.gitignore b/packages/wyatt_authentication_bloc/example_router/android/.gitignore deleted file mode 100644 index 6f568019..00000000 --- a/packages/wyatt_authentication_bloc/example_router/android/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -gradle-wrapper.jar -/.gradle -/captures/ -/gradlew -/gradlew.bat -/local.properties -GeneratedPluginRegistrant.java - -# Remember to never publicly share your keystore. -# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app -key.properties -**/*.keystore -**/*.jks diff --git a/packages/wyatt_authentication_bloc/example_router/android/app/build.gradle b/packages/wyatt_authentication_bloc/example_router/android/app/build.gradle deleted file mode 100644 index c0822b30..00000000 --- a/packages/wyatt_authentication_bloc/example_router/android/app/build.gradle +++ /dev/null @@ -1,74 +0,0 @@ -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader('UTF-8') { reader -> - localProperties.load(reader) - } -} - -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - flutterVersionCode = '1' -} - -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - flutterVersionName = '1.0' -} - -apply plugin: 'com.android.application' -// START: FlutterFire Configuration -apply plugin: 'com.google.gms.google-services' -// END: FlutterFire Configuration -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - -android { - compileSdkVersion flutter.compileSdkVersion - ndkVersion flutter.ndkVersion - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - - kotlinOptions { - jvmTarget = '1.8' - } - - sourceSets { - main.java.srcDirs += 'src/main/kotlin' - } - - defaultConfig { - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.example_router" - // You can update the following values to match your application needs. - // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. - minSdkVersion 21 - targetSdkVersion flutter.targetSdkVersion - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName - } - - buildTypes { - release { - // TODO: Add your own signing config for the release build. - // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig signingConfigs.debug - } - } -} - -flutter { - source '../..' -} - -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" -} diff --git a/packages/wyatt_authentication_bloc/example_router/android/app/src/debug/AndroidManifest.xml b/packages/wyatt_authentication_bloc/example_router/android/app/src/debug/AndroidManifest.xml deleted file mode 100644 index 4ee1d947..00000000 --- a/packages/wyatt_authentication_bloc/example_router/android/app/src/debug/AndroidManifest.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/AndroidManifest.xml b/packages/wyatt_authentication_bloc/example_router/android/app/src/main/AndroidManifest.xml deleted file mode 100644 index 7c354a29..00000000 --- a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - diff --git a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/drawable-v21/launch_background.xml b/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/drawable-v21/launch_background.xml deleted file mode 100644 index f74085f3..00000000 --- a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/drawable-v21/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/drawable/launch_background.xml b/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/drawable/launch_background.xml deleted file mode 100644 index 304732f8..00000000 --- a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/drawable/launch_background.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - diff --git a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index db77bb4b..00000000 Binary files a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index 17987b79..00000000 Binary files a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index 09d43914..00000000 Binary files a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index d5f1c8d3..00000000 Binary files a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 4d6372ee..00000000 Binary files a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ diff --git a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/values-night/styles.xml b/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/values-night/styles.xml deleted file mode 100644 index 06952be7..00000000 --- a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/values-night/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - diff --git a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/values/styles.xml b/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/values/styles.xml deleted file mode 100644 index cb1ef880..00000000 --- a/packages/wyatt_authentication_bloc/example_router/android/app/src/main/res/values/styles.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - diff --git a/packages/wyatt_authentication_bloc/example_router/android/app/src/profile/AndroidManifest.xml b/packages/wyatt_authentication_bloc/example_router/android/app/src/profile/AndroidManifest.xml deleted file mode 100644 index 4ee1d947..00000000 --- a/packages/wyatt_authentication_bloc/example_router/android/app/src/profile/AndroidManifest.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/packages/wyatt_authentication_bloc/example_router/android/build.gradle b/packages/wyatt_authentication_bloc/example_router/android/build.gradle deleted file mode 100644 index 9192654d..00000000 --- a/packages/wyatt_authentication_bloc/example_router/android/build.gradle +++ /dev/null @@ -1,34 +0,0 @@ -buildscript { - ext.kotlin_version = '1.6.10' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' - // START: FlutterFire Configuration - classpath 'com.google.gms:google-services:4.3.10' - // END: FlutterFire Configuration - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - -allprojects { - repositories { - google() - mavenCentral() - } -} - -rootProject.buildDir = '../build' -subprojects { - project.buildDir = "${rootProject.buildDir}/${project.name}" -} -subprojects { - project.evaluationDependsOn(':app') -} - -task clean(type: Delete) { - delete rootProject.buildDir -} diff --git a/packages/wyatt_authentication_bloc/example_router/android/gradle.properties b/packages/wyatt_authentication_bloc/example_router/android/gradle.properties deleted file mode 100644 index 94adc3a3..00000000 --- a/packages/wyatt_authentication_bloc/example_router/android/gradle.properties +++ /dev/null @@ -1,3 +0,0 @@ -org.gradle.jvmargs=-Xmx1536M -android.useAndroidX=true -android.enableJetifier=true diff --git a/packages/wyatt_authentication_bloc/example_router/android/gradle/wrapper/gradle-wrapper.properties b/packages/wyatt_authentication_bloc/example_router/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index cc5527d7..00000000 --- a/packages/wyatt_authentication_bloc/example_router/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Fri Jun 23 08:50:38 CEST 2017 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip diff --git a/packages/wyatt_authentication_bloc/example_router/android/settings.gradle b/packages/wyatt_authentication_bloc/example_router/android/settings.gradle deleted file mode 100644 index 44e62bcf..00000000 --- a/packages/wyatt_authentication_bloc/example_router/android/settings.gradle +++ /dev/null @@ -1,11 +0,0 @@ -include ':app' - -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() - -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } - -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/packages/wyatt_authentication_bloc/example_router/lib/main.dart b/packages/wyatt_authentication_bloc/example_router/lib/main.dart deleted file mode 100644 index 06b15c7c..00000000 --- a/packages/wyatt_authentication_bloc/example_router/lib/main.dart +++ /dev/null @@ -1,6 +0,0 @@ -import 'package:example_router/bootstrap.dart'; -import 'package:example_router/presentation/features/app/app.dart'; - -void main() { - bootstrap(App.new); -} diff --git a/packages/wyatt_authentication_bloc/example_router/pubspec.yaml b/packages/wyatt_authentication_bloc/example_router/pubspec.yaml deleted file mode 100644 index 3d087b93..00000000 --- a/packages/wyatt_authentication_bloc/example_router/pubspec.yaml +++ /dev/null @@ -1,108 +0,0 @@ -name: example_router -description: A new Flutter project. - -# The following line prevents the package from being accidentally published to -# pub.dev using `flutter pub publish`. This is preferred for private packages. -publish_to: 'none' # Remove this line if you wish to publish to pub.dev - -# The following defines the version and build number for your application. -# A version number is three numbers separated by dots, like 1.2.43 -# followed by an optional build number separated by a +. -# Both the version and the builder number may be overridden in flutter -# build by specifying --build-name and --build-number, respectively. -# In Android, build-name is used as versionName while build-number used as versionCode. -# Read more about Android versioning at https://developer.android.com/studio/publish/versioning -# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. -# Read more about iOS versioning at -# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.0+1 - -environment: - sdk: ">=2.17.6 <3.0.0" - -# Dependencies specify other packages that your package needs in order to work. -# To automatically upgrade your package dependencies to the latest versions -# consider running `flutter pub upgrade --major-versions`. Alternatively, -# dependencies can be manually updated by changing the version numbers below to -# the latest version available on pub.dev. To see which dependencies have newer -# versions available, run `flutter pub outdated`. -dependencies: - flutter: - sdk: flutter - - go_router: ^5.1.5 - firebase_core: ^2.1.1 - flutter_bloc: ^8.1.1 - get_it: ^7.2.0 - - wyatt_authentication_bloc: - path: "../" - - wyatt_form_bloc: - hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/ - version: 0.1.0+1 - - wyatt_architecture: - hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/ - version: 0.0.2 - - wyatt_type_utils: - hosted: https://git.wyatt-studio.fr/api/packages/Wyatt-FOSS/pub/ - version: 0.0.3+1 - - # The following adds the Cupertino Icons font to your application. - # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^1.0.5 - -dev_dependencies: - flutter_test: - sdk: flutter - - # The "flutter_lints" package below contains a set of recommended lints to - # encourage good coding practices. The lint set provided by the package is - # activated in the `analysis_options.yaml` file located at the root of your - # package. See that file for information about deactivating specific lint - # rules and activating additional ones. - flutter_lints: ^2.0.0 - -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter packages. -flutter: - - # The following line ensures that the Material Icons font is - # included with your application, so that you can use the icons in - # the material Icons class. - uses-material-design: true - - # To add assets to your application, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware - - # For details regarding adding assets from package dependencies, see - # https://flutter.dev/assets-and-images/#from-packages - - # To add custom fonts to your application, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts from package dependencies, - # see https://flutter.dev/custom-fonts/#from-packages diff --git a/packages/wyatt_authentication_bloc/example_router/test/widget_test.dart b/packages/wyatt_authentication_bloc/example_router/test/widget_test.dart deleted file mode 100644 index e69de29b..00000000