Q5: What is a "widget" and mention its importance in Flutter? GET START Junior Top 68 Flutter Interview Questions Flutter 68 Answer Widgets are basically the UI components in Flutter.
It is a way to describe the configuration of an Element.
They are inspired from components in React.
Widgets are important in Flutter because everything within a Flutter application is a Widget , from a simple “Text” to “Buttons” to “Screen Layouts”. Q6: What is an App state? GET START Junior Top 68 Flutter Interview Questions Flutter 68 Answer State that is not ephemeral, that you want to share across many parts of your app,
and that you want to keep between user sessions, is what we call application state
(sometimes also called shared state).
Examples of application state: - User preferences - Login info - Notifications in
a social networking app - The shopping cart in an e-commerce app - Read/unread stat
e of articles in a news app
Q7: What is the difference between "main()" and "runApp()" functions in Flutter? GET START Junior Top 68 Flutter Interview Questions Flutter 68 Answer main () function came from Java-like languages so it's where all program started, w
ithout it, you can't write any program on Flutter even without UI.
runApp() function should return Widget that would be attached to the screen as a ro
ot of the Widget Tree that will be rendered.
Q8: Differentiate StatelessWidget and StatefulWidget? GET START Mid Top 68 Flutter Interview Questions Flutter 68 Answer Stateless : Widget state creates ONLY ONCE, then it can update values but not state explicitly. That's why it has