文件最后提交记录最后更新时间
[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 年前
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 年前
[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 Checklist11 个月前