linked_pageview
1.1.5, released a year ago by xeinebiu.com
Synchronize scroll activity and viewport fractions across multiple PageViews
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.
- nested_scroll_views
Flutter nested scrolling with drag handoff at scroll boundaries for multiple scroll views.
76Compare - very_good_infinite_list
Easily display paginated and infinite scrolling lists in Flutter.
50Compare - infinite_carousel
Carousel in flutter. Supports features like infinite looping, friction effect, multiple scroll physics and control over item anchor and velocity.
50Compare - page_view_indicators
Customizable page indicators for PageViews including circles, arrows, progress, and steps.
48Compare
Works with
Packages commonly used together with linked_pageview: ones it builds on, ones built on it, and its own family.