Flutter on Foldables: How hard could it be?
summary
A multimedia app investigation shows about 10,000 Samsung foldable users and finds the UI breaks in table top posture; native Android uses Jetpack WindowManager to stream hinge state and bounds, which get mapped to three postures and sent to Flutter via a type-safe Pigeon bridge when angle is required. The demo runs live on a physical foldable, the media query display feature already covers most cases, and the pigeon approach reliably works for raw angle telemetry.
AI-written summary · about
chapters (14)
- 0:00Introduction to foldables
- 1:03Flutter’s current limitations
- 2:04Android native APIs
- 3:30Accessing hinge angle
- 5:39Jetpack WindowManager
- 8:10Bridging Android to Flutter
- 9:57Flutter posture handling
- 11:42MediaQuery solution
- 13:07DisplayFeature in Flutter
- 14:54Why this talk matters
- 15:16iPhone Duo differences
- 16:20Current Flutter support
- 17:23Key takeaways summary
- 18:46Q&A
