Skip to content
pubscout

sticky_footer_scrollview

1.1.1, released 4 years ago by an unverified publisher

A scrollable Flutter widget with a sticky footer.

WASM-ready
$ flutter pub add sticky_footer_scrollview
Source repository

What it does

Provides a scrollable widget using SingleChildScrollView and CustomMultiChildLayout that keeps a footer sticky at either the bottom of the screen or the end of the scroll body. It supports dynamic heights for child widgets in the scroll body.

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

Use it when

  • You need a scrollable view with a footer that sticks to the bottom or the end of the content.
  • Your scroll body contains a limited number of child widgets.

Skip it when

  • You have a large number of child widgets in the scroll body, due to performance reasons with SingleChildScrollView.
  • You require lazy-loaded list views like ListView.builder for massive datasets.

Strengths

  • Supports dynamic height of child widgets in the scroll body.
  • Footer can stick to the bottom of the screen or the end of the scroll body.
  • Includes support for a scrollController.

Weaknesses

  • Not recommended for use with lots of child widgets for performance reasons.
  • Limited to SingleChildScrollView approach.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
StickyFooterScrollView(
  itemCount: 50,
  itemBuilder: (context, index) {
    return Card(
      child: ListTile(
        title: Text('content $index'),
      ),
      color: Colors.pinkAccent,
    );
  },
  footer: AppBar(
    title: Text('i stick at bottom'),
  ),
)

Alternatives

Packages that do the same job and could replace sticky_footer_scrollview.