Skip to content

Conversation

Cheong-Lau
Copy link
Contributor

This also changes widget::column::with_children and widget::row::with_children to take an impl IntoIterator instead of a Vec, like the iced variants of these functions do.

This shouldn't be a breaking change since passing in a Vec will still compile and function exactly as before.

(Using iced::widget::Column::from_vec or iced::widget::Row::from_vec isn't possible, since the elements of the Vec aren't checked, so the size of the resulting Column or Row won't adapt to the size of its children. Perhaps a new function could be added to mirror iced's?)

This also changes `widget::column::with_children` and
`widget::row::with_children` to take an `impl IntoIterator` instead
of a `Vec`, like the `iced` variants of these functions do.

This shouldn't be a breaking change since passing in a `Vec` will still
compile and function exactly as before.

(Using `iced::widget::Column::from_vec` or
`iced::widget::Row::from_vec` isn't possible, since the elements of the
`Vec` aren't checked, so the size of the resulting `Column` or `Row`
won't adapt to the size of its children. Perhaps a new function could
be added to mirror `iced`'s?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant