Skip to content

milankathiriya/flutter_questions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 

Repository files navigation

Flutter Questions

Stateless & Stateful Widgets

  1. What is StatelessWidget?
  2. What is StatefulWidget?
  3. What are the differences between StatelessWidget & StatefulWidget?
  4. Explain the lifecycle methods of StatefulWidget.
  5. Explain differences between initState() & dispose() methods.

Libraries

  1. What is a library in Dart?
  2. How to create and use a custom library in Dart?
  3. Explain as, show, and hide keywords.

Material & Cupertino

  1. What is Material design & Human interface design?
  2. How to achieve Material & Human interface design in Flutter?
  3. How to switch between MaterialApp & CupertinoApp manually without using any State Management approach?
  4. What is an adaptive widget? How many adaptive widgets have come as pre-defined in Flutter?
  5. What to do if a UI is not changing (state is not updating) in an AlertDialog or in a ModalBottomSheet?
  6. What to do if an error is occurred of "Material widget not found" while working in the CupertinoApp parent widget?

General

  1. How many Flutter app lifecycle methods? Explain which state executed when?
  2. What is Hot Reload & Hot Restart? Explain in detail.
  3. What is a Model class? Why we should use it?
  4. What is a Singleton class? When and why we should use it?
  5. What is a Helper class?
  6. What is a Future class? Explain with examples in detail.
  7. What is a Timer class? Describe the use of it.
  8. Difference between Future & Timer class.
  9. What is Stream?
  10. What is the FutureBuilder widget? When should we use it?
  11. What is the StreamBuilder widget? When should we use it?

OOP

  1. What is OOP? Why we should always code with OOP?
  2. What is Class & Object? Explain with examples in detail.
  3. What are the principles of OOP?
  4. What is Encapsulation? Explain with examples in detail.
  5. What is Inheritance? Explain with examples in detail.
  6. What is Polymorphism? Explain with examples in detail.
  7. What is Abstraction? Explain with examples in detail.
  8. What is Exception Handling? Explain with an example.
  9. How to create a custom exception?
  10. Explain try, on, catch, and finally keywords in detail.
  11. Explain the use of constructors with their types.
  12. Explain the factory constructor with its advantage.
  13. How to create class attributes as public or private?

Persistent Storage

  1. What is Persistent Storage?
  2. How many approaches are in Flutter for saving Persistent data?
  3. What are Shared Preferences? Explain the pros & cons.
  4. What is Hive DB? Explain the pros & cons.
  5. What is SQLite DB? Explain the pros & cons.
  6. What is Collection & Document? Explain in detail as No-SQL DB terms.
  7. What is SQL? How it is important?
  8. Explain CRUD operations in detail in an example.
  9. Difference between Relation & Non-Relation DB.
  10. List pros. & cons. of Relation & Non-Relation DB.
  11. In which formats, data can be stored using Shared Preferences?
  12. Explain a complete procedure for setup the sign_up & sign_in mechanism for multiple users in Flutter using Shared Preferences.
  13. Explain a complete procedure for setup sign_up & sign_in mechanism for multiple users with different user_roles in Flutter using SQLite.
  14. Explain a complete procedure for setup the sign_up & sign_in mechanism for multiple users with different user_roles in Flutter using Firebase Firestore Database. Do not use Firebase Authentication Service.
  15. Explain how to achieve AUTOINCREMENT feature in the Firebase Firestore database manually?
  16. Explain the FOREIGN KEY concept in SQL with examples in detail.
  17. Explain one-time intro screen logic using Shared Preferences.
  18. How to save an image in Relational DB & in Non-Relational DB.
  19. How to save a color in Relational DB & in Non-Relational DB
  20. How to save an icon in Relational DB & in Non-Relational DB.
  21. Can we save a custom object in DB? If yes, then in which type of DB and how?
  22. List SQL queries for CRUD operations.

JSON Parsing

  1. What is JSON?
  2. What is JSON Parsing?
  3. What is JSON Encoding?
  4. What is JSON Decoding?
  5. What is Local JSON Bank? How to load it in Flutter?

API

  1. What is API?
  2. Which kind of data can be used while API calling?
  3. Explain types of APIs.
  4. Explain types of HTTP requests.
  5. How to call an API?
  6. By which packages we can call an API in Flutter and how?
  7. For a successfully arrived response after an API call, what response code did we should achieve?
  8. What is API Key?

Advance UI

  1. What is Sliver? Where it can be used?
  2. Difference between CustomScrollView & NestedScrollView widgets?
  3. How many types of Sliver widgets can be used in Flutter? List them.

Animation

  1. How many types of Animation we can do in Flutter?
  2. What is Tween Chaining? How to create it?
  3. What is Staggered Animation? How to create it?
  4. Explain any three Implicit animation widgets.
  5. Explain any three Explicit animation widgets.
  6. Difference between CustomPainter and CustomClipper.

Push Notifications

  1. How many types of Push Notifications in Flutter?
  2. How many types of Local Push Notifications in Flutter?
  3. How many types of FCM (Firebase Cloud Messaging) Push Notifications in Flutter?
  4. How to send FCM Push Notifications? Explain all possibilities.

State Management System

  1. What is State? Describe types of states in detail.
  2. What is State Management System? List some popular approaches.
  3. Explain the working flow of the Provider state management system.
  4. Explain the working flow of the GetX state management system.
  5. Explain difference between Consumer widget & Provider.of(context) constructor.
  6. Describe the difference between GetX state management approaches.
  7. Explain the logic of changing the app theme using Provider.


Answer Sheet

Stateless & Stateful Widgets

Q.1 What is StatelessWidget?

Ans.: This is a kind of widget which is static and only created once in a memory (RAM). Using this widget we cannot update an UI. Since this widget did not created in memory frequently, this supplies rapid performance as compared to StatefulWidget. This widget contains only one lifecycle method, build() method.

उत्तर: यह एक ऐसा widget है जो की static होता है और memory (RAM) के अंदर एक ही बार बनता है। इस widget की मदद से UI को update नहीं किया जा सक्ता है। यह widget memory (RAM) में बारबार ना बनने से StatefulWidget के मुकाबले ज्यादा performance देता है। इस widget की एक ही lifecycle method होती है, build() method।

જવાબ: આ એક એવું widget છે કે જે static હોય છે અને મેમરી(RAM) માં એક જ વાર બનતું હોય છે. આ widget ની મદદથી UI ને update કરી શકાતી નથી. આ widget મેમરી(RAM) માં વારંવાર બનતું ના હોવાથી StatefulWidget કરતાં ઝડપી performance આપે છે. આ widget ની મૂળ એક જ lifecycle method હોય છે, build() method.

Q.2 What is StatefulWidget?

Ans.: This is a kind of widget which is dynamic and placed inside a memory (RAM). Using this widget we can update an UI using its lifecycle method setState(). Since this widget did created in memory frequently, this supplies slow performance as compared to StatelesWidget. This widget contains many lifecycle methods, such as createState(), initState(), build(), setState(), dispose() and many more…

उत्तर: यह एक ऐसा widget है जो की dynamic है और memory (RAM) के अंदर बनता है। इस widget की lifecycle method setState() की मदद से हम UI को update कर सक्ते है। क्यूँकि यह widget memory में बारबार बनता है, इसलिए यह widget StatelessWidget के मुकाबले slow performance देता है। यह widget कई सारी lifecycle methods प्रदान करता है, जैसे की createState(), initState(), build(), setState(), dispose() और कई सारी…

જવાબ: આ widget dynamic હોય છે અને memory (RAM) માં બનતો હોય છે. આ widget ની lifecycle method setState() ની મદદ થી UI ને update કરી શકાય છે. આ widget memory (RAM) માં વારંવાર બનતો હોવાથી StatelesWidget ની સરખામણી માં ધીમું performance આપે છે. આ widget ઘણી lifecycle methods ધરાવે છે, જેવી કે createState(), initState(), build(), setState(), dispose() અને ઘણી બધી …

Q.3 What are the differences between StatelessWidget & StatefulWidget?

Q.4 Explain the lifecycle methods of StatefulWidget.

Q.5 Explain differences between initState() & dispose() methods.


Libraries

  1. What is a library in Dart?
  2. How to create a custom library in Dart?
  3. How to use a custom library in Dart?
  4. Explain as, show, and hide keywords.

Material & Cupertino

  1. What is Material design & Human interface design?
  2. How to achieve Material & Human interface design in Flutter?
  3. How to switch between MaterialApp & CupertinoApp manually without using any State Management approach?
  4. What is an adaptive widget? How many adaptive widgets have come as pre-defined in Flutter?
  5. What to do if a UI is not changing (state is not updating) in an AlertDialog or in a ModalBottomSheet?
  6. What to do if an error is occurred of "Material widget not found" while working in the CupertinoApp parent widget?

General

  1. How many Flutter app lifecycle methods? Explain which state executed when?
  2. What is Hot Reload & Hot Restart? Explain in detail.
  3. What is a Model class? Why we should use it?
  4. What is a Singleton class? When and why we should use it?
  5. What is a Helper class?
  6. What is a Future class? Explain with examples in detail.
  7. What is a Timer class? Describe the use of it.
  8. Difference between Future & Timer class.
  9. What is Stream?
  10. What is the FutureBuilder widget? When should we use it?
  11. What is the StreamBuilder widget? When should we use it?

OOP

  1. What is OOP? Why we should always code with OOP?
  2. What is Class & Object? Explain with examples in detail.
  3. What are the principles of OOP?
  4. What is Encapsulation? Explain with examples in detail.
  5. What is Inheritance? Explain with examples in detail.
  6. What is Polymorphism? Explain with examples in detail.
  7. What is Abstraction? Explain with examples in detail.
  8. What is Exception Handling? Explain with an example.
  9. How to create a custom exception?
  10. Explain try, on, catch, and finally keywords in detail.
  11. Explain the use of constructors with their types.
  12. Explain the factory constructor with its advantage.
  13. How to create class attributes as public or private?

Persistent Storage

  1. What is Persistent Storage?
  2. How many approaches are in Flutter for saving Persistent data?
  3. What are Shared Preferences? Explain the pros & cons.
  4. What is Hive DB? Explain the pros & cons.
  5. What is SQLite DB? Explain the pros & cons.
  6. What is Collection & Document? Explain in detail as No-SQL DB terms.
  7. What is SQL? How it is important?
  8. Explain CRUD operations in detail in an example.
  9. Difference between Relation & Non-Relation DB.
  10. List pros. & cons. of Relation & Non-Relation DB.
  11. In which formats, data can be stored using Shared Preferences?
  12. Explain a complete procedure for setup the sign_up & sign_in mechanism for multiple users in Flutter using Shared Preferences.
  13. Explain a complete procedure for setup sign_up & sign_in mechanism for multiple users with different user_roles in Flutter using SQLite.
  14. Explain a complete procedure for setup the sign_up & sign_in mechanism for multiple users with different user_roles in Flutter using Firebase Firestore Database. Do not use Firebase Authentication Service.
  15. Explain how to achieve AUTOINCREMENT feature in the Firebase Firestore database manually?
  16. Explain the FOREIGN KEY concept in SQL with examples in detail.
  17. Explain one-time intro screen logic using Shared Preferences.
  18. How to save an image in Relational DB & in Non-Relational DB.
  19. How to save a color in Relational DB & in Non-Relational DB
  20. How to save an icon in Relational DB & in Non-Relational DB.
  21. Can we save a custom object in DB? If yes, then in which type of DB and how?
  22. List SQL queries for CRUD operations.

JSON Parsing

  1. What is JSON?
  2. What is JSON Parsing?
  3. What is JSON Encoding?
  4. What is JSON Decoding?
  5. What is Local JSON Bank? How to load it in Flutter?

API

  1. What is API?
  2. Which kind of data can be used while API calling?
  3. Explain types of APIs.
  4. Explain types of HTTP requests.
  5. How to call an API?
  6. By which packages we can call an API in Flutter and how?
  7. For a successfully arrived response after an API call, what response code did we should achieve?
  8. What is API Key?

Advance UI

  1. What is Sliver? Where it can be used?
  2. Difference between CustomScrollView & NestedScrollView widgets?
  3. How many types of Sliver widgets can be used in Flutter? List them.

Animation

  1. How many types of Animation we can do in Flutter?
  2. What is Tween Chaining? How to create it?
  3. What is Staggered Animation? How to create it?
  4. Explain any three Implicit animation widgets.
  5. Explain any three Explicit animation widgets.
  6. Difference between CustomPainter and CustomClipper.

Push Notifications

  1. How many types of Push Notifications in Flutter?
  2. How many types of Local Push Notifications in Flutter?
  3. How many types of FCM (Firebase Cloud Messaging) Push Notifications in Flutter?
  4. How to send FCM Push Notifications? Explain all possibilities.

State Management System

  1. What is State? Describe types of states in detail.
  2. What is State Management System? List some popular approaches.
  3. Explain the working flow of the Provider state management system.
  4. Explain the working flow of the GetX state management system.
  5. Explain difference between Consumer widget & Provider.of(context) constructor.
  6. Describe the difference between GetX state management approaches.
  7. Explain the logic of changing the app theme using Provider.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published