-
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 setState still not working in Flutter 3.0.2 #49233
Comments
Bug: #49233 Change-Id: I74fd86fc7f49c932e6698e474842078ff823f3cf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247933 Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
freezed_annotation: ^2.0.3
dev_dependencies:
flutter_test:
sdk: flutter
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^2.0.0
build_runner: ^2.1.11
freezed: ^2.0.3+1
json_serializable: ^6.2. with above dependencies, material.dart auto completion does not work also. |
@cocoa-rum please open separate issue. It is fine if you reference it here, but for tracking and discussing it is much easier for us to keep separate root problems separately. |
+1 |
I also had the same problem |
We are waiting for #49239 |
Same problem. |
Code suggestion for async/dispose/setState no longer works in Flutter 3.0.2 #106724 |
Cherry picks for: b253c4a 3428b44 1b9554d 4b08b7d Or https://dart-review.googlesource.com/c/sdk/+/229324 https://dart-review.googlesource.com/c/sdk/+/242281 https://dart-review.googlesource.com/c/sdk/+/247933 https://dart-review.googlesource.com/c/sdk/+/245623 Bug: #49054 (comment) Bug: #49233 Change-Id: Ia91e46926e86dff63f718d71a2881dcd07125ce8
Can we close this issue? |
Yes |
I tried Flutter 3.0.2 after receiving an announcement that the code completion problem has been resolved in Flutter 3.0.2.
initState and dispose did code completion properly.
(initState / dispose in Flutter 3.0.2)
Unfortunately, however, code completion for setState does not seem to work yet.
(setState in Flutter 3.0.2 => no suggestion)
(setState in Flutter 2.10.5 => work properly)
Since setState is a very commonly used and important method, it would be helpful if it could be resolved as soon as possible.
Thanks.
The text was updated successfully, but these errors were encountered: