1. 快速创建Stateless组件

输入stle,回车

Flutter - 快速创建Stateless和Stateful组件-LMLPHP

class  extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container( );
}
}

2. 快速创建Stateful组件

输入stful,回车

Flutter - 快速创建Stateless和Stateful组件-LMLPHP

class  extends StatefulWidget {
@override
_State createState() => _State();
} class _State extends State<> {
@override
Widget build(BuildContext context) {
return Container( );
}
}
04-14 09:14