Here's a basic code for sign-in using firebase phone authentication, which can be understood from basic flutter-fire documentation, which doesn't explain practically how to implement firebase phone authentication in flutter web. Flutter Native mobile phone authentication is easy :)
Also, how to remember the signed user for certain days?
FirebaseAuth auth = FirebaseAuth.instance;
ConfirmationResult confirmationResult = await auth.signInWithPhoneNumber('+44 7123 123 456');
UserCredential userCredential = await confirmationResult.confirm('123456');