divider_list 0.0.2 copy "divider_list: ^0.0.2" to clipboard
divider_list: ^0.0.2 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
0
pub points
30%
popularity

Publisher

verified publisherabhishak.in

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on divider_list