Fixes for Dart 2 failures in tests (#18371)
This commit is contained in:
committed by
GitHub
parent
b8b34def39
commit
aecb7d9607
@@ -510,7 +510,7 @@ class AndroidDevice extends Device {
|
||||
bool get supportsScreenshot => true;
|
||||
|
||||
@override
|
||||
Future<Null> takeScreenshot(File outputFile) async {
|
||||
Future<void> takeScreenshot(File outputFile) async {
|
||||
const String remotePath = '/data/local/tmp/flutter_screenshot.png';
|
||||
await runCheckedAsync(adbCommandForDevice(<String>['shell', 'screencap', '-p', remotePath]));
|
||||
await runCheckedAsync(adbCommandForDevice(<String>['pull', remotePath, outputFile.path]));
|
||||
|
||||
Reference in New Issue
Block a user