In a small app, i must read one row from a TinyDB, i select it from a ListView. Within this row there is a field called "Plano" that simply is the name of an image with extension .png
I can obtain the info but cannot display the image. I was thinking in a "nested if", but there are almost 100 rows with different images, so it would be ugly and repetitive the code.
What i was thinking:
if plano = "alicante.png"
then Display the alicante.png image
else
if plano = "asturias.png"
then Display the asturias.png image
else
if plano = "ancona.png"
then Display the ancona.png image
else
.......
and so on until the end of my rows.
Someone has a better idea???
Thanks in advance.
Rafael MV