Skip to content

Convert Text to RichText: stuck with component in string interpolation invalid error #6867

@Ansh-Team

Description

@Ansh-Team

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

  • project errors: "A component in the string interpolation is invalid"

  • click on the error

  • there is no invalid/red indicated text, checking all menus

  • remove all text span parts, so it's an empty richText element

  • → error still there

  • re-create component by dragging new richText element & copy-pasting all values

  • → error is gone

Expected Behavior

Upon replacing all components/translations, the error should go away.
I should not have to re-create the richText element to fix an invisible issue.

Steps to Reproduce

  1. create project
  2. add 2 languges to project
  3. create text element
  4. add combined text; 1 part language, 1 part any variable (eg DB or datatype value)
  5. convert text to rich text element
  6. → all looks good
  7. add 3rd language to project
  8. → 2 errors on the rich text element
  9. fix the only visible missing translation issue
  10. → no more red indication; variable and all translations are set
  11. → still stuck with invalid component error

Reproducible from Blank-

[ x] The steps to reproduce above start from a blank project.

Bug Report Code (Required)###

IT4oz/Hqx89grsMA15DUbPkxgSQsQ1wkU4E40spBZz0aIuPpDJl/PM/6PxJWXsDiSn9MfWKmp14DpK3rkeOSLe0rGEmVbNV+yYdQeg3KeF6nMp+TF7q7OEF8BedWfR3F16W7vRRCVLJvSkYC3VyIAOuibArbK5T0DkQwSq/LZO4=

Visual documentation###

video example shows full process how to reproduce, all steps

important note

  • we also tried to delete each span part separately inside the richtText, and re-add it, but that doesn't fix it
  • even a richtext element with 0 text spans, still has the same error!
  • video example shows removing all textspan parts from the richText element, but still same string interpolation invalid error stays

Environment

- FlutterFlow version: FlutterFlow v6.4.61+ released December 2, 2025. Flutter version is 3.32.4
- Platform: FlutterFlow app & web dev version
- Browser name and version: Firefox latest, Chrome latest
- Operating system and version affected: Windows 11

Additional Information

I'm trying to support another language in the app and am getting slowed down a lot by having to re-create 30+ richText elements by now, with still having many to go.

I also had this issue with rich texts in the past already, where it would error invalid - without adding another language. However it happened rarely and I didn't know how to reproduce it.
It's very well possible the cause is not adding the language, but it just gets more obvious/reproducible when you do so.

I believe if you duplicate/copy paste the element you converted before adding the language, then all copied versions have the same problem.

related issue: #6868

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugstatus: confirmedIssue has been reproduced and confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions