Flutter 3.32.4-ohos-0.0.2 版本发布

Flutter 3.32.4-ohos-0.0.2 版本发布

欢迎大家加入开源鸿蒙跨平台开发者社区

本版本基于 Flutter 3.32.4 适配 OpenHarmony,重点支持和完善平台侧能力,提升稳定性与性能。


新增特性

编译与构建

  • 毕昇编译器替换,开启优化选项
  • Add CI script
  • Use Flutter's config command to specify build-dir
  • 编译和上传 debug 引擎产物时,默认改为不使用 unoptimized 选项

渲染与图形

  • impeller\] Vulkan backend supports skipping rendering when dirty region is 0

  • 同步官方仓对 impeller 过大纹理限制操作
  • 图片编解码替换不拷贝内存接口
  • Add simple occlusion culling for impeller
  • APNG 动图支持修改

性能与监控

  • 【3.32】滑动丢帧事件上报添加 FRAME_ID 属性与总帧数属性
  • 滑动丢帧上报:报文时间修改为 UTC 时间戳、新增滑动丢帧上报过程中总帧数属性
  • 【3.32】【性能雷达】滑动丢帧上报
  • 同步滑动 trace 的 dfx 能力到 flutter 3.32 版本
  • 3.22 新增 UI 卡死检测上报
  • 当系统触发内存事件时,提高 IplrVkFenceWait 和 IplrVkResMgr 线程的优先级

LTPO 与功耗

  • 3.32 新增 LTPO 功能
  • LTPO 的 channel 通信优化,速度值纠正;增加 100ms 性能兜底,优化代码

输入与交互

  • 添加 hover 事件
  • 添加 322 的 hover 功能
  • feat: Add new features for physical keyboard input in ctrl/alt/shift modifier key state mode
  • feat: ohos platform supports text-editing callbacks implementation which will be invoked by inputmethod apps

平台能力

  • Add HarmonyOS platform detection
  • 增加路由跳转和标签页切换的检测能力
  • Add monitor for external textures visible area
  • 退后台释放 DMA 资源,降低内存
  • support start-paused on ohos
  • 在 FlutterEntry 中添加系统环境变化监听器,把深色模式、字体等变化发送到 dart

Bug 修复

输入法与键盘

  • 修复软键盘直接弹起到界面上问题
  • fix: keyboard home key is not consistent
  • fix: caplock and return keys are not working with keyboard
  • Fix the issue of keyboard popping up and flickering in PlatformView input box
  • 修复多 PlatformView 场景下输入框失焦问题【3.32】
  • fix: MouseRegion onExit is not triggered when moving the cursor in and out fast
  • fix: Fix DropdownButton focus highlight issue on touch devices
  • fix: pressing TextField with preview text would delete it
  • 修复切换输入框时,软键盘类型存在安全类键盘时出现键盘无法唤起的问题
  • 分屏时在应用间输入框焦点相互切换,切至 flutter 输入字符后候选词显示位置有误
  • 解决 attach 异步以及多输入框候选词跟随的问题
  • 解决切换输入框候选词不更新及候选词跟随问题
  • 输入法候选词在光标右下角
  • fix: Solve the problem of incorrectly inserting old clipboard data in syn func using async pasting func in the input method(重复项已合并)
  • 解决 DeltaTextInputClient 回车和删除操作异常的问题
  • 修复 platformview 和 flutter 输入框来回点击导致 flutter 侧无法输入

剪贴板

  • Fix the issue where the clipboard cannot paste content in a custom format
  • Fix the issue where pasting is not possible after cutting

渲染与显示

  • Addressed the issue where cropping with original dimensions in a transformed coordinate system resulted in a size mismatch
  • Impeller\] Fixed gradient clipping on HarmonyOS devices (mediump precision loss on some GPU chips)

  • 3.32 使用 skia 渲染模式时,image 组件在部分场景下背景颜色变黑
  • 修复 canvas.drawCircle 出现白边的情况
  • pick engine:994,解决 drawRect 出现白边的问题
  • fix: Clear damage region when the swapchain is changed to prevent rendering errors

PlatformView 与 WebView

  • Fixed: onInactive method was not triggered when the WebView became invisible
  • fix: resolve the memory leaking of webview
  • 修复多 web 时,鼠标/双指滑动无法滚动的问题

手势与事件

  • 修复多个 flutterview 情况下,鼠标和手势事件分发错误的问题(重复项已合并)
  • 销毁 xcomponent 时,对目前正在处理的手势发送 cancel 信号
  • 修复鼠标点击事件导致的 hover 异常问题
  • Handle abnormal touch events
  • 修复外接纹理情况下,无法抛滑问题
  • 解决可选择文本组件无法滑动问题

内存与稳定性

  • 修复 3.32 Channel 内存泄漏问题
  • 修改 napi 相关的内存泄露问题
  • 修改超大 gif 图场景的内存泄露问题
  • 解决可能会导致 image_source uaf 的问题
  • 修改 IplrVkResMgr 和 IplrVkFenceWait 线程的优先级变动逻辑为只在 OHOS_MEMORY_LEVEL_CRITICAL 时提高优先级

编译与构建

  • Remove 'ohpm clean' during compilation process
  • 修复 monorepo flutter_audioplayers 编译失败找不到 .dart_tool/package_config.json 问题
  • Solve the error when compiling the release mode using the local engine
  • 解决 3.32 连续执行两次 flutter clean 会报错的情况

其他

  • Fix cache errors related to YUVConversionVK
  • 修复断点模式 appfreeze 问题
  • 同步看门狗问题解决到 3.32 分支
  • 解决上下分屏打开固定态软键盘后切换左右分屏页面上缩问题
  • 修复 LTPO 问题
  • 增加 copyResource 方法中的异常捕获,增加 try catch 及异常日志
  • 修改 HAR_VERSION 的提示等级
  • 修改 ohos 平台下 alertdialog 滚动默认值为 true
  • 修改 ohos_image_generator.cpp、ohos_touch_processor.cpp 中部分智能指针创建方式
  • 修复 app 点击返回按钮时出现 vulkan DestroyImageView 崩溃
  • 解决偶现 bottomRect 报错问题 / 解决 bottomRect of undefined 的问题
  • 修复 PC 无法全屏的问题
  • 解决 delta 模式下删除异常的问题
  • window 大小变化时添加执行 TeardownOnScreenContext(),避免 impeller-vulkan 下放大缩小窗口时偶现花屏
  • 系统字体配置改为先从系统接口获取再从 json 文件获取
  • Use LTRB to describe information of DisplayFeature
  • Modify message loop impl of ohos
  • Set framework type of the nativewindow
  • Modify max_jank_frame for external texture
  • 修改模拟器上竖屏视频播放倒转的问题
  • 修复多 FlutterEntry 情况下,生命周期异常的问题
  • 修改 APNG 动图遗漏 endif
  • fix: Do not execute the nativeAccessibilityStateChange method when nativeShellHolderId is null
  • Fixed occasional connection failures in flutter run
  • Frame gate enabled: keep draining producer queue, but do not schedule

版本信息

项目 说明
发布时间 2026 年 3 月 16 日
OpenHarmony API 20 及以上
Flutter SDK 3.32.4-ohos-0.0.2(因版本解析规则,显示为 3.32.5-ohos-0.0.2)

相关链接

相关推荐
追梦的鱼儿3 小时前
Flutter 生命周期详解:Stateless 与 Stateful 完全对比
flutter
tangweiguo030519873 小时前
Flutter 页面生命周期超全总结(附 addPostFrameCallback 详解)
flutter
国医中兴4 小时前
Flutter 三方库 dson 的鸿蒙化适配指南 - 极简的序列化魔法、在鸿蒙端实现反射式 JSON 映射实战
flutter·harmonyos·鸿蒙·openharmony
Lesile5 小时前
Flutter回顾#1:动画:
flutter
yuanlaile5 小时前
2026年全新版Flutter教程_Dart Flutter入门实战系列视频教程
flutter·flutter教程·dart教程·flutter必备基础
国医中兴6 小时前
Flutter 三方库 cloudflare_r2_uploader 的鸿蒙化适配指南 - 云端存储的疾速通道、在鸿蒙端实现 R2 分段上传实战
flutter·harmonyos·鸿蒙·openharmony·cloudflare_r2_uploader
恋猫de小郭7 小时前
Flutter Beta 版本引入 ScrollCacheExtent ,并修复长久存在的 shrinkWrap NaN 问题
android·前端·flutter
国医中兴7 小时前
Flutter 三方库 weaver 的鸿蒙化适配指南 - 玩转轻量级服务发现、在鸿蒙端实现模块化治理与解构实战
flutter·harmonyos·鸿蒙·openharmony
国医中兴7 小时前
Flutter 三方库 tapper 的鸿蒙化适配指南 - 单元测试的“闪电侠”、在鸿蒙端实现极简函数式测试实战
flutter·harmonyos·鸿蒙·openharmony