mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Minor sample index cleanup (#1532)
This commit is contained in:
@@ -14,11 +14,11 @@ import 'package:webdriver/io.dart';
|
||||
class CookbookScraper {
|
||||
late WebDriver _driver;
|
||||
|
||||
Future init() async {
|
||||
Future<void> init() async {
|
||||
_driver = await createDriver(desired: <String, dynamic>{});
|
||||
}
|
||||
|
||||
Future dispose() async {
|
||||
Future<void> dispose() async {
|
||||
await _driver.quit();
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ class CookbookScraper {
|
||||
);
|
||||
}
|
||||
|
||||
Future takeScreenshot(String url) async {
|
||||
Future<void> takeScreenshot(String url) async {
|
||||
var screenshot = await _driver.captureScreenshotAsList();
|
||||
var file = File('web/${screenshotPath(url)}');
|
||||
await file.create(recursive: true);
|
||||
|
||||
Reference in New Issue
Block a user