Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/vector_graphics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## NEXT

* Fixes deprecation lints.

## 1.2.3

* Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.
Expand Down
6 changes: 3 additions & 3 deletions packages/vector_graphics/lib/src/vector_graphics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ class _VectorGraphicWidgetState extends State<VectorGraphic> {
}

Future<void> _loadAssetBytes() async {
// First check if we have an avilable picture and use this immediately.
// First check if we have an available picture and use this immediately.
final Object loaderKey = widget.loader.cacheKey(context);
final key = _PictureKey(loaderKey, locale, textDirection, widget.clipViewbox);
final _PictureData? data = _livePictureCache[key];
Expand Down Expand Up @@ -494,8 +494,8 @@ class _VectorGraphicWidgetState extends State<VectorGraphic> {
if (direction == TextDirection.rtl) {
child = Transform(
transform: Matrix4.identity()
..translate(pictureInfo.size.width)
..scale(-1.0, 1.0),
..translateByDouble(pictureInfo.size.width, 0, 0, 1)
..scaleByDouble(-1, 1, -1, 1),
child: child,
);
}
Expand Down
Loading