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
cde6b669
Commit
cde6b669
authored
Sep 21, 2017
by
Alexandre Ardhuin
Committed by
GitHub
Sep 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unnecessary statements (#12189)
parent
f9e8da6d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
test.dart
dev/bots/test.dart
+0
-1
image.dart
packages/flutter/lib/src/rendering/image.dart
+1
-1
image_test.dart
packages/flutter/test/rendering/image_test.dart
+7
-0
No files found.
dev/bots/test.dart
View file @
cde6b669
...
...
@@ -263,7 +263,6 @@ Future<Null> _verifyNoBadImports(String workingDirectory) async {
final
String
libPath
=
path
.
join
(
workingDirectory
,
'packages'
,
'flutter'
,
'lib'
);
final
String
srcPath
=
path
.
join
(
workingDirectory
,
'packages'
,
'flutter'
,
'lib'
,
'src'
);
// Verify there's one libPath/*.dart for each srcPath/*/.
<
String
>[];
final
List
<
String
>
packages
=
new
Directory
(
libPath
).
listSync
()
.
where
((
FileSystemEntity
entity
)
=>
entity
is
File
&&
path
.
extension
(
entity
.
path
)
==
'.dart'
)
.
map
<
String
>((
FileSystemEntity
entity
)
=>
path
.
basenameWithoutExtension
(
entity
.
path
))
...
...
packages/flutter/lib/src/rendering/image.dart
View file @
cde6b669
...
...
@@ -128,7 +128,7 @@ class RenderImage extends RenderBox {
set
colorBlendMode
(
BlendMode
value
)
{
if
(
value
==
_colorBlendMode
)
return
;
_colorBlendMode
;
_colorBlendMode
=
value
;
_updateColorFilter
();
markNeedsPaint
();
}
...
...
packages/flutter/test/rendering/image_test.dart
View file @
cde6b669
...
...
@@ -201,4 +201,11 @@ void main() {
expect
(
image
.
size
.
width
,
equals
(
75.0
));
expect
(
image
.
size
.
height
,
equals
(
75.0
));
});
test
(
'update image colorBlendMode'
,
()
{
final
RenderImage
image
=
new
RenderImage
();
expect
(
image
.
colorBlendMode
,
isNull
);
image
.
colorBlendMode
=
BlendMode
.
color
;
expect
(
image
.
colorBlendMode
,
BlendMode
.
color
);
});
}
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