From 14abe0b61de08ee7bf19977f5821b3ca14c0739e Mon Sep 17 00:00:00 2001 From: Roscoe Rubin-Rottenberg Date: Sun, 24 May 2026 11:55:50 -0400 Subject: [PATCH] fix: post-overhaul design system tweaks --- .../design_system/components/organisms/bottom_nav_bar.dart | 6 ++++-- lib/src/features/auth/ui/pages/login_page.dart | 3 ++- lib/src/features/auth/ui/pages/register_page.dart | 6 ++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/src/core/design_system/components/organisms/bottom_nav_bar.dart b/lib/src/core/design_system/components/organisms/bottom_nav_bar.dart index 36c42bb..01195ae 100644 --- a/lib/src/core/design_system/components/organisms/bottom_nav_bar.dart +++ b/lib/src/core/design_system/components/organisms/bottom_nav_bar.dart @@ -30,6 +30,7 @@ class SparkBottomNavBar extends ConsumerWidget { mainAxisSize: MainAxisSize.min, children: [ _BarBackground( + isDark: isDark, child: Container( padding: EdgeInsets.only(top: 12, bottom: 12 + bottomPadding), child: Row( @@ -92,12 +93,13 @@ class SparkBottomNavBar extends ConsumerWidget { } class _BarBackground extends StatelessWidget { - const _BarBackground({required this.child}); + const _BarBackground({required this.child, required this.isDark}); final Widget child; + final bool isDark; + @override Widget build(BuildContext context) { final theme = Theme.of(context); - final isDark = theme.brightness == Brightness.dark; return DecoratedBox( decoration: BoxDecoration( diff --git a/lib/src/features/auth/ui/pages/login_page.dart b/lib/src/features/auth/ui/pages/login_page.dart index 241178f..1b91327 100644 --- a/lib/src/features/auth/ui/pages/login_page.dart +++ b/lib/src/features/auth/ui/pages/login_page.dart @@ -378,7 +378,8 @@ class _LoginPageState extends ConsumerState { child: AppButton( label: l10n.buttonContinue, onPressed: isLoading ? null : _initiateOAuth, - size: AppButtonSize.compact, + size: AppButtonSize.medium, + fullWidth: true, ), ), ), diff --git a/lib/src/features/auth/ui/pages/register_page.dart b/lib/src/features/auth/ui/pages/register_page.dart index 1098a0c..f596125 100644 --- a/lib/src/features/auth/ui/pages/register_page.dart +++ b/lib/src/features/auth/ui/pages/register_page.dart @@ -199,7 +199,8 @@ class _RegisterPageState extends ConsumerState { child: AppButton( label: l10n.buttonGetStarted, onPressed: isLoading ? null : _initiateOAuth, - size: AppButtonSize.compact, + size: AppButtonSize.medium, + fullWidth: true, ), ), const SizedBox(height: 12), @@ -207,7 +208,8 @@ class _RegisterPageState extends ConsumerState { label: l10n.buttonHaveAccount, variant: AppButtonVariant.neutral, onPressed: () => context.router.push(const LoginRoute()), - size: AppButtonSize.compact, + size: AppButtonSize.medium, + fullWidth: true, ), const SizedBox(height: 16), ], -- 2.51.2