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
Tree View disordered if id greater than 10.
I sugest you change like this:
_buildTreeView() {
var k = widget.data
.where((data) {
return data.getParentId() == widget.config.rootId;
})
.map((data) {
return data.getId();
})
.toSet()
.toList() ..sort((i, j) => int.parse(i).compareTo(int.parse(j)));
var widgets = List<ParentWidget>();
k.forEach((f) {
ParentWidget p = buildWidget(f, null);
if (p != null) widgets.add(p);
});
setState(() {
treeView = widgets;
});
}
The text was updated successfully, but these errors were encountered:
Tree View disordered if id greater than 10.
I sugest you change like this:
_buildTreeView() {
var k = widget.data
.where((data) {
return data.getParentId() == widget.config.rootId;
})
.map((data) {
return data.getId();
})
.toSet()
.toList()
..sort((i, j) => int.parse(i).compareTo(int.parse(j)));
}
The text was updated successfully, but these errors were encountered: