a) Create Project in VS Code
1) VS Code에서 Command Palette(Ctrl+Shift+P) 열기. |
b) sample code.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
Widget build(BuildContext context){
return MaterialApp(
title: "Welcome",
home: Scaffold(
appBar: AppBar(
title: Text('Welcome to Flutter'),
),
body: Center(child: Text('Hello world'),),
)
);
}
}
c) Ctrl+Shift+F5 로 실행.