The document provides an overview of key concepts in Flutter and Dart, including widgets, state management, and development tools like Android Studio. It explains the differences between native and cross-platform development, as well as features like the Scaffold, SafeArea, and Navigator. Additionally, it covers Dart language specifics such as final/const, ternary operators, and Runes.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
4 views3 pages
Flutter Viva Questions and Answers
The document provides an overview of key concepts in Flutter and Dart, including widgets, state management, and development tools like Android Studio. It explains the differences between native and cross-platform development, as well as features like the Scaffold, SafeArea, and Navigator. Additionally, it covers Dart language specifics such as final/const, ternary operators, and Runes.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3
1. What is a widget in Flutter?
A widget is the basic building block of a Flutter UI. Everything in Flutter is a widget.
2. What is Dart and why is it used?
Dart is the programming language used in Flutter to build fast, reactive mobile apps.
3. What is Scaffold in Flutter?
Scaffold provides a layout structure with AppBar, Drawer, and BottomNavigationBar.
4. What is a StatelessWidget? A widget that does not store any mutable state.
5. What is Android Studio?
An IDE by Google for Android and Flutter development with features like code editor, emulator, and debugging.
6. What is final or const in Dart?
final means the variable can be set only once. const is compile-time constant.
7. What is a SafeArea widget?
It adds padding to avoid system UI overlaps like notches and status bars.
8. What is an Android Virtual Device (AVD)?
It is an emulator that simulates an Android device for testing apps.
9. Can we use a real device instead of AVD?
Yes, by enabling Developer Options and USB Debugging on the phone.
10. Mention two key features of Android Studio.
Smart code editor and built-in emulator.
11. What is the widget tree?
A hierarchical structure of widgets that define the UI.
12. What is pubspec.yaml used for?
To declare app metadata, dependencies, and assets. 13. What is a ternary operator in Dart? A shorthand for if-else: condition ? trueValue : falseValue.
14. What are Runes in Dart?
Runes represent Unicode characters in a string.
15. Define state management.
State management is the way to handle changes to UI state in an app.
16. What is native vs cross-platform development?
Native is platform-specific (e.g., Kotlin for Android), while cross-platform uses one codebase for all platforms (e.g., Flutter).
17. Mention two benefits of Dart.
Easy to learn and fast performance with AOT and JIT compilation.
18. Why is commenting code important?
For readability, maintainability, and team collaboration.
19. What is a while-break example?
A loop that exits early based on a condition using break.
20. What is the purpose of the Container widget?
For layout, decoration, and positioning of child widgets.
21. What is the purpose of Riverpod in Flutter?
A modern, safe, and flexible state management package.
22. Difference between Material Design and Cupertino Widgets?
Material is Android-style; Cupertino is iOS-style UI components.
23. What is the use of Navigator?
To manage app routing and screen navigation.
24. What is the StatelessWidget lifecycle?
It has only one method: build(), which runs once on creation. 25. What is Hero animation? An animation for smooth transition between two screens with a shared widget.