File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,9 @@ class _AnimatedUnread extends StatelessWidget {
635
635
opacity: isRead ? 0 : 1 ,
636
636
// Web uses 2s and 0.3s durations, and a CSS ease-out curve.
637
637
// 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 ),
639
641
curve: Curves .easeOut,
640
642
child: child);
641
643
}
Original file line number Diff line number Diff line change @@ -657,7 +657,9 @@ void main() {
657
657
..status.equals (AnimationStatus .dismissed);
658
658
659
659
final frames = await tester.pumpAndSettle ();
660
- check (frames).isGreaterThan (1 );
660
+ // equals 1 when animation duration is 100ms
661
+ // and increases as duration does.
662
+ check (frames).isGreaterOrEqual (1 );
661
663
check (getAnimation (tester, message.id))
662
664
..value.equals (0.0 )
663
665
..status.equals (AnimationStatus .completed);
You can’t perform that action at this time.
0 commit comments