From 3a06c36ec4dea8a82f221972eac398ecb3a55c8f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Feb 2026 23:51:49 +0000 Subject: [PATCH] Wrap title Column in Expanded to prevent horizontal overflow in AppBarTitle Co-authored-by: wel97459 <12990640+wel97459@users.noreply.github.com> --- lib/widgets/app_bar.dart | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/lib/widgets/app_bar.dart b/lib/widgets/app_bar.dart index aae0526..7a600cc 100644 --- a/lib/widgets/app_bar.dart +++ b/lib/widgets/app_bar.dart @@ -19,19 +19,25 @@ class AppBarTitle extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.start, children: [ leading ?? const SizedBox.shrink(), - Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - leading ?? const SizedBox.shrink(), - Text(title), - if (connector.isConnected && connector.selfName != null) - Center( - child: Text( - '(${connector.selfName})', - style: TextStyle(fontSize: 14, color: Colors.grey[600]), - ), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + leading ?? const SizedBox.shrink(), + Text( + title, + overflow: TextOverflow.ellipsis, ), - ], + if (connector.isConnected && connector.selfName != null) + Center( + child: Text( + '(${connector.selfName})', + style: TextStyle(fontSize: 14, color: Colors.grey[600]), + overflow: TextOverflow.ellipsis, + ), + ), + ], + ), ), const SizedBox(width: 8), Row(