diff --git a/packages/flutter_tools/lib/src/ios/devices.dart b/packages/flutter_tools/lib/src/ios/devices.dart index 14b1b91c0b..d9e7750579 100644 --- a/packages/flutter_tools/lib/src/ios/devices.dart +++ b/packages/flutter_tools/lib/src/ios/devices.dart @@ -376,7 +376,9 @@ class IOSDevice extends Device { bool get supportsScreenshot => iMobileDevice.isInstalled; @override - Future takeScreenshot(File outputFile) => iMobileDevice.takeScreenshot(outputFile); + Future takeScreenshot(File outputFile) async { + await iMobileDevice.takeScreenshot(outputFile); + } } /// Decodes an encoded syslog string to a UTF-8 representation.