question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"wrap with new widget" option disappears from IntelliJ

See original GitHub issue

Steps to Reproduce

Move the cursor to a widget, there’s no lightbulb; nothing happens with Alt+Enter, and even Ctrl-Shift-A can’t find any of such action…

Version info

liyuqian@liyuqian:~/flutter/flutter$ flutter doctor -v
[✓] Flutter (Channel doc_url, v1.0.1-pre.3, on Linux, locale en_US.UTF-8)
    • Flutter version 1.0.1-pre.3 at /usr/local/google/home/liyuqian/flutter/flutter
    • Framework revision 667cf69156 (66 minutes ago), 2018-12-07 11:51:17 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /usr/local/google/home/liyuqian/android/Sdk/
    • Android NDK at /usr/local/google/home/liyuqian/android/Sdk/ndk-bundle
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = /usr/local/google/home/liyuqian/android/Sdk/
    • Java binary at: /opt/android-studio-with-blaze-3.2/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[!] Android Studio (version 3.0)
    • Android Studio at /opt/android-studio-with-blaze-3.0
    • Flutter plugin version 23.2.1
    • Dart plugin version 171.4424
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] Android Studio (version 3.2)
    • Android Studio at /opt/android-studio-with-blaze-3.2
    • Flutter plugin version 23.2.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] IntelliJ IDEA Community Edition (version 2017.3)
    • IntelliJ at /opt/intellij-ce-2017.3
    • Flutter plugin version 25.0.1
    • Dart plugin version 173.4700

[✓] IntelliJ IDEA Community Edition (version 2018.1)
    • IntelliJ at /opt/intellij-ce-2018.1
    • Flutter plugin installed
    • Dart plugin version 181.5656

[✓] IntelliJ IDEA Community Edition (version 2018.2)
    • IntelliJ at /opt/intellij-ce-2018.2
    • Flutter plugin version 31.1.3
    • Dart plugin version 182.5124

[✓] Connected device (1 available)
    • Moto G 4 • ZY223ZXCJV • android-arm • Android 7.0 (API 24)

I’m using IntelliJ 2018.2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Errichamondacommented, Jun 15, 2020

I have the same issue, all menu from Wrap with Widget and switch to relative import are gone. already tried to reinstall android studio but nothing.

https://i.imgur.com/cqaQsKY.png

0reactions
NSDPK37commented, Apr 19, 2022

Go to android studio Settings/Intentions/

and make sure

Dart/Quick assist powered by the Dart Analysis Server

is checked

or simply type " Analysis server " in search bar on settings, then click on Intentions And you can find Dart/Quick assist powered by the Dart Analysis Server

try This

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use interactive widgets | IntelliJ IDEA Documentation - JetBrains
To add an interactive widget to your notebook, first add a code cell. Press Alt + Shift + A (Windows) or ⌥ ⇧...
Read more >
No 'Remove Widget' option for flutter with Android Studio in ...
Issue : In my IDE the 'Remove widget' option is missing. Check the image below for reference. With my fresh installation of Android...
Read more >
Flutter — IDE Shortcuts for Faster Development - Medium
All of these shortcuts work for Android Studio and IntelliJ in Windows. ... Should you make a new StatefulWidget and then manually transfer ......
Read more >
Common Flutter errors
One way to do it is to wrap the Column in an Expanded widget: content_copy ... This error is about missing an expected...
Read more >
VSCode Shortcuts, Extensions & Settings for Flutter ...
You can use it to wrap, extract, remove widgets, etc: ... The Advanced New File extension lets you create files anywhere in your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found