a) Create Project in VS Code 

1) VS Code에서 Command Palette(Ctrl+Shift+P) 열기. 
Open the Command Palette (Ctrl+Shift+P (Cmd+Shift+P on macOS)).

2) New Application Project command 선택.
Select the Flutter: New Application Project command and press Enter.

3) Project 이름 적기
Enter your desired Project name.

4) Project 저장 위치 선택.
Select a Project location.

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 로 실행.

+ Recent posts