howdoi use this? @OptIn(ExperimentalMaterial3Api::class) @Composable fun AppBottomSheet(…
- User
howdoi use this? @OptIn(ExperimentalMaterial3Api::class) @Composable fun AppBottomSheet( showBottomSheet: Boolean, onDismiss: () -> Unit, sheetContent: @Composable () -> Unit ) { if (showBottomSheet) { ModalBottomSheet( onDismissRequest = onDismiss, sheetState = rememberModalBottomSheetState(skipPartiallyExpanded = true), ) { sheetContent() } } } here on clcik AnimatedStarViewWithFlag( primaryColor = MaterialTheme.colorScheme.primary, secondaryColor = MaterialTheme.colorScheme.secondary, boxPadding = PaddingValues(start = 8.dp, end = 8.dp), boxSize = 42.dp, flagSize = 25.dp, boxClickable = true, onBoxClick = { println("Star clicked!") }, vibration = VibType.TICK, showCountryFlag = true )
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.