Skip to content
pubscout

extended_sliver

2.1.3, released 5 years ago by fluttercandies.com

A powerful extension library of Sliver with custom headers and adapters.

WASM-ready
$ flutter pub add extended_sliver
Source repository

What it does

Provides customized sliver widgets including SliverPinnedPersistentHeader, SliverPinnedToBoxAdapter, ExtendedSliverAppbar, and SliverToNestedScrollBoxAdapter. It allows automatic calculation of extents without forcing values like minExtent, maxExtent, or expandedHeight.

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

Use it when

  • You need a pinned sliver header without knowing its final extent beforehand.
  • You are building custom scroll views with SliverAppbars that don't require forcing expandedHeight.
  • You need to embed nested scrollable widgets like WebViews inside a CustomScrollView.

Skip it when

  • Standard Flutter slivers and app bars fully meet your layout requirements.

Strengths

  • Calculates minExtent and maxExtent automatically using prototypes.
  • Simplifies creation of pinned sliver boxes and custom app bars.
  • Supports nested scrolling inside custom scroll views.

Weaknesses

  • Relies on custom sliver render objects which might need careful handling for edge cases.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
SliverPinnedToBoxAdapter(
  child: Container(
    padding: const EdgeInsets.all(20),
    color: Colors.blue.withOpacity(0.5),
    child: const Text('Pinned Sliver Content'),
  ),
)

Alternatives

Packages that do the same job and could replace extended_sliver.

Works with

Packages commonly used together with extended_sliver: ones it builds on, ones built on it, and its own family.