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
A route's animation never has a value between 0 and 1: it is 0 while the platform's push runs, then jumps to 1 when it ends. So a PageRouteBuilder.transitionsBuilder other than a plain fade or slide can't run (the platform's push is used instead), and nothing on a page can follow its own entrance. The docs do say "its value is 0 or 1" (ModalRoute.animation, _RouteTransitionAnimation), so this is the documented behaviour; we're filing it because it is the one gap that blocks Dart-built transitions entirely.
Setup, all in lib/repros/03_route_animation_values.dart: Push pushes a PageRouteBuilder with transitionDuration: 1500 ms and a ScaleTransition. The pushed page samples the route's animation every 16 ms and lists every value and status change with its time since the push. As a control for the sampler, it runs its own AnimationController over the same 1500 ms and counts the distinct values it sees.
- Clone the reproduction repo linked above and run
dn runon an iOS simulator (seen on the iPhone Air, iOS 26.5 simulator). - Tap 03 ModalRoute.animation is only 0 or 1.
- Tap Push (PageRouteBuilder + ScaleTransition) and wait 3 s.
- Observe: the page slides in with the platform's push instead of scaling. The route's value is
0.000at +67 ms and1.000at +536 ms, with nothing in between; the status goesforwardat +21 ms andcompletedat +527 ms (the platform's push, not the 1500 ms asked for). The control controller shows 91 distinct values over the same time.
Expected (as in Flutter): the page scales in over 1.5 s, and the route's value climbs from 0 to 1 in many steps.
Two ways this could work: with transition: RouteTransition.none, run the route's animation as a Dart AnimationController over transitionDuration and build transitionsBuilder every frame; or drive the value from the platform's transition (sampling the transition coordinator each frame). Either would let a page time its own entrance against the real transition.
In a real app we time a detail page's entrance with our own clock and a guessed slide length (about 450 to 500 ms after the page's first frame), measured on a debug simulator build, which a slower phone can get wrong.
Screenshots or video
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