Skip to content

[version-10.0.0] FirebaseUI Auth - Enter/Exit transition configuration and some queries #2274

@khanshoaib3

Description

@khanshoaib3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions