ShaderMask LinearGradient's stops strange behavior
问题 I want to fade both side (edges) of a content. I use a ShaderMask along with a LinearGradient , it works great except that I don't understand why my stops are not centered correctly, I use stops: [0.0, 0.05, 0.95, 1.0] so that it should be faded 0.05 on each side, but I get the following (I added a Container gradient with same configuration for comparison): With debug paint mode : I use exactly the same stops for the Container and for the ShaderMask but get different results. Of course I can