Challenge: Greeting Text

In this lesson, you'll complete a challenge to test your understanding of the content.

Challenge: Greeting text

Take this challenge to practice your understanding of Text widget .

Challenge #1: Greeting text

Replace the greeting text for the otherGreeting variable to another language or some other text. Tapping on the “refresh” icon should toggle between englishGreeting and your text.

Challenge #2: Make the greeting bold

Outcome: The greeting text will be visible as bold text.

Hint: Use the fontWeight: property to make the text bold.

Challenge #3: Make font bigger

Outcome: The text will become bigger. Try playing around with different sizes.

Hint: Use the fontSize: property to make the font double to 48 logical pixels. Consider applying fontWeight property to FontWeight.normal to make text to normal weight.

Get hands-on with 1200+ tech skills courses.