简体   繁体   English

使用 Android Studio 中的“Alt+Enter”快捷方式,“删除小部件”选项对于 Flutter 不可用

[英]'Remove widget' option unavailable for Flutter using 'Alt+Enter' shortcut in Android Studio

I am very used to using the 'Alt+Enter' on a widget to modify it, more often to wrap something around it or removing it in Android Studio.我非常习惯在小部件上使用“Alt+Enter”来修改它,更常见的是在它周围包裹一些东西或在 Android Studio 中删除它。 However, today I noticed there is no 'remove widget' option.但是,今天我注意到没有“删除小部件”选项。 The rest of the options are still available.选件的 rest 仍然可用。 Is it the same for everyone?每个人都一样吗? ( previously once I think it got removed). (以前我认为它已被删除)。 I am using Flutter stable version 2.0.5, Dart version 2.12.3 and Android Studio 4.1.3.我正在使用 Flutter 稳定版本 2.0.5、Dart 版本 2.12.3 和 Android Studio 4.1.3。 Any help would be appreciated.任何帮助,将不胜感激。

it is still available, but sometimes android studio can't figure out the child in complex widget,它仍然可用,但有时 android studio 无法找出复杂小部件中的孩子,

try it in simple container with child.. and it should appear.在有孩子的简单容器中尝试..它应该会出现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM