akshathjain / sliding_up_panel

A draggable Flutter widget that makes implementing a SlidingUpPanel much easier!
https://pub.dartlang.org/packages/sliding_up_panel
Other
1.38k stars 381 forks source link

resizeToAvoidBottomInsets not working at the top of scrollable content in panelBuilder. #150

Open ll886 opened 4 years ago

ll886 commented 4 years ago

I have a sliding up panel widget. I use the panelBuilder to have a singleChildScollView inside the panel. The sliding up panel is nested inside a stack whose parent is a Scaffold. I set the resizeToAvoidBottomInsets to false in this scaffold.

Inside the panel, I have a bunch of text fields that I don't want to be covered by the keyboard. The resizeToAvoidbototm Insets works fine most of the time. The only time it doesn't work is when the content is scrolled to the very top (where scrolling any further would pull the panel down). Even if I scroll like the smallest amount downward inside the singlechildscrollview, the content gets pushed up when the keyboard comes up, and that works well.

Hopefully, you can see the GIF example. I open the panel and it starts at the very top of the scrollable content inside. I click on any textfield and the keyboard covers them. Then you'll see me scroll down slightly, and the resizeToAvoidBottomInsets works again. So the only time it doesn't work is at the top. Any way to fix this problem? problemWithKeyboard

theboshy commented 2 years ago

same, why are there no updates about this?