summaryrefslogtreecommitdiffstats
path: root/examples/clock/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/clock/src')
-rw-r--r--examples/clock/src/main.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs
index d8266f06..d3a4261b 100644
--- a/examples/clock/src/main.rs
+++ b/examples/clock/src/main.rs
@@ -23,8 +23,9 @@ enum Message {
impl Application for Clock {
type Executor = executor::Default;
type Message = Message;
+ type Flags = ();
- fn new() -> (Self, Command<Message>) {
+ fn new(_flags: ()) -> (Self, Command<Message>) {
(
Clock {
now: chrono::Local::now().into(),
@@ -66,6 +67,7 @@ impl Application for Clock {
Container::new(canvas)
.width(Length::Fill)
.height(Length::Fill)
+ .padding(20)
.center_x()
.center_y()
.into()