Skip to content

Commit c68603e

Browse files
committed
기록서 목록에서 효과 설명만 왼쪽으로 튀어나오던 것을 고침
서고 목록의 한 줄은 [등급 아이콘][이름·발동 방식][가격]인데, 효과 설명은 아이콘보다 더 왼쪽에서 시작한다. 한 항목이 두 덩어리로 갈라져 보이고, 윗줄이 어느 책 것인지 눈으로 잇기 어렵다. 설명·대가·준비 중 표시가 아이콘을 담은 Row의 형제로 붙어 있어서 행 맨 왼쪽에서 시작했다. 아이콘 30 + 간격 8만큼 들여써 이름과 같은 줄에서 시작하게 했다.
1 parent 1af772e commit c68603e

1 file changed

Lines changed: 23 additions & 12 deletions

File tree

app/lib/features/expedition/presentation/skill_book_screen.dart

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -434,19 +434,30 @@ class _BookRow extends StatelessWidget {
434434
),
435435
],
436436
),
437-
Text(book.effectSummary, style: theme.textTheme.bodySmall),
438-
if (book.tradeoff != null)
439-
Text(
440-
'대가 · ${book.tradeoff}',
441-
style: theme.textTheme.bodySmall,
442-
),
443-
// 효과가 아직 판정에 없으면 그렇다고 밝힌다. 있는 척하지 않는다.
444-
if (!book.combatEffect)
445-
Text(
446-
'효과를 준비하고 있어요',
447-
key: ValueKey('pending-${book.code}'),
448-
style: theme.textTheme.labelSmall,
437+
// 아래 설명은 위 이름과 같은 줄에서 시작해야 한다. 그냥 두면
438+
// 등급 아이콘보다 왼쪽에서 시작해 한 항목이 두 덩어리로 보인다.
439+
// 30(아이콘) + 8(간격)만큼 들여쓴다.
440+
Padding(
441+
padding: const EdgeInsets.only(left: 38),
442+
child: Column(
443+
crossAxisAlignment: CrossAxisAlignment.start,
444+
children: [
445+
Text(book.effectSummary, style: theme.textTheme.bodySmall),
446+
if (book.tradeoff != null)
447+
Text(
448+
'대가 · ${book.tradeoff}',
449+
style: theme.textTheme.bodySmall,
450+
),
451+
// 효과가 아직 판정에 없으면 그렇다고 밝힌다. 있는 척하지 않는다.
452+
if (!book.combatEffect)
453+
Text(
454+
'효과를 준비하고 있어요',
455+
key: ValueKey('pending-${book.code}'),
456+
style: theme.textTheme.labelSmall,
457+
),
458+
],
449459
),
460+
),
450461
],
451462
),
452463
),

0 commit comments

Comments
 (0)