Standard Size Classes
The standard set of size classes. It's supposed to include all size classes and will be expanded whenever a new size class is defined. By default WindowSizeClass.calculateFromSize will only return size classes in DefaultSizeClasses in order to avoid behavioral changes when new size classes are added. You can opt in to support all available size classes by doing:
WindowSizeClass.calculateFromSize(
size = size,
density = density,
supportedWidthSizeClasses = WindowWidthSizeClass.StandardSizeClasses,
supportedHeightSizeClasses = WindowHeightSizeClass.StandardSizeClasses
)Content copied to clipboard