I have a list view with 9 items , and each item has a same dark blue picture in their left
ListView.builder(
itemCount: 9,
itemBuilder: (BuildContext context, int index) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 8.0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Image.asset(
"assets/logos/navy-circle.png",
width: 40,
height: 40,
),
const SizedBox(width: 20),
Expanded(
child: Text(
'Paragraph ${index + 1}: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor.',
style: const TextStyle(color: Colors.white, fontSize: 13, fontWeight: FontWeight.bold),
),
),
],
),
);
},
),
it looks like this :
but i want to add an Arrow icon throw the images , something like this :
any idea? thanks
2
Answers
You can try this:
NOTE: I don’t have svgs of the arrow’s head and tail so I used simple white container, you can replace those with your image.
A suggestion for a dynamic screen is to use the Stepper Widget https://api.flutter.dev/flutter/material/Stepper-class.html
steper_example