Tappinf elsewhere in Facebook firebase signing pop up still navigates to a new page

When using the facebook signin package in the app, even when i tap elsewhere on the screen and not on the ID field, the app navigates to the other page.
Below is the function that is called when the sign in button is pressed.

loginfb() async {
    try {
      final result = await InternetAddress.lookup('google.com');
      if (result.isNotEmpty && result[0].rawAddress.isNotEmpty) {
        print('connected');
        signInWithFacebook().whenComplete(() {
          createOdooContact();
          Navigator.of(context).push(
            MaterialPageRoute(
              builder: (context) {
                return ProgressPage();
              },
            ),
          );
        });
      }
    } on SocketException catch (_) {
      print('Not Connected');
      displayCancelDialog();
    }
  }

Below is the faceoobk signin in fucntion

//* Login the app using Facebook credentials
Future<String> signInWithFacebook() async {
  var facebookLoginResult =
      await facebookLogin.logInWithReadPermissions(['email']);
  var accessToken = facebookLoginResult.accessToken;
  if (facebookLoginResult.status == FacebookLoginStatus.loggedIn) {
    displayProf();
    final AuthCredential credential = FacebookAuthProvider.getCredential(
      accessToken: accessToken.token,
    );
    final AuthResult authResult =
        (await _auth.signInWithCredential(credential));
    final FirebaseUser user = authResult.user;
    assert(user.email != null);
    assert(user.displayName != null);
    assert(!user.isAnonymous);
    assert(await user.getIdToken() != null);
   
    assert(!user.isAnonymous);
    assert(await user.getIdToken() != null);

    if (name.contains(" ")) {
      name = name.substring(0, name.indexOf(" "));
    }

    final FirebaseUser currentUser = await _auth.currentUser();
    assert(user.uid == currentUser.uid);
    return 'signInWithFacebook succeeded: $user';
  }
}