Skip to content

Top Bar

A flexible and customizable navigation bar component that adapts to different layout needs.

Top Bar provides consistent navigation and context across your app while supporting various title styles, actions, and custom leading widgets. It automatically handles back navigation and adjusts its height based on the selected style.

  • Versatile Layouts: Supports centered, left-aligned, and large title styles
  • Flexible Content: Accommodates subtitles, action buttons, and custom leading widgets
  • Responsive: Automatically adjusts height and layout based on content
  • Accessible: Maintains clear navigation hierarchy and readability

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.