Skip to content

Commit 13e1284

Browse files
committed
msglist [nfc]: Explain an odd-looking Center widget that we want to keep
Looks like I explained the Center widget in the commit message that added it -- ef02ee4 -- but I think the comment is helpful. At first, it looked like another case of a no-op Center widget like in the previous commit, but it turns out it does have a desirable effect in the horizontal axis.
1 parent 407abc7 commit 13e1284

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/widgets/message_list.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ class _MessageListState extends State<MessageList> with PerAccountStoreAwareStat
467467
// will have a `MediaQuery.removePadding` with `removeBottom: true`.
468468
bottom: false,
469469

470+
// (center horizontally on wide screens; a no-op in the vertical direction)
470471
child: Center(
471472
child: ConstrainedBox(
472473
constraints: const BoxConstraints(maxWidth: 760),

0 commit comments

Comments
 (0)