public override void debugFillProperties(DiagnosticPropertiesBuilder properties) { base.debugFillProperties(properties); properties.add(new StringProperty("data", data, showName: false)); if (textSpan != null) { properties.add( textSpan.toDiagnosticsNode(name: "textSpan", style: DiagnosticsTreeStyle.transition)); } if (style != null) { style.debugFillProperties(properties); } properties.add(new EnumProperty <TextAlign?>("textAlign", textAlign, defaultValue: foundation_.kNullDefaultValue)); properties.add(new FlagProperty("softWrap", value: softWrap, ifTrue: "wrapping at box width", ifFalse: "no wrapping except at line break characters", showName: true)); properties.add(new EnumProperty <TextOverflow?>("overflow", overflow, defaultValue: foundation_.kNullDefaultValue)); properties.add(new FloatProperty("textScaleFactor", textScaleFactor, defaultValue: foundation_.kNullDefaultValue)); properties.add(new IntProperty("maxLines", maxLines, defaultValue: foundation_.kNullDefaultValue)); properties.add(new EnumProperty <TextWidthBasis?>("textWidthBasis", textWidthBasis, defaultValue: null)); properties.add(new DiagnosticsProperty <ui.TextHeightBehavior>("textHeightBehavior", textHeightBehavior, defaultValue: null)); }
public virtual void debugFillProperties(DiagnosticPropertiesBuilder properties) { base.debugFillProperties(properties); properties.defaultDiagnosticsTreeStyle = DiagnosticsTreeStyle.whitespace; if (style != null) { style.debugFillProperties(properties); } }
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) { base.debugFillProperties(properties); properties.add(new StringProperty("message", message, showName: false)); properties.add(new EnumProperty <TextDirection?>("textDirection", textDirection, defaultValue: null)); properties.add(new EnumProperty <BannerLocation?>("location", location)); properties.add(new EnumProperty <TextDirection?>("layoutDirection", layoutDirection, defaultValue: null)); properties.add(new ColorProperty("color", color, showName: false)); textStyle?.debugFillProperties(properties, prefix: "text "); }
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) { base.debugFillProperties(properties); style?.debugFillProperties(properties); properties.add(new EnumProperty <TextAlign?>("textAlign", textAlign, defaultValue: null)); properties.add(new FlagProperty("softWrap", value: softWrap, ifTrue: "wrapping at box width", ifFalse: "no wrapping except at line break characters", showName: true)); properties.add(new EnumProperty <TextOverflow>("overflow", overflow, defaultValue: null)); properties.add(new IntProperty("maxLines", maxLines, defaultValue: null)); properties.add(new EnumProperty <TextWidthBasis>("textWidthBasis", textWidthBasis, defaultValue: TextWidthBasis.parent)); properties.add(new DiagnosticsProperty <ui.TextHeightBehavior>("textHeightBehavior", textHeightBehavior, defaultValue: null)); }
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) { base.debugFillProperties(properties); properties.add(new EnumProperty <MaterialType>("type", type)); properties.add(new FloatProperty("elevation", elevation, defaultValue: 0.0f)); properties.add(new ColorProperty("color", color, defaultValue: null)); properties.add(new ColorProperty("shadowColor", shadowColor, defaultValue: new Color(0xFF000000))); textStyle?.debugFillProperties(properties); properties.add(new DiagnosticsProperty <ShapeBorder>("shape", shape, defaultValue: null)); properties.add(new DiagnosticsProperty <bool>("borderOnForeground", borderOnForeground, defaultValue: null)); properties.add( new DiagnosticsProperty <BorderRadius>("borderRadius", borderRadius, defaultValue: null)); }
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) { base.debugFillProperties(properties); textStyle?.debugFillProperties(properties, prefix: "textStyle."); properties.add(new DiagnosticsProperty <BoxConstraints>("constraints", constraints, defaultValue: null)); properties.add(new ColorProperty("color", color, defaultValue: null)); properties.add(new ColorProperty("selectedColor", selectedColor, defaultValue: null)); properties.add(new ColorProperty("disabledColor", disabledColor, defaultValue: null)); properties.add(new ColorProperty("fillColor", fillColor, defaultValue: null)); properties.add(new ColorProperty("focusColor", focusColor, defaultValue: null)); properties.add(new ColorProperty("highlightColor", highlightColor, defaultValue: null)); properties.add(new ColorProperty("hoverColor", hoverColor, defaultValue: null)); properties.add(new ColorProperty("splashColor", splashColor, defaultValue: null)); properties.add(new ColorProperty("borderColor", borderColor, defaultValue: null)); properties.add(new ColorProperty("selectedBorderColor", selectedBorderColor, defaultValue: null)); properties.add(new ColorProperty("disabledBorderColor", disabledBorderColor, defaultValue: null)); properties.add(new DiagnosticsProperty <BorderRadius>("borderRadius", borderRadius, defaultValue: null)); properties.add(new FloatProperty("borderWidth", borderWidth, defaultValue: null)); }
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) { base.debugFillProperties(properties); properties.add(new FlagProperty("disabled", value: onPressed == null, ifTrue: "Buttons are disabled", ifFalse: "Buttons are enabled" )); textStyle?.debugFillProperties(properties, prefix: "textStyle."); properties.add(new ColorProperty("color", color, defaultValue: null)); properties.add(new ColorProperty("selectedColor", selectedColor, defaultValue: null)); properties.add(new ColorProperty("disabledColor", disabledColor, defaultValue: null)); properties.add(new ColorProperty("fillColor", fillColor, defaultValue: null)); properties.add(new ColorProperty("focusColor", focusColor, defaultValue: null)); properties.add(new ColorProperty("highlightColor", highlightColor, defaultValue: null)); properties.add(new ColorProperty("hoverColor", hoverColor, defaultValue: null)); properties.add(new ColorProperty("splashColor", splashColor, defaultValue: null)); properties.add(new ColorProperty("borderColor", borderColor, defaultValue: null)); properties.add(new ColorProperty("selectedBorderColor", selectedBorderColor, defaultValue: null)); properties.add(new ColorProperty("disabledBorderColor", disabledBorderColor, defaultValue: null)); properties.add(new DiagnosticsProperty <BorderRadius>("borderRadius", borderRadius, defaultValue: null)); properties.add(new FloatProperty("borderWidth", borderWidth, defaultValue: null)); }