From 37f45755fbbd4c3d6de77c624627ec99af71e2b5 Mon Sep 17 00:00:00 2001 From: mike doornenbal Date: Fri, 16 Aug 2024 09:20:06 +0200 Subject: [PATCH] fix: styling --- CHANGELOG.md | 5 +++++ lib/src/config/login_options.dart | 6 +++--- lib/src/widgets/forgot_password_form.dart | 4 +++- pubspec.yaml | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c7ccb7d..535383d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 7.1.3 + +* Fixed forgotpassword description line height. +* Fixed default text. + ## 7.1.2 * Added padding to the forgotpasswordRequestButton diff --git a/lib/src/config/login_options.dart b/lib/src/config/login_options.dart index d2c8016..9226692 100644 --- a/lib/src/config/login_options.dart +++ b/lib/src/config/login_options.dart @@ -161,9 +161,9 @@ class LoginOptions { class LoginTranslations { const LoginTranslations({ - this.emailEmpty = 'Email is required', - this.passwordEmpty = 'Password is required', - this.emailInvalid = 'Enter a valid email address', + this.emailEmpty = 'Please enter your email address', + this.passwordEmpty = 'Please enter your password', + this.emailInvalid = 'Please enter a valid email address', this.loginButton = 'Log in', this.forgotPasswordButton = 'Forgot password?', this.requestForgotPasswordButton = 'Send link', diff --git a/lib/src/widgets/forgot_password_form.dart b/lib/src/widgets/forgot_password_form.dart index 3928fd5..8d98d4c 100644 --- a/lib/src/widgets/forgot_password_form.dart +++ b/lib/src/widgets/forgot_password_form.dart @@ -110,7 +110,9 @@ class _ForgotPasswordFormState extends State { alignment: Alignment.topCenter, child: wrapWithDefaultStyle( widget.description, - theme.textTheme.bodyMedium, + theme.textTheme.bodyMedium?.copyWith( + height: 1.4, + ), ), ), if (options diff --git a/pubspec.yaml b/pubspec.yaml index 9b2e28d..18bab5b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_login description: Flutter Login Component -version: 7.1.2 +version: 7.1.3 publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub