Scaffold

The Scaffold widget provides a basic structure for a visual screen in your application. It offers slots for common elements like an App Bar, a Bottom Navigation Bar, and the main body of the screen.

Properties

Property
Description

scaffoldBackgroundColor

The background color of the entire scaffold.

enableSafeArea

If true, the body of the scaffold will be wrapped in a Safe Area to avoid system intrusions.

Children of Scaffold

The Scaffold has several dedicated slots for its children:

Slot
Description
Allowed Widgets

appBar

The area at the top of the screen for the App Bar.

AppBar

bottomNavigationBar

The area at the bottom of the screen for navigation.

NavigationBar, NavigationBarCustom

body

The main content area of the screen.

Any


Default Properties

The Scaffold widget does not have the standard default properties. Its appearance and behavior are controlled by the properties and children listed above.

Last updated