Skip to content
On this page

AppBar

An application header with navigation and action slots.

AppBar in FluttyUIAppBar in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

AppBar

const AppBar({
  super.key,
  this.title,
  this.motion,
  this.titleLayout = AppBarTitleLayout.inline,
  this.titleAlignment = AppBarTitleAlignment.leading,
  this.titleHeight = 68,
  this.leading,
  this.actions = const [],
  this.automaticallyImplyLeading = true,
  this.groupActions = true,
  this.height = 64,
  this.horizontalPadding = 16,
  this.useSafeArea = true,
  this.backgroundColor,
  this.blur = 16,
  this.backButtonLabel = 'Back',
});
ParameterTypeRequiredDefault
keyKey?Nonull
titleWidget?Nonull
motionAppBarMotion?Nonull
titleLayoutAppBarTitleLayoutNoAppBarTitleLayout.inline
titleAlignmentAppBarTitleAlignmentNoAppBarTitleAlignment.leading
titleHeightdoubleNo68
leadingWidget?Nonull
actionsList<Widget>Noconst []
automaticallyImplyLeadingboolNotrue
groupActionsboolNotrue
heightdoubleNo64
horizontalPaddingdoubleNo16
useSafeAreaboolNotrue
backgroundColorColor?Nonull
blurdoubleNo16
backButtonLabelStringNo'Back'

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/layouts/app_bar/app_bar.dart

This reference is generated from the AppBar declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI