프로필 꾸미기 상점 화면 레이아웃 버그 수정 - 카테고리 타일이 안 보이던 문제
ListView(스크롤 영역) 안에서 Row에 stretch 정렬만 주면 높이가 정해지지 않아 자식 크기 계산이 깨지는 문제였다. 카테고리 타일 Row 전체를 SizedBox로 감싸 높이를 고정하니 "기본 프로필 꾸미기" 타일과 그 아래 템플릿 목록이 정상적으로 그려진다.
This commit is contained in:
@@ -138,7 +138,11 @@ class _ProfileCustomizeScreenState extends State<ProfileCustomizeScreen> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildCategoryTiles() {
|
Widget _buildCategoryTiles() {
|
||||||
return Row(
|
// 📏 ListView(스크롤 영역) 안에서는 높이가 정해져 있지 않아 Row에
|
||||||
|
// stretch 정렬만 주면 자식 크기 계산이 깨진다. SizedBox로 높이를 못박아둔다.
|
||||||
|
return SizedBox(
|
||||||
|
height: 180,
|
||||||
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
@@ -156,7 +160,8 @@ class _ProfileCustomizeScreenState extends State<ProfileCustomizeScreen> {
|
|||||||
flex: 4,
|
flex: 4,
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
_CategoryTile(
|
Expanded(
|
||||||
|
child: _CategoryTile(
|
||||||
title: '랭킹 · 친구창 배경',
|
title: '랭킹 · 친구창 배경',
|
||||||
subtitle: '준비중',
|
subtitle: '준비중',
|
||||||
icon: Icons.leaderboard_rounded,
|
icon: Icons.leaderboard_rounded,
|
||||||
@@ -164,8 +169,10 @@ class _ProfileCustomizeScreenState extends State<ProfileCustomizeScreen> {
|
|||||||
enabled: false,
|
enabled: false,
|
||||||
onTap: null,
|
onTap: null,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
_CategoryTile(
|
Expanded(
|
||||||
|
child: _CategoryTile(
|
||||||
title: '출석 · 그룹창 표시',
|
title: '출석 · 그룹창 표시',
|
||||||
subtitle: '준비중',
|
subtitle: '준비중',
|
||||||
icon: Icons.groups_rounded,
|
icon: Icons.groups_rounded,
|
||||||
@@ -173,10 +180,12 @@ class _ProfileCustomizeScreenState extends State<ProfileCustomizeScreen> {
|
|||||||
enabled: false,
|
enabled: false,
|
||||||
onTap: null,
|
onTap: null,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user