VsCode quick action "Wrap with Widget" not working as expected for Flutter 3.0.
See original GitHub issueDescribe 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:
- Update Flutter to 3.0
- 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:
- Created a year ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!
@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: