Flutter - 快速创建Stateless和Stateful组件
1. 快速创建Stateless组件
输入stle,回车
class extends StatelessWidget { @override Widget build(BuildContext context) { return Container( ); } }
2. 快速创建Stateful组件
输入stful,回车
class extends StatefulWidget { @override _State createState() => _State(); } class _State extends State<> { @override Widget build(BuildContext context) { return Container( ); } }