Skip to content

Commit 5cf18b0

Browse files
committed
💄 Flexible example title
1 parent dd15229 commit 5cf18b0

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

example/lib/pages/home_page.dart

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,27 +50,31 @@ class _MyHomePageState extends State<HomePage> {
5050
),
5151
),
5252
const SizedBox(width: 10),
53-
Column(
54-
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
55-
crossAxisAlignment: CrossAxisAlignment.start,
56-
children: <Widget>[
57-
Semantics(
58-
sortKey: const OrdinalSortKey(0),
59-
child: Text(
60-
context.l10n.appTitle,
61-
style: Theme.of(context).textTheme.titleLarge,
53+
Flexible(
54+
child: Column(
55+
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
56+
crossAxisAlignment: CrossAxisAlignment.start,
57+
children: <Widget>[
58+
Semantics(
59+
sortKey: const OrdinalSortKey(0),
60+
child: Text(
61+
context.l10n.appTitle,
62+
style: Theme.of(context).textTheme.titleLarge,
63+
overflow: TextOverflow.fade,
64+
maxLines: 1,
65+
),
6266
),
63-
),
64-
Semantics(
65-
sortKey: const OrdinalSortKey(0.1),
66-
child: Text(
67-
context.l10n.appVersion(
68-
packageVersion ?? context.l10n.appVersionUnknown,
67+
Semantics(
68+
sortKey: const OrdinalSortKey(0.1),
69+
child: Text(
70+
context.l10n.appVersion(
71+
packageVersion ?? context.l10n.appVersionUnknown,
72+
),
73+
style: Theme.of(context).textTheme.bodySmall,
6974
),
70-
style: Theme.of(context).textTheme.bodySmall,
7175
),
72-
),
73-
],
76+
],
77+
),
7478
),
7579
const SizedBox(width: 20),
7680
],

0 commit comments

Comments
 (0)