└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # Flutter Reference 2 | ## History of Flutter (by Tadas Petra) 3 | https://www.youtube.com/watch?v=nGd6ryAFtIM 4 | 5 | ## Docs & Tutorials 6 | flutter.dev/docs , Medium.com, YouTube.com, raywenderlich.com 7 | ## Interview questions. 8 | #1 https://github.com/whatsupcoders/Flutter-Interview-Questions 9 | -Explain the Stateful Widget Lifecycle? 10 | -Why is the build() method on State and not StatefulWidget? 11 | #2 https://www.raywenderlich.com/10971345-flutter-interview-questions-and-answers 12 | *Focus on the following*. 13 | -How does Flutter run the code on Android & iOS? 14 | -What is SafeArea in flutter? 15 | -Explain different null operators in Dart. 16 | -What do you know about Dart Isolates? 17 | -Explain why the Fat Arrow operator is used in Flutter? 18 | -What are slivers? whats the different between slivers and ListView/GridView.. etc ? 19 | -How can we embed a regular widget (e.g., a container) within a sliver? 20 | -What are tween animations? 21 | -What are keys, and when do you use them? 22 | -How do you execute code only in certain modes (release, debug, profile)? 23 | -When do you use 'double.infinity’? 24 | -How do you override the back-button action? 25 | -What’s Flutter tree shaking? 26 | -Is Flutter actually native? 27 | 28 | #3 https://medium.com/@artrmz/flutter-interview-questions-and-answers-2020-adad5dacaf6a 29 | #4 https://github.com/power19942/flutter-interview-questions 30 | 31 | # Additional Questions (Advanced). 32 | -Whats the different between dependencies and dev_dependencies in pubspec.yaml? 33 | -mention a couple of testing procedures in dart / flutter ! 34 | -have you used DataClasses(DTO) in dart ? how do you create them? 35 | -tell us about what is functional programming and how to use it in dart? 36 | -Define External Functions? 37 | -talk about dart generators? (sync*,async*, yeild & yeild*) 38 | -why do we use asserts and when? 39 | -whats the different between throw and rethrow? 40 | -Have you heard about The "covariant" keyword? describe with small example. 41 | -whats deferred imports do? 42 | -whats hide in imports do? 43 | -whats [SOLID](https://en.wikipedia.org/wiki/SOLID "SOLID") and [DRY](https://www.plutora.com/blog/understanding-the-dry-dont-repeat-yourself-principle "DRY") principles 44 |
45 | what is JIT and AOT 46 | 47 | In the context of the Dart programming language, JIT (Just-In-Time) and AOT (Ahead-Of-Time) compilation strategies are used to optimize the performance of the Dart code. 48 | 49 | JIT (Just-In-Time) Compilation: In Dart, JIT compilation is employed during development to enable features like hot-reloading, which allows developers to see the changes in their code without needing to restart the application. JIT compilation provides faster development cycles, but the compiled code may not be as optimized for performance as AOT-compiled code. 50 | 51 | AOT (Ahead-Of-Time) Compilation: Dart uses AOT compilation when building a production version of the application. AOT compilation compiles the Dart code into native machine code before the application is run, which results in faster startup times and improved performance. AOT compilation also enables smaller executable sizes and better memory usage. However, AOT-compiled code lacks the hot-reloading feature available during development with JIT compilation. 52 | 53 | In summary, Dart uses JIT compilation during development to provide a better development experience with features like hot-reloading, while it uses AOT compilation for production builds to deliver better performance and smaller executable sizes. 54 | 55 |
56 | 57 | 58 | --------------------------------------------------------------------------------