Configure specific screen size. Default size is the same as @Preview(showSystemUi = true)
statusBarSize
Specify custom StatusBar size. Default value is 24.dp
navigationType
Choose between navigation types: NavigationType.ThreeButtons or NavigationType.Gesture
StatusBar / NavigationBar
Property
Description
color
Control the background color
darkIcons
Control whether icons are light of dark
overlaysContent
Draw content behind the bar, allowing for edge-to-edge content. There's a build-in support for Accompanist-inset.
Time
Property
Description
hours and minutes
Customize time displayed on StatusBar
... other
Property
Description
backgroundColor
Specify background color for entire Preview
Usage
Simply wrap your screen Composable with AdvancedPreview.
Configuration should be done in AdvancedPreview instead of passing arguments to @Preview annotation.