divider_list 0.0.4 copy "divider_list: ^0.0.4" to clipboard
divider_list: ^0.0.4 copied to clipboard

A List that places items of another list as a divider between each item.

A List that places items of another list as a divider between each item.

Features #

  1. Support for both SliverList and ListView
  2. Easy to use : You only need to pass lengths of both lists

Usage #

SliverDividerList #

SliverDividerList(mainListItemBuilder: (BuildContext context, int index) {
   return mainList[index];
 },
 dividerListItemBuilder: (BuildContext context, int index) {
   return dividerList[index];
 },
 mainListItemLength: mainList.length,
 dividerListItemLength: dividerList.length,
),

DividerListView #

DividerListView(mainListItemBuilder: (BuildContext context, int index) {
   return mainList[index];
 },
 dividerListItemBuilder: (BuildContext context, int index) {
   return dividerList[index];
 },
 mainListItemLength: mainList.length,
 dividerListItemLength: dividerList.length,
),
3
likes
150
pub points
62%
popularity

Publisher

verified publisherabhishak.in

A List that places items of another list as a divider between each item.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on divider_list