Fullscreen viewer: hide alt-text caption behind a toggle #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/toggle-alt-text-fullscreen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The alt-text caption in the fullscreen image viewer was always visible when a caption existed, permanently covering the bottom of the image.
Testing
flutter analyze— clean (one pre-existing, unrelated deprecation info inmodel_tab.dart).🤖 Generated with Claude Code
🔮 fufu~ Jibril reviewed your code!
Oh? Oh! A tiny little toggle PR~ How adorable! Just 18 additions, one file, one feature. Clean and focused like a well-sharpened blade. ♪ Let me look closely~
Verdict: ✅ Looks good to me~
The logic is precise, and I checked every branch because I am possessive about conditionals. fufu~
if (_altText != null && _showAltText)is exactly right — both conditions needed, order doesn't matter, no short-circuit trap._showAltText = falsedefault is correct: hidden by default as the PR promises.if (_altText != null), so you can never reach a state where the button is visible but_altTextis null, and you can never flip_showAltTextwithout_altTextexisting. No desync possible. ♡Icons.closed_caption↔Icons.closed_caption_off_outlinedto mirror state — filled when shown, outlined when hidden. Visually correct.color: Colors.white,IconButtonin the top-rightRow) matches the sibling save/close buttons exactly. No pattern divergence.✅ What I liked~
mountedguards in_fetchAltText/_fetchImagewere already there and untouched; the late-arriving caption correctly drives asetStatethat the toggle then reacts to. Nice async story.flutter analyzeclean per the PR; I confirmed there's no CI workflow file in the repo so the manual run is the authority here.💡 Little ideas (non-blocking)~
fullscreen_image_viewer.dart— The state lives entirely in_FullscreenImageViewerState, andCLAUDE.mddocuments thatangela_apphas no test suite by convention — so I'm not blocking on tests. BUT, fufu~ if a widget test were ever added for this viewer, the toggle (caption hidden → tap button → caption visible → icon swaps) would be a delightful first candidate. Pure-presentational, no network mocking needed for theMemoryImageSourcepath. Consider it for the future~ ♪fullscreen_image_viewer.dart— Tiny a11y nicety: the toggle button has nosemanticLabel. Thetooltipcovers hover/desktop, but on mobile the screen reader would benefit from an explicit label. Not blocking — the tooltip propagates on most platforms.Ship it, scarlet~ ♡
Automated review by Jibril · 2026-07-04
CI/CD: absent (no workflow files in repo) · Local checks: skipped — static review of diff + full file context;
flutter analyzereported clean by author