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

Row assertion failure #6

Closed aeroperf closed 2 years ago

aeroperf commented 2 years ago

I'm having difficulties getting this to run. I have studied the example code, but keep hitting the following assertion failure in the row.dart file:

assert(children is List<Widget> || children is List<ExpandableTableRow>)

Unlike the provided example, I am building the row as a List<Widget> as shown below, which seems to fail, since the debugger shows this as a List. It might be helpful to include a small example with manually generated cells versus the List<Widget>.generate( ones? I'm certain this is not a bug, but user error on my part, but I can't seem to get this to work.

image

aeroperf commented 2 years ago

Turns out it was indeed an error on my part....works now after removing [] from children, which was not needed with my setup.