Web3Auth Flutter SDK

Had some issues in integrating the Web3Auth Flutter SDK at the Hacker House Dilli. Listing all the points and issues below:

1) The installation points to a now unavailable page:
What it is: https://github.com/torusresearch/web3auth-flutter-sdk.git
What it should be: https://github.com/web3auth/web3auth-flutter-sdk

Can also maybe add directly adding web3auth_flutter: ^1.0.0 to pubspec.yaml.

2) The initPlatformState function should be updated on the initialize page:

Future<void> initPlatformState() async {
    // Initialization
    await Web3AuthFlutter.init(
        network: Network.testnet,
  1. Similarly the Web3AuthResponse doc
final Web3AuthResponse response = await Web3AuthFlutter.login(
                LoginParams(loginProvider: Provider.google));
  1. Lastly, getting an error when running the project

This is probably due to some Android configuration issues.

Screenshot 2022-09-08 at 4 33 40 PM
cc @shahbaz17

Originally posted by: adityathakurxd

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/575

Hey @adityathakurxd

Let's meet during the hackathon. I got this to work.

Meanwhile, can you share your flutter doctor output here?

Originally posted by: shahbaz17

The latest doc on Flutter resolves all of the issues stated in this discussion.

Originally posted by: shahbaz17

Thank you @shahbaz17! I redid the project and used Android Studio to better debug. It is working now on my system.
There is this one issue happening, I can come by your table at the Hackathon whenever you're available.

WhatsApp Image 2022-09-09 at 11 44 57 AM (1)

It does launch an in-app browser to login although the 'Redirect to app' doesn't work once auth is done.

Originally posted by: adityathakurxd