Styling text that is received into a text widget in a listView from the Agent (Gemini)

Widgets & Design

Hi I'm using the agent tool with Gemini. I have a list view and AI assistant responses successfully loading into a text widget in the UI. However, some of the text is unformatted so is surrounded by what I assume is markdown markup indicating it should be bold, italic etc. Line breaks work, but other than that the responses needs to be properly formatted and this needs to happen dynamically.

What have you tried so far?

I have tried setting the Agent to provide markdown, and then used the markdown widget, and bound it to my messages variable exactly as I had done for the text widget. With this attempt - nothing displays on screen at all when I test the app.

Did you check FlutterFlow's Documentation for this topic?
Yes
1
1 reply