MayLau-CbL/flutter_horizontal_data_table

I get an exception when I recall the request with more columns to add [Question]

mhilalsh opened this issue · 1 comments

At some point in my app I recall the request -that builds the table columns and rows- with extra parameters so the table will have more width, the app works fine even with the exception but I hope to solve it.

Important note :
I'm trying to recall the request automatically after editing the sent parameters, if I change the parameters then recalled the request manually not automatically the exception won't be thrown!

Exception :
**The following assertion was thrown during a scheduler callback:
The Scrollbar's ScrollController has no ScrollPosition attached.

A Scrollbar cannot be painted without a ScrollPosition.

The Scrollbar attempted to use the provided ScrollController. This ScrollController should be associated with the ScrollView that the Scrollbar is being applied to. When providing your own ScrollController, ensure both the Scrollbar and the Scrollable widget use the same one.**

I added future.delayed with duration of 100 millisecond just to delay the build and the recall and it worked fine without exceptions but I don't know if that's right, so if someone knows a better option please tell me.