Skip to content

Commit

Permalink
Fixed convoluted text centering in app bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Dec 2, 2023
1 parent c22665c commit 81a5860
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/widgets/custom_appbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,19 @@ class CustomAppBar extends AppBar {
],
title: _WindowDragArea(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.max,
children: [
Expanded(child: Center(child: Text(titleText))),
const SizedBox(width: 365),
const Spacer(flex: 5),
Expanded(
flex: 4,
child: Text(
titleText,
textAlign: TextAlign.center,
overflow: TextOverflow.visible,
),
),
const Spacer(flex: 14),
],
),
),
Expand Down

0 comments on commit 81a5860

Please sign in to comment.