
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
2-4강 에서 "Row CrossAxisAlignment" 스니펫 붙여넣으면서 궁금증이 생겼는데요..
Row CrossAxisAlignment 스니펫까지 붙여 넣기 전 상황에서
63line의 children 밑에 ClipRRect(65line)와 Expanded(75line) 위젯이 같이 Row(62line)위젯으로 묶여져 있는데
둘의 위치가 왜 다른건가요?
62 body: Row(
63 children: [
// CilpRRect 를 통해 이미지에 곡선 border 생성
65 ClipRRect(
borderRadius: BorderRadius.circular(8),
// 이미지
child: Image.network(
'https://cdn2.thecatapi.com/images/6bt.jpg',
width: 100,
height: 100,
fit: BoxFit.cover,
),
),
75 Expanded(
child: Column(
children: [
Text(
'M1 아이패드 프로 11형(3세대) 와이파이 128G 팝니다.',
style: TextStyle(
fontSize: 16,
color: Colors.black,
),
softWrap: false,
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
SizedBox(height: 2),
Text(
'봉천동 · 6분 전',
style: TextStyle(
fontSize: 12,
color: Colors.black45,
),
),
SizedBox(height: 4),
Text(
'100만원',
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
),
),
Row(
children: [
// 빈 칸
// 하트 아이콘
// '1'
],
),
],
),
),
],
),

