From fe554230b693586a26a8dce33752480f878321a2 Mon Sep 17 00:00:00 2001 From: stopflock Date: Tue, 30 Sep 2025 13:54:05 -0500 Subject: [PATCH] Constrain button bar width --- lib/screens/home_screen.dart | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dart index 3d59244..b3d9e9c 100644 --- a/lib/screens/home_screen.dart +++ b/lib/screens/home_screen.dart @@ -205,21 +205,23 @@ class _HomeScreenState extends State with TickerProviderStateMixin { left: 8, right: 8, ), - child: Container( - decoration: BoxDecoration( - color: Theme.of(context).colorScheme.surface, - borderRadius: BorderRadius.circular(16), - boxShadow: [ - BoxShadow( - color: Theme.of(context).shadowColor.withOpacity(0.3), - blurRadius: 10, - offset: Offset(0, -2), - ) - ], - ), - margin: EdgeInsets.only(bottom: kBottomButtonBarOffset), - padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 6), - child: Row( + child: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 600), // Match typical sheet width + child: Container( + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.surface, + borderRadius: BorderRadius.circular(16), + boxShadow: [ + BoxShadow( + color: Theme.of(context).shadowColor.withOpacity(0.3), + blurRadius: 10, + offset: Offset(0, -2), + ) + ], + ), + margin: EdgeInsets.only(bottom: kBottomButtonBarOffset), + padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 6), + child: Row( children: [ Expanded( child: AnimatedBuilder( @@ -256,6 +258,7 @@ class _HomeScreenState extends State with TickerProviderStateMixin { ], ), ), + ), ), ), ],