보기 화면: 키만 받는 Focus 감싸개는 접근성 노드를 만들지 않음 - 'node.built' assert 고침 (28 지적 10/20)

- 장을 손으로 넘긴 뒤 [사진 정보] 창을 닫아 포커스가 보기 화면으로 돌아올 때, 화면 전체를 감싼 Focus 의 접근성 노드가 바뀌며
  디버그 판에서 Flutter 접근성 assert ('node.built', rendering/object.dart) 가 났다 (rc2 에서도 같음)
- 갈라 보기: 장 넘기기 + 창 둘 다 있어야 남 · 그림 내용 · 아래 막대 · ColorFiltered 를 빼도 남 · 이 Focus 를 빼면 사라짐
- 고침: includeSemantics: false (키 받기 · autofocus 는 그대로, 화면 읽기 프로그램이 읽을 단추 · 그림은 안쪽에 그대로)

확인: analyze 0 · reader_dialog_semantics 2/2 ×2 (예전 늘 실패) · windows_reader_shot ×2 · 단위 1475 ×2 · 통합 6/6 ×2 · base10 214장 0px

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
modular
RyuJongJin 2026-10-24 08:40:51 +09:00
parent 051c259d89
commit e89a0ff2d7
1 changed files with 3 additions and 0 deletions

View File

@ -469,8 +469,11 @@ class _ReaderPageState extends State<ReaderPage> {
Navigator.of(context).pop();
}
},
// 키만 받는 화면 전체 감싸개 - 접근성 노드는 만들지 않는다 (28 지적 10/20: 장을 넘긴 뒤 창을 닫아 포커스가 돌아올 때
// 이 노드가 바뀌며 디버그 판에서 접근성 assert 'node.built' 가 났다. 화면 읽기 프로그램이 읽을 것은 안의 단추 · 그림)
child: Focus(
autofocus: true,
includeSemantics: false,
onKeyEvent: _onKey,
child: Scaffold(
backgroundColor: Colors.black,