계정 정보 다이얼로그 추가 및 전체 목록 페치 개선

This commit is contained in:
JiWoong Sul
2025-10-22 01:05:47 +09:00
parent 6b58effc83
commit f4dc83d441
44 changed files with 1636 additions and 362 deletions

View File

@@ -520,6 +520,17 @@ class _InboundPageState extends State<InboundPage> {
style: theme.textTheme.small,
),
const SizedBox(width: 12),
ShadButton.ghost(
size: ShadButtonSize.sm,
onPressed: currentPage <= 1
? null
: () => _goToPage(1),
child: const Icon(
lucide.LucideIcons.chevronsLeft,
size: 16,
),
),
const SizedBox(width: 8),
ShadButton.ghost(
size: ShadButtonSize.sm,
onPressed: currentPage <= 1
@@ -541,6 +552,17 @@ class _InboundPageState extends State<InboundPage> {
size: 16,
),
),
const SizedBox(width: 8),
ShadButton.ghost(
size: ShadButtonSize.sm,
onPressed: currentPage >= totalPages
? null
: () => _goToPage(totalPages),
child: const Icon(
lucide.LucideIcons.chevronsRight,
size: 16,
),
),
],
),
],
@@ -1060,7 +1082,11 @@ class _InboundPageState extends State<InboundPage> {
}
void _goToPage(int page) {
final target = page < 1 ? 1 : page;
final totalItems = _result?.total ?? _filteredRecords.length;
final totalPages = _calculateTotalPages(totalItems);
final int target = page < 1
? 1
: (page > totalPages ? totalPages : page);
if (target == _currentPage) {
return;
}