I am new to Flutter and have been trying to create a horizontal list with images where I can display some data. I attempted to use ListView.builder
, but unfortunately, it doesn't seem to work as expected. I also searched for solutions on Stack Overflow, but none of them resolved my issue.
What I want to achieve is a horizontal list with images like this: Flutter Horizontal List Image. Additionally, I want to change the color of the selected item to indicate that it's currently selected. However, I need to ensure that only one item can be selected at a time. So, when I select another item, the previously selected item should be deselected.
I would appreciate any help or guidance on how to implement this behavior effectively. Thank you in advance for your assistance!