Skip to content

Top Bar

Top bars display the screen name and provide quick access to navigation and actions at the top of the screen, helping people orient themselves and complete tasks.

Common Alternative Names:
App bar, Navigation bar, Header


Top Bar variants control how the title and content are laid out.

Traditional app bar layout with centered title, suitable for most screens.


Left-aligned title for hierarchical navigation or content-heavy screens.


iOS-style large title with optional subtitle, perfect for primary navigation screens.


Add action buttons to the right side of the top bar.


PropertyTypeDescription
titleString?The primary text displayed in the top bar.
subtitleString?Optional secondary text displayed below the title in largeTitle type.
typeTopBarTypeThe layout style of the top bar.
actionsList<Widget>?Optional list of widgets to display on the right side.
leadingWidgetWidget?Custom widget to replace the default back button.
backgroundColorColorBackground color of the top bar.
textColorColorColor applied to the title and subtitle text.
leadingSizedouble?Size of the leading icon when using default back button.
paddingEdgeInsetsGeometryPadding applied to the content of the top bar.