본문 바로가기

Flutter15

Flutter 는 왜 Declarative UI 를? Flutter 공식 페이지에도 소개되는 내용이지만 한번 더 소화해서 정리해 보자. Introduction to declarative UI Explains the difference between a declarative and imperative programming style. flutter.dev Imperative vs. Declarative 일단 Imperative 와 Declarative 의 차이부터 알아보자. Imperative는 명령형 Declarative는 선언형 을 의미한다. 뭔 말이지? 아래 Flutter 공식 사이트에 나오는 예제로 이야기해 보자. 배경색을 노란색에서 빨간색으로 변경하고 ViewB 타입의 b에 있는 ViewC 타입의 c1과 c2를 없애고 대신 ViewC 타입의 c3 를.. 2020. 12. 31.
Flutter 첫 어플리케이션 뭔지 몰라도 일단 한번 만들어보자! 1. 패키지 생성 커맨드 라인 상에서 com.mycompany.hello_flutter 패키지를 생성해 보자. 참고로 --org 옵션을 사용하지 않으면 패키지 이름이 com.example.hello_flutter 가 되어 나중에 출시 시점에 귀찮아 지므로 미리미리 설정해 두자. flutter create --org com.mycompany hello_flutter 참고로 VS Code 에서 Ctrl + Shift +p 로 command pallete 를 열고 "Flutter: New Application Project" 를 실행하여 GUI 상에서 프로젝트를 생성할 수도 있다. 하지만, 패키지 이름 prefix가 com.example 로 하드 코딩 되므로 추후 귀찮게 바.. 2020. 12. 31.
Flutter 개발 환경 설정 (우분투 18.04) 우분투에서 VS Code를 이용해서 안드로이드용 플러터 앱을 개발하는 환경 설정 가이드 1. Flutter 설치 아래 링크에 가면 친절한 설치가이드를 확인 할 수 있지만, 리눅스 설치 flutter-ko.dev 요약하면 아래 세 단계로 설치가 가능하다. 1) 필수 패키지 설치 sudo apt install bash curl git unzip xz-utils libglu1-mesa 2) 다운로드, 압축 해제, PATH 설정 # Flutter 1.22.5 Stable 버전을 사용한다고 가정 cd ~ mkdir devtool cd devtool wget https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_1.22.5-.. 2020. 12. 31.

반응형