Repository navigation
Description
Select your plan
Standard - priority support
Confirmations
- I searched the existing issues and this is not a duplicate.
Framework or plugin?
Framework
Plugin name and version
No response
Platform
iOS
Public reproduction repo
Steps to reproduce
When a sheet is popped, its route's animation goes reverse and then dismissed within about 40 ms, while the sheet is still sliding down. The ModalRoute.animation docs say "reverse while it leaves, dismissed once gone". Pages get this right: popping a PageRoute, on the app's stack or on a Navigator widget, reports dismissed about 490 ms after the pop, when the slide has ended.
Setup, all in lib/repros/04_pop_reports_at_start.dart: each button pushes a route and listens to its animation status and its popped future. The log shows each event with its time since the push (push +ms) and since Navigator.pop was called (pop +ms).
- Clone the reproduction repo linked above and run
dn runon an iOS simulator (seen on the iPhone Air, iOS 26.5 simulator). - Tap 04 A sheet reports dismissed at its start.
- Tap Open sheet (a
ModalSheetRouteatSheetDetent.medium), then Close in the sheet (it callsNavigator.of(sheetContext).pop()). - Observe the log:
pop +34 status reverse,pop +41 status dismissed,pop +107 route.popped done. The screenshot is from a screen recording: the log already readsdismissedwhile most of the sheet is still on screen. - Control: tap Open page in the nested Navigator (or Open page), then Back. The log reads
pop +0 status reverseandpop +487 status dismissed, when the page has gone.
Expected: for the sheet too, dismissed once the sheet has left the screen.
Related: there is no public "transition finished" hook to wait on instead. NavigatorObserver has didPush, didPop, didRemove, didReplace and the user-gesture pair, but nothing like didSettle, although the platform reports settles internally (NestedNavigatorHost.onSettled, the sheet binding's onDismissed). Either a correct dismissed for sheets or an observer callback would do. #102 asked for the same thing for pops; #32 is the related sheet-dismissal Future bug.
In a real app, a pick in a bottom sheet often opens a page as the sheet closes, and we don't want to push while the sheet is still going away. Today we wait a fixed 600 ms after every sheet closes; with a correct status, or a settle callback, we could wait exactly as long as needed.
Screenshots or video
Bug: sheet, dismissed logged while it is still on screen |
Control: page pop in a nested Navigator |
|---|---|
![]() |
![]() |
Logs
No response
dn doctor output
[!] DartNative (Channel stable, 1.10.0, on macOS 26.6 25G72 darwin-arm64, locale en-CA) [499ms]
• DartNative version 1.10.0 on channel stable at ~/zero
! Warning: `flutter` on your path resolves to ~/Flutter/flutter/bin/flutter, which is not inside your current DartNative SDK checkout at ~/zero. Consider adding ~/zero/bin to the front of your path.
! Warning: `dart` on your path resolves to ~/Flutter/flutter/bin/dart, which is not inside your current DartNative SDK checkout at ~/zero. Consider adding ~/zero/bin to the front of your path.
• Downloaded from https://cdn.dartnative.com; "dn upgrade" moves it to the newest release, "dn releases" lists the others
• Framework revision bdfb466e6d1 (4 days ago), 2026-11-24 15:36:11 +0100
• Framework edition b2263be6a0167213
• Engine revision de099f669f
• Dart version 3.12.0 (build 3.12.0-192.0.dev)
• DevTools version 2.55.0
• DartNative download mirror https://cdn.dartnative.com
• Feature flags: enable-android, enable-ios, cli-animations, enable-native-assets, enable-lldb-debugging, enable-uiscene-migration
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[!] Xcode - develop for iOS and macOS (Xcode 27.2) [938ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 27B52
! iOS 27.2 Simulator not installed; this may be necessary for iOS and macOS development.
To download and install the platform, open Xcode, select Xcode > Settings > Components,
and click the GET button for the required platform.
For more information, please visit:
https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes
• CocoaPods version 1.16.2


Activity