Implement padding support for Container
This commit is contained in:
parent
6e9ab1cd6f
commit
749a9588d7
7 changed files with 46 additions and 21 deletions
|
|
@ -66,6 +66,7 @@ impl Application for Clock {
|
|||
Container::new(canvas)
|
||||
.width(Length::Fill)
|
||||
.height(Length::Fill)
|
||||
.padding(20)
|
||||
.center_x()
|
||||
.center_y()
|
||||
.into()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue