Good evening guys,
I'm trying to display manga titles from the AniList API using a GridView in FlutterFlow. Each manga has multiple possible title formats (e.g., title.english
, title.romaji
). My goal is to show title.english
by default, but if it's not available, fall back to title.romaji
. I have created a custom function (getPreferredTitle
) in Dart to handle the fallback logic, but it doesn't seem to return or display properly when used inside the widget's text property.
If someone can help me, will be very kind !