Skip to content

Commit b28320e

Browse files
committed
msglist: Use directional positioning for unread marker in RTL.
1 parent 3ae958e commit b28320e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

lib/widgets/message_list.dart

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,9 +1639,9 @@ class _UnreadMarker extends StatelessWidget {
16391639
return Stack(
16401640
children: [
16411641
child,
1642-
Positioned(
1642+
PositionedDirectional(
16431643
top: 0,
1644-
left: 0,
1644+
start: 0,
16451645
bottom: 0,
16461646
width: 4,
16471647
child: AnimatedOpacity(
@@ -1653,13 +1653,20 @@ class _UnreadMarker extends StatelessWidget {
16531653
child: DecoratedBox(
16541654
decoration: BoxDecoration(
16551655
color: messageListTheme.unreadMarker,
1656-
border: Border(left: BorderSide(
1656+
border: BorderDirectional(start: BorderSide(
16571657
width: 1,
1658-
color: messageListTheme.unreadMarkerGap)))))),
1659-
]);
1658+
color: messageListTheme.unreadMarkerGap,
1659+
)),
1660+
),
1661+
),
1662+
),
1663+
),
1664+
],
1665+
);
16601666
}
16611667
}
16621668

1669+
16631670
class StreamMessageRecipientHeader extends StatelessWidget {
16641671
const StreamMessageRecipientHeader({
16651672
super.key,

0 commit comments

Comments
 (0)