Skip to content

Commit

Permalink
💄 Flexible example title
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 26, 2024
1 parent dd15229 commit 5cf18b0
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions example/lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,31 @@ class _MyHomePageState extends State<HomePage> {
),
),
const SizedBox(width: 10),
Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Semantics(
sortKey: const OrdinalSortKey(0),
child: Text(
context.l10n.appTitle,
style: Theme.of(context).textTheme.titleLarge,
Flexible(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Semantics(
sortKey: const OrdinalSortKey(0),
child: Text(
context.l10n.appTitle,
style: Theme.of(context).textTheme.titleLarge,
overflow: TextOverflow.fade,
maxLines: 1,
),
),
),
Semantics(
sortKey: const OrdinalSortKey(0.1),
child: Text(
context.l10n.appVersion(
packageVersion ?? context.l10n.appVersionUnknown,
Semantics(
sortKey: const OrdinalSortKey(0.1),
child: Text(
context.l10n.appVersion(
packageVersion ?? context.l10n.appVersionUnknown,
),
style: Theme.of(context).textTheme.bodySmall,
),
style: Theme.of(context).textTheme.bodySmall,
),
),
],
],
),
),
const SizedBox(width: 20),
],
Expand Down

0 comments on commit 5cf18b0

Please sign in to comment.