Announcing a new library I published for bidirectional scroll on Flutter

865 views
Skip to first unread message

Toufik Zitouni

unread,
Jul 24, 2017, 2:03:32 PM7/24/17
to flutt...@googlegroups.com
Hi awesome team,

Yesterday I published a library on handing bidirectional scrolling that I hope would be useful for a lot of people seeking this functionality. The library is available at https://pub.dartlang.org/packages/bidirectional_scroll_view

The stack overflow https://stackoverflow.com/questions/45137297/implementing-a-bidirectional-listview-in-flutter made me realize that there's no such functionality that can handle scrolls in both directions at the same time. Similar libraries have been released on Android such as this one https://github.com/jaredrummler/TwoDScrollView. In this library, I handled both gesture detection and fling to achieve a smooth scrolling transition for a widget that would overflow in either direction (horizontal, or vertical, or both).

Basically, the reason why I wanted to release this library is to handle overflowing lists, or grids, in both horizontal and vertical directions. using a scrollview is not ideal since it would only scroll in either horizontal or vertical directions at a time. So the solution, as Collin suggested on the stack overflow link, is to use a gesture detector. This library would also be useful for images or any other widgets that would have its content intentionally go off screen and prompt the use to scroll to it.

This is the first lib I publish on Flutter :). I really think it would be useful for a lot of people and hope that it would be available for everyone as part of the Flutter sdk one day. For now, I'd love some feedback and suggestions. Some of the improvements would be to including scaling as part of the lib, such as zooming in and out a widget. I have seen a few issues with handling swipes as it's not responsive sometimes. Also, the fling gesture smoothness could be improved with some clever math.

Thanks everyone! Please send me some feedback :)
Toufik

Motebang Mokwatsi

unread,
Jul 9, 2019, 3:12:00 PM7/9/19
to Flutter Development (flutter-dev)
Hey I would like to try and use this package but i cant find an example that uses this library, can you assist me
Reply all
Reply to author
Forward
0 new messages