Skip to content
On this page

SliverAppBar

A scroll-aware application header for a custom scroll view.

SliverAppBar in FluttyUISliverAppBar 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.

SliverAppBar

const SliverAppBar({
  super.key,
  required this.appBar,
  this.largeTitle,
  this.expandedHeight = 132,
  this.pinned = true,
  this.floating = false,
});
ParameterTypeRequiredDefault
keyKey?Nonull
appBarAppBarYes—
largeTitleWidget?Nonull
expandedHeightdoubleNo132
pinnedboolNotrue
floatingboolNofalse

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/sliver_app_bar.dart

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

DartFlutter

Get started with FluttyUI