Skip to content
pubscout

linked_pageview

1.1.5, released a year ago by xeinebiu.com

Synchronize scroll activity and viewport fractions across multiple PageViews

WASM-ready
$ flutter pub add linked_pageview
Source repository

What it does

Synchronizes scroll activity across multiple PageViews with different viewport configurations. It allows single gesture control over multiple page views and provides an expandable page view that animates resizing based on content.

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

Use it when

  • You need synchronized scrolling across multiple PageViews
  • You are building image carousels or multi-layer parallax effects
  • You require expandable PageViews that resize based on child content

Skip it when

  • You only need a single standard PageView without synchronization
  • You are not using PageViews for your scrolling layouts

Strengths

  • Synchronizes multiple PageViews with a single gesture
  • Supports different viewport fractions per PageView
  • Provides an expandable PageView that adjusts to dynamic content sizes

Weaknesses

  • Requires manual disposal of the controller group to prevent memory leaks
  • Limited to PageView synchronization use cases

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
final controllerGroup = LinkedPageControllerGroup();
final controller1 = controllerGroup.create(viewportFraction: 0.7);

LinkedPageView(
  controller: controller1,
  children: [
    Container(color: Colors.red),
    Container(color: Colors.green),
  ],
)

Alternatives

Packages that do the same job and could replace linked_pageview.

Works with

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