통조림

Flutter 2.8 업데이트 내용 본문

Software/Flutter

Flutter 2.8 업데이트 내용

고랭지참치 2021. 12. 24. 07:54

What’s New in Flutter 2.8

Performance improvements, new Firebase features, desktop status, tooling updates and more!

medium.com

12월 9일 플러터 공식홈페이지에 게시된 플러터 2.8 버젼 업데이트 관련 게시물을 보면서 개선된 부분과 추가된 기능들을 확인해보고자 합니다. 글의 내용 중 이해할 수 있는 내용들을 위주로 정리합니다. 비전문가인 학생이 해석하여 쓴 글이니 잘못된 정보가 있다면 댓글에 남겨주세요.


#1 'All together these improvements have resulted in reduction in startup latency for Google Pay of 50% when running on a low-end Android device, and a 10% improvement on high-end devices.'

초입에서 플러터가 기능(performance) 개선에 힘을 쏟고 있다는 것을 강조합니다. 플러터팀은 기능개선이 얼마나 중요한 일인지 알고 있으며 업데이트를 통해 실제 사용되고 있는 앱(Google pay) 시작시 걸리는 시간을 저가형 안드로이드 기기에서는 50%, 하이앤드 기기에서는 10% 개선했다고 합니다.
#2 Improvements to the way that Flutter influences Dart VM garbage collection policy now helps avoid ill-timed GC cycles during the application startup sequence.
메모리부분에서 플러터가 Garbage collection에 영향을 주는 방식을 개선하여 앱이 켜지는 시퀀스 속도가 향상될 것이라 예상됩니다. GC-Cycle이 뭔지 찾아보려하니 동적메모리 할당-해제를 하는 순환을 말하는 것 같습니다.

#3 When any of these tracing features are enabled, the Timeline includes new events for widgets built, render objects laid out, and render objects painted, as appropriate.In addition, this release of DevTools adds new support for profiling the performance of your app's startup.
플러터 개발툴 기능을 추가하여 앱 성능 문제를 테스트할 수 있도록 했다고 합니다. 앱 성능의 문제는 레이아웃이나 페인트랜더에서 유발되는 경우가 많은데 해당 부분들이 랜더링될때 소요되는 시간을 줄일 수 있도록 도와주는 기능이라고 합니다.


$4 First and foremost is the release of the Google Mobile SDK for Flutter into Flutter into general availability.
구글 ads를 플러터앱에 표시할 수 있는 기능이 Stable 한 버젼으로 제공된다고 합니다.


#5 Another new release that comes with Flutter this time around is the 3.0 release of the webview flutter plugin. Furthermore, in the 3.0 release, webview_flutter provides preliminary support for a new platform: the web. We’ve had many of you ask for the ability to host a webview in a Flutter web app, which allows you to build an app for mobile or web from a single code base

플러터 공식 플러그인 Webview_flutter 에서 웹용 웹뷰 기능을 제공한다고 합니다. 플러터 내부에 html 코드를 가져오는 것이 더 개선된 것 같습니다.



#6 This release adds a set of new features that make it easier to build applications using Flutter and Firebase:

  • All FlutterFire plugins are graduating from beta to stable
  • New support in DartPad for several Firebase services
  • New libraries to more easily build UI for authentication and live Firestore queries
  • New Firestore Object/Document Mapping for Flutter, available in Alpha

플러터 앱 중 3분의 2가 파이어베이스를 이용하고 있다고 합니다. 기존 플러터에서 파이어베이스 사용 플러그인들에서 안정화되지 않거나 버젼에 따라서 앱이 작동하지 않는 순간들을 겪었는데 이번 업데이트를 통해 stable한 상태로 진입하게 된 것 같습니다.

#7 The Flutter 2.8 release includes another big step along the road to the stable release of Windows, macOS, and Linux. One example of the ongoing work to prepare desktop for a stable release is the complete re-architecture of how Flutter handles keyboard events to allow for synchronous response.
플러터 데스크탑앱은 아직 많은 시행착오를 겪고 있다고 합니다. 현재는 키보드 이벤트에 대한 동기처리를 플러터가 처리하는 것을 추진하고 있다고 하네요.