
플러터로 게시글 작업하다가, contnet 내용이 많다보니 저렇게 문제가 생겨서,
Row(
children: [
Text(
post.content,
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
],
),
이렇게 만들어 보았습니다.
허나 이렇게 하면 될 줄 알았지만, 똑같은 현상이 발생하여 찾아보다 보니
flutter: How to make text in row without overflow in one or two line?
I have this image, In this image I have contact section. I want to make like this. Row( children: [ // Flexible( // child: RichText( // // textAlign: TextAlign.left, // ...
stackoverflow.com
이러한 글을 발견하여, 문제를 해결하는 방법은 Expanded 또는 Flixible을 주면 된다고 합니다.

Row(
children: [
Expanded(
child: Text(
post.content,
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
),
],
),'지나온 흔적' 카테고리의 다른 글
| [ github ] 깃허브 commit 되돌리기 (0) | 2025.10.30 |
|---|---|
| [ Flutter ] Community Screen ( 1 ) - 틀 만들기 (0) | 2025.10.23 |
| [ flutter ] 냥이월드 - KakaoUser 로그인 이후 load 이슈?!?! (0) | 2025.10.15 |
| Flutter Kakao Login ( 임시 - 진행중 ) (0) | 2025.10.13 |
| eGov 설정 (0) | 2025.10.06 |