전역 구조 리팩터링 및 테스트 확장
This commit is contained in:
@@ -255,7 +255,14 @@ class _PostalSearchDialogState extends State<_PostalSearchDialog> {
|
||||
],
|
||||
],
|
||||
onRowTap: (index) {
|
||||
navigator.pop(_results[index]);
|
||||
if (_results.isEmpty) {
|
||||
return;
|
||||
}
|
||||
final adjustedIndex = (index - 1).clamp(
|
||||
0,
|
||||
_results.length - 1,
|
||||
);
|
||||
navigator.pop(_results[adjustedIndex]);
|
||||
},
|
||||
emptyLabel: '검색 결과가 없습니다.',
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user