ScaffoldPage
A Fluent page: a header, content and footer, with Fluent page margins.
Use it as the content of the pages of a
NavigationView.
Example:
fluent.ScaffoldPage(
header=fluent.PageHeader(title="Inbox"),
content=ft.Text("No new messages"),
)

Inherits: LayoutControl
Example
Fluent ScaffoldPage
import flet_fluent_ui as fluent
import flet as ft
def main(page: ft.Page):
page.title = "Fluent ScaffoldPage"
page.padding = 0
photos = 4
def add_photo(e: ft.Event[fluent.CommandBarButton]):
nonlocal photos
photos += 1
status.value = f"{photos} photos"
status = ft.Text("4 photos")
page.add(
fluent.ScaffoldPage(
expand=True,
header=fluent.PageHeader(
title="Photos",
command_bar=fluent.CommandBar(
alignment=ft.MainAxisAlignment.END,
primary_items=[
fluent.CommandBarButton(
icon=fluent.FluentIcons.ADD,
content="Import",
on_click=add_photo,
),
fluent.CommandBarButton(
icon=fluent.FluentIcons.SHARE, content="Share"
),
],
),
),
content=status,
)
)
if __name__ == "__main__":
ft.run(main)

Properties
bgcolorclass-attributeinstance-attribute
bgcolor: ColorValue | None = NoneThe background color of the page.
If None, the page is transparent inside a
NavigationView, and otherwise uses the Fluent
page background color.
contentclass-attributeinstance-attribute
content: Control | None = NoneThe content of the page, which fills the space below header.
footerclass-attributeinstance-attribute
footer: Control | None = NoneA control shown at the bottom of the page.
headerclass-attributeinstance-attribute
header: Control | None = NoneThe header of the page, usually a PageHeader.
paddingclass-attributeinstance-attribute
padding: PaddingValue | None = NoneThe space around content.
If None, Fluent's page margins are used, which are smaller on narrow
pages.