简体   繁体   English

Android Studio alt + enter 不适用于 flutter

[英]Android Studio alt + enter not working for flutter

Why it's not showing anything after selecting the widget and clicking alt + enter?为什么在选择小部件并单击 alt + enter 后没有显示任何内容? As an example to wrap a widget or to convert stateless to state full作为包装小部件或将无状态转换为 state 完整的示例

It happens when you have already wrapped a widget with Alt + Enter and the boundary around the Widget name is still there.当您已经使用 Alt + Enter 包装了一个小部件并且小部件名称周围的边界仍然存在时,就会发生这种情况。 You have to first type something out of that box and then it will work.你必须先从那个盒子里输入一些东西,然后它才会起作用。

This happens even if you just create a widget from the stl or stf command, it takes few seconds after pressing repeatedly.即使您只是从 stl 或 stf 命令创建一个小部件,也会发生这种情况,重复按下后需要几秒钟。 I think it's a Flutter Plugin issue, because it happens on both IntelliJ and Android Studio我认为这是一个 Flutter 插件问题,因为它发生在 IntelliJ 和 Android Studio 上

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

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