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
b53ac0dd
Unverified
Commit
b53ac0dd
authored
Sep 06, 2018
by
Jonah Williams
Committed by
GitHub
Sep 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change expand icon to use default icon colors (#21328)
parent
f5efbc43
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
colors.dart
packages/flutter/lib/src/material/colors.dart
+13
-0
expand_icon.dart
packages/flutter/lib/src/material/expand_icon.dart
+2
-1
No files found.
packages/flutter/lib/src/material/colors.dart
View file @
b53ac0dd
...
...
@@ -321,6 +321,19 @@ class Colors {
/// but with different opacities.
static
const
Color
white70
=
Color
(
0xB3FFFFFF
);
/// White with 54% opacity.
///
/// ![](https://flutter.github.io/assets-for-api-docs/assets/material/Colors.whites.png)
///
/// See also:
///
/// * [ExpandIcon], which uses this color for dark themes.
/// * [Theme.of], which allows you to select colors from the current theme
/// rather than hard-coding colors in your build methods.
/// * [white, white30, white12, white10], which are variants on this color
/// but with different opacities.
static
const
Color
white54
=
Color
(
0x8AFFFFFF
);
/// White with 32% opacity.
///
/// Used for disabled radio buttons and the text of disabled flat buttons in dark themes.
...
...
packages/flutter/lib/src/material/expand_icon.dart
View file @
b53ac0dd
...
...
@@ -110,13 +110,14 @@ class _ExpandIconState extends State<ExpandIcon> with SingleTickerProviderStateM
Widget
build
(
BuildContext
context
)
{
assert
(
debugCheckHasMaterial
(
context
));
final
MaterialLocalizations
localizations
=
MaterialLocalizations
.
of
(
context
);
final
ThemeData
theme
=
Theme
.
of
(
context
);
final
String
onTapHint
=
widget
.
isExpanded
?
localizations
.
expandedIconTapHint
:
localizations
.
collapsedIconTapHint
;
return
new
Semantics
(
onTapHint:
widget
.
onPressed
==
null
?
null
:
onTapHint
,
child:
new
IconButton
(
padding:
widget
.
padding
,
color:
Colors
.
black38
,
color:
theme
.
brightness
==
Brightness
.
dark
?
Colors
.
white54
:
Colors
.
black54
,
onPressed:
widget
.
onPressed
==
null
?
null
:
_handlePressed
,
icon:
new
RotationTransition
(
turns:
_iconTurns
,
...
...
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