duytq94 / flutter-chat-demo

The chat app made by Flutter and Firebase
MIT License
1.74k stars 676 forks source link

Overflow issue #51

Closed huzzi closed 3 years ago

huzzi commented 3 years ago

I'm suddenly getting is overflowed issue, never had this issue before. Not sure if it's to do with some packages.

W/IInputConnectionWrapper( 8626): getTextAfterCursor on inactive InputConnection E/SpannableStringBuilder( 8626): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length E/SpannableStringBuilder( 8626): SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length I/flutter ( 8626): screen: account home I/flutter ( 8626): Flutter error caught by Crashlytics plugin: I/flutter ( 8626): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════ I/flutter ( 8626): The following assertion was thrown during layout: I/flutter ( 8626): A RenderFlex overflowed by 11 pixels on the bottom. I/flutter ( 8626): I/flutter ( 8626): The relevant error-causing widget was: I/flutter ( 8626): Column I/flutter ( 8626): lib\…\chat\chat2.dart I/flutter ( 8626): I/flutter ( 8626): The overflowing RenderFlex has an orientation of Axis.vertical. I/flutter ( 8626): The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and I/flutter ( 8626): black striped pattern. This is usually caused by the contents being too big for the RenderFlex. I/flutter ( 8626): Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the I/flutter ( 8626): RenderFlex to fit within the available space instead of being sized to their natural size. I/flutter ( 8626): This is considered an error condition because it indicates that there is content that cannot be I/flutter ( 8626): seen. If the content is legitimately bigger than the available space, consider clipping it with a I/flutter ( 8626): ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex, I/flutter ( 8626): like a ListView. I/flutter ( 8626): The specific RenderFlex in question is: RenderFlex#ea483 relayoutBoundary=up2 OVERFLOWING: I/flutter ( 8626): needs compositing I/flutter ( 8626): creator: Column ← Stack ← WillPopScope ← ChatScreen ← _BodyBuilder ← MediaQuery ← I/flutter ( 8626): LayoutId-[<_ScaffoldSlot.body>] ← CustomMultiChildLayout ← AnimatedBuilder ← DefaultTextStyle ← I/flutter ( 8626): AnimatedDefaultTextStyle ← _InkFeatures-[GlobalKey#24b59 ink renderer] ← ⋯ I/flutter ( 8626): parentData: not positioned; offset=Offset(0.0, 0.0) (can use size) I/flutter ( 8626): constraints: BoxConstraints(0.0<=w<=411.4, 0.0<=h<=38.9) I/flutter ( 8626): size: Size(411.4, 38.9) I/flutter ( 8626): direction: vertical I/flutter ( 8626): mainAxisAlignment: start I/flutter ( 8626): mainAxisSize: max I/flutter ( 8626): crossAxisAlignment: center I/flutter ( 8626): verticalDirection: down I/flutter ( 8626): ◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤ I/flutter ( 8626): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter ( 8626): firebase_crashlytics: Error reported to Crashlytics.

Screenshot_1613337062