-
Notifications
You must be signed in to change notification settings - Fork 27.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getElementForInheritedWidgetOfExactType return null while reordering item with ReordableListView #88570
Comments
After bisecting,the regression come from 994133c |
HI @woprandi
Check flutter doctor -v[✓] Flutter (Channel stable, 2.2.3, on Linux, locale en_US.UTF-8)
• Flutter version 2.2.3 at /home/taha/Code/flutter_stable
• Framework revision f4abaa0735 (8 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /home/taha/Code/android-sdk
• Platform android-30, build-tools 30.0.3
• ANDROID_SDK_ROOT = /home/taha/Code/android-sdk
• Java binary at: /home/taha/Code/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• Ubuntu clang version 12.0.0-3ubuntu1~21.04.1
• cmake version 3.18.4
• ninja version 1.10.1
• pkg-config version 0.29.2
[✓] Android Studio (version 2020.3)
• Android Studio at /home/taha/Code/android-studio
• Flutter plugin version 58.0.2
• Dart plugin version 203.8292
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[✓] VS Code (version 1.59.1)
• VS Code at /usr/share/code
• Flutter extension version 3.25.0
[✓] Connected device (2 available)
• Linux (desktop) • linux • linux-x64 • Linux
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.159
• No issues found! [✓] Flutter (Channel master, 2.5.0-7.0.pre.187, on Pop!_OS 21.04 5.11.0-7620-generic, locale en_US.UTF-8)
• Flutter version 2.5.0-7.0.pre.187 at /home/taha/Code/flutter_master
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 05bfbbfbec (9 hours ago), 2021-08-22 21:37:03 -0400
• Engine revision 710af46d53
• Dart version 2.15.0 (build 2.15.0-42.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /home/taha/Code/android-sdk
• Platform android-30, build-tools 30.0.3
• ANDROID_SDK_ROOT = /home/taha/Code/android-sdk
• Java binary at: /home/taha/Code/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• Ubuntu clang version 12.0.0-3ubuntu1~21.04.1
• cmake version 3.18.4
• ninja version 1.10.1
• pkg-config version 0.29.2
[✓] Android Studio (version 2020.3)
• Android Studio at /home/taha/Code/android-studio
• Flutter plugin version 58.0.2
• Dart plugin version 203.8292
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[✓] VS Code (version 1.59.1)
• VS Code at /usr/share/code
• Flutter extension version 3.25.0
[✓] Connected device (2 available)
• Linux (desktop) • linux • linux-x64 • Pop!_OS 21.04 5.11.0-7620-generic
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.159
• No issues found!
✅: No Issue ❗️: Issue reproduced |
Any news ? |
It is still reproducible on the master branch. |
Can we have a priority label on this? If not milestone. |
Sorry we haven't had a chance to address this yet. The core problem is that as of 994133c, the reorderable list no longer uses its own So in this case while the Not sure the best way to address this in the framework yet, but for now if you need a workaround you can try one of these options:
|
Steps to Reproduce
See this example
minimal code sample
Each list item widget get the exposed
String
to build withcontext.watch
method (getElementForInheritedWidgetOfExactType
is called under the hood).On all current channels (tested on current stable and master)
getElementForInheritedWidgetOfExactType
now returnsnull
during reorder and throw aProviderNotFoundException
.It works on flutter 2.0.6
Expected results:
getElementForInheritedWidgetOfExactType
return the exposed value during reorderActual results:
getElementForInheritedWidgetOfExactType
returnnull
during reorder (regression)Logs
The text was updated successfully, but these errors were encountered: