-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Code suggestion for initState/dispose/setState no longer works in Flutter 3 #49027
Comments
I believe that @scheglov has fixed this on HEAD. It might be worth filing a cherry pick request for it. |
I'm facing the same issue, anyone could fix it? |
@scheglov do you think Brian is correct? |
Yes. |
This was fixed in https://dart-review.googlesource.com/c/sdk/+/244363 and more tests added in https://dart-review.googlesource.com/c/sdk/+/244726 |
It still seems to be unresolved even with Flutter 3.0.1. (flutter doctor) `Doctor summary (to see all details, run flutter doctor -v): • No issues found! |
We could consider this for a cherry-pick. |
Faced the same issues. |
This is also happening for a lot of classes var. |
@srawlins - is this still an open issue? It looks like the fix landed and is being cherry-picked. |
@keybow007 - could you please create a new issue and link to here? Don't want that to get lost in a closed issue. Thanks! |
Thank for reply. I created a new issue. |
Same here. setState and colors are not autocompleting anymore. Waiting for a fix |
Same here!! setState is not autocompleting. |
See #49233 (comment) |
Code suggestion for async/dispose/setState no longer works in Flutter 3.0.2 #106724 i'm still face this issue in Android Studio i use dart 2.17.3 version |
Can confirm. setState is not autocompleting in Android Studio (version 2021.2)
|
Just did the update to Flutter 3.0.5 for Mac native M1 (with Android Studio version 2021.2 native M1) and colors autocomplete as well as setState autocomplete work fine now |
Original issue:
flutter/flutter-intellij#6167
With Flutter 3.0, code suggestion for initState/dispose/setState no longer works. It worked for Flutter 2.10.
This issue was found in both Windows(10) and Mac(12.3.1).
Steps to Reproduce
Start typing in ini.
Hit control-space for auto suggestions
Nothing comes up yet.
(It worked in Flutter 2.10.x)
The screenshots are for initState, but the same thing happens with dispose and setState.
Version info
`Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.0, on macOS 12.3.1 21E258 darwin-x64, locale ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Community Edition (version 2019.1.2)
[✓] VS Code (version 1.67.0)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
• No issues found!
I can confirm that changing the Flutter SDK from 2.10.5 to 3.0.0 causes this issue. You need to be editing the definition of a class that extends
State
and start to type a new method definition by typingini
. Prior to the upgrade you would see a suggestion to create a method namedinitState()
. After the upgrade there are no suggetions.@bwilkerson
The text was updated successfully, but these errors were encountered: