added Iterator

This commit is contained in:
2025-08-12 23:18:35 -04:00
parent e0cf149790
commit fde8ad17d6
5 changed files with 155 additions and 1 deletions
+6
View File
@@ -78,6 +78,12 @@ impl Element for FlexRow {
element.inject(|w| w.component(NoRenderRoot));
}
fn undraw_child(&mut self, element: &Arc<Widget>) {
if let Some(i) = self.children.iter().position(|v| Arc::ptr_eq(v, element)) {
self.children.remove(i);
}
}
fn is_ghost(&mut self) -> bool {
true
}