rememberDeviceCornerShape

The shape of the display's own rounded corners, or a rectangle where the device reports none (below Android 12, or in a freeform window).

Read from the root view's insets when the page is composed rather than through a listener, so pages never replace a listener another part of the app installed.

Parameters

squareStart

Leaves the start corners square, for a page that does not reach the start edge of the screen: beside a rail or a drawer, its start corners meet the navigation, not the display's corners, and rounding them would round the app bar next to the rail.