Skip to content

Commit e677dd0

Browse files
committed
msglist: Fix recipient header date alignment for RTL layouts
Switch to EdgeInsetsDirectional.fromSTEB from EdgeInserts.fromLTRB for recipent header date, it fixes the alignment in RTL layouts.
1 parent fa947a1 commit e677dd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/message_list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,7 @@ class RecipientHeaderDate extends StatelessWidget {
19531953
@override
19541954
Widget build(BuildContext context) {
19551955
return Padding(
1956-
padding: const EdgeInsets.fromLTRB(10, 0, 16, 0),
1956+
padding: const EdgeInsetsDirectional.fromSTEB(10, 0, 16, 0),
19571957
child: DateText(
19581958
fontSize: 16,
19591959
// In Figma this has a line-height of 19, but using 18

0 commit comments

Comments
 (0)