zulip/zulip-flutter

tests: Get route-transition duration robustly, instead of hard-coding

Open

#1.668 geöffnet am 4. Juli 2025

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Dart (456 Forks)github user discovery
a-testshelp wanted

Repository-Metriken

Stars
 (454 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 25T 15h) (22 gemergte PRs in 30 T)

Beschreibung

When https://github.com/flutter/flutter/pull/171109 lands, we should use the new TransitionDurationObserver instead of hard-coding what we expect a transition duration to be, e.g. in code like this:

            // sheet appears onscreen; default duration of bottom-sheet enter animation
            await tester.pump(const Duration(milliseconds: 250));

Once that's the norm instead of the exception, we can close this issue.

Contributor Guide