Back

[SOLVED] Help getting started with Flutter Web

  • 1
  • Flutter
Ponguta_
7 Mar, 2023, 17:07

Hello, I'm trying to use flutter web, so far I cannot make it work on my local machine. So, any help is really appreciated.

I'm trying to print all the documents on my collection. My code in flutter is:

TypeScript
  testAppwrite() {
    Client client = Client();
    client
        .setEndpoint('https://192.168.20.56/v1')
        .setProject('smgc')
        .setSelfSigned(status: true);
    Account account = Account(client);
    Future accResult = account.createEmailSession(
      email: 'email@gmail.com',
      password: 'admin123',
    );
    accResult.then((response) {
      print("correct");
      print(response);
    }).catchError((error) {
      print("error");
      print(error.response);
    });

    // Databases databases = Databases(client);
    // Future result = databases.listDocuments(
    //   databaseId: 'smgc_db_coexccol',
    //   collectionId: 'sensores',
    // );
  }

And Actually, Idk what to put by Package Name, now I'm using *. And did not understand what is that auth.html file

BTW: Im getting this error on web console: Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID

Please help me.

TL;DR
User is seeking help with getting started with Flutter Web and is experiencing a self-signed certificate error. There is a solution provided in the thread: the user should open the flutter web app window and accept the self-signed certificate at https://192.168.20.56. After accepting the certificate, the user can refresh the flutter web app. Additionally, the user is also asking for help with printing all the documents on their collection in Flutter. They have provided their code and are unsure about what to put for the package name and what the auth.html file is for. There is no solution provided for the database printing issue in the thread
Ponguta_
7 Mar, 2023, 19:13

😦

Drake
7 Mar, 2023, 19:27

You're getting a self signed certificate error. In the window that opens your flutter web app, would you please open https://192.168.20.56 and accept the self signed certificate? Then, you can refresh your flutter web app.

Ponguta_
7 Mar, 2023, 19:35

Awesome, it worked! Thank you @Steven

Drake
7 Mar, 2023, 19:35

[SOLVED] Help getting started with Flutter Web

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more