Skip to content

Instantly share code, notes, and snippets.

@yusufbiberoglu
Created February 10, 2023 11:59
Show Gist options
  • Save yusufbiberoglu/3c73c5e21b2070b4f6850c1b902618ad to your computer and use it in GitHub Desktop.
Save yusufbiberoglu/3c73c5e21b2070b4f6850c1b902618ad to your computer and use it in GitHub Desktop.
ListView.separated(
padding: const EdgeInsets.only(top: 120),
itemBuilder: (BuildContext context, int index) {
return ListTile(
tileColor:
index.isEven || index == 0 ? Colors.grey[350] : Colors.white,
title: const Padding(
padding: EdgeInsets.only(
left: 11,
right: 15,
top: 15,
bottom: 15,
),
child: Text(
'Lorem ipsum dolor sit amet consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
),
),
);
},
separatorBuilder: (context, index) => const Divider(
indent: 28,
endIndent: 28,
height: 1,
thickness: 1,
color: Colors.black,
),
itemCount: 7,
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment