diff options
| author | 2022-03-16 17:37:19 +0700 | |
|---|---|---|
| committer | 2022-03-16 17:37:19 +0700 | |
| commit | d7100fd2597da82d97eaf196d50573ea64f3f8ff (patch) | |
| tree | 4a7fcc2e223ed207fd4cb2dd92a1de3393846d5f /examples/pure/component | |
| parent | cdd906f563de21dd904bf5b78589d8a999b46931 (diff) | |
| download | iced-d7100fd2597da82d97eaf196d50573ea64f3f8ff.tar.gz iced-d7100fd2597da82d97eaf196d50573ea64f3f8ff.tar.bz2 iced-d7100fd2597da82d97eaf196d50573ea64f3f8ff.zip  | |
Export widget modules in `iced_pure`
... and fix collisions with the new `helpers`
Diffstat (limited to 'examples/pure/component')
| -rw-r--r-- | examples/pure/component/Cargo.toml | 1 | ||||
| -rw-r--r-- | examples/pure/component/src/main.rs | 8 | 
2 files changed, 4 insertions, 5 deletions
diff --git a/examples/pure/component/Cargo.toml b/examples/pure/component/Cargo.toml index a15f134f..b6c7a513 100644 --- a/examples/pure/component/Cargo.toml +++ b/examples/pure/component/Cargo.toml @@ -9,3 +9,4 @@ publish = false  iced = { path = "../../..", features = ["debug", "pure"] }  iced_native = { path = "../../../native" }  iced_lazy = { path = "../../../lazy", features = ["pure"] } +iced_pure = { path = "../../../pure" } diff --git a/examples/pure/component/src/main.rs b/examples/pure/component/src/main.rs index ab10317f..b38d6fca 100644 --- a/examples/pure/component/src/main.rs +++ b/examples/pure/component/src/main.rs @@ -1,4 +1,4 @@ -use iced::pure::widget::container; +use iced::pure::container;  use iced::pure::{Element, Sandbox};  use iced::{Length, Settings}; @@ -47,12 +47,12 @@ impl Sandbox for Component {  }  mod numeric_input { -    use iced::pure::widget::Element; -    use iced::pure::widget::{row, text, text_input}; +    use iced::pure::{button, row, text, text_input};      use iced_lazy::pure::{self, Component};      use iced_native::alignment::{self, Alignment};      use iced_native::text;      use iced_native::Length; +    use iced_pure::Element;      pub struct NumericInput<Message> {          value: Option<u32>, @@ -120,8 +120,6 @@ mod numeric_input {          fn view(&self, _state: &Self::State) -> Element<Event, Renderer> {              let button = |label, on_press| { -                use iced::pure::widget::button; -                  button(                      text(label)                          .width(Length::Fill)  | 
