OTTAA-Project / ottaa_project_flutter

Join us to create the first predictive augmentative communication platform for speech-impaired children!
https://ottaa-project.github.io/
GNU General Public License v3.0
10 stars 4 forks source link

[Bug]: Device Rotation overflow #214

Closed Da-PC closed 1 year ago

Da-PC commented 1 year ago

Contact Details

No response

Branch name

development

Flutter & Dart version

Flutter version 3.7.3 stable Dart 2.19.2

How are you running it?

My steps are

git fetch git pull

flutter clean pub get

flutter run

Using the app as a User Rotate device to use Home Screen Open HomeScreen using the button Use OTTAA as "user"

This errors happens on Android emulator Pixel XL Android Tiramisu Samsung SM A035SM

What happened?

A bug happened! The warning black and yellow stripe shows on the bottom of the screen

image

Where are you seeing the problem on?

Android

Relevant log output

======== Exception caught by rendering library =====================================================
The following assertion was thrown during layout:
A RenderFlex overflowed by 142 pixels on the right.

The relevant error-causing widget was: 
  Row Row:file:///C:/Users/Agus/StudioProjects/ottaa_project_flutter/lib/presentation/screens/home/ui/word_bar.dart:98:14
The overflowing RenderFlex has an orientation of Axis.horizontal.
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#97c9b relayoutBoundary=up3 OVERFLOWING
...  needs compositing
...  parentData: <none> (can use size)
...  constraints: BoxConstraints(w=411.4, 0.0<=h<=Infinity)
...  size: Size(411.4, 80.0)
...  direction: horizontal
...  mainAxisAlignment: start
...  mainAxisSize: max
...  crossAxisAlignment: center
...  textDirection: ltr
...  verticalDirection: down
◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤

Code of Conduct