Skip to content
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 Flutter3 #6167

Closed
keybow007 opened this issue May 16, 2022 · 4 comments
Closed

Comments

@keybow007
Copy link

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

  1. Start typing in ini.
  2. Hit control-space for auto suggestions
  3. Nothing comes up yet.

スクリーンショット 2022-05-16 7 52 53

(It worked in Flutter 2.10.x)
スクリーンショット 2022-05-16 7 52 39

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!
`

@stevemessick
Copy link
Member

This is not a Flutter plugin issue, but it is serious (IMO). I copied this to a new issue in the Dart SDK repo:
dart-lang/sdk#49027

@ldsouza93
Copy link

I'm facing the same issue, flutter updates coming with a lot of problems

@Nathan617
Copy link

Hi, having the same issue. setState and Colors are not autocompleting anymore. for example if I type setS I have no autocomplete. Same if I type red it doesn't propose Colors.red anymore. Just 2 examples I have here.

@lore-co
Copy link

lore-co commented Jun 30, 2022

setState still isn't showing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants