Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Flisar authored and Michael Flisar committed Dec 10, 2024
1 parent d3d85aa commit 8f85cb4
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.michaelflisar.composedialogs.core.DialogDefaults
import com.michaelflisar.composedialogs.core.styleBottomSheet
import com.michaelflisar.composedialogs.demo.classes.DemoStyle
import com.michaelflisar.composedialogs.demo.demos.BillingDemos
import com.michaelflisar.composedialogs.demo.demos.ColorDemos
Expand Down Expand Up @@ -66,12 +65,15 @@ class MainActivity : DemoActivity(

val s = if (style.value == DemoStyle.BottomSheet) {
DialogDefaults.styleBottomSheet(
// dragHandle = true,
//hideAnimated = true,
// resizeContent = true // only use this with scrollable content!
// peekHeight = 0.dp
dragHandle = true
// ...
)
} else DialogDefaults.styleDialog(swipeDismissable = swipeDismiss.value)
} else {
DialogDefaults.styleDialog(
swipeDismissable = swipeDismiss.value
// ...
)
}
val icon: @Composable (() -> Unit)? = if (showIcon.value) {
{ Icon(Icons.Default.Home, null) }
} else null
Expand Down

0 comments on commit 8f85cb4

Please sign in to comment.