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
0dd7285d
Commit
0dd7285d
authored
Feb 27, 2016
by
Hans Muller
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2239 from HansMuller/icon
Disabled IconButtons render correctly
parents
fc564f0c
faf55dda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
icon.dart
packages/flutter/lib/src/material/icon.dart
+1
-1
icon_button.dart
packages/flutter/lib/src/material/icon_button.dart
+2
-1
No files found.
packages/flutter/lib/src/material/icon.dart
View file @
0dd7285d
...
...
@@ -84,7 +84,7 @@ class Icon extends StatelessComponent {
final
int
iconAlpha
=
(
255.0
*
(
IconTheme
.
of
(
context
)?.
clampedOpacity
??
1.0
)).
round
();
if
(
iconAlpha
!=
255
)
{
if
(
color
!=
null
)
{
iconColor
=
color
.
withAlpha
(
iconAlpha
);
iconColor
=
color
.
withAlpha
(
(
iconAlpha
*
color
.
opacity
).
round
()
);
}
else
{
switch
(
iconThemeColor
)
{
case
IconThemeColor
.
black
:
...
...
packages/flutter/lib/src/material/icon_button.dart
View file @
0dd7285d
...
...
@@ -7,6 +7,7 @@ import 'package:flutter/widgets.dart';
import
'icon.dart'
;
import
'icon_theme_data.dart'
;
import
'ink_well.dart'
;
import
'theme.dart'
;
import
'tooltip.dart'
;
/// A material design "icon button".
...
...
@@ -47,7 +48,7 @@ class IconButton extends StatelessComponent {
size:
size
,
icon:
icon
,
colorTheme:
colorTheme
,
color:
c
olor
color:
onPressed
!=
null
?
color
:
Theme
.
of
(
context
).
disabledC
olor
)
);
if
(
tooltip
!=
null
)
{
...
...
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