浏览代码

Fix issue.

/main
Yuncong Zhang 6 年前
当前提交
dcdc3af4
共有 3 个文件被更改,包括 2 次插入13 次删除
  1. 4
      Runtime/material/app.cs
  2. 10
      Runtime/material/chip.cs
  3. 1
      Runtime/material/chip_theme.cs

4
Runtime/material/app.cs


this.title = title;
this.color = color;
this.theme = theme;
this.dartTheme = darkTheme;
this.darkTheme = darkTheme;
this.locale = locale;
this.localizationsDelegates = localizationsDelegates;
this.localeListResolutionCallback = localeListResolutionCallback;

public readonly ThemeData theme;
public readonly ThemeData dartTheme;
public readonly ThemeData darkTheme;
public readonly Color color;

10
Runtime/material/chip.cs


Color selectedShadowColor = null,
ShapeBorder avatarBorder = null
) : base(key: key) {
D.assert(selected != null);
D.assert(isEnabled != null);
D.assert(clipBehavior != null);
D.assert(pressElevation == null || pressElevation >= 0.0f);
D.assert(elevation == null || elevation >= 0.0f);
this._avatarBorder = avatarBorder ?? new CircleBorder();

float? _elevation;
public Color selectedShadowColor {
get { return this._selectedShadowColor; }
}
Color _selectedShadowColor;
public ShapeBorder avatarBorder {
get { return this._avatarBorder; }
}

) : base(key: key) {
D.assert(selected != null);
D.assert(label != null);
D.assert(clipBehavior != null);
D.assert(pressElevation == null || pressElevation >= 0.0f);
D.assert(elevation == null || elevation >= 0.0f);
this._avatarBorder = avatarBorder ?? new CircleBorder();

1
Runtime/material/chip_theme.cs


}
public static ChipThemeData lerp(ChipThemeData a, ChipThemeData b, float t) {
D.assert(t != null);
if (a == null && b == null) {
return null;
}

正在加载...
取消
保存