dmt195/tiktok-flutter-plugin

SingleChildScrollView inside Tiktok Widget

Closed this issue · 5 comments

So basically I am having a single child scrollview inside Tiktok widget. The behavior I am expected is to move to next page after single child scroll ends. But actually I couldn't able to move to next screen because of SingleChildScrollView.

But a great Appreciation for the Creator. Widget works very well except in that Case.

Hope I get a solution ASAP.

Hi there,
Thanks for making use of this plugin.
I think your use case is an odd one that this plugin is unlikely to support anytime soon. Basically, you have the same problem you would with any scrollview in a gesture-based view here; that the gestures are all consumed by the foregrounded widget. It's possible, with custom logic in your app to determine when you get to the end and pass the touch events down, but I've never done that in Flutter before. As Tiktok widget doesn't care what its child is, this use case is impossible to detect and remedy - it's specific to your application.
If you do solve it, let me know how you get on. :)

Just wanted to let you know I solved it (Without using the package), I'll put down my small code below. If possible you can extend your plugin with this code.

Great. I'd love to see your solution.

hi @balasubramanian1612s Can you share your solution? I have the same use case as your, but the only way I came up with is to pass down the event when the SingleChildScrollView get to top or bottom

Hi @themon303 , yes. I have made a small plugin for that. I will share the link below, please try out and share your comments!

https://pub.dev/packages/vertical_scrollable_pageview