Implement pure::Responsive in iced_lazy

This commit is contained in:
Héctor Ramón Jiménez 2022-03-07 18:04:13 +07:00
parent 9fd66c820d
commit b50e208f31
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
3 changed files with 398 additions and 3 deletions

View file

@ -49,7 +49,7 @@ impl Sandbox for Component {
mod numeric_input {
use iced::pure::widget::Element;
use iced::pure::widget::{row, text, text_input};
use iced_lazy::pure::component::{self, Component};
use iced_lazy::pure::{self, Component};
use iced_native::alignment::{self, Alignment};
use iced_native::text;
use iced_native::Length;
@ -162,7 +162,7 @@ mod numeric_input {
Renderer: 'static + text::Renderer,
{
fn from(numeric_input: NumericInput<Message>) -> Self {
component::view(numeric_input)
pure::component(numeric_input)
}
}
}