flutter_svg icon indicating copy to clipboard operation
flutter_svg copied to clipboard

Fix colors deprecated message

Open gabrielokura opened this issue 2 years ago • 1 comments

Using version 2.0.5 of the package.

This is the warning message direct from flutters framework. It isn't suggesting the use of colorFilter instead of color.

image

It should be like the documentation from pub.dev (last item of deprecations)

image

Also, fix the documentation of SvgPicture.asset which is implying the use of deprecated members.

// The color and colorBlendMode arguments, if specified, will be used to set a [ColorFilter] on any [Paint]s created for this drawing.

gabrielokura avatar May 02 '23 18:05 gabrielokura

But why did they even remove color and colorBlendMode, its just more annoying to specify a custom colorFilter.

PhiFry avatar Jun 26 '23 09:06 PhiFry