Back

Not able to create Web app in Flutter

  • 0
  • Flutter
  • Cloud
Khushal@2303
21 Jul, 2023, 12:56

I tried with domain name, getting same error

TL;DR
User is having trouble creating a web app in Flutter. Others suggest adding it as a regular web app instead of a Flutter app. There is a bug in the cloud version 1.1.2 that prevents adding a domain for Flutter web. The solution for now is to add localhost as the domain.
D5
21 Jul, 2023, 12:57

What's your domain?

D5
21 Jul, 2023, 12:57

mychat.app is the app package name

Khushal@2303
21 Jul, 2023, 12:58

If I want to test with localhost, then what should I need to pass in hostname?

D5
21 Jul, 2023, 13:01

Nothing

Khushal@2303
21 Jul, 2023, 13:02

Hostname is required field @D5 .

D5
21 Jul, 2023, 13:03

Ok, let me check

D5
21 Jul, 2023, 13:04

Seems like cloud version 1.1.2 has a bug that does not allows you adding any domain for flutter web

D5
21 Jul, 2023, 13:04

As @kamal.panara said

D5
21 Jul, 2023, 13:04

So then add it as web app

D5
21 Jul, 2023, 13:04

Instead of Flutter

Khushal@2303
21 Jul, 2023, 13:05

I have added the web app instaed of flutter, But it is not work with Flutter Web.

D5
21 Jul, 2023, 13:05

Hmmm weird

Khushal@2303
21 Jul, 2023, 13:23

@D5 Do you have any idea, when it should fix?

D5
21 Jul, 2023, 13:25

Supposedly you should be able to add it as a traditional web project

D5
21 Jul, 2023, 13:25

At least it seems to work fine for me

D5
21 Jul, 2023, 13:26

You click add platform

D5
21 Jul, 2023, 13:26

And then web app instead of flutter app

D5
21 Jul, 2023, 13:26

Then you add localhost as domain

Khushal@2303
21 Jul, 2023, 13:26

Yes without flutter web it's working fine. with other web like react

D5
21 Jul, 2023, 13:27

Add it as web, like if the flutter web was another web like react

Binyamin
21 Jul, 2023, 13:27

This bug was fixed in later version And, for now just like D5 said, add it as a regular Web app.

Khushal@2303
21 Jul, 2023, 13:29

@Binyamin I tried with regular Web app and it's working fine with Angular and React, but not with Flutter web.

Binyamin
21 Jul, 2023, 13:29

What error you getting?

D5
21 Jul, 2023, 13:34

@Khushal@2303 :appwriteupvote:

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