This file contains a number of Flutter interview questions.
Note: Keep in mind that many of these questions are open-ended and could lead to interesting discussions.
- What is the difference between Stateless and Stateful Widget in Flutter?
- Explain Stateful Widget Lifecycle?
- When to use WidgetsBindingObserver?
- What is a Flutter Tree Shaking?
- What is a Spacer Widget?
- Difference between HotRestart and Hot Reload?
- What is an Inherited Widget and list some examples?
- Why is the build() method on State and not Stateful Widget?
- What is a Pub file in Dart?
- How is Flutter native?
- What is a Navigator and Routes in Flutter?
- What is a PageRoute?
- Explain async,await and Future?
- How do I update ListView dynamically?
- What is a Streams?
- What are keys in Flutter and when to use it ?
- What are Global Keys?
- When to use main Axis Alignment and cross Axis Alignment ?
- when do we use double.INFINITY?
- What is an Ephemeral state?
- What is the role of a ChangeNotifier and notifyListeners in Provider?
- What is a ValueListenableBuilder?
- What is an AspectRatio?
- List a few plugins developed by the Flutter Team?
- How does Dart AOT works?
- Difference between var and dynamic type in Dart?
- Difference in between 'const' and 'final' keyword in Dart?
- what is a Null-aware Operator?
- List Flutter's build modes?
- What is an Isolate?
- Views on LayoutBuilder?
- How would you access Stateful Widget properties from it's State?
- Is there a suggested limit to the number of FloatingActionButtons a screen can have?. Give reason(s) for your answer
- Mention two or more operations that would require one to use or return a Future?
- What is the purpose of SafeArea?
- when to use mainAxisSize?
- SizedBox VS Container?
- List the Visibility widgets in flutter and the differences?
- Can we use Color and Decoration property simultaneously in the Container? Explain
- Inorder for the CrossAxisAlignment.baseline to work what is another property that we need to set?
- when should we use resizeToAvoidBottomInset?
- What is the difference between 'as','show' and 'hide' in an import statement?
- What is the importance of TextEditingController?
- why do we use "Reverse" property in Listview?
- Difference between Modal and Persistent BottomSheet with an example?
- How is Inherited Widget different from Provider?
- what is a UnmodifiableListView?
- what is vsync?
- when does the animation reach "completed" or "dismissed" status?
- Difference between AnimationController and Animation?
- When to use 'SingleTickerProviderStateMixin' and 'TickerProviderStateMixin'?
- Define TweenAnimation?
- State the importance of Ticker?
- Why do we need mixins?
- Difference between getDocuments() vs snapshots()?
This project is currently maintained by:
Feeling inspired? Check our Contributing guide to get started!