MayLau-CbL / flutter_horizontal_data_table

Flutter Fixed Column Horizontal Datatable Widget
https://pub.dev/packages/horizontal_data_table
MIT License
252 stars 70 forks source link

How can I detect end of horizontal scrolling through table [Question] #75

Closed mhilalsh closed 2 years ago

mhilalsh commented 2 years ago

I'm trying to change some style in the screen depending on user scrolling the horizontal data table, is there's a way to add an event to the table like "onScroll" or "onScrollEnding" to trigger a function or set the state to refresh the page and update the UI?

MayLau-CbL commented 2 years ago

there is a param called horizontalScrollController which can assign the scrollController out of the horizontal table widget. you may assign the controller and addListener to it which should then allow you to track the scroll status by the offset.