Android Studio/Intellij IDEA Flutter 快捷键
Flutter IDEA About 505 wordsstless
快速创建StatelessWidget
。
class extends StatelessWidget {
const ({super.key});
@override
Widget build(BuildContext context) {
return const Placeholder();
}
}
stful
快速创建StatefulWidget
。
class extends StatefulWidget {
const ({super.key});
@override
State<> createState() => _State();
}
class _State extends State<> {
@override
Widget build(BuildContext context) {
return const Placeholder();
}
}
option + return / Alt + Enter
光标定位在Widget
上,使用该快捷键能快速包裹一个指定组件。
Views: 624 · Posted: 2023-10-01
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...