From ce0bc821b931ed2413b86e492b4681abd71513d2 Mon Sep 17 00:00:00 2001 From: mike doornenbal Date: Wed, 14 Aug 2024 14:30:47 +0200 Subject: [PATCH] fix: forgotpassword button added padding to the forgotpassword button --- CHANGELOG.md | 4 ++++ lib/src/config/login_options.dart | 35 +++++++++++++++++-------------- pubspec.yaml | 2 +- 3 files changed, 24 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed09701..c7ccb7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 7.1.2 + +* Added padding to the forgotpasswordRequestButton + ## 7.1.1 * Changed default theme diff --git a/lib/src/config/login_options.dart b/lib/src/config/login_options.dart index b9844be..d2c8016 100644 --- a/lib/src/config/login_options.dart +++ b/lib/src/config/login_options.dart @@ -250,22 +250,25 @@ Widget _createRequestForgotPasswordButton( ) => Opacity( opacity: disabled ? 0.5 : 1.0, - child: InkWell( - onTap: !disabled ? onPressed : onDisabledPress, - child: Container( - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(20), - color: const Color(0xff71C6D1), - ), - height: 44, - width: 254, - child: Center( - child: Text( - options.translations.requestForgotPasswordButton, - style: const TextStyle( - fontWeight: FontWeight.w800, - fontSize: 20, - color: Colors.white, + child: Padding( + padding: const EdgeInsets.only(top: 8), + child: InkWell( + onTap: !disabled ? onPressed : onDisabledPress, + child: Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(20), + color: const Color(0xff71C6D1), + ), + height: 44, + width: 254, + child: Center( + child: Text( + options.translations.requestForgotPasswordButton, + style: const TextStyle( + fontWeight: FontWeight.w800, + fontSize: 20, + color: Colors.white, + ), ), ), ), diff --git a/pubspec.yaml b/pubspec.yaml index eae311d..9b2e28d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_login description: Flutter Login Component -version: 7.1.1 +version: 7.1.2 publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub