AppBar
Header component for app navigation and actions.
File: example/lib/widgets/appbar.dart
Factory Methods
FBAppBar.basic()- Simple app barFBAppBar.withActions()- With action buttonsFBAppBar.searchable()- Integrated searchFBAppBar.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: () {}),
],
),
)
With Search
FBAppBar.searchable(
title: 'Product Search',
onSearch: (query) => searchProducts(query),
)