1.創(chuàng)建StatelessWidget
stless
2.創(chuàng)建StatefulWidget
stful
3.將選中代碼提取到某個(gè)方法中
command + option + M
4.組件外層包裹
option + enter
5.當(dāng)前文件搜索
command + F
6.全局文件搜索
command + shift + F
7.文件名字替換
command + shift + R
8.抽取代碼為單獨(dú)的Widget
//鼠標(biāo)選中需要轉(zhuǎn)換的類名
command + option + W
9.查看抽象類或方法的子類實(shí)現(xiàn)
command + option + B
10.格式化代碼
command + option + L
11.快速生成getter和setter方法
command + n
12.快速把StatelessWidget轉(zhuǎn)StatefulWidget
在StatelessWidget雙擊選中
Alt + enter