Skip to content

Commit

Permalink
Reproduction of Responsive breaking Operations
Browse files Browse the repository at this point in the history
  • Loading branch information
rs017991 committed Nov 13, 2022
1 parent 23299a5 commit 758651c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/scrollable/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ publish = false

[dependencies]
iced = { path = "../..", features = ["debug"] }
iced_lazy = { path = "../../lazy" }
2 changes: 2 additions & 0 deletions examples/scrollable/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ impl Application for ScrollableDemo {
}

fn view(&self) -> Element<Message> {
iced_lazy::responsive(|_size| {
let ScrollableDemo { variants, .. } = self;

let choose_theme = [ThemeType::Light, ThemeType::Dark].iter().fold(
Expand Down Expand Up @@ -202,6 +203,7 @@ impl Application for ScrollableDemo {
.center_x()
.center_y()
.into()
}).into()
}

fn theme(&self) -> Theme {
Expand Down

0 comments on commit 758651c

Please sign in to comment.