# CHANGES ## 0.18.1 - Bump the path_drawing dependency to 0.4.1+1 - Expose clipBehavior from FittedBox - Expose SVG ids in `Drawable*` classes. - Change type of `alignment` to `AlignmentGeometry` on `SvgPicture`. - Fixed bug in transform parsing ## 0.18.0 - Drop DiagnosticbleMixin usage. - Bump XML dependency to ^4.1.0 and resolve deprecated API usages. - Await futures in tests. ## 0.17.4 - Allow `precachePicture` to take `null` for a `BuildContext`. - Provide a clearer error message when nested `` elements are used. ## 0.17.3+1 - Fixed regression in v0.17.3 for shape elements with no explicit fill but explicit opacity. ## 0.17.3 - Be more permissive about whitespace in transform attributes. - Stop defaulting color to black when not present, fixing issue with colors carried over from `use` elements. ## 0.17.2 - Bumped minimum Flutter version to 1.6.7 to pick up DiagnosticableMixin. - Allow more variations of whitespace in base64 encoded image data. ## 0.17.1 - Fix for issue with `use` elements refering to groups or other `use` elements not correctly applying styles. ## 0.17.0 - Make ColorFiltering apply to whole layer instead of per paint operation. - **BREAKING** Remove `colorFilter` parameter from `VectorDrawable.draw`. - Fix color filtering for text. ## 0.16.1 - Support `image` tags in `defs`. - Make `DrawableRasterImage` implement `DrawableStyleable`. ## 0.16.0 - Move `transform` out of `DrawableStyle` and onto `DrawableStyleable`. Shapes already worked this way, and the transform logic was handled in a confusingly different way than all the other style attributes. - Support `` elements having `id`s. - Properly apply transforms to referenced use eleemnts. ## 0.15.0 - Respect transformations on `` tags. - Be more tolerant of malformed base64 data, similar to browsers (specifically, having spaces present in the data). ## 0.14.4 - Apply masks in the correct order when blend modes are involved in shapes. ## 0.14.4 - Support for masks on groups. - Update example project to Android X. ## 0.14.3 - Support for the `mix-blend-mode` attribute. ## 0.14.2 - Format, open up obtainKey for testing. ## 0.14.1 - Support for HSL colors (thanks to [@christianalfoni](https://github.com/christianalfoni)) ## 0.14.0 - Added support for masks (thanks to [@krispypen](https://github.com/krispypen)) - Allow for clearing of the picture cache ## 0.13.1 - Fix case where color filters were incorrectly getting created. ## 0.13.0+2 - Same fix for group opacity/saveLayer as in 0.12.4+2 ## 0.13.0+1 - Bump path_drawing dependency, which includes bug fixes in parsing. ## 0.13.0 - Updated SDK constraint to support new error message formats - Updated error message formats - Misc. updates for new SDK features ## 0.12.4+2 - Changed version constraint to prevent pulling down from wrong flutter version. - Fixed group opacity/saveLayer bug. ## 0.12.4+1 - Bump dep on path_drawing which contains bugfixes for parsing. ## 0.12.4 - Fixed `opacity` handling, particularly for groups. Previously, opacities were averaged together, which resulted in incorrect compositing (particularly if overlapping shapes were drawn within a group). Now, a new layer is created with the opacity applied to the whole. This may cause some performance degredation, but is more correct. - Allow font-size to be specified in `px` (with an explicit postfix). - Add `excludeFromSemantics` property for purely decorative SVGs. The default value is false. ## 0.12.3 - Fixed bug with stream completer unregistration. - Fixed bug with text transforms in new parsing. - Fixed bug with RGBA parsing for opacity ## 0.12.2 - Fixed bug with AVD parsing from strings. ## 0.12.1 - Support for `display="none"` and `visibility="hidden"`. ## 0.12.0 - **BREAKING** Avoid scaling based on devicePixelRatio. This turned out to be a mistake, and caused rendering inconsistencies across devices. It was particularly harmful on devices where the ratio was less than 1.0. - Add `precachePicture` method to allow for pre-caching of SVG assets. Similar in functionality to `precacheImage` in the Flutter framework. Also added improvements to error handling in the various related routines. ## 0.11.0+1 - Format source code - Remove unintentionally committed pubspec.lock ## 0.11.0 - Rewrote parsing logic to unpin dart-xml dependency, and bumped Dart XML dependency. - Fix bug where unsupported elements could impact drawing. Unhandled elements that have children will now be completely ignored. This is technically a breaking change, as previously a child of an unsupported element could have been drawn if it was supported. Fixes [#126](https://github.com/dnfield/flutter_svg/issues/126). ## 0.10.4 - Fix bug in transform logic [#122](https://github.com/dnfield/flutter_svg/issues/122) - Avoid defaulting to the rootBundle, using th DefaultAssetBundle instead when resolving pictures [#118](https://github.com/dnfield/flutter_svg/pull/118) ## 0.10.3 - Pin dart-xml to 3.2.5, as 3.3.0 is a breaking change (next release will address this). - Support `px` postfixes on many double literals. ## 0.10.2 - Added a `semanticsLabel` property to `SvgPicture`. - Updated tests to support async changes in Flutter's `Picture.toImage` method. - This is breaking for tests - tests will now require a more recent version of Flutter to run. It should not break consumers though. ## 0.10.1 This is technically a breaking release, but it also includes important fixes for v0.10.0. Rather than splitting the breaking parts out in to v0.11.0 so soon after the release of v0.10.0, I'm including some more breaking changes here. This will not normally be done. - Fix bug that caused `` elements that weren't self-closing to parse improperly. - Many documentation updates/improvements. - Added support for gradients that use `xlink:href` - **BREAKING**: Changed some of the methods on `DrawableDefinitionServer` to support gradients better. - **BREAKING**: Removed the `PaintServer` typedef, since this was only serving gradients and we need to have more control there for `xlink:href` support. ## 0.10.0+1 - Fix bug that caused an empty `` element prevent rendering. ## 0.10.0 - Rewrite parsing to be more space efficient. - Refactor parsing to enable more output possibilities. - Create a dedicated SVG parsing class (SvgParser). - Updates to text - better support for nested text/tspans. - Miscellaneous bug fixes. - Testing improvements. ## 0.9.0+1 - Fix inheritance issues with `text-anchor`. - Fix a few inconsistencies in text anchor processing/positioning. ## 0.9.0 - **BREAKING** Improvements to text positioning. Thanks to @krispypen! ## 0.8.3 - Implement support for `clipPath` outside of `defs` eleemnts. - Implement support for `use` in a `clipPath`. - Recommend `usvg` rather than `svgcleaner` per author's recommendation. ## 0.8.2 - Make `DrawableNoop` implement `DrawableStyleable` to avoid crashing with certain unhandled elements. - Improve error reporting for certain `