Skip to content

AppBar ​

A single, fully-parameterized AppBar replacement that implements PreferredSizeWidget, so it drops straight into Scaffold(appBar: ...). There are no named styles — transparency, gradients, and elevation are just parameter values.

View source on GitHub ↗

CLI ​

Install this component into your project:

appbar
$flutter_beautify add appbar

Variants ​

One constructor, FBAppBar(...).

Key parameters ​

ParameterTypeDefault
title / titleWidgetString / Widget?''
actionsList<Widget>?—
backgroundColor / foregroundColorColor? / Color?ambient colorScheme.primary / colorScheme.onPrimary
elevationdouble0.0
showBackButtonbooltrue
bottomPreferredSizeWidget?— e.g. a TabBar
centerTitleboolfalse

Usage ​

dart
import 'package:your_app/widgets/appbar.dart';

Scaffold(
  appBar: FBAppBar(title: 'Dashboard', elevation: 2),
  body: ...,
);

Released under the MIT License.