Skip to content
pubscout

customizable_space_bar

0.2.0, released 6 years ago by bookm.me

AppBar widget that changes its content based on the scrolling rate to implement large titles.

WASM-ready
$ flutter pub add customizable_space_bar
Source repository

What it does

Provides a customizable space bar widget for SliverAppBar that exposes a scrolling rate parameter. This allows developers to dynamically scale, position, and alter UI elements like text size and padding as the user scrolls.

AI-written summary of version 0.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to implement a 'Large Title' style collapsing app bar in Flutter.
  • You need custom animations or layout changes inside an AppBar driven by scroll position.

Skip it when

  • You are not using a CustomScrollView or SliverAppBar.
  • You only need a standard static AppBar.

Strengths

  • Provides a direct scrollingRate variable for fine-grained layout control.
  • Integrates seamlessly with standard Flutter SliverAppBars.

Weaknesses

  • Limited documentation beyond the basic README example.
  • No advanced pre-built animations other than what you code via the builder.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
CustomScrollView(
  slivers: [
    SliverAppBar(
      pinned: true,
      flexibleSpace: CustomizableSpaceBar(
        builder: (context, scrollingRate) {
          return Text("Hello World");
        },
      ),
      expandedHeight: 150,
    ),
  ],
)

Alternatives

Packages that do the same job and could replace customizable_space_bar.