Android Studio/Intellij IDEA Flutter 快捷键

Flutter IDEA About 505 words

stless

快速创建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: 472 · Posted: 2023-10-01

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓
Today On History
Browsing Refresh