ghost_app_bar 0.1.0 copy "ghost_app_bar: ^0.1.0" to clipboard
ghost_app_bar: ^0.1.0 copied to clipboard

An invisible app bar scaffold with a gradient scrim and iOS-style large-title collapse. Content scrolls behind the bar and dissolves into the status bar with no visible seam.

ghost_app_bar #

An invisible app bar scaffold for Flutter. The bar has no background — content scrolls behind it and dissolves into a soft gradient scrim that also covers the status bar, with no visible seam. A large title fades out as you scroll while a compact title fades into the bar (WhatsApp / iOS large-title style).

Works on all renderers: plain gradient paint, no ShaderMask.

Features #

  • Transparent floating bar with leading and actions slots
  • Gradient scrim covering the status bar — no seam between bar and content
  • Large title that scrolls away and fades out
  • Compact title that fades into the bar past a configurable offset
  • Sliver-based content, or a plain children list via the convenience constructor

Usage #

import 'package:ghost_app_bar/ghost_app_bar.dart';

Scaffold(
  backgroundColor: const Color(0xFF06140A),
  body: GhostAppBarScaffold.children(
    title: 'Chats',
    leading: const CircleAvatar(radius: 18),
    actions: [
      IconButton(icon: const Icon(Icons.search), onPressed: () {}),
    ],
    children: [
      for (var i = 0; i < 40; i++)
        ListTile(title: Text('Item $i', style: const TextStyle(color: Colors.white))),
    ],
  ),
)

For full control use the default constructor with slivers.

Tuning #

Parameter Default Description
collapseOffset 30 Scroll offset (px) after which the compact title shows
scrimColor 0xFF06140A Color the content dissolves into — match your background
scrimExtent 34 Extra fade distance below the bar
barHeight 64 Bar row height, excluding status bar
horizontalPadding 20 Padding for bar and large title
bottomPadding 120 Space at the bottom of the scroll view

License #

MIT

1
likes
0
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

An invisible app bar scaffold with a gradient scrim and iOS-style large-title collapse. Content scrolls behind the bar and dissolves into the status bar with no visible seam.

Repository (GitHub)
View/report issues

Topics

#appbar #scroll #ui #widget

License

unknown (license)

Dependencies

flutter

More

Packages that depend on ghost_app_bar