Passing a click action for preview in android jetpack compose
What I have :
I have a compose class that has a button
I want to see the preview in the design view
Issue I am facing :
For the click How to pass as an object on the line I have marked in
code
Is this possible ?
OnBoardingActionButton.kt
@OptIn(ExperimentalPagerApi::class)
@Composable
fun OnBoardingActionButton(
modifier : Modifier,
pagerState: PagerState,
onClick : () -> Unit
){
OnBoardingActionButtonContent(pagerState,onClick)
}
@OptIn(ExperimentalPagerApi::class)...