FlexibleBottomSheet
FlexibleBottomSheet copied to clipboard
iOS FlexibleSheetSize getting error in KMP Project
- Library Version [v0.1.3]
- Kotlin Compose Version [v.1.6.11]
- Kotlin Version [v2.0.0]
This is my libs.versions.toml implementation
[versions] bottom-sheet = "0.1.3"
[libraries] flexible-bottom-sheet = {module = "com.github.skydoves:flexible-bottomsheet-material", version.ref = "bottom-sheet"} flexible-bottom-sheet3 = {module = "com.github.skydoves:flexible-bottomsheet-material3", version.ref = "bottom-sheet"}
and build.gradle.kts file
commonMain.dependencies {
implementation(libs.flexible.bottom.sheet)
implementation(libs.flexible.bottom.sheet3)
}
When i added FlexibleSheetSize feature to rememberFlexibleBottomSheetState, iOS Platform getting error. But If i can not use FlexibleSheetSize then iOS app running without any error
Hey @cmrnrbs, do you have any sample codes that raise the issue?
i have the same issue. and this is my code
FlexibleBottomSheet(
onDismissRequest = {},
sheetState = rememberFlexibleBottomSheetState(
isModal = true,
skipIntermediatelyExpanded = true,
skipSlightlyExpanded = true,
flexibleSheetSize = FlexibleSheetSize(fullyExpanded = 0.9f)
)
) {
//some code
}
and this is the error cause
Caused by: java.lang.IllegalStateException: FIELD name:com_skydoves_flexible_core_FlexibleSheetSize$stable type:kotlin.Int visibility:public [final,static]