Scaffold Widget
Last updated
Last updated
The Scaffold widget is the foundation for building visually appealing and functional layouts in the applications. It serves as a versatile container that provides the basic structure for your app screens, including essential elements like app bars, navigation drawers, floating action buttons, and the content area for your app's primary functionality.
body: The central content area of the Scaffold, where you place your app's primary widgets (e.g., Text, ListViews, Forms, etc.).
floatingActionButton: A FloatingActionButton widget that floats above the content and typically represents a primary action.
floatingActionButtonLocation: Specifies the position of the FloatingActionButton within the Scaffold.
persistentFooterButtons: A list of widgets displayed at the bottom of the Scaffold, typically used for actions that aren't necessarily related to navigation.
You can customize Scaffold widget according to you requirements:
: An that displays at the top of the screen, typically containing the app title, navigation icons, and other actions.
: A that slides in horizontally from the left or right side of the screen, providing additional navigation options.
: Similar to but slides in from the opposite side (right by default).
: A BottomNavigationBar widget that displays navigation icons at the bottom of the screen, allowing users to switch between different top-level views.
: The of the Scaffold. Defaults to white.
By Navigating to Default Properties you can customize .