build method

  1. @override
Widget build(
  1. BuildContext context
)

Implementation

@override
Widget build(BuildContext context) {
  final handlesDifferentSignInMethod = actions
      .whereType<AuthStateChangeAction<DifferentSignInMethodsFound>>()
      .isNotEmpty;

  final _actions = [
    ...actions,
    if (!handlesDifferentSignInMethod)
      AuthStateChangeAction(_signInWithDifferentProvider)
  ];

  return FlutterFireUIActions(
    actions: _actions,
    child: LoginScreen(
      styles: styles,
      loginViewKey: loginViewKey,
      action: AuthAction.signIn,
      providerConfigs: providerConfigs,
      auth: auth,
      headerMaxExtent: headerMaxExtent,
      headerBuilder: headerBuilder,
      sideBuilder: sideBuilder,
      desktopLayoutDirection: desktopLayoutDirection,
      oauthButtonVariant: oauthButtonVariant,
      email: email,
      resizeToAvoidBottomInset: resizeToAvoidBottomInset,
      showAuthActionSwitch: showAuthActionSwitch,
      subtitleBuilder: subtitleBuilder,
      footerBuilder: footerBuilder,
      breakpoint: breakpoint,
    ),
  );
}