[flutter]프로젝트 만들고 에뮬레이터 키키

코드왕·2023년 7월 2일
0
  1. 프로젝트를 만든다.
flutter create <폴더명>
  1. lib 폴더 내의 main.dart파일을 확인한다.

  1. 에뮬레이터를 선택한다.

  1. Start 버튼을 누른다.

5.기본 코드 넣기

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home:Text("안녕")
    );
  }
}
profile
CODE DIVE!

0개의 댓글