Skip to content

iOS: pushing onto a tab's Navigator while the previous pop is still animating blanks the tab #102

Backlog

Description

@tayormi

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

https://github.com/tayormi/dn-tab-navigator-repro

Steps to reproduce

A push onto a tab's Navigator while the previous screen is still sliding out (its pop transition is in flight) makes that tab lose its first route. The tab goes blank except for the tab bar, and stays blank until the app is relaunched.

Setup (all in lib/main.dart): a Scaffold with a BottomNavigationBar and an IndexedStack of two tabs. Each tab has its own Navigator (by GlobalKey) whose first route is a PageRoute.

  1. Clone the reproduction repo linked above and run dn run on an iOS simulator (seen on the iPhone Air, iOS 26.5 simulator).
  2. On the Home tab, tap Open details.
  3. On Details, tap Back, then push again in 300 ms (bug). It calls navigator.pop(), then pushes Details again 300 ms later.
  4. Observe: the Home tab is blank, with only the tab bar drawn. It stays blank. Switching to Other and back doesn't restore it, while the Other tab keeps working.

Expected: Details slides back in over Home's first screen. Or, at the least, Home's first screen stays.

Control: Back, then push again in 1000 ms (works) does the same thing after the pop has finished, and Details comes back as expected. The bug happened every time I tried it (3 out of 3, on both tabs).

In a real app this comes from ordinary quick taps: Back, then straight away a button on the revealed screen that pushes another screen. Our workaround holds every push until about 0.9 s after the last pop. On the simulator, a push 0.50 s after a pop still blanked the tab, and one 0.63 s after did not. A way to know when a route's pop transition has finished would also let us wait exactly that long.

Screenshots or video

Before (Details) After tapping "300 ms"
Details Blank tab

Logs

No response

dn doctor output

[!] DartNative (Channel stable, 1.10.0, on macOS 26.6 25G72 darwin-arm64, locale en-CA) [366ms]
    • 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 (3 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.

[!] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [541ms]
    • Android SDK at ~/Library/Android/sdk
    • Emulator version 36.4.9.0 (build_id 14788078) (CL:N/A)
    ✗ cmdline-tools component is missing.
      Try installing or updating Android Studio.
      Alternatively, download the tools from https://developer.android.com/studio#command-line-tools-only and make sure to set the ANDROID_HOME environment variable.
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `dn doctor --android-licenses` to accept the SDK licenses.
      See https://developer.android.com/studio for more details.

[!] Xcode - develop for iOS and macOS (Xcode 27.2) [744ms]
    • 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

[✓] Connected device (1 shown) [5.9s]
    • iPhone Air (mobile)            • BC45A4FF-8E91-4CFA-94F6-A89F87FAF01A • ios • com.apple.CoreSimulator.SimRuntime.iOS-26-5 (simulator)

[✓] Network resources [349ms]
    • All expected network resources are available.

! Doctor found issues in 3 categories.

Activity

  1. gabrijm commented on Nov 28, 2026

    @gabrijm
    Contributor

    Hi Tayormi, thank you for reporting this. We’ll review it and get back to you soon.

  2. added
    P1
    on Nov 28, 2026
  3. gabrijm commented on Nov 28, 2026

    @gabrijm
    Contributor

    Thanks for sharing the reproduction app. It helped us quickly identify the issue.

    We've fixed it in DartNative 1.10.1, coming soon. Once you upgrade, you can remove the delay before your pushes.

    We apologize for the inconvenience, and thanks for helping us improve DartNative!

  4. added
    next-release
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedP1next-release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions