Fred’s Flutter Newsletter

Fred’s Flutter Newsletter

Share this post

Fred’s Flutter Newsletter
Fred’s Flutter Newsletter
A Step Towards Canonical Layouts

A Step Towards Canonical Layouts

MediaQuery extensions

Fred Grott's avatar
Fred Grott
Apr 19, 2025
∙ Paid

Share this post

Fred’s Flutter Newsletter
Fred’s Flutter Newsletter
A Step Towards Canonical Layouts
1
Share

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.

Share

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.

Already a paid subscriber? Sign in
© 2025 Fred Grott
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share