일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- text
- map
- 코틀린
- 콜렉션
- Android
- textstyle
- 다트
- animation
- 크롤러
- python
- variable
- kotlin
- crawler
- Yocto
- package
- 플러터
- Flutter
- DART
- 클래스
- import
- 함수
- pushnamed
- Class
- Collection
- ML
- 웹크롤러
- List
- function
- set
- 파이썬
- Today
- Total
목록Flutter (43)
조용한 담장
Flutter : State management (Provider) 앱의 화면 또는 위젯 간에 정보 공유를 위한 방법에 대한 설명을 살펴보자. Ephemeral state and App state Ephemeral state (sometimes called UI state or local state) is the state you can neatly contain in a single widget. state 를 두 종류로 나누어 설명한다. Ephemeral state 는 한 위젯안에서만 사용하는 state 로써, 앱으로 생각하면 한 화면 안에서만 영향을 주는 변수들을 예로 생각해 볼 수 있다. 데이터를 로딩하면서 프로그레스 바를 그리는 화면이 있다면 그 이후의 앱 페이지 (혹은 위젯) 에게는 로딩 상태..
Flutter의 UI 개념 Introduction to declarative UI declarative UI 라고 소개하는 내용을 보자. 앱 화면을 왼쪽에서 오른쪽처럼 구성을 변경할 때 ViewB 의 인스턴스 b 의 배경색 값을 변경하고, 자식 인스턴스 인 c1, c2 를 삭제한 후 c3 를 새로 만들면 된다. 위 동작은 보통 아래와 같은 코드 형식을 가질 것 이다. // Imperative style b.setColor(red) b.clearChildren() ViewC c3 = new ViewC(...) b.add(c3) Flutter 는 각각의 구성요소가 위젯이다. Flutter 는 위젯을 변경해야 하는 상황이 생길때 기존의 것을 변경하는 것이 아니라 지우고 새로 다시 만든다. 위 그림처럼 변경하면..
CustomPaint app view 에 직접적으로 그림을 그릴 수 있게 해주는 위젯들을 살펴보자. 그림을 그리는 동작이 기록되는 Canvas, 그림의 특성등을 지정하는 Paint, 앞의 두 class 를 담아내는 CustomPainter 와 상위 위젯 CustomPaint 가 있다. CustomPaint class CustomPaint({Key key, CustomPainter painter, CustomPainter foregroundPainter, Size size: Size.zero, bool isComplex: false, bool willChange: false, Widget child }) A widget that provides a canvas on which to draw during t..
원문: Flutter’s iOS Application Bundle Flutter App 은 native view hierarchy 의 single view 에 렌더링 된다. release 용으로 빌드하면 Frameworks directory 에 "App framework bundle" 와 "Flutter framework bundle" 이 생성된다. Flutter Engine framework bundle (Flutter.framework directory) Flutter engine : core libraries, DartVM, Skia. Flutter engine 이 사용하는 assets. AOT framework bundle (App.framework directory) 개발자가 작성한 모든 dar..