Skip to content

TabView can get desynchronized with its tab controller's current index #93237

@agersant

Description

@agersant

Steps to Reproduce

  1. Run this minimal repro on dartpad: https://dartpad.dev/?id=552bae9af960da7b2abd2bbcac0d9254&null_safety=true
  2. Click Tab 2. Observe the app now displays the content of Tab 2 (✔).
  3. Click Toggle Tab 2. Observe the app now displays the content of Tab 1 (✔).
  4. Click Toggle Tab 2 again. Observe the app still displays the content of Tab 1 (✔).
  5. Click Tab 2. Observe the app still displays the content of Tab 1 (❌).

Expected results:

After step 5, the app should display the content of tab 2.

Actual results:

The app still displays the content of tab 1.

Code sample

See https://dartpad.dev/?id=552bae9af960da7b2abd2bbcac0d9254&null_safety=true

Logs
No relevant application log
No issues found! (ran in 34.1s)
[√] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.19042.1288], locale en-US)
    • Flutter version 2.5.3 at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (3 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\agersant\AppData\Local\Android\sdk
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.62.0)
    • VS Code at C:\Users\agersant\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.28.0

[√] Connected device (3 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 12 (API 31) (emulator)
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 95.0.4638.69
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 94.0.992.50
tabview.desync.mp4

Metadata

Metadata

Assignees

Labels

f: material designflutter/packages/flutter/material repository.found in release: 2.5Found to occur in 2.5found in release: 2.6Found to occur in 2.6frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions