AppBar

Header component for app navigation and actions.

File: example/lib/widgets/appbar.dart

Factory Methods

  • FBAppBar.basic() - Simple app bar
  • FBAppBar.withActions() - With action buttons
  • FBAppBar.searchable() - Integrated search
  • FBAppBar.large() - Large header style

Properties

title: String
actions: List<Widget>
leading: Widget
backgroundColor: Color
elevation: double
centerTitle: bool
toolbarHeight: double

Usage Example

Scaffold(
  appBar: FBAppBar.withActions(
    title: 'My App',
    actions: [
      IconButton(icon: Icons.search, onPressed: () {}),
      IconButton(icon: Icons.more_vert, onPressed: () {}),
    ],
  ),
)
FBAppBar.searchable(
  title: 'Product Search',
  onSearch: (query) => searchProducts(query),
)