Correction to the Example
pradt opened this issue · comments
pradt commented
I tried to use the example provided in the readme and it didn't work, after digging around I noticed that what you actually need instead of
setState(() {
// required
_items.add(str);
});
is
setState(() {
// required
_items.add(Item(
title: str,
active: true,
index: 1,
));
});
It might help others out.
Antonino Di Natale commented
@pradt thanks for the hint