Todd Volkert e19db89a0e
Add basic support for golden image file testing (#17094)
* Add a `matchesGoldenFile()` async matcher that will match
  a finder's widget's rasterized image against a golden file.
* Add support for pluggable image comparison backends
* Add a default backend that does simplistic PNG byte
  comparison on locally stored golden files.
* Add support for `flutter test --update-goldens`, which will
  treat the rasterized image bytes produced during the test
  as the new golden bytes and update the golden file accordingly

Still TODO:

* Add support for the `flutter_test_config.dart` test config hook
* Utilize `flutter_test_config.dart` in `packages/flutter/test`
  to install a backend that retrieves golden files from a dedicated
  `flutter/goldens` repo

https://github.com/flutter/flutter/issues/16859
2018-04-30 10:35:56 -07:00
..

vitool

This tool generates Dart files from frames described in SVG files that follow the small subset of SVG described below. This tool was crafted specifically to handle the assets for certain Material design animations as created by the Google Material Design team, and is not intended to be a general-purpose tool.

Supported SVG features

  • groups
  • group transforms
  • group opacities
  • paths (strokes are not supported, only fills, eliptical arc curve commands are not supported)