Skip to content

Commit c023ca1

Browse files
committed
msg_list: Use faster fade-out for mark-as-read animations
Fixes part of zulip#613
1 parent 57d560e commit c023ca1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/widgets/message_list.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,9 @@ class _AnimatedUnread extends StatelessWidget {
635635
opacity: isRead ? 0 : 1,
636636
// Web uses 2s and 0.3s durations, and a CSS ease-out curve.
637637
// See zulip:web/styles/message_row.css .
638-
duration: Duration(milliseconds: isRead ? 2000 : 300),
638+
// As of now we wait for the ack from the server
639+
// so we're going with 0.1s as soon as the ack is received.
640+
duration: Duration(milliseconds: isRead ? 100 : 300),
639641
curve: Curves.easeOut,
640642
child: child);
641643
}

0 commit comments

Comments
 (0)