File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,12 @@ enum BlendModeC {
163163 ///
164164 /// This corresponds to the "Source plus Destination" Porter-Duff operator.
165165 ///
166+ /// This is the right blend mode for cross-fading between two images. Consider
167+ /// two images A and B, and an interpolation time variable _t_ (from 0.0 to
168+ /// 1.0). To cross fade between them, A should be drawn with opacity 1.0 - _t_
169+ /// into a new layer using [BlendMode.srcOver] , and B should be drawn on top
170+ /// of it, at opacity _t_, into the same layer, using [BlendMode.plus] .
171+ ///
166172 /// ![] (https://flutter.github.io/assets-for-api-docs/assets/dart-ui/blend_mode_plus.png)
167173 plus,
168174
@@ -380,7 +386,7 @@ enum BlendModeC {
380386 /// [srcOver] . Regions that are entirely transparent in the source image take
381387 /// their saturation from the destination.
382388 ///
383- /// ![] (https://flutter.github.io/assets-for-api-docs/assets/dart-ui/blend_mode_hue .png)
389+ /// ![] (https://flutter.github.io/assets-for-api-docs/assets/dart-ui/blend_mode_saturation .png)
384390 ///
385391 /// See also:
386392 ///
You can’t perform that action at this time.
0 commit comments