Recall & Review
beginner
What is ThemeData in Flutter?
ThemeData is a class that holds the colors and font styles for a Flutter app's overall look and feel. It helps keep the app's design consistent.Click to reveal answer
beginner
How do you apply a
ThemeData to a Flutter app?You pass the ThemeData object to the
theme property of the MaterialApp widget. This sets the app-wide theme.Click to reveal answer
beginner
What property in ThemeData controls the primary color of the app?
The
primaryColor property sets the main color used in the app's app bar, buttons, and other elements.Click to reveal answer
intermediate
How can you customize the text style in ThemeData?
Use the
textTheme property in ThemeData to define styles for different text types like headlines, body text, and captions.Click to reveal answer
beginner
What is the benefit of using ThemeData in a Flutter app?
It makes it easy to change the app's look in one place, ensures consistent styling, and supports light/dark mode switching.
Click to reveal answer
Which widget property is used to apply ThemeData in a Flutter app?
✗ Incorrect
The
theme property of MaterialApp is used to apply ThemeData.What does the
primaryColor in ThemeData affect?✗ Incorrect
primaryColor sets the main color used in app bars, buttons, and other key UI elements.How do you change the default font style for body text in ThemeData?
✗ Incorrect
The
bodyText1 style inside textTheme controls the default body text style.Which ThemeData property helps support dark mode?
✗ Incorrect
The
brightness property can be set to Brightness.dark or Brightness.light to support dark mode.What is the easiest way to change the app's color scheme globally?
✗ Incorrect
Changing the
ThemeData in MaterialApp updates the app's colors globally.Explain how ThemeData helps maintain consistent design in a Flutter app.
Think about how changing one setting affects the whole app.
You got /3 concepts.
Describe how to customize text styles using ThemeData in Flutter.
Focus on the textTheme property and its role.
You got /3 concepts.