Commit cde6b669 authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

unnecessary statements (#12189)

parent f9e8da6d
......@@ -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))
......
......@@ -128,7 +128,7 @@ class RenderImage extends RenderBox {
set colorBlendMode(BlendMode value) {
if (value == _colorBlendMode)
return;
_colorBlendMode;
_colorBlendMode = value;
_updateColorFilter();
markNeedsPaint();
}
......
......@@ -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);
});
}
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