Use f32 in Length::Units and rename it to Fixed
This commit is contained in:
parent
f75e020257
commit
7b8b01f560
43 changed files with 269 additions and 262 deletions
|
|
@ -38,11 +38,11 @@ impl Sandbox for Slider {
|
|||
|
||||
let h_slider =
|
||||
container(slider(0..=100, value, Message::SliderChanged))
|
||||
.width(Length::Units(250));
|
||||
.width(250);
|
||||
|
||||
let v_slider =
|
||||
container(vertical_slider(0..=100, value, Message::SliderChanged))
|
||||
.height(Length::Units(200));
|
||||
.height(200);
|
||||
|
||||
let text = text(format!("{value}"));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue