Adding a Bit of Style

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Modifiers

Modifiers tell a UI element how to lay out, display, or behave within its parent layout. You can also say they decorate or add behavior to UI elements.

Start Modifying Your Composables

Open the starter project for this lesson.

Text(text = chatOutputText)
Text(
	text = chatOutputText,
	fontStyle = FontStyle.Italic, // 1
  color = Color.Magenta, // 2
  fontSize = 30.sp, // 3
  fontWeight = FontWeight.Bold // 4
)

See forum comments
Download course materials from Github
Previous: Introduction Next: Demo