Remove unnecessary centering in gradient example

This commit is contained in:
Héctor Ramón Jiménez 2023-09-07 07:55:54 +02:00
parent d6be3ab682
commit c1139898c5
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -51,8 +51,6 @@ impl Sandbox for Gradient {
let gradient_box = container(horizontal_space(Length::Fill))
.width(Length::Fill)
.height(Length::Fill)
.center_x()
.center_y()
.style(move |_: &_| {
let gradient = gradient::Linear::new(Radians(
angle + std::f32::consts::PI,