-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Right now the transition between the different screens are the default one for NavHost i.e., fadein/out, so, is it the scope to add enterTransition/exitTransition to AuthUIConfiguration?
The auth flow seems much better than v9 now and I'm really glad that this is just another composable as I was able to wrap it inside a scaffold to have my own TopAppBar.
Also, I tried adding my own theme, wanted to change the shape of signin/up buttons but the shapes weren't applying.
This is what I was trying:
val localContext = LocalContext.current
val customTheme = AuthUITheme(
shapes = Shapes(
ShapeDefaults.Medium,
ShapeDefaults.Medium
),
...
)
val configuration = authUIConfiguration {
theme = customTheme
providers {
provider(
AuthProvider.Google(
scopes = listOf("https://www.googleapis.com/auth/drive.file"),
serverClientId = "<redacted>"
)
)
provider(AuthProvider.Facebook())
}
context = localContext
}
AuthUITheme(configuration.theme) {
FirebaseAuthScreen(
configuration = configuration,
onSignInSuccess = {},
onSignInFailure = {},
onSignInCancelled = {},
modifier = modifier,
)
}The shapes were being applied to the input field but not on the buttons. Additionally, I also tried providing customProviderStyles as per the docs but that didn't work either.
I understand that this isn't even out in beta yet so I'm just asking in case these are unintentional bugs.
I also noticed a potential bug, in the email auth screen, the signup screen's top app bar doesn't have a navigate back button.