Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2

updates:
- package-ecosystem: "pub"
directory: "packages/firebase_user_repository"
schedule:
interval: "weekly"

- package-ecosystem: "pub"
directory: "packages/flutter_user"
schedule:
interval: "weekly"

- package-ecosystem: "pub"
directory: "packages/rest_user_repository"
schedule:
interval: "weekly"

- package-ecosystem: "pub"
directory: "packages/user_repository_interface"
schedule:
interval: "weekly"
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 7.0.0
- Fixed a bug with registration errors still triggering the success callback.
- Made all translations required in the constructor of ForgotPasswordTranslations and LoginTranslations.
- Removed the default values for colors in the LoginOptions, RegistrationOptions, and ForgotPasswordOptions.
- Added rest_user_repository package which is a REST implementation of the UserRepositoryInterface.
- Changed afterLoginScreen to a nullable Widget so a screen isn't automatically pushed after login.
- Moved the RegistrationOptions and ForgotPasswordOptions to the FlutterUserOptions.
- Changed the image option for the Login page to the top of the screen.

## 6.4.0

- Added proper use of exceptions for all auth methods.
Expand Down
4 changes: 2 additions & 2 deletions packages/firebase_user_repository/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: firebase_user_repository
description: "firebase_user_repository for flutter_user package"
version: 6.4.0
version: 7.0.0
repository: https://github.com/Iconica-Development/flutter_user

publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub
Expand All @@ -14,7 +14,7 @@ dependencies:
sdk: flutter
user_repository_interface:
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub/
version: ^6.4.0
version: ^7.0.0
cloud_firestore: ^5.4.2
firebase_auth: ^5.3.0

Expand Down
32 changes: 22 additions & 10 deletions packages/flutter_user/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,29 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) => MaterialApp(
title: "flutter_user Example",
theme: theme,
home: FlutterUserNavigatorUserstory(
afterLoginScreen: const Home(),
options: FlutterUserOptions(
loginOptions: const LoginOptions(
biometricsOptions: LoginBiometricsOptions(
loginWithBiometrics: true,
),
home: const UserstoryScreen(),
);
}

class UserstoryScreen extends StatelessWidget {
const UserstoryScreen({super.key});

@override
Widget build(BuildContext context) => FlutterUserNavigatorUserstory(
afterLoginScreen: const Home(),
options: FlutterUserOptions(
loginOptions: const LoginOptions(
biometricsOptions: LoginBiometricsOptions(
loginWithBiometrics: true,
),
translations: LoginTranslations.empty(
loginTitle: "Login",
loginButton: "Log in",
loginSubtitle: "Welcome back!",
),
),
forgotPasswordOptions: const ForgotPasswordOptions(),
registrationOptions: RegistrationOptions(),
),
);
}
Expand All @@ -39,9 +53,7 @@ class Home extends StatelessWidget {
onPressed: () async => Navigator.pushReplacement(
context,
MaterialPageRoute(
builder: (context) => const FlutterUserNavigatorUserstory(
afterLoginScreen: Home(),
),
builder: (context) => const UserstoryScreen(),
),
),
child: const Text("Logout"),
Expand Down
14 changes: 7 additions & 7 deletions packages/flutter_user/lib/flutter_user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ export "src/models/image_picker_theme.dart";
export "src/models/login/login_options.dart";
export "src/models/login/login_spacer_options.dart";
export "src/models/login/login_translations.dart";
export "src/models/registration/auth_action.dart";
export "src/models/registration/auth_bool_field.dart";
export "src/models/registration/auth_drop_down.dart";
export "src/models/registration/auth_field.dart";
export "src/models/registration/auth_pass_field.dart";
export "src/models/registration/auth_step.dart";
export "src/models/registration/auth_text_field.dart";
export "src/models/registration/auth/auth_action.dart";
export "src/models/registration/auth/auth_bool_field.dart";
export "src/models/registration/auth/auth_drop_down.dart";
export "src/models/registration/auth/auth_field.dart";
export "src/models/registration/auth/auth_pass_field.dart";
export "src/models/registration/auth/auth_step.dart";
export "src/models/registration/auth/auth_text_field.dart";
export "src/models/registration/registration_options.dart";
export "src/models/registration/registration_spacer_options.dart";
export "src/models/registration/registration_translations.dart";
Expand Down
Loading