You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and you pass it to SeparatedColumn / SeparatedRow, it throws error:
SeparatedColumn(
separatorBuilder: () =>SizedBox(height:12),
children: myList.map((e) =>Text('$e\n')).toList(), // Throws error SeparatedColumn: type 'SizedBox' is not a subtype of type 'Text' of 'element'.
)
Not sure the building process in the Flutter framework but I've the fix. My guess it was modifying the original list which was used somewhere while building so I'm copying it. I've added a test for it.
The text was updated successfully, but these errors were encountered:
mzdm
added a commit
to mzdm/flutter-flextras
that referenced
this issue
Oct 16, 2022
Let's say you have list:
and you pass it to
SeparatedColumn
/SeparatedRow
, it throws error:This, however builds fine:
Not sure the building process in the Flutter framework but I've the fix. My guess it was modifying the original list which was used somewhere while building so I'm copying it. I've added a test for it.
The text was updated successfully, but these errors were encountered: