mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-26 20:27:30 +10:00
Wrap title Column in Expanded to prevent horizontal overflow in AppBarTitle
Co-authored-by: wel97459 <12990640+wel97459@users.noreply.github.com>
This commit is contained in:
+18
-12
@@ -19,19 +19,25 @@ class AppBarTitle extends StatelessWidget {
|
|||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
leading ?? const SizedBox.shrink(),
|
leading ?? const SizedBox.shrink(),
|
||||||
Column(
|
Expanded(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
child: Column(
|
||||||
children: [
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
leading ?? const SizedBox.shrink(),
|
children: [
|
||||||
Text(title),
|
leading ?? const SizedBox.shrink(),
|
||||||
if (connector.isConnected && connector.selfName != null)
|
Text(
|
||||||
Center(
|
title,
|
||||||
child: Text(
|
overflow: TextOverflow.ellipsis,
|
||||||
'(${connector.selfName})',
|
|
||||||
style: TextStyle(fontSize: 14, color: Colors.grey[600]),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
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),
|
const SizedBox(width: 8),
|
||||||
Row(
|
Row(
|
||||||
|
|||||||
Reference in New Issue
Block a user