Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while displaying $20.00 (Dollar Sign) as text in Text() #31869

Closed
AkramChauhan opened this issue Apr 30, 2019 · 3 comments
Closed

Error while displaying $20.00 (Dollar Sign) as text in Text() #31869

AkramChauhan opened this issue Apr 30, 2019 · 3 comments

Comments

@AkramChauhan
Copy link

Here for explaining this issue.
I'm just wrapping my Text in Child

child:Text("$20.00")

Showing me error "Expected an Identifier" (Missing Identifier).

@jonahwilliams
Copy link
Member

$ is used for string interpolation, you need to escape it like \$20.00

@AkramChauhan
Copy link
Author

That worked.
Thanks

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants