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.

VsCode quick action "Wrap with Widget" not working as expected for Flutter 3.0.

See original GitHub issue

Describe the bug After updating my flutter version, The quick action “Wrap with widget” does not work as intended on VsCode.

To Reproduce Steps to reproduce the behavior:

  1. Update Flutter to 3.0
  2. Try wrapping a widget using “Wrap with Widget” quick action.

Expected behavior It wraps the widget with the code below It wraps a widget with the code below.

 ${1:widget}(
        ${2:child}: SomeWidget(),
      )

Please complete the following information:

  • Operating System and version: macOS Monterey v12.2.1 m1
  • VS Code version: Version: 1.58.2
  • Dart extension version: v3.25.1
  • Dart/Flutter SDK version: Flutter: Channel stable, 3.0.0. Dart: 2.17.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
DanTupcommented, May 12, 2022

Dart extension version: v3.25.1

v3.25.1 is quite an old version of the extension. If you upgrade to the latest version (v3.40.0) the issue should be resolved (it was fixed in #3877, included in v3.38.0).

Please let me know if you’re still seeing the issue on the latest version. Thanks!

1reaction
DanTupcommented, Jun 23, 2022

@Pablo-hub44 please file a new issue with clear screenshots and sample code that illustrates the issue. I have tested with Flutter v3.0.3 and the latest Dart/Flutter extensions and am unable to reproduce the original issue reported here:

Jun-23-2022 10-09-32

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to surround flutter widget in vscode - Stack Overflow
Vscode offer a few refactor options, including Wrap with Column : ... Just right-click on a widget and press "Refactor".
Read more >
Common Flutter errors
Introduction. This page explains several frequently-encountered Flutter framework errors and gives suggestions on how to resolve them.
Read more >
Visual Studio Code Key Bindings
Here you will find the complete list of key bindings for Visual Studio Code and how to change them.
Read more >
Linter rules - Dart
Use key in widget constructors. This rule is available as of Dart 2.8.1. Rule sets: flutter. This rule has a quick fix available....
Read more >
What's New In FlutterFlow
This week we rolled out a brand new code editor, a Barcode widget, implicit animations, text masks, and a lot of refinements to...
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