diff --git a/book/src/chapter_1.md b/book/src/chapter_1.md index 1f8a6da488463aa976d3d5774148a86559a38760..aede01cc575233047581469a61b4d26f69b7580d 100644 --- a/book/src/chapter_1.md +++ b/book/src/chapter_1.md @@ -20,6 +20,7 @@ fn startup( font_mapping.set_default(asset_server.load("roboto.kayak_font")); let mut widget_context = KayakRootContext::new(); + widget_context.add_plugin(KayakWidgetsContextPlugin); let parent_id = None; // The rsx! macro expects a parent_id, a widget_context from the user. @@ -35,7 +36,7 @@ fn startup( }} /> </KayakAppBundle> - } + }; commands.spawn(UICameraBundle::new(widget_context)); }