浏览代码

more materials.

/main
kg 6 年前
当前提交
4ff580fd
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 2
      Runtime/material/switch.cs
  2. 2
      Runtime/material/theme_data.cs
  3. 2
      Runtime/material/toggleable.cs

2
Runtime/material/switch.cs


public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);
properties.add(new FlagProperty("value", value: this.value, ifTrue: "on", ifFalse: "off", showName: true));
properties.add(new ObjectFlagProperty<ValueChanged<bool>>("onChanged", this.onChanged, ifNull: "disabled"));
properties.add(new ObjectFlagProperty<ValueChanged<bool?>>("onChanged", this.onChanged, ifNull: "disabled"));
}
}

2
Runtime/material/theme_data.cs


this.iconTheme = iconTheme;
this.primaryIconTheme = primaryIconTheme;
this.accentIconTheme = accentIconTheme;
this.platform = platform;
this.platform = platform.Value;
this.materialTapTargetSize = materialTapTargetSize ?? MaterialTapTargetSize.padded;
this.pageTransitionsTheme = pageTransitionsTheme;
this.colorScheme = colorScheme;

2
Runtime/material/toggleable.cs


}
public abstract class RenderToggleable : RenderConstrainedBox {
RenderToggleable(
protected RenderToggleable(
bool? value = null,
bool tristate = false,
Color activeColor = null,

正在加载...
取消
保存