Flutter Developer
Basic to Intermediate Interview Questions & Answers
1. What is Flutter?
Answer: Flutter is an open-source UI toolkit by Google for building
natively compiled applications for mobile, web, and desktop from a
single codebase.
2. What is Dart?
Answer: Dart is the programming language used by Flutter. It is
optimized for building user interfaces with fast performance.
3. What is a widget in Flutter?
Answer: In Flutter, everything is a widget. Widgets are the basic
building blocks of a Flutter app’s UI.
4. What is the difference between StatelessWidget and
StatefulWidget?
Answer: A StatelessWidget is immutable and doesn’t hold state, while a
StatefulWidget can hold and update state during its lifecycle.
5. How do you manage state in Flutter?
Answer: Common state management approaches include setState(),
Provider, Riverpod, Bloc, Redux, and GetX.
6. What is hot reload in Flutter?
Answer: Hot reload allows you to quickly view code changes in real
time without restarting the app.
APTECH JOB FAIR 2025
Flutter Developer
7. What is the pubspec.yaml file?
Answer: It is the configuration file in a Flutter project that lists
dependencies, assets, and metadata.
8. How do you create navigation between screens in Flutter?
Answer: Using the Navigator class:
Navigator.push(context, MaterialPageRoute(builder: (_) => NextScreen()));
9. What is a Future in Dart?
Answer: A Future represents a value that will be available in the future,
typically used in asynchronous programming.
10. How do you use async and await in Flutter?
Answer: Use async to mark a function that uses asynchronous code, and
await to wait for a Future to complete.
11. What are keys in Flutter and why are they used?
Answer: Keys help Flutter identify widgets uniquely in the widget tree,
improving performance during rebuilds.
12. What is the difference between mainAxisAlignment and
crossAxisAlignment?
Answer: These properties control alignment in a Row or Column —
mainAxis is along the primary axis, crossAxis is perpendicular.
13. How do you implement a list in Flutter?
Answer: Using ListView.builder() for dynamic lists and ListView() for static
lists.
APTECH JOB FAIR 2025
Flutter Developer
14. What is the difference between SizedBox and Container?
Answer: SizedBox is mainly used for spacing or fixed size, while Container
is more flexible with decoration, padding, etc.
15. What is a Stream in Dart?
Answer: A Stream is used to receive asynchronous data over time, like
events or data from APIs.
16. What is the difference between const and final in Dart?
Answer: const is compile-time constant, final is runtime constant (cannot
be reassigned once initialized).
17. What is the role of initState() in Flutter?
Answer: It is the first method called when a StatefulWidget is inserted
in the widget tree, used for initialization.
18. How do you access REST APIs in Flutter?
Answer: Using the http package or dio to send GET/POST requests and
handle responses.
19. What is the purpose of the BuildContext?
Answer: BuildContext provides the location of a widget in the widget tree
and is used for widget interaction.
20. How do you display an image in Flutter?
Answer: Using the Image.asset('path') or Image.network('url') widgets
depending on source.
APTECH JOB FAIR 2025