mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix documentation mistake in painting.dart (#5236)
s/`[red]`/_correct color_.
This commit is contained in:
parent
fb303b9e64
commit
be6c51735c
@ -109,8 +109,8 @@ class Color {
|
||||
/// * `a` is the alpha value, with 0 being transparent and 255 being fully
|
||||
/// opaque.
|
||||
/// * `r` is [red], from 0 to 255.
|
||||
/// * `g` is [red], from 0 to 255.
|
||||
/// * `b` is [red], from 0 to 255.
|
||||
/// * `g` is [green], from 0 to 255.
|
||||
/// * `b` is [blue], from 0 to 255.
|
||||
///
|
||||
/// Out of range values are brought into range using modulo 255.
|
||||
///
|
||||
@ -125,8 +125,8 @@ class Color {
|
||||
/// Create a color from red, green, blue, and opacity, similar to `rgba()` in CSS.
|
||||
///
|
||||
/// * `r` is [red], from 0 to 255.
|
||||
/// * `g` is [red], from 0 to 255.
|
||||
/// * `b` is [red], from 0 to 255.
|
||||
/// * `g` is [green], from 0 to 255.
|
||||
/// * `b` is [blue], from 0 to 255.
|
||||
/// * `opacity` is alpha channel of this color as a double, with 0.0 being
|
||||
/// transparent and 1.0 being fully opaque.
|
||||
///
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user