Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A RenderLine overflowed by 1.5 pixels on the right. #32

Open
Kumah1 opened this issue May 31, 2022 · 6 comments
Open

A RenderLine overflowed by 1.5 pixels on the right. #32

Kumah1 opened this issue May 31, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@Kumah1
Copy link

Kumah1 commented May 31, 2022

I am using math_keyboard in my app, when it opens and i want to navigate to more keys like square root and the like the log() give an error like this

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

The relevant error-causing widget was:
MaterialApp MaterialApp:file:///D:/PROGRAMMING/AndroidStudioProjects/learnmath/lib/src/app.dart:28:16
The edge of the RenderLine 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 RenderLine.

Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the RenderLine 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.

So this means the log() needs more paint. I am debugging on infinix Hot S3 ( x573) to be precise.

Please how should I solve this?

Screenshots

math_keyboard

@Kumah1 Kumah1 added the bug Something isn't working label May 31, 2022
@github-actions
Copy link
Contributor

Hi 👋🏽 Thank you for opening your first issue with simpleclub/math_keyboard ❤

You can expect triage from us soon 🙂
In the meantime, you can try to search for similar issues in our issue database.

@creativecreatorormaybenot
Copy link
Contributor

@edhom looks like we did not consider screen sizes this small. I think the easiest and most flexible fix would be allowing to pass the font size for the symbols or decreasing the size for the functions in general if we can guarantee that even smaller screen sizes are not sensible.

@Kumah1
Copy link
Author

Kumah1 commented Jun 7, 2022

please I need the fix badly

@edhom
Copy link
Member

edhom commented Jun 8, 2022

@creativecreatorormaybenot Yes we can do that👍 @Kumah1 I won't get to this any time soon, so if it's urgent, feel free to open a PR!

@Kumah1
Copy link
Author

Kumah1 commented Jun 13, 2022

Please I don't understand what you mean by PR.

@creativecreatorormaybenot
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants