1
0
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:
Parker Lougheed
2022-12-15 21:36:04 -06:00
committed by GitHub
parent 7e11b89445
commit 9a82e003ba
15 changed files with 77 additions and 68 deletions

View File

@@ -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);