AntdTextColorDefine class
theme
- Inheritance
- Available extensions
Constructors
- AntdTextColorDefine({required Color color, required Color secondary, required Color tertiary, required Color quaternary, required Color disabled})
- AntdTextColorDefine.generate(Color colorTextBase, AntdOpacityDefine opacity)
-
factory
Properties
- a → double
-
The alpha channel of this color.
finalinherited
- alpha → int
-
The alpha channel of this color in an 8 bit value.
no setterinherited
- b → double
-
The blue channel of this color.
finalinherited
- blue → int
-
The blue channel of this color in an 8 bit value.
no setterinherited
- color → Color
-
最深的文本色。为了符合W3C标准,默认的文本颜色使用了该色,同时这个颜色也是最深的中性色。
final
- colorSpace → ColorSpace
-
The color space of this color.
finalinherited
- disabled → Color
-
文本禁用色
final
- g → double
-
The green channel of this color.
finalinherited
- green → int
-
The green channel of this color in an 8 bit value.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- opacity → double
-
The alpha channel of this color as a double.
no setterinherited
- quaternary → Color
-
第四级文本色是最浅的文本色,例如表单的输入提示文本、禁用色文本等。
final
- r → double
-
The red channel of this color.
finalinherited
- red → int
-
The red channel of this color in an 8 bit value.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondary → Color
-
作为第二梯度的文本色,一般用在不那么需要强化文本颜色的场景,例如 Label 文本、Menu 的文本选中态等场景。
final
- tertiary → Color
-
第三级文本色一般用于描述性文本,例如表单的中的补充说明文本、列表的描述性文本等场景。
final
- toHex → String
-
Available on Color, provided by the ColorExtensions extension
no setter - value → int
-
A 32 bit value representing this color.
no setterinherited
Methods
-
computeLuminance(
) → double -
Returns a brightness value between 0 for darkest and 1 for lightest.
inherited
-
copyFrom(
AntdTextColorDefine? other) → AntdTextColorDefine -
generate(
[bool dark = false, Color backgroundColor = const Color(0xFF141414)]) → Map< int, Color> -
Available on Color, provided by the ColorExtensions extension
-
getHue(
HSVColor hsv, int i, [bool isLight = false]) → double -
Available on Color, provided by the ColorExtensions extension
-
getOriginalColor(
double knownAlpha) → Color -
Available on Color, provided by the ColorExtensions extension
-
getSaturation(
HSVColor hsv, int i, [bool isLight = false]) → double -
Available on Color, provided by the ColorExtensions extension
-
getValue(
HSVColor hsv, int i, [bool isLight = false]) → double -
Available on Color, provided by the ColorExtensions extension
-
lightness(
[double amount = 10, bool dark = true]) → Color -
Available on Color, provided by the ColorExtensions extension
-
mix(
double alpha, Color color) → Color -
Available on Color, provided by the ColorExtensions extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toARGB32(
) → int -
Returns a 32-bit value representing this color.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withAlpha(
int a) → Color -
Returns a new color that matches this color with the alpha channel
replaced with
a
(which ranges from 0 to 255).inherited -
withBlue(
int b) → Color -
Returns a new color that matches this color with the blue channel replaced
with
b
(which ranges from 0 to 255).inherited -
withGreen(
int g) → Color -
Returns a new color that matches this color with the green channel
replaced with
g
(which ranges from 0 to 255).inherited -
withOpacity(
double opacity) → Color -
Returns a new color that matches this color with the alpha channel
replaced with the given
opacity
(which ranges from 0.0 to 1.0).inherited -
withRed(
int r) → Color -
Returns a new color that matches this color with the red channel replaced
with
r
(which ranges from 0 to 255).inherited -
withValues(
{double? alpha, double? red, double? green, double? blue, ColorSpace? colorSpace}) → Color -
Returns a new color with the provided components updated.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited