Google still will fill out the Flutter Docs with an Canonical Layout implementation. So might have to.
Because both mobile foldables and desktops are platforms supported by Canonical Layouts; one has to make modifications to MediaQuery extensions to BuildContext first. And that involves the infrastructure to be able to grab both the Display and FlutterView objects.
The Display object is the configurable display that FlutterView renders to. And FlutterView has the scene object rendered to it. And the displayFeatures of FlutterView is how we determine if a foldable device has its hinge open.
Keep reading with a 7-day free trial
Subscribe to Fred’s Flutter Newsletter to keep reading this post and get 7 days of free access to the full post archives.