anchor.diff:          ),
         ),
       );
  +  }
  +
  +  Future<void> _verifyWebPhoneNumber() async {
  +    ConfirmationResult confirmationResult =
  +        await _auth.signInWithPhoneNumber(_phoneNumberController.text);
  +
  +    webConfirmationResult = confirmationResult;
  +  }
  +
  +  Future<void> _confirmCodeWeb() async {
  +    if (webConfirmationResult != null) {
  +      try {
  +        await webConfirmationResult.confirm(_smsController.text);
  +      } catch (e) {
  +        widget._scaffold.showSnackBar(SnackBar(
  +          content: Text('Failed to sign in: ${e.toString()}'),
  +        ));
  +      }
  +    } else {
  +      widget._scaffold.showSnackBar(const SnackBar(
  +        content:
  +            Text('Please input sms code received after verifying phone number'),
  +      ));
  +    }
     }
   
     // Example code of how to verify phone number
  
positive.code:                   style: TextStyle(fontWeight: FontWeight.bold),
                  ),
                ),
                const Text(
                  'Sign In with Phone Number on Web is currently unsupported',
                )
              ],
            ),
          ),
  
negative.code: 
    String _message = '';
    String _verificationId;
    ConfirmationResult webConfirmationResult;
  
    @override
    Widget build(BuildContext context) {
  