简体   繁体   English

在 flutter 中查看小部件所有属性的快捷方式

[英]shortcut to see all the properties of widget in flutter

I m new at flutter, I m using android studio and I want to know is there is any shortcut to see all the property of any particular widget at the time android studio it self, without going to the documentation page.pls help, it really help to reduce the development time.我是 flutter 的新手,我正在使用 android 工作室,我想知道当时是否有任何快捷方式可以查看任何特定小部件的所有属性有助于减少开发时间。

In my case it's ctrl + space .就我而言,它是ctrl + space But I'm not using apple's mac mini keyboard.但我没有使用苹果的 mac mini 键盘。

So "In my case" ctrl + space is the most useful.所以“在我的情况下” ctrl + space是最有用的。 Then you can click on some widget eg Text and press ctrl + j to see documentation.然后您可以单击一些小部件,例如文本,然后按ctrl + j来查看文档。 You can also press cmd + p to see all properties in inline mode.您也可以按cmd + p以查看内联模式下的所有属性。

In Mac it's (control + J) , if not working go to preferences or settings, then head to keymap, and then there search for documentation.在 Mac 中它是(control + J) ,如果 go 无法使用偏好或设置,则前往键盘映射,然后搜索文档。 you will get the shortcut.你会得到快捷方式。 Also try ( command + p ) , I think that would work for what you are trying to find.也试试( command + p ) ,我认为这对你想要找到的东西有用。

This feature is called Code Completion:此功能称为代码完成: 在此处输入图像描述

On my MacbookPro & Android Studio Smart Code Completion -> fn + ^ + space was working.在我的 MacbookPro 和 Android Studio Smart Code Completion -> fn + ^ + space上工作。 However Basic key shortcut ^ + space was shadowed by MacOs keyboard input settings.然而,基本快捷键^ +空格被 MacOs 键盘输入设置所遮蔽。 So disabling the select the previous input source solved this shadowing.所以禁用select the previous input source解决了这个阴影。 Now both shortcuts are working.现在两个快捷方式都可以使用。

在此处输入图像描述

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

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