Skip to content

fix(avatar): アイコン範囲選択で初回に画像が出ない/小さく出る不具合を修正 - #54

Merged
Aki0615 merged 1 commit into
mainfrom
fix/avatar-crop-initial-view
Sep 19, 2026
Merged

Aki0615 merged 1 commit into
mainfrom
fix/avatar-crop-initial-view

Conversation

@matsuki-yuki

Copy link
Copy Markdown
Collaborator

初期変換をInteractiveViewerのコントローラーに後入れする方式が初回描画に反映されず、タップするまで画像が出ない/小さいままだった。
方式を変更し、InteractiveViewerの子を枠サイズ(viewportSize)のSizedBox + Image.file(BoxFit.cover)にして、識別変換なしで初回から枠いっぱいに表示。

初期変換をInteractiveViewerのコントローラーに後入れする方式が初回描画に反映されず、タップするまで画像が出ない/小さいままだった。方式を変更し、InteractiveViewerの子を枠サイズ(viewportSize)のSizedBox + Image.file(BoxFit.cover)にして、識別変換なしで初回から枠いっぱいに表示。minScale=1.0(cover未満に縮小不可)、boundaryMargin=0(枠外にパンさせない)。決定時のRepaintBoundary切り出しは従来どおり枠内を取得。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MzGT93xk4pzRztu1C8aQnM
@Aki0615
Aki0615 merged commit e039fc1 into main Sep 19, 2026
1 check passed
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