flutter에서 Row 안의 글자 Overflow 날 때 해결법

2³¹-1·2023년 10월 19일
            Row(
              children: [
                Column(
                  children: [
                    Text("very long text very long text very long text "),
                  ],
                )
              ],
            ),
            Row(
              children: [
                Text("very long text very long text very long text ")
              ],
            )

위아래 둘 다 오버플로우 난다.

해결법

            Row(
              children: [
                Expanded(
                  child: Column(
                    children: [
                      Text("very long text very long text very long text "),
                    ],
                  ),
                )
              ],
            ),
            Row(
              children: [
                Expanded(
                    child:
                        Text("very long text very long text very long text "))
              ],
            )

Row 바로 아래에 Expanded 붙이기

0개의 댓글