You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: third_party/packages/flutter_svg/README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,10 +130,12 @@ import 'dart:ui' as ui;
130
130
```
131
131
132
132
The `SvgPicture` helps to automate this logic, and it provides some convenience
133
-
wrappers for getting assets from multiple sources. Unlike the `vector_graphics`
134
-
package, this package _does not render the data to an `Image` at any point_.
135
-
This carries a performance penalty for some common use cases, but also allows
136
-
for more flexibility around scaling.
133
+
wrappers for getting assets from multiple sources.
134
+
135
+
This package now supports a render strategy setting, allowing certain applications to achieve better performance when needed.
136
+
By default, the rendering uses the original `picture` mode, which retains full flexibility in scaling.
137
+
Alternatively, when using the `raster` strategy, the SVG data is rendered into an `Image`, which is then drawn using drawImage.
138
+
This approach may sacrifice some flexibility—especially around resolution scaling—but can significantly improve rendering performance in specific use cases.
0 commit comments