0

This may seem a weird question, but I really don't know how to search this one.

Imagine that I have this Widget:

Text("Career highlights (9)")

This is being shown as this:

enter image description here

How can I show a simple (9) insted of what is shown?

Zroq
  • 8,002
  • 3
  • 26
  • 37
  • in which platform this output is coming from? I can see the expected text in `web` and `iOS` platform without any change made with your code. – Dinesh Nagarajan Jul 11 '21 at 18:18
  • @DineshNagarajan On Android (API 27, A 8.1) – Zroq Jul 11 '21 at 18:20
  • 1
    Can you check if the device is using the default font family or any custom font? Also, are you using any custom font for your app? From the screenshot, it looks like you're using a custom font for your app. – OMi Shah Jul 11 '21 at 18:34
  • This could be because of the font you are using. check the font characters. – Vettiyanakan Jul 11 '21 at 18:41
  • @OMiShah - You are right - its from the font. Is there a way to escape it? – Zroq Jul 11 '21 at 18:55
  • try printing text as raw like this ``Text(r'Career highlights (9)')`` or adding a backslash before ``9`` – OMi Shah Jul 11 '21 at 19:00

1 Answers1

-1

Try this

Text("Career highlights \(9\)")