A Scaffold widget should be used to wrap an app screen. It includes support for App Bars, Floating Action Buttons, Drawers, and Bottom Sheets.
{
"type": "scaffold",
"app_bar": {},
"body": {},
"fab": {},
"drawer": {},
"bottom_bar": {},
"bottom_sheet": {}
}
All properties except type
and body
are optional.
All properties except type
should be widgets of the relevant type.
If you want to use a Bottom Navigation Bar, you should use a Bottom Navigation Scaffold instead.