Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
br_animations-v2.0.11_ohos
flutter_packages
/
third_party
/
packages
下载当前目录
G
GitHub
[flutter_svg] feat: Expose the renderStrategy property in SvgPicture (
#9373
)
c5ab57a5
创建于
2025年6月13日
历史提交
文件
最后提交记录
最后更新时间
cupertino_icons
Update repo for 3.32 stable (
#9311
) Does all of the steps from
https://github.com/flutter/flutter/blob/master/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md
for the 3.32 stable release (except the first one, as the stable roller has already landed).
11 个月前
flutter_svg
[flutter_svg] feat: Expose the renderStrategy property in SvgPicture (
#9373
) This PR exposes the
renderStrategy
property from the
vector_graphics
package to address the performance issue discussed in [
#166184
](
https://github.com/flutter/flutter/issues/166184).
By default, SVG widgets are rendered using the picture strategy, which records a list of drawing commands and replays them each frame. While this offers greater flexibility (e.g., for scaling), it can result in significant raster time when many SVGs are present in the widget tree. As demonstrated in [
#166184
](
https://github.com/flutter/flutter/issues/166184),
using the default strategy can lead to frame drops due to high raster time: <img width="820" alt="image" src="
https://github.com/user-attachments/assets/dfc58d50-c8b2-477e-9a75-fe0eb742f9c7"
/> Switching to the raster strategy renders the SVGs into images ahead of time, reducing the raster workload: <img width="894" alt="image" src="
https://github.com/user-attachments/assets/2fd8ddbf-3693-4797-be99-8b0919ef1703"
/> Exposing this property allows developers to choose between flexibility and performance based on their app’s needs. Fixes
https://github.com/flutter/flutter/issues/166184
## Pre-Review Checklist
11 个月前
flutter_svg_test
Update repo for 3.32 stable (
#9311
) Does all of the steps from
https://github.com/flutter/flutter/blob/master/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md
for the 3.32 stable release (except the first one, as the stable roller has already landed).
11 个月前
path_parsing
Update repo for 3.32 stable (
#9311
) Does all of the steps from
https://github.com/flutter/flutter/blob/master/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md
for the 3.32 stable release (except the first one, as the stable roller has already landed).
11 个月前