Text can be created in a variety of ways, but the most common is putting a string into a Text
element.
Text(markdown: """
Although you *can* use elements such as `Strong` and `Italic` to style your text, it's easier to use markdown. To do that, use `Text(markdown:)` then write your Markdown as normal.
""")
Although you can use elements such as Strong
and Italic
to style your text, it’s easier to use markdown. To do that, use Text(markdown:)
then write your Markdown as normal.
It's common to place other elements inside text, to gain access to alignment and more. For example, icons, badges, and as-pix are all commonly used inside text.