diff --git a/packages/vector_graphics/CHANGELOG.md b/packages/vector_graphics/CHANGELOG.md index 8ec455436130..af04128b4952 100644 --- a/packages/vector_graphics/CHANGELOG.md +++ b/packages/vector_graphics/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Fixes deprecation lints. + ## 1.2.3 * Updates minimum supported SDK version to Flutter 3.38/Dart 3.10. diff --git a/packages/vector_graphics/lib/src/vector_graphics.dart b/packages/vector_graphics/lib/src/vector_graphics.dart index 1f5148b0c514..0e405a07f6aa 100644 --- a/packages/vector_graphics/lib/src/vector_graphics.dart +++ b/packages/vector_graphics/lib/src/vector_graphics.dart @@ -400,7 +400,7 @@ class _VectorGraphicWidgetState extends State { } Future _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]; @@ -494,8 +494,8 @@ class _VectorGraphicWidgetState extends State { 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, ); }