Skip to content
pubscout

expandable_page_view

1.3.1, released 3 days ago by an unverified publisher

A PageView widget that automatically adjusts its height to the currently displayed page.

WASM-readyRock solid
$ flutter pub add expandable_page_view
Source repository

What it does

Provides a drop-in replacement for the standard Flutter PageView that dynamically resizes its height to fit the content of the currently active page. It supports both fixed children and builder constructors, infinite looping, and programmatic page controllers.

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

Use it when

  • You have a PageView where pages have varying heights and you want the container to wrap the active page's height.
  • You need an infinite looping page view or carousel with dynamic heights.

Skip it when

  • You need a standard fixed-height PageView filling the entire viewport.
  • You are looking for grid layouts or other non-page view scrollables.

Strengths

  • Dynamically adjusts height based on visible pages and viewport fraction.
  • Supports infinite looping mode.
  • Compatible with standard PageView parameters and adds an ExpandablePageController.

Weaknesses

  • Limited to page-snapping view functionality.
  • Height calculations can be complex with partial viewport fractions.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
ExpandablePageView(
  children: [
     ExamplePage(Colors.blue, "1", 100),
     ExamplePage(Colors.green, "2", 200),
     ExamplePage(Colors.red, "3", 300),
  ],
)

Alternatives

Packages that do the same job and could replace expandable_page_view.

  • carousel_slider

    If you need a specialized carousel with indicators and built-in auto-play options rather than a raw PageView.

Works with

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