From 6ee244b8294cc92d30c6158bed48fa8e856c00c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6sche?= Date: Sat, 17 Jan 2026 01:34:02 +0100 Subject: [PATCH] Refactor HomePage layout by simplifying padding and removing duplicate title widget --- b0esche_cloud/lib/pages/home_page.dart | 42 +------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/b0esche_cloud/lib/pages/home_page.dart b/b0esche_cloud/lib/pages/home_page.dart index b6c4f61..b467c94 100644 --- a/b0esche_cloud/lib/pages/home_page.dart +++ b/b0esche_cloud/lib/pages/home_page.dart @@ -411,11 +411,7 @@ class _HomePageState extends State with TickerProviderStateMixin { left: 0, right: 0, child: Padding( - padding: EdgeInsets.only( - top: MediaQuery.of(context).size.width < 600 ? 16 : 24, - left: 32, - right: 32, - ), + padding: const EdgeInsets.symmetric(horizontal: 32), child: Center( child: Row( mainAxisSize: MainAxisSize.min, @@ -740,42 +736,6 @@ class _HomePageState extends State with TickerProviderStateMixin { }, ), ), - // Removed duplicate title Positioned widget - Positioned( - top: MediaQuery.of(context).size.width < 600 ? 40 : 10, - right: 20, - child: BlocBuilder( - builder: (context, state) { - final isLoggedIn = state is AuthAuthenticated; - if (!isLoggedIn) { - return const SizedBox.shrink(); - } - return ScaleTransition( - scale: Tween(begin: 0, end: 1).animate( - CurvedAnimation( - parent: _animationController, - curve: Curves.easeOutBack, - ), - ), - child: Row( - children: [ - _buildNavButton('Drive', Icons.cloud), - const SizedBox(width: 16), - _buildNavButton('Mail', Icons.mail), - const SizedBox(width: 16), - _buildNavButton('Add', Icons.add), - const SizedBox(width: 16), - _buildNavButton( - 'Profile', - Icons.person, - isAvatar: true, - ), - ], - ), - ); - }, - ), - ), ], ), ),