Flutter & Dart (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
Flutter Web: HTML/CSS renderer vs CanvasKit vs WebAssembly (WasmGC) in Flutter 3.22+.
senior LevelflutterAdvanced Internals
In Simple Words:
- HTML Renderer (Legacy): Uses standard HTML DOM, SVG, and CSS. Lower download size, but inconsistent visual rendering and animations compared to mobile.
- CanvasKit: Ships Skia compiled to WebAssembly. Pixel-perfect identical rendering to mobile, but adds a ~2MB initial download payload.
- WasmGC (Flutter 3.22+): Dart compiles directly to native browser WebAssembly with Garbage Collection:
- 2x to 3x faster execution speeds.
- Eliminates JavaScript bridge overhead, unlocking desktop-class 60/120 FPS performance in web browsers.