DialogDefaults
object DialogDefaults
Functions
Link copied to clipboard
fun buttons(positive: DialogButton = DialogButton(stringOk()), negative: DialogButton = DialogButton("")): DialogButtons
the setup of the dialog buttons
Link copied to clipboard
the setup of the dialog buttons if you do not want to show any buttons
Link copied to clipboard
Link copied to clipboard
some additional options for the dialog
Link copied to clipboard
fun styleBottomSheet(dragHandle: Boolean = true, peekHeight: (containerHeight: Dp, sheetHeight: Dp) -> Dp? = BottomSheetStyleDefaults.peekHeight, expandInitially: Boolean = false, velocityThreshold: () -> Dp = { 125.dp }, positionalThreshold: (totalDistance: Dp) -> Dp = { 56.dp }, animateShow: Boolean = false, dismissOnBackPress: Boolean = true, dismissOnClickOutside: Boolean = true, scrim: Boolean = true, options: StyleOptions = StyleOptions(), shape: Shape = BottomSheetStyleDefaults.shape, containerColor: Color = BottomSheetStyleDefaults.containerColor, iconColor: Color = BottomSheetStyleDefaults.iconColor, titleColor: Color = BottomSheetStyleDefaults.titleColor, contentColor: Color = BottomSheetStyleDefaults.contentColor): ComposeDialogStyle
the setup of a dialog that shows as a normal dialog popup
Link copied to clipboard
fun styleDialog(swipeDismissable: Boolean = false, dismissOnBackPress: Boolean = true, dismissOnClickOutside: Boolean = true, scrim: Boolean = true, options: StyleOptions = StyleOptions(), shape: Shape = DialogStyleDefaults.shape, containerColor: Color = DialogStyleDefaults.containerColor, iconColor: Color = DialogStyleDefaults.iconColor, titleColor: Color = DialogStyleDefaults.titleColor, contentColor: Color = DialogStyleDefaults.contentColor): ComposeDialogStyle
the setup of a dialog that shows as a normal dialog popup
Link copied to clipboard
fun styleFullscreenDialog(navigationIcon: @Composable () -> Unit? = { FullscreenDialogStyleDefaults.NavigationIcon() }, menuActions: @Composable RowScope.() -> Unit? = null, toolbarScrollBehaviour: TopAppBarScrollBehavior? = null, showIconBelowToolbar: Boolean = true, dismissOnBackPress: Boolean = true, toolbarColor: Color = FullscreenDialogStyleDefaults.toolbarColor, toolbarColorExpanded: Color = FullscreenDialogStyleDefaults.toolbarColorExpanded, toolbarActionColor: Color = FullscreenDialogStyleDefaults.toolbarActionColor, toolbarActionColorExpanded: Color = FullscreenDialogStyleDefaults.toolbarActionColorExpanded, toolbarContentColor: Color = FullscreenDialogStyleDefaults.toolbarContentColor, toolbarContentColorExpanded: Color = FullscreenDialogStyleDefaults.toolbarContentColorExpanded, iconColor: Color = FullscreenDialogStyleDefaults.iconColor, containerColor: Color = FullscreenDialogStyleDefaults.containerColor, contentColor: Color = FullscreenDialogStyleDefaults.contentColor, applyContentPadding: Boolean = true): ComposeDialogStyle
the setup of a dialog that shows as a normal dialog popup
Link copied to clipboard
fun DialogDefaults.styleWindowsDialog(dialogTitle: String, position: WindowPosition = WindowPosition(Alignment.Center), width: Dp = 800.dp, height: Dp = 600.dp, iconColor: Color = DialogStyleDefaults.iconColor, titleColor: Color = DialogStyleDefaults.titleColor, contentColor: Color = DialogStyleDefaults.contentColor): ComposeDialogStyle