mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 17:00:39 +00:00
typo
This commit is contained in:
parent
48dc1e0870
commit
5865140574
2 changed files with 2 additions and 3 deletions
|
@ -38,8 +38,7 @@ Future<int> main(List<String> args) async {
|
||||||
platformFolder: platform,
|
platformFolder: platform,
|
||||||
);
|
);
|
||||||
|
|
||||||
final file =
|
final file = await File(screenshotArgs.toPath(layout.name)).create(recursive: true);
|
||||||
await File('screenshots/generated/$platform/${layout.name}/${screenshotArgs.name}.png').create(recursive: true);
|
|
||||||
file.writeAsBytesSync(
|
file.writeAsBytesSync(
|
||||||
encodePng(
|
encodePng(
|
||||||
screenshot.convertToStoreScreenshot(
|
screenshot.convertToStoreScreenshot(
|
||||||
|
|
|
@ -31,7 +31,7 @@ class ScreenshotArgs {
|
||||||
|
|
||||||
String toPathRaw() =>
|
String toPathRaw() =>
|
||||||
'$_folderPrefix/raw/$platformFolder/$deviceName/$nameWithTheme$_pathArgsDelimited$backgroundColor.png';
|
'$_folderPrefix/raw/$platformFolder/$deviceName/$nameWithTheme$_pathArgsDelimited$backgroundColor.png';
|
||||||
String toPath() => '$_folderPrefix/$platformFolder/$deviceName/$name.png';
|
String toPath(String layoutName) => '$_folderPrefix/$platformFolder/$layoutName/$nameWithTheme.png';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => jsonEncode(_toJson());
|
String toString() => jsonEncode(_toJson());
|
||||||
|
|
Loading…
Reference in a new issue