⌂
›
Reference
›
View
View
A full-screen route surface used in page-based navigation.
Example
page.views = [
view(
route: "/home",
appbar: app_bar(
title: text(value: "Home")
),
controls: [
container(
padding: 16,
content: text(value: "Welcome")
)
]
)
]
Common properties
routeappbarcontrolspaddingbgcolorfloating_action_button
Usage
Use view when the app manages multiple routes or full-screen destinations:
view(
route: "/settings",
controls: [
text(value: "Settings")
]
)
Notes
page.viewsusually holds the current navigation stackcontrolstakes an array of child controls