浏览代码

widgetapp + material bug fix

/main
xingwei.zhu 6 年前
当前提交
c761e114
共有 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;
}

正在加载...
取消
保存