Remove unnecessary centering in gradient example
This commit is contained in:
parent
d6be3ab682
commit
c1139898c5
1 changed files with 0 additions and 2 deletions
|
|
@ -51,8 +51,6 @@ impl Sandbox for Gradient {
|
||||||
let gradient_box = container(horizontal_space(Length::Fill))
|
let gradient_box = container(horizontal_space(Length::Fill))
|
||||||
.width(Length::Fill)
|
.width(Length::Fill)
|
||||||
.height(Length::Fill)
|
.height(Length::Fill)
|
||||||
.center_x()
|
|
||||||
.center_y()
|
|
||||||
.style(move |_: &_| {
|
.style(move |_: &_| {
|
||||||
let gradient = gradient::Linear::new(Radians(
|
let gradient = gradient::Linear::new(Radians(
|
||||||
angle + std::f32::consts::PI,
|
angle + std::f32::consts::PI,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue