View on GitHub

Styling text

In SwiftUI, you use modifier functions to style text.
For example, to change the font of a Text string,
use the font() modifier:

Text

"Hello, world!"

font

system

size

30

weight

heavy

))

foregroundColor

yellow

To style text in Flutter, add a TextStyle widget as the value
of the style parameter of the Text widget.

Test in DartPad

View on GitHub

Styling buttons

In SwiftUI, you use modifier functions to style buttons.

Button

"Do something"

// do something when button is tapped

font

system

size