This is an old revision of the document!


Flutter

windows

  • 설치순서

1. git설치
2. flutter 압축풀기
3. /bin 폴더 경로 복사
4. environment variable 설정에서 PATH에 추가
5. flutter doctor
에서 설치하라는 거([x]표시) 설치하기
5.1. Visual Studio : Dektop c++, Windows 10 SDK 등등
5.2. Android toolchain : Android Studio 설치
5.2.1. 남은 두가지 : 처음 화면에서 More option > SDK Manager > 두번째 Tab SDK Tools > Android command-line tool & Intel x86.. (인텔 CPU일때) & Google USB Driver(실제 기기연결시)
5.2.2. 나오는 메시지 복사 실행 : flutter doctor –android-licenses
5.3. Window version 문제 : flutter upgrade
6. 플러그인 설치 : Android Studio 처음에서 Plugins > flutter 설치
7. New Flutter Project > Flutter > SDK path : 설치된 폴더(flutter)
8. Project 생성 후 우측 위 Device Manager > Create Device > Pixel XL (추천)

  • Emulator Terminated : Help>Show Log in Explorer

Flutter Hot reload : 지금 상태에서 업데이트
Flutter Hot restart : 처음부터 실행

void main() {
  //runApp(const MyApp());
 
  runApp(
    MaterialApp(
      home : Scaffold(
        backgroundColor: Colors.black,
        //body: Text("hello world")
        body: Center( // 가운데
          child: Text(
              "Hello world",
            style: TextStyle(
              color: Colors.white,
              fontSize: 20.0
            )
          )
        )
      ),
    ),
  );
}

Asset 추가

pubspec.yaml > flutter: 아래
assets:
- asset/img/ (폴더명)
put get 클릭

Enter your comment. Wiki syntax is allowed:
N᠎ M W S P
 
  • software_development/flutter.1683162978.txt.gz
  • Last modified: 2025/07/07 14:13
  • (external edit)