rickypid / flutter_expandable_table

A Flutter widget for create an expandable table with header and first column fixed.
https://pub.dev/packages/flutter_expandable_table
BSD 3-Clause "New" or "Revised" License
40 stars 28 forks source link

UI become slow and unresponsive when you have more than 100 rowsCount #25

Open ArslanAsghar123 opened 11 months ago

ArslanAsghar123 commented 11 months ago

https://github.com/rickypid/flutter_expandable_table/assets/56467320/c2707f43-509f-492a-a5fe-e220b27fc6b7

i set the data as follow static const int columnsCount = 29; static const int subColumnsCount = 2; static const int rowsCount = 100; static const int subRowsCount = 10; static const int totalColumns = columnsCount + subColumnsCount;

PTN: i used the same code in example

coderof19clc7 commented 2 days ago

Is this solved? Currently I'm getting very laggy UI with the data static const int columnsCount = 6; static const int subColumnsCount = 0; static const int rowsCount = 100; static const int subRowsCount = 100; static const int totalColumns = columnsCount + subColumnsCount;

coderof19clc7 commented 2 days ago

Hi @rickypid , after exploring the code of the package, I think the problem may come from the SingleChildScrollView and ListView as they will surely always render everything in the list all the time. So can you try to use ListView.builder or CustomScrollView instead and test with the large amount of item? Thanks

rickypid commented 1 day ago

Hi @coderof19clc7,

unfortunately I am in a very busy work period, it may be that the problem is related to SingleChildScrollView/ListView, I would have to do some tests to understand the impact of this change, I hope in the next few weeks to have a chance to look into the problem. Sorry