Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
a6eeaa5e
Commit
a6eeaa5e
authored
Apr 08, 2017
by
Ian Hickson
Committed by
GitHub
Apr 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some typos in icon_theme.dart (#9296)
parent
ebe6da5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
icon_theme.dart
packages/flutter/lib/src/material/icon_theme.dart
+3
-3
icon_theme_data.dart
packages/flutter/lib/src/material/icon_theme_data.dart
+1
-1
No files found.
packages/flutter/lib/src/material/icon_theme.dart
View file @
a6eeaa5e
...
...
@@ -37,7 +37,7 @@ class IconTheme extends InheritedWidget {
})
{
return
new
IconTheme
(
key:
key
,
data:
_getInheritedIconThemData
(
context
).
merge
(
data
),
data:
_getInheritedIconThem
e
Data
(
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
=
_getInheritedIconThem
e
Data
(
context
);
return
iconThemeData
.
isConcrete
?
iconThemeData
:
const
IconThemeData
.
fallback
().
merge
(
iconThemeData
);
}
static
IconThemeData
_getInheritedIconThemData
(
BuildContext
context
)
{
static
IconThemeData
_getInheritedIconThem
e
Data
(
BuildContext
context
)
{
final
IconTheme
iconTheme
=
context
.
inheritFromWidgetOfExactType
(
IconTheme
);
return
iconTheme
?.
data
??
Theme
.
of
(
context
).
iconTheme
;
}
...
...
packages/flutter/lib/src/material/icon_theme_data.dart
View file @
a6eeaa5e
...
...
@@ -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.
///
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment