⚠️ this was my very first compose app so I guess there are a lot of mistakes 😉
That being said, the rough idea is here I think.
I think you should rely on
LocalXxx
API instead of bool resources using Android resource qualifier and/or maybe
withConstaints
r
Ryan Simon
05/06/2021, 2:40 PM
This is something I'm tackling on a project that supports tablet, phone and foldables. My solution was to use a sealed class to hold the different UI modes my app can be in and like Olivier mentioned, add the mode to a CompositionLocal