diff --git a/b0esche_cloud/lib/pages/home_page.dart b/b0esche_cloud/lib/pages/home_page.dart index 388722d..f0aeea0 100644 --- a/b0esche_cloud/lib/pages/home_page.dart +++ b/b0esche_cloud/lib/pages/home_page.dart @@ -405,42 +405,43 @@ class _HomePageState extends State with TickerProviderStateMixin { backgroundColor: AppTheme.primaryBackground, body: Stack( children: [ - // Top bar: title and nav buttons + // Top bar: title always centered, nav buttons right Positioned( top: 0, left: 0, right: 0, child: Padding( padding: const EdgeInsets.symmetric(horizontal: 32), - child: Row( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - // Left spacer - const Expanded(child: SizedBox()), - // Center: title only - Expanded( - flex: 2, - child: Builder( - builder: (context) { - final screenWidth = MediaQuery.of(context).size.width; - final fontSize = screenWidth < 600 ? 24.0 : 48.0; - return Text( - 'b0esche.cloud', - style: TextStyle( - fontFamily: 'PixelatedElegance', - fontSize: fontSize, - color: AppTheme.primaryText, - decoration: TextDecoration.underline, - decorationColor: AppTheme.primaryText, - fontFeatures: const [FontFeature.slashedZero()], - ), - ); - }, + child: SizedBox( + height: 64, + child: Stack( + alignment: Alignment.center, + children: [ + // Centered title + Align( + alignment: Alignment.center, + child: Builder( + builder: (context) { + final screenWidth = MediaQuery.of( + context, + ).size.width; + final fontSize = screenWidth < 600 ? 24.0 : 48.0; + return Text( + 'b0esche.cloud', + style: TextStyle( + fontFamily: 'PixelatedElegance', + fontSize: fontSize, + color: AppTheme.primaryText, + decoration: TextDecoration.underline, + decorationColor: AppTheme.primaryText, + fontFeatures: const [FontFeature.slashedZero()], + ), + ); + }, + ), ), - ), - // Right: nav buttons - Expanded( - child: Align( + // Right: nav buttons + Align( alignment: Alignment.centerRight, child: BlocBuilder( builder: (context, state) { @@ -467,8 +468,8 @@ class _HomePageState extends State with TickerProviderStateMixin { }, ), ), - ), - ], + ], + ), ), ), ),