본문 바로가기

분류 전체보기56

Migrating build.gradle from Groovy to Kotlin guides.gradle.org/migrating-build-logic-from-groovy-to-kotlin/ Migrating build logic from Groovy to Kotlin Declaring dependencies in existing configurations is similar to the way it’s done in Groovy build scripts, as you can see in this example: build.gradle plugins { id 'java' } dependencies { implementation 'com.example:lib:1.1' runtimeOnly 'com.example:run guides.gradle.org Groovy DSL gradle .. 2020. 9. 25.
Streams dart.dev/tutorials/language/streams Asynchronous programming: streams Learn how to consume single-subscriber and broadcast streams. dart.dev What's the point? Stream 은 데이터의 비동기 시퀀스를 제공한다 데이터 시퀀스는 사용자 이벤트와 파일로부터 읽은 데이터가 포함된다 Stream API 에서 await for 또는 listen() 을 사용해서 stream 을 처리할 수 있다 에러 대응하는 방법을 제공한다 single subscription 과 broadcast 두 가지 종류가 있다 다트의 비동기 프로그래밍은 Future 와 Stream 클래스가 있다 Future : 즉시 완.. 2020. 9. 19.
Bloc Library - package:bloc bloclibrary.dev/#/ bloc library a predictable state management library bloclibrary.dev Flutter 의 많은 아키텍처 패턴들 중 어떤게 대세인지 아직은 잘 모르겠다. 일단은 제일 많이 이야기되는 Bloc 패턴에 대해서 공부해본다. Bloc 은 Presentation 을 비즈니스 로직과 쉽게 분리하여 코드를 빠르고 쉽게 테스트하고 재사용 할 수 있도록 한다. Simple : 이해하기 쉽고 다양한 기술 수준을 가진 개발자들이 사용할 수 있다 Powerful : 더 작은 컴포넌트들로 구성되어 복잡하고 놀라운,, 어플리케이션을 만들 수 있다 Testable : 모든걸 쉽게 테스트 가능하게 한다 Cubit : Bloc 클래스의 기반으로 사용되는.. 2020. 9. 19.
[Android vs Flutter] View vs Widget flutter-ko.dev/docs/get-started/flutter-for/android-devs Android 개발자를 위한 Flutter Android 개발 지식을 적용하여 Flutter 앱을 만드는 방법에 대해 알아보십시오. flutter-ko.dev Android View vs Flutter Widget 비슷한 점 화면에 표시되는 모든것의 기초 (ex. Button, Toolbar 등) 플러터 위젯이 안드로이드 뷰와 정확하게 같진 않지만 UI 선언 및 구성방식이라는 건 같다 다른 점 View 한 번 그려지고 invalidate() 가 호출 될 때까지 다시 그려지지 않는다 Widget 변경 불가능하며 변경이 필요할 때까지만 존재하는 생명주기(lifespan) 이다 위젯 또는 위젯의 상태가 변경 .. 2020. 9. 18.
Flutter 문서 링크 모음 Flutter Widget 목록 : flutter-ko.dev/docs/reference/widgets Flutter App flavor 설정 cogitas.net/creating-flavors-of-a-flutter-app/ medium.com/@salvatoregiordanoo/flavoring-flutter-392aaa875f36 medium.com/flutter-community/flutter-ready-to-go-e59873f9d7de Debugging flutter-ko.dev/docs/testing/code-debugging flutter-ko.dev/docs/testing/debugging Flutter 빌드 모드 : flutter-ko.dev/docs/testing/build-modes .. 2020. 9. 13.
Flutter : StatefulWidget & StatelessWidget flutter-ko.dev/docs/development/ui/interactive Adding interactivity to your Flutter app flutter-ko.dev Stateful and stateless Widgets 위젯은 stateful 하거나 stateless 하다. StatelessWidget 은 변경되지 않는 위젯으로 아래 위젯들은 StatelessWidget 의 하위 클래스이다. Icon, IconButton, Text StatefulWidget 은 사용자 상호작용에의해 트리거되거나 데이터를 수신할 때 이벤트에 대한 응답으로 위젯이 변경될 수 있으며, 아래 위젯들은 StatefulWidget 의 하위 클래스이다. Checkbox, Radio, Slider, InkWell,.. 2020. 9. 13.