flutter / samples

A collection of Flutter examples and demos
https://flutter.github.io/samples/
Other
17.08k stars 7.49k forks source link

Scroll malfunction when keyboard is activated in `material_3_demo` #1870

Open bisor0627 opened 1 year ago

bisor0627 commented 1 year ago

I have encountered an issue where scrolling does not function correctly. I have attached two videos for reference:

Video 1: Current malfunctioning behaviour

https://github.com/flutter/samples/assets/81757940/5d3c0715-25ef-4b00-974c-3a2765691903

Video 2: Expected behaviour

https://github.com/flutter/samples/assets/81757940/fe94829e-fd7c-4e84-8c88-cb00c8102a68

From my investigation, the HEAD of the material_3_demo has a scrolling error when the keyboard is activated. Moreover, when I tested after reverting the commit 1d6e5a0ece7e4f7b5b24217fa45c2862667e8828, the error seemed to disappear.

Since I have minimal experience contributing, I am unsure if it would be proper etiquette to submit a PR with a commit that reverts another contributor's work. Therefore, I am choosing to bring up this issue instead.

domesticmouse commented 1 year ago

PTAL @QuncCccccc

QuncCccccc commented 1 year ago

Thanks for letting me know! Taking a look.

domesticmouse commented 1 year ago

@QuncCccccc can you give a status update?

QuncCccccc commented 1 year ago

@QuncCccccc can you give a status update?

I think the issue happens after we added the BuildSlivers which is used for estimating the max scroll offset and fixing the scroll bar shaking problem. I'm still investigating the root cause, but might need to fix some other issues before I come back to work on this. Sorry for the late update as I just came back from vacation.