-
Notifications
You must be signed in to change notification settings - Fork 384
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
Fix exception when panelBuilder ScrollController attached to multiple views & SafeArea on iPhones #204
base: master
Are you sure you want to change the base?
Conversation
Hi @tneotia , Repo to reproduce here: https://github.com/BazinC/sliding_up_panel_with_tab |
Yeah, I saw this but after trying a lot of different things with |
Update: I gave it another look for fun and I seemed to have solved it (on your use case at least - doesn't seem to be working on mine). Basically the way it works is:
I feel like there will be issues with this, can you check the commit out and see how it works on the emulator? Edit: |
Hey @tneotia , I've just tested, and your last commit fixes the issue! :) |
@tneotia You should remove SafeArea you've added. |
@BazinC I didn't remove it entirely with the above commit but added an option for it ( Can you try this out and see if it produces the expected functionality? I don't have access to my mac right now otherwise I would have :) |
Same problem 🙄 Help 😭 |
Please help me solve this problem. 😔 |
I'm also using tabBar in my app and this bug is annoying. |
Any progress on this? |
Situation:
I have a
TabBar
inside mySlidingUpPanel
'spanelBuilder
with 2 tabs, each with their ownCustomScrollView
.I was using the
ScrollController
of thepanelBuilder
on eachCustomScrollView
, but I would always get this error repeatedly when switching tabs:This PR has fixed the exception and, as far as I can tell, maintains the original functionality. I tested the example app as well as my app and the scrolling behavior works like normal. Feel free to update this PR if a specific use case is broken because of this, testing will definitely be necessary.
I was having issues with elements on the screen expanding past the safe area and thus not being visible. Don't know how this will affect the example app, so it needs to be tested.