Skip to content

Commit 5aa9e77

Browse files
yash-agarwa-lgnprice
authored andcommitted
msglist: Fix recipient header date alignment for RTL layouts
Switch to EdgeInsetsDirectional from EdgeInserts for recipent header date, it fixes the alignment in RTL layouts. Fixes the issue described here: zulip#1991 (comment)
1 parent d75373b commit 5aa9e77

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
@@ -1975,7 +1975,7 @@ class RecipientHeaderDate extends StatelessWidget {
19751975
@override
19761976
Widget build(BuildContext context) {
19771977
return Padding(
1978-
padding: const EdgeInsets.fromLTRB(10, 0, 16, 0),
1978+
padding: const EdgeInsetsDirectional.fromSTEB(10, 0, 16, 0),
19791979
child: DateText(
19801980
fontSize: 16,
19811981
// In Figma this has a line-height of 19, but using 18

0 commit comments

Comments
 (0)