浏览代码

Merge branch 'material' into 'master'

widgetapp + material bug fix

See merge request upm-packages/ui-widgets/com.unity.uiwidgets!125
/main
Shenhua Gu 6 年前
当前提交
64a974e6
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      Runtime/material/theme.cs
  2. 2
      Runtime/widgets/localizations.cs

2
Runtime/material/theme.cs


return inheritedTheme.theme.data;
}
//MaterialLocalizations localizations = MaterialLocalizations.of(context);
MaterialLocalizations localizations = MaterialLocalizations.of(context);
ScriptCategory category = ScriptCategory.englishLike;
ThemeData theme = inheritedTheme?.theme?.data ?? _kFallbackTheme;
return ThemeData.localize(theme, theme.typography.geometryThemeFor(category));

2
Runtime/widgets/localizations.cs


public T resourcesFor<T>(Type type) {
D.assert(type != null);
T resources = (T) this._typeToResources[type];
T resources = (T) this._typeToResources.getOrDefault(type);
return resources;
}

正在加载...
取消
保存