unnecessary statements (#12189)
This commit is contained in:
parent
f9e8da6d32
commit
cde6b669b3
@ -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);
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user