From d782c86a69eae3489e261060c7eacf63eb2da9d0 Mon Sep 17 00:00:00 2001 From: sahani-deriv <125638269+sahani-deriv@users.noreply.github.com> Date: Fri, 17 Nov 2023 18:18:34 +0800 Subject: [PATCH] fix: spacing after social flag --- .../src/features/login/layouts/deriv_login_layout.dart | 8 +++++--- .../src/features/signup/layouts/deriv_signup_layout.dart | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/deriv_auth_ui/lib/src/features/login/layouts/deriv_login_layout.dart b/packages/deriv_auth_ui/lib/src/features/login/layouts/deriv_login_layout.dart index 9411180cb..0bdb7ae3d 100644 --- a/packages/deriv_auth_ui/lib/src/features/login/layouts/deriv_login_layout.dart +++ b/packages/deriv_auth_ui/lib/src/features/login/layouts/deriv_login_layout.dart @@ -119,13 +119,15 @@ class _DerivLoginLayoutState extends State { label: context.localization.informLoginOptions, isVisible: widget.isSocialAuthEnabled, ), - const SizedBox(height: ThemeProvider.margin24), + if (widget.isSocialAuthEnabled) + const SizedBox(height: ThemeProvider.margin24), DerivSocialAuthPanel( onSocialAuthButtonPressed: widget.onSocialAuthButtonPressed, - isEnabled: widget.isSocialAuthEnabled, + isVisible: widget.isSocialAuthEnabled, ), - const SizedBox(height: ThemeProvider.margin24), + if (widget.isSocialAuthEnabled) + const SizedBox(height: ThemeProvider.margin24), _buildFooterSection(), ], ), diff --git a/packages/deriv_auth_ui/lib/src/features/signup/layouts/deriv_signup_layout.dart b/packages/deriv_auth_ui/lib/src/features/signup/layouts/deriv_signup_layout.dart index a09037eda..2a34b8396 100644 --- a/packages/deriv_auth_ui/lib/src/features/signup/layouts/deriv_signup_layout.dart +++ b/packages/deriv_auth_ui/lib/src/features/signup/layouts/deriv_signup_layout.dart @@ -121,14 +121,16 @@ class _DerivSignupLayoutState extends State { label: context.localization.labelOrSignUpWith, isVisible: widget.isSocialAuthEnabled, ), - const SizedBox(height: ThemeProvider.margin24), + if (widget.isSocialAuthEnabled) + const SizedBox(height: ThemeProvider.margin24), DerivSocialAuthPanel( isEnabled: !isReferralEnabled, onSocialAuthButtonPressed: widget.onSocialAuthButtonPressed, isVisible: widget.isSocialAuthEnabled, ), - const SizedBox(height: ThemeProvider.margin24), + if (widget.isSocialAuthEnabled) + const SizedBox(height: ThemeProvider.margin24), _buildFooterSection(), ], ),