Implement Image in iced_pure

This commit is contained in:
Héctor Ramón Jiménez 2022-02-13 16:51:31 +07:00
parent 09c96a6d81
commit 45455be450
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
4 changed files with 134 additions and 25 deletions

View file

@ -1,3 +1,5 @@
pub mod image;
mod button;
mod checkbox;
mod column;
@ -14,6 +16,7 @@ pub use checkbox::Checkbox;
pub use column::Column;
pub use container::Container;
pub use element::Element;
pub use image::Image;
pub use row::Row;
pub use scrollable::Scrollable;
pub use text::Text;
@ -145,3 +148,7 @@ where
{
TextInput::new(placeholder, value, on_change)
}
pub fn image<Handle>(handle: Handle) -> Image<Handle> {
Image::new(handle)
}