pinnable_listview 0.1.4 copy "pinnable_listview: ^0.1.4" to clipboard
pinnable_listview: ^0.1.4 copied to clipboard

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.
4
likes
30
pub points
50%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on pinnable_listview