pinnable_listview 0.1.4
pinnable_listview: ^0.1.4

Flutter Android iOS web

A ListView widget capable of pinning a child to the top of the list.

PinnableListView #

A Flutter ListView widget that allows pinning a ListView child to the top of the list.

Demo #

Getting Started #

Define the list

  PinController pinController = PinController();

  @override
  Widget build(BuildContext context) {
      return PinnableListView(
          pinController: pinController,
          children: listOfWidgets
      );
  }

Then pin a widget with

  pinController.pin(index)

index meaning the child which you'd like to pin/unpin.

See the example app for more details.

Problems #

  • Calling setState on PinnableListView after it has changed will crash the list, because it will try to reload the original list.
  • Missing implementation for PinnableListView.builder.
  • Changing the size of a child after first build will crash the list, as the list calculates widget heights based on the render boxes at the beginning of the app.
3
likes
90
pub points
50%
popularity

A ListView widget capable of pinning a child to the top of the list.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

jan.hrastnik2@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on pinnable_listview