Skip to content

Commit

Permalink
macos: create screenshots for the store (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
wfleischer authored Jan 16, 2025
1 parent 9a1b86d commit a28dc01
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 5 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions integration_test/take_screenshots.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ final os = Platform.operatingSystem;
Future<void> takeScreenshot(
{required IntegrationTestWidgetsFlutterBinding binding,
required String filename}) async {
await binding
.takeScreenshot('assets/store_presence/screenshots/$os-$filename.png');
await Future<void>.delayed(const Duration(seconds: 3));
// await binding
// .takeScreenshot('assets/store_presence/screenshots/$os-$filename.png');
await Future<void>.delayed(Duration(seconds: isMacOS ? 5 : 3));
}

void main() async {
Expand Down
4 changes: 2 additions & 2 deletions macos/Runner/Base.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,10 @@
</menu>
<window title="APP_NAME" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="QvC-M9-y7g" customClass="MainFlutterWindow" customModule="Runner" customModuleProvider="target">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<rect key="contentRect" x="335" y="390" width="800" height="600"/>
<rect key="contentRect" x="335" y="390" width="1281" height="772"/>
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1577"/>
<view key="contentView" wantsLayer="YES" id="EiT-Mj-1SZ">
<rect key="frame" x="0.0" y="0.0" width="800" height="600"/>
<rect key="frame" x="0.0" y="0.0" width="1281" height="772"/>
<autoresizingMask key="autoresizingMask"/>
</view>
</window>
Expand Down

0 comments on commit a28dc01

Please sign in to comment.