listview horizontal separator code example
Example 1: listview.separated flutter
ListView.separated(
itemCount: 25,
separatorBuilder: (BuildContext context, int index) => Divider(),
itemBuilder: (BuildContext context, int index) {
return ListTile(
title: Text('item $index'),
);
},
)
Example 2: linearlayout horizontal in recyclerview
mRecyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, true));
Example 3: flutter reorderable list view dividers
children: [
for(final item in menu.dishCategories)
Column(
key: ValueKey(item),
mainAxisSize: MainAxisSize.min,
children: [
ExpansionTile(
leading: Icon(Icons.menu),
title: Text(item, style: regularTextStyle),
children: [
],
),
Divider(height: 0)
],
)
],