Recall & Review
beginner
What is a TextTheme in Flutter?
A TextTheme in Flutter is a collection of predefined text styles used throughout the app to keep text appearance consistent and easy to manage.
Click to reveal answer
beginner
How do you apply a custom TextTheme to your Flutter app?
You create a ThemeData object with your custom TextTheme and assign it to the MaterialApp's theme property.
Click to reveal answer
beginner
Name three common text styles available in Flutter's TextTheme.
headline1, bodyText1, caption are three common text styles in Flutter's TextTheme.
Click to reveal answer
intermediate
How can you override a single text style from the default TextTheme?
You can copy the default TextTheme and use the copyWith method to change only the specific text style you want to customize.
Click to reveal answer
beginner
Why is using TextTheme better than styling each Text widget individually?
Using TextTheme ensures consistent text styles across the app, makes it easier to update styles in one place, and improves maintainability.
Click to reveal answer
Which Flutter class holds a collection of text styles for an app?
✗ Incorrect
TextTheme is the class that groups multiple text styles for consistent use.
How do you apply a TextTheme to your Flutter app?
✗ Incorrect
You assign a ThemeData with your TextTheme to the MaterialApp's theme property.
Which method helps you change one style in an existing TextTheme?
✗ Incorrect
copyWith() creates a new TextTheme with specified changes.
What is the benefit of using TextTheme in Flutter?
✗ Incorrect
TextTheme helps keep text styles consistent and easy to manage.
Which of these is NOT a typical TextTheme style?
✗ Incorrect
imageStyle is not a text style; TextTheme styles relate to text only.
Explain how to create and apply a custom TextTheme in a Flutter app.
Think about how themes control app-wide styles.
You got /4 concepts.
Describe why using TextTheme improves app design and maintenance.
Consider managing many text widgets individually.
You got /4 concepts.