This is the result that I want.
This is the current output that I have.
How can I achieve this result specifically the lines that are present in between the list tiles? I am using a ListView
to show the rules. Below is the code for the ListTile
that I am using.
Widget ruleTile(String title) {
return ListTile(
contentPadding: EdgeInsets.zero,
leading: Image.asset(
"assets/images/sun.png",
width: 40.w,
),
title: Text(
title,
style: MyTextStyle.littlesmaller,
),
);
}
2
Answers
Thanks to @pmatatias comment, I figured it out. This is the updated code I used to get the desired output.
You can use
Stack
and dotted_line package combo to create something like that: