mirzemehdi / KMPAuth

Kotlin Multiplatform Authentication Library targetting android and iOS
https://mirzemehdi.com/KMPAuth/
Apache License 2.0
231 stars 19 forks source link

Cannot override the size of GoogleButtonUiContainer or GoogleSignInButtonIconOnly #46

Closed KawtharE closed 2 months ago

KawtharE commented 2 months ago

Hey, first thank you so much for this amazing library, it's really helping a lot :)

I am facing problem changing the size of the button, as it's only 40.dp and in my case that's not enough, i wonder if it's possible to make it possible to override the default size of the buttons.

thank you

mirzemehdi commented 2 months ago

@KawtharE it should be configurable.

example


GoogleSignInButton(
    modifier = Modifier.fillMaxWidth().height(64.dp),
    fontSize = 20.sp,
    mode = if (isDarkMode) GoogleButtonMode.Dark else GoogleButtonMode.Light,
    shape = shape) { this.onClick() }

Please check https://mirzemehdi.com/KMPAuth/kmpauth-uihelper/com.mmk.kmpauth.uihelper.google/-google-sign-in-button.html