未验证 提交 fee85ab1 编写于 作者: M Mouad Debbar 提交者: GitHub

[web] Don't set both color and foreground at the same time (#24828)

上级 510d2abf
......@@ -403,7 +403,7 @@ abstract class StyleNode {
return style;
}
ui.Color get _color;
ui.Color? get _color;
ui.TextDecoration? get _decoration;
ui.Color? get _decorationColor;
ui.TextDecorationStyle? get _decorationStyle;
......@@ -439,7 +439,7 @@ class ChildStyleNode extends StyleNode {
// property isn't defined, go to the parent node.
@override
ui.Color get _color => style._color ?? parent._color;
ui.Color? get _color => style._color ?? (_foreground == null ? parent._color : null);
@override
ui.TextDecoration? get _decoration => style._decoration ?? parent._decoration;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册