fix(app/schedule): 날짜 스크롤 가운데 정렬 및 divider 너비 수정

- 날짜 선택 시 ListView padding을 고려하여 정확히 가운데로 스크롤
- 일정 카드의 멤버 divider가 콘텐츠 영역 전체 너비를 채우도록 수정

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
caadiq 2026-01-15 09:09:49 +09:00
parent 7f96ab5fb2
commit fcf800f975
2 changed files with 19 additions and 18 deletions

View file

@ -226,8 +226,10 @@ class _ScheduleViewState extends ConsumerState<ScheduleView>
final dayIndex = selectedDate.day - 1; final dayIndex = selectedDate.day - 1;
const itemWidth = 52.0; // 44 + 8 (gap) const itemWidth = 52.0; // 44 + 8 (gap)
const horizontalPadding = 8.0; // ListView padding
final targetOffset = final targetOffset =
(dayIndex * itemWidth) - (dayIndex * itemWidth) +
horizontalPadding -
(MediaQuery.of(context).size.width / 2) + (MediaQuery.of(context).size.width / 2) +
(itemWidth / 2); (itemWidth / 2);
_dateScrollController.animateTo( _dateScrollController.animateTo(

View file

@ -225,14 +225,14 @@ class ScheduleCard extends StatelessWidget {
// //
if (memberList.isNotEmpty) ...[ if (memberList.isNotEmpty) ...[
const SizedBox(height: 12), const SizedBox(height: 12),
// divider ( )
Container( Container(
padding: const EdgeInsets.only(top: 12), width: double.infinity,
decoration: const BoxDecoration( height: 1,
border: Border( color: AppColors.divider,
top: BorderSide(color: AppColors.divider, width: 1),
), ),
), const SizedBox(height: 12),
child: Wrap( Wrap(
spacing: 6, spacing: 6,
runSpacing: 6, runSpacing: 6,
children: memberList.length >= 5 children: memberList.length >= 5
@ -243,7 +243,6 @@ class ScheduleCard extends StatelessWidget {
.map((name) => MemberChip(name: name)) .map((name) => MemberChip(name: name))
.toList(), .toList(),
), ),
),
], ],
], ],
), ),