• 카테고리

    질문 & 답변
  • 세부 분야

    모바일 앱 개발

  • 해결 여부

    미해결

bottom overflowed by 6.0 pixels

20.07.10 16:51 작성 조회수 453

0

안녕하세요! 

강의 다시 따라하고 있는데 

ui 설정을 하고나니 하단에 

저렇게 bottom overflowed 6.0 pixels가 떠서요

구글링으로 Scaffold 하위에

resizeToAvoidBottomPadding: false,

를 줘보긴했는데 해결이 안되서..(물론 제가 잘못했을수도 있습니다)

어떻게 해결,,하면 좋을까요!?

════════ Exception caught by rendering library ═════════════════════════════════

The following assertion was thrown during layout:

A RenderFlex overflowed by 6.0 pixels on the bottom.

The relevant error-causing widget was

    Tab 

lib\widget\bottom_bar.dart:35

The overflowing RenderFlex has an orientation of Axis.vertical.

The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and black striped pattern. This is usually caused by the contents being too big for the RenderFlex.

Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the RenderFlex to fit within the available space instead of being sized to their natural size.

This is considered an error condition because it indicates that there is content that cannot be seen. If the content is legitimately bigger than the available space, consider clipping it with a ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex, like a ListView.

The specific RenderFlex in question is: RenderFlex#76b9b relayoutBoundary=up11 OVERFLOWING

════════════════════════════════════════════════════════════════════════════════

답변 2

·

답변을 작성해보세요.

2

안녕하세요! 강의 들어주셔서 감사합니다:) 우선 위와 같은 에러는 화면크기를 벗어나게 ui를 작성해서 그런데, 제가 부족한 탓에 모든 화면에 적절히 호환되는 사이즈로 강의 진행을 하지 못했습니다ㅠㅠ 위와 같은 경우 아이콘 사이즈를 줄이거나 텍스트 사이즈를 줄이거나, 바텀 네비게이션 바 사이즈를 늘리는 등의 방식으로 해결할 수 있습니다!

1

lineagony님의 프로필

lineagony

2020.07.13

저도 그러네요.. ㅠㅠ어ㅏ떻게 해결하죠 이거;;?