Commit a6eeaa5e authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

Fix some typos in icon_theme.dart (#9296)

parent ebe6da5b
......@@ -37,7 +37,7 @@ class IconTheme extends InheritedWidget {
}) {
return new IconTheme(
key: key,
data: _getInheritedIconThemData(context).merge(data),
data: _getInheritedIconThemeData(context).merge(data),
child: child
);
}
......@@ -56,11 +56,11 @@ class IconTheme extends InheritedWidget {
/// IconThemeData theme = IconTheme.of(context);
/// ```
static IconThemeData of(BuildContext context) {
final IconThemeData iconThemeData = _getInheritedIconThemData(context);
final IconThemeData iconThemeData = _getInheritedIconThemeData(context);
return iconThemeData.isConcrete ? iconThemeData : const IconThemeData.fallback().merge(iconThemeData);
}
static IconThemeData _getInheritedIconThemData(BuildContext context) {
static IconThemeData _getInheritedIconThemeData(BuildContext context) {
final IconTheme iconTheme = context.inheritFromWidgetOfExactType(IconTheme);
return iconTheme?.data ?? Theme.of(context).iconTheme;
}
......
......@@ -11,7 +11,7 @@ import 'dart:ui' as ui show lerpDouble;
/// widget subtree.
///
/// To obtain the current icon theme, use [IconTheme.of]. To convert an icon
/// theme to a version with all the fields filled in, use [fallback].
/// theme to a version with all the fields filled in, use [new fallback].
class IconThemeData {
/// Creates an icon theme data.
///
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment