Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
br_animations-v2.0.11_ohos
flutter_packages
/
third_party
/
packages
/
flutter_svg
/
lib
下载当前目录
G
GitHub
[flutter_svg] feat: Expose the renderStrategy property in SvgPicture (
#9373
)
c5ab57a5
创建于
2025年6月13日
历史提交
文件
最后提交记录
最后更新时间
src
[flutter_svg] Fix SvgNetworkLoader not closing internal http client (
#8126
) closes
https://github.com/flutter/flutter/issues/158928
Ensures that if a Client is created in
prepareMessage
it is closed after getting the resource.
1 年前
flutter_svg.dart
Add svg finder (
#880
) * Extract flutter svg to package * Add flutter svg test library * Adjust readme * Update and rename ci.yml to flutter_svg.yml * Create flutter_svg_test.yml --------- Co-authored-by: Dan Field <dfield@gmail.com>
3 年前
svg.dart
[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 个月前