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 a
StatelessWidgetand aStatefulWidgetin Flutter? - Explain the Stateful Widget Lifecycle?
- When do you use the
WidgetsBindingObserver? - What is Flutter tree shaking?
- What is a
Spacerwidget? - What is the difference between hot restart and hot reload?
- What is an
InheritedWidget? List some examples. - Why is the
build()method onStateand notStatefulWidgets? - What is a pubspec file in Dart?
- How is Flutter native?
- What is a
Navigatorand what areRoutesin Flutter? - What is a
PageRoute? - Explain
async,awaitandFutures. - How can you update a
ListViewdynamically? - What is a
Stream? - What are keys in Flutter and when should you use it?
- What are
GlobalKeys? - When should you use
mainAxisAlignmentandcrossAxisAlignment? - When can you use
double.INFINITY? - What is
Ticker,TweenandAnimatedBuilder? - What is ephemeral state?
- What is an
AspectRatiowidget used for? - How would you access
StatefulWidgetproperties from its State? - Is there a suggested limit to the number of
FloatingActionButtons a screen can have? Give a reason(s) for your answer - Mention two or more operations that would require you to use or return a Future.
- What is the purpose of a
SafeArea? - When to use a
mainAxisSize? - SizedBox VS Container?
- List the Visibility widgets in flutter and the differences?
- Can we use Color and
Decorationproperty 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 a
resizeToAvoidBottomInset? - What is the difference between 'as','show' and 'hide' in an import statement?
- What is the importance of a
TextEditingController? - Why do we use a
Reverseproperty in a Listview? - Difference between a
ModalandPersistentBottomSheet with an example? - How is an Inherited Widget different from a Provider?
- What is an
UnmodifiableListView? - Difference between these operators "?? and ?."
- What is the purpose of
ModalRoute.of()? - Difference between a
Navigator.pushNamedandNavigator.pushReplacementNamed? - Difference between a
Single InstanceandScoped Instance?
- What is a
vsync? - When does the animation reach
completedordismissedstatus? - Difference between `AnimationController and Animation?
- When to use a
SingleTickerProviderStateMixinandTickerProviderStateMixin? - Define a
TweenAnimation? - State the importance of a
Ticker? - Why do we need a
mixins?
- Difference between getDocuments() vs snapshots()?
This project is currently maintained by:
Feeling inspired? Check our Contributing guide to get started!