Search packages, repositories and app categories

background_app_bar cover
Package detailsv2.1.0+1

background_app_bar

A background app bar plugin, use this plugin if you want to preserve background of sliver app bar when scrolling,

AndroidiOSWebmacOSWindowsLinux
30-day downloads
42
Likes
47
Pub points
140

Install package

flutter pub add background_app_bar

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The background_app_bar package is a Flutter plugin designed to maintain the background appearance of a SliverAppBar during scrolling. It ensures that the visual background—such as an image or gradient—remains visible and consistent as users scroll, enhancing the visual continuity of the app interface. Ideal for apps with rich, immersive designs, it works across multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. The plugin integrates seamlessly with existing SliverAppBar implementations without requiring major code changes.

Use cases

  • Maintaining visual continuity in scrollable interfaces
  • Creating immersive app experiences with persistent backgrounds
  • Enhancing UI design consistency on scroll
  • Building visually rich dashboards or galleries
  • Implementing parallax effects with stable backgrounds

Key features

  • Preserves background during scroll
  • Supports images and gradients
  • Cross-platform compatibility
  • Easy integration with SliverAppBar
  • Minimal configuration required

Suitable for

  • Design-focused Flutter applications
  • Apps with complex scroll-based layouts
  • Developers prioritizing visual polish
  • Projects using SliverAppBar extensively
  • Teams building multi-platform apps

Considerations

  • May impact performance with large background assets
  • Requires careful handling of image resolution
  • Not suitable for simple, minimalistic UIs
  • Limited customization beyond background retention
  • Best used with optimized assets for smooth scrolling

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Widget Background App Bar

A background app bar plugin, use this plugin if you want to preserve background of sliver app bar when scrolling,

inspired by GradientAppBar GitHub

Screenshots

Don't forget to tap + button 5 times

Screenshot-1565398534.png Screenshot-1569417041.png Screenshot-1569417048.png Screenshot-1569417051.png

Getting Started

  1. Depend on it by adding this to your pubspec.yaml file: background_app_bar: ^1.0.0

  2. Import it: import 'package:background_app_bar/background_app_bar.dart'

  3. Replace your current FlexibleSpaceBar (In the AppBar or SliverAppBar) to BackgroundFlexibleSpaceBar.

SliverAppBar(
    expandedHeight: _kAppBarSize,
    floating: false,
    pinned: true,
    snap: false,
    elevation: 0.0,
    backgroundColor: Colors.transparent,
    flexibleSpace: BackgroundFlexibleSpaceBar(
        title: widget.title != null ? Text(widget.title!) : null,
        centerTitle: false,
        titlePadding: const EdgeInsets.only(left: 20.0, bottom: 20.0),
        background: ClipRect(
            child: Container(
                child: BackdropFilter(
                    filter: ImageFilter.blur(sigmaX: 5.0, sigmaY: 5.0),
                    child: Container(
                        decoration: BoxDecoration(
                            color: Colors.black.withOpacity(0.5),
                        ),
                    ),
                ),
                decoration: const BoxDecoration(
                    image: DecorationImage(
                        image: AssetImage("images/bg.jpg"),
                        fit: BoxFit.fill,
                    ),
                ),
            ),
        ),
    ),
)

Categories

Source repository

Projects using this package

No data available yet.