data_tables icon indicating copy to clipboard operation
data_tables copied to clipboard

Last row keeps refreshing

Open jason-cao123 opened this issue 5 years ago • 9 comments

I don't want to add extra dummy lines at the end of the data table, but in this case, the last row keeps refreshing. How can I resolve this? Thank in advance.

jason-cao123 avatar Jan 09 '20 07:01 jason-cao123

image Add a screenshot to display the issue.

jason-cao123 avatar Jan 13 '20 03:01 jason-cao123

That is if you are using the estimate row count. You can set that to false. I am open to PRs too.

rodydavis avatar Jan 13 '20 22:01 rodydavis

@rodydavis Are you referring to the rowCountApproximate property? I already set it as false, but the result is the same.

jason-cao123 avatar Jan 14 '20 02:01 jason-cao123

Weird, I’ll have to see what’s causing it though. How many total items do you have? And how many per page?

rodydavis avatar Jan 14 '20 02:01 rodydavis

I have 12 items in total and 10 per page.

jason-cao123 avatar Jan 14 '20 02:01 jason-cao123

Hi @rodydavis, any update?

jason-cao123 avatar Jan 15 '20 07:01 jason-cao123

Try with the flutter what and see if it is still an issue. If it is then it is the underling material widget. https://youtu.be/ktTajqbhIcY

rodydavis avatar Jan 15 '20 16:01 rodydavis

I am open to PR's but i cannot reproduce this issue.

rodydavis avatar Mar 31 '21 19:03 rodydavis

Hi @rodydavis, the problem can be reproduced by using the default.dart example in data_tables library. Clicking the next button until the last page will reproduce the problem.


Retrying the example with rowCountApproximate set to false didn't reproduce the problem. Everything seems okay.

joielechong avatar Apr 05 '21 16:04 joielechong