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

Error when typing messages and pressing the back button #122

Open
ngoc-quoc-huynh opened this issue Aug 1, 2020 · 1 comment
Open

Error when typing messages and pressing the back button #122

ngoc-quoc-huynh opened this issue Aug 1, 2020 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@ngoc-quoc-huynh
Copy link

ngoc-quoc-huynh commented Aug 1, 2020

Describe the bug
After typing some messages if I click on the chat or press the back button so that my keyboard disappears, I can't send messages anymore.
This error only occurs if inverted is false.

The following assertion was thrown during performLayout():
Build scheduled during frame.

While the widget tree was being built, laid out, and painted, a new frame was scheduled to rebuild the widget tree.

This might be because setState() was called from a layout or paint callback. If a change is needed to the widget tree, it should be applied as the tree is being built. Scheduling a change for the subsequent frame instead results in an interface that lags behind by one frame. If this was done to make your build dependent on a size measured at layout time, consider using a LayoutBuilder, CustomSingleChildLayout, or CustomMultiChildLayout. If, on the other hand, the one frame delay is the desired effect, for example because this is an animation, consider scheduling the frame in a post-frame callback using SchedulerBinding.addPostFrameCallback or using an AnimationController to trigger the animation.!

To Reproduce
Steps to reproduce the behavior:

  1. Go to DashChat
  2. Type some messages until you can scroll
  3. Type on the DashChat or press the back button

Expected behavior
No error should occur and you can still send messages

Screenshots
n/a

Desktop (please complete the following information):

  • OS: Windows
  • Device: Xiaomi Mi 9
  • Flutter Version: 1.17.5
  • Dart Version: 2.8.4

Additional context
n/a

@SebastienBtr SebastienBtr added the bug Something isn't working label Aug 2, 2020
@SebastienBtr
Copy link
Collaborator

I am not able to reproduce it

@SebastienBtr SebastienBtr added the wontfix This will not be worked on label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants