Recall & Review
beginner
What is the main function in a Flutter app?
The main function is the entry point of a Flutter app. It calls runApp() to start the app and display the UI.
Click to reveal answer
beginner
What widget is used to display simple text in Flutter?
The Text widget is used to show a string of text on the screen.
Click to reveal answer
beginner
What does runApp() do in Flutter?
runApp() takes a widget and makes it the root of the widget tree, showing it on the screen.
Click to reveal answer
beginner
Why do we use MaterialApp in a Flutter app?
MaterialApp provides basic visual structure and styling following Material Design, like app bars and themes.
Click to reveal answer
beginner
How do you center a widget in Flutter?
Use the Center widget to place its child widget in the middle of the screen.
Click to reveal answer
Which function starts a Flutter app?
✗ Incorrect
runApp() is the function that launches the Flutter app by inflating the given widget.
Which widget displays text on the screen?
✗ Incorrect
The Text widget is used to show text in Flutter apps.
What widget centers its child in the available space?
✗ Incorrect
Center widget places its child in the center of the parent widget.
MaterialApp is used to:
✗ Incorrect
MaterialApp sets up the app with Material Design visuals and navigation.
Where do you write the code to start your Flutter app?
✗ Incorrect
The main() function is the app's entry point where runApp() is called.
Explain the steps to create and run a simple Flutter app that shows 'Hello World' on the screen.
Think about how Flutter apps start and how widgets build the UI.
You got /5 concepts.
Describe the role of the MaterialApp widget in a Flutter app and why it is important for beginners.
MaterialApp is like the app's foundation for look and feel.
You got /4 concepts.