Skip to content

Commit ecd8a95

Browse files
authored
v2.2.4 Documentation.
v2.2.4 Documentation.
1 parent ba68feb commit ecd8a95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flet-navigator-docs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1 align="center">FletNavigator v2.2.3 Documentation.</h1>
1+
<h1 align="center">FletNavigator v2.2.4 Documentation.</h1>
22

33
<h4 align="center">Menu:</h4>
44

@@ -211,13 +211,13 @@ app(target=main, view=WEB_BROWSER) # Non-Virtual Navigator recommended in web.
211211

212212
<h3 align="center"><code>template</code></h3>
213213

214-
```template(template_definition: TemplateDefinition, page_data: PageData) -> None```
214+
```template(template_definition: TemplateDefinition, page_data: PageData) -> Union[Control, None]```
215215

216216
Used to render template. Example:<br>
217217

218218
```python
219219
def go_to_button(pg: PageData, args: Arguments) -> None:
220-
pg.page.add(FilledButton(args[0], on_click=lambda _: pg.navigator.navigate(args[1], pg.page, args[2])))
220+
pg.page.add(FilledButton(args[0], on_click=lambda _: pg.navigator.navigate(args[1], pg.page, args[2]))) # Or return FilledButton so we can do things with button later.
221221

222222
def main(pg: PageData) -> None:
223223
pg.page.add(Text('Hello World!'))
@@ -286,4 +286,4 @@ Summary! Now you know difference between virtual and non-virtual navigator, how
286286

287287
<hr>
288288

289-
<p align="center"><b><i>FletNavigator V2.2.3</i></b></p>
289+
<p align="center"><b><i>FletNavigator V2.2.4</i></b></p>

0 commit comments

Comments
 (0)