Closed hs-dev1 closed 2 years ago
Hi @mhussnainshabbir,
Were you able to expand all the children at the same time? Each row has an "isExpanded" variable that indicates whether the row is expanded or not. This variable should be managed with the implementation of a method to force its expansion or not (I really like it as an idea, maybe I'll try to implement it in the next few weeks). If you just want to expand the row while building the table, setting "isExpanded" to true should suffice.
Thanks; After searching I got it solved:
before i was passing rows and subrows like that:
return ExpandableTable( headerHeight: 50, rows: rows, // here is row and subrows returning list header: header, scrollShadowColor: accentColor, );
return ExpandableTable(
headerHeight: 50,
// here we have adding directly rows: List.generate( 5, (rowIndex) => ExpandableTableRow( height: 50, firstCell: Container(), legend: Container(), children: List.generate( 2, (rowIndex) => ExpandableTableRow( height: 60, firstCell: Container(), legend: Container(), children: subRows1, )), )), header: header, scrollShadowColor: accentColor, );
I had implemented it in a 3-level expansion, opening all children at the 2nd level in a row. i can't find a way to expand a specific row. Could anyone look for it?