expandable_sliver_list 1.0.0+2 copy "expandable_sliver_list: ^1.0.0+2" to clipboard
expandable_sliver_list: ^1.0.0+2 copied to clipboard

outdated

A sliver List that you can then either expand or collapse, in order to show or hide the contents of the list.

expandable_sliver_list #

pub package flutter_tests codecov style: effective dart License: MIT

A Flutter widget which creates a Sliver List that you can then either expand or collapse, in order to show or hide the contents of the list.

Getting Started #

Installing #

In your Flutter project, add the package to your dependencies

dependencies:
  ...
  expandable_sliver_list: ^1.0.0

Usage Example #

A complete example on how to use this widget can be found in the example directory. But the basics are:

Import the package

import 'package:expandable_sliver_list/expandable_sliver_list.dart';

Create a controller and a list of items to display

ExpandableSliverListController controller = ExpandableSliverListController();

List<int> items = [1, 2, 3, 4, 5];

Create the widget

ExpandableSliverList<int>(
  items: items,
  controller: controller,
  builder: (context, item) {
    return ListTile(
      title: Text(item.toString()),
    );
  },
)

Now you can use the controller to expand or collapse the list

controller.collapse();
controller.expand();
27
likes
40
pub points
80%
popularity

Publisher

verified publishertylernorbury.com

A sliver List that you can then either expand or collapse, in order to show or hide the contents of the list.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on expandable_sliver_list