What is Flutter and how does it differ from other cross-platform frameworks?
Flutter is Google's open-source UI toolkit that compiles to native ARM code and draws every pixel itself us...
25 questions
Widgets, lifecycle, rendering pipeline, build modes
Flutter is Google's open-source UI toolkit that compiles to native ARM code and draws every pixel itself us...
StatelessWidget is immutable and rebuilds only when its parent provides new configuration; StatefulWidget o...
The lifecycle goes: createState → initState → didChangeDependencies → build → (didUpdateWidget / setState →...
BuildContext is a handle to a widget's location in the Element tree; it's how widgets access inherited data...
Hot Reload injects updated Dart code into the running VM and calls build() again without resetting state; H...
Debug uses JIT for fast iteration with hot reload; Profile mirrors release performance with profiling tools...
Flutter maintains three parallel trees: Widgets (immutable descriptions), Elements (mutable nodes that reco...
Keys help Flutter's reconciliation algorithm identify widgets when they move within the tree. Use LocalKeys...
InheritedWidget propagates data down the widget tree efficiently; descendants call context.dependOnInherite...
Platform Channels let Flutter communicate with native Android/iOS code using message-passing over MethodCha...
LocalKey (ValueKey, ObjectKey, UniqueKey) identifies a widget within its parent's children list; GlobalKey ...
AppLifecycleState has four values: resumed (visible and active), inactive (visible but not focused, e.g., p...
vsync is a TickerProvider that synchronizes animations to the display's refresh rate — preventing off-scree...
Flutter DevTools provides a Widget Inspector (tree visualization), Performance tab (frame timeline, jank de...
MaterialApp uses Google Material Design widgets; CupertinoApp uses Apple-style iOS widgets; WidgetsApp is t...
A Flutter package is pure Dart code; a plugin is a package that also contains native platform code (Kotlin/...
Impeller is Flutter's new rendering engine that pre-compiles shaders at build time, eliminating shader comp...
JIT (Just-In-Time) compiles Dart at runtime in Debug mode, enabling hot reload but slower startup; AOT (Ahe...
Scaffold provides the basic Material Design visual layout structure (AppBar, body, FAB, Drawer, BottomNavig...
The Flutter Engine (written in C++) provides the Dart runtime, Skia/Impeller rendering pipeline, file I/O, ...
mounted is a boolean on State that is true when the State is in the widget tree and false after dispose() i...
Tree shaking is the Dart compiler's dead-code elimination pass during AOT release builds — it removes class...
pubspec.yaml is the Flutter/Dart project manifest defining package name, version, dependencies (pub.dev pac...
main() is the Dart entry point; runApp() inflates the given widget as the root of the widget tree, initiali...
flutter run starts the app in debug mode on a connected device/emulator; flutter build compiles the app for...