Skip to content

feat(shot): capture the whole screen - #8

Merged
koji-1009 merged 1 commit into
feat/shot-actionsfrom
feat/shot-capture-screen
Sep 23, 2026
Merged

koji-1009 merged 1 commit into
feat/shot-actionsfrom
feat/shot-capture-screen

Conversation

@koji-1009

@koji-1009 koji-1009 commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

The PNG held only the preview, so a menu, a dialog, a bottom sheet, or a tooltip the app draws above it never showed, whether an action opened it or not. --capture screen captures the root layer at the viewport's size, with the shell's surface; --viewport sets that size, the preview at its top left, so a small preview has room for what opens.

A 200x56 DropdownButton preview, tapped open with --tap 'type:DropdownButton<String>':

preview only --capture screen --viewport 200x300 --settle 700
Dropdown preview, the menu outside it Whole screen with the open menu

Part of the v0.2.0 stack: #7 → #8 → #9 → #10.

🤖 Generated with Claude Code

The PNG held only the preview, so a menu, a dialog, a bottom sheet, or
a tooltip the app draws above it never showed, whether an action
opened it or not. --capture screen captures the root layer at the
viewport's size, with the shell's surface; --viewport sets that size,
the preview at its top left, so a small preview has room for what
opens.

The root layer already carries the device pixel ratio, so it is drawn
at 1 over its physical bounds. A tap that pushes a page is shot with
it rather than failing. The run records the capture and the viewport;
shot prints them, and diff prints both runs' when they differ.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@koji-1009
koji-1009 added this pull request to stack #11 September 22, 2026 23:54
@koji-1009
koji-1009 merged commit e453d29 into main Sep 23, 2026
5 checks passed
@koji-1009
koji-1009 deleted the feat/shot-capture-screen branch September 23, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants