GoogleSignInFullButton

fun GoogleSignInFullButton(tokenClientId: String, onClick: (Result<String>) -> Unit, modifier: Modifier = Modifier, buttonType: ButtonType = Elevated(), enabled: Boolean = true, showIcon: Boolean = true)

GoogleSignInFullButton.

It is the implementation using Google services, you only have to take care of the navigation when you receive the response.

Author

Joyner

Parameters

modifier

modifier if you need to add.

buttonType

type of button you need. Example: Elevated, Filled, FilledTonal, Outlined, Text, Fab, SmallFab, LargeFab, FabExtended, IconFilled, IconFilledTonal, IconOutlined, IconStandard.

enabled

if you need the button to be enabled or disabled.

showIcon

if you need the icon button to be show or hide.

tokenClientId

your client id after created your project in Firebase and configure Google Sign in. Is mandatory.

onClick

event to do what you need, you will receive a Result. If the login was correct, result will be success and token will have a value. If the login was not correct, result will be failure and token will be null. It is mandatory.