Bringing Your Compose UI to Different Platforms
In Chapter 11, Developing for Different Form Factors, you learned how to use Window Size Classes, Jetpack WindowManager, and Canonical Layouts to make sure your app looks great on smartphones, tablets, and foldables. We investigated screen sizes, form factors, and hardware features, and understood how they influence app layout. You also learned that Window Size Classes help structure your user interface (UI). Knowing the generalized size of your app window is crucial for finding just the right layout. What just the right layout means depends on the purpose of your app. List-detail, Feed, and Supporting panes are great starting points for building the perfect UI. We closed Chapter 11 by discussing the anatomy of these so-called canonical layouts and learned when they are best used.
In this final chapter, I will show you how to bring your Jetpack Compose knowledge to systems other than Android—for example, the desktop (Windows...