bdlukaa / fluent_ui

Implements Microsoft's WinUI3 in Flutter.
https://bdlukaa.github.io/fluent_ui/
BSD 3-Clause "New" or "Revised" License
2.98k stars 465 forks source link

🐛 TreeViewItem.from does not set parent on copied children #1042

Closed klondikedragon closed 8 months ago

klondikedragon commented 8 months ago

Describe the bug The TreeViewItem.from factory constructor that makes a deep copy of itself and its children does not set the parent property of the children properly. This can break things in subtle ways on the tree data before the tree data is passed into the first widget build.

Additional context I'll open a PR that fixes this.