NewsCrawler.org

Flutter 3.50 and Dart 3.14 released: Material and Cupertino move to separate packages

Flutter 3.50 and Dart 3.14 have been released, and the article lists their main changes. The Material and Cupertino libraries are deprecated in the SDK and moved to separate pub.dev packages, material_ui and cupertino_ui; new projects use material_ui by default. Existing projects can run dart fix --apply --code=migrate_design_widgets, which updates pubspec.yaml, imports and localization code automatically.

Framework changes include SliverClipRect and SliverClipRRect for clipping slivers[1] that overlap a pinned header[2], and ListView.separated now supports itemExtentBuilder. ScrollPhysics has a new shouldUpdate method, so a changed physics object takes effect without rebuilding the list. showDialog gained barrierBuilder, and Navigator.popUntilWithResult can pass a result back to the route that is waiting for it.

On iOS, touch events are now dispatched synchronously in the same frame cycle, which the article says makes the response one full frame faster (16 ms at 60 Hz and 8 ms at 120 Hz). In Android release builds, Intent extras[3] can no longer set routes, entrypoints, cached engines or dart flags, while deep links keep working. HCPP[4] needs Android 14 or later, the Impeller Vulkan backend and the command flutter config --enable-hcpp.

Read the original juejin.cn

Discussion

Commenters mostly question whether the post is original, one saying they saw the same content in two articles. One notes that HarmonyOS does not yet support material_ui, and another remarks on how quickly the post appeared.

Sources

  • CNJuejin ZH

    Flutter 3.50 & Dart 3.14 发布,快来看看有什么更新吧

    25 likes1,206 views13 comments9 saves

Published: First seen: Читать по-русски

Open as a page