Skip to content

Commit

Permalink
Fix naming in color picker example (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciubix8513 authored May 1, 2023
1 parent 175b928 commit 86070a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/color_picker/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl Sandbox for ColorPickerExample {
fn view(&self) -> Element<'_, Self::Message> {
let but = Button::new(Text::new("Set Color")).on_press(Message::ChooseColor);

let datepicker = ColorPicker::new(
let color_picker= ColorPicker::new(
self.show_picker,
self.color,
but,
Expand All @@ -69,7 +69,7 @@ impl Sandbox for ColorPickerExample {
let row = Row::new()
.align_items(Alignment::Center)
.spacing(10)
.push(datepicker)
.push(color_picker)
.push(Text::new(format!("Color: {:?}", self.color)));

Container::new(row)
Expand Down

0 comments on commit 86070a3

Please sign in to comment.