Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 854b374

Browse files
authored
Clean up the docstring for ColorFilter.matrix (#46298)
The first line is important since it is pulled out into https://api.flutter.dev/flutter/dart-ui/ColorFilter-class.html. The existing wording is very confusing about what the input actually is. [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
1 parent 4748490 commit 854b374

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/ui/painting.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3482,8 +3482,9 @@ class ColorFilter implements ImageFilter {
34823482
_matrix = null,
34833483
_type = _kTypeMode;
34843484

3485-
/// Construct a color filter that transforms a color by a 5x5 matrix, where
3486-
/// the fifth row is implicitly added in an identity configuration.
3485+
/// Construct a color filter from a 4x5 row-major matrix. The matrix is
3486+
/// interpreted as a 5x5 matrix, where the fifth row is the identity
3487+
/// configuration.
34873488
///
34883489
/// Every pixel's color value, represented as an `[R, G, B, A]`, is matrix
34893490
/// multiplied to create a new color:

0 commit comments

Comments
 (0)