Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS FlexibleSheetSize getting error in KMP Project #41

Open
cmrnrbs opened this issue Aug 1, 2024 · 2 comments
Open

iOS FlexibleSheetSize getting error in KMP Project #41

cmrnrbs opened this issue Aug 1, 2024 · 2 comments

Comments

@cmrnrbs
Copy link

cmrnrbs commented Aug 1, 2024

  • 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

@skydoves
Copy link
Owner

skydoves commented Aug 2, 2024

Hey @cmrnrbs, do you have any sample codes that raise the issue?

@iPradana
Copy link

iPradana commented Aug 2, 2024

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants