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

Show Intention Actions does not work for the root widget of a build method when using lambda syntax. #3500

Closed
chris37879 opened this issue May 18, 2019 · 3 comments

Comments

Projects
None yet
3 participants
@chris37879
Copy link

commented May 18, 2019

Steps to Reproduce

  1. Create a new flutter app.
  2. Change the build method for _MyHomePageState from a normal method body to a lambda.
  3. Invoking the Show Intention Actions shortcut in Android Studio will no longer bring up the menu with options like "Wrap in a new widget, Wrap in a Column, Wrap in a Row" and so on.

Version info

[✓] Flutter (Channel beta, v1.5.4-hotfix.1, on Linux, locale en_US.UTF-8)
• Flutter version 1.5.4-hotfix.1 at /home/aldian/Developer/flutter
• Framework revision 09cbc34a0b (2 weeks ago), 2019-04-30 15:44:27 -0700
• Engine revision 52c7a1e849
• Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /home/aldian/Developer/android-sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-Q, build-tools 28.0.3
• ANDROID_HOME = /home/aldian/Developer/android-sdk
• Java binary at:
/home/aldian/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/183.54
52501/jre/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b16-5323222)
• All Android licenses accepted.

[✓] Android Studio (version 3.4)
• Android Studio at
/home/aldian/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/183.54
52501
• Flutter plugin version 35.3.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b16-5323222)

[✓] VS Code (version 1.33.1)
• VS Code at /usr/share/code
• Flutter extension version 3.0.2

[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API
28) (emulator)

• No issues found!

@chris37879 chris37879 closed this May 18, 2019

@chris37879 chris37879 reopened this May 18, 2019

@chris37879

This comment has been minimized.

Copy link
Author

commented May 18, 2019

Sorry for the close and re-open. I accidentally pressed Ctrl+Enter which apparently submits an issue form...

@chris37879 chris37879 changed the title Show Intention Actions does not work for the root of a build method when using lambda syntax. Show Intention Actions does not work for the root widget of a build method when using lambda syntax. May 18, 2019

@devoncarew

This comment has been minimized.

Copy link
Member

commented May 20, 2019

Thanks for the report! cc @scheglov

@devoncarew devoncarew added this to the Backlog milestone May 20, 2019

@scheglov scheglov self-assigned this May 23, 2019

@scheglov

This comment has been minimized.

Copy link
Contributor

commented May 23, 2019

dart-bot pushed a commit to dart-lang/sdk that referenced this issue May 23, 2019

Support for 'Wrap with Xyz' for expressions in ExpressionFunctionBody.
R=brianwilkerson@google.com

Bug: flutter/flutter-intellij#3500
Change-Id: I9e14d6cd1a79070fd489740a881199707be83e90
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/103563
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>

@scheglov scheglov closed this May 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.