#Not able to create Web app in Flutter

36 messages · Page 1 of 1 (latest)

acoustic junco
#

I'm getting error Invalid Type, while creating web app using flutter.

languid kernel
#

is this appwrite cloud?

acoustic junco
#

Yes, @languid kernel

rancid herald
acoustic junco
#

@rancid herald , Yes I have selected web option from above tags

languid kernel
#

works fine on my own self hosted version.

languid kernel
rancid herald
#

What's the domain of your app?

#

com.chat.app is the package name, not the domain name

#

When you host the app, for example in netlify you get a subdomain like yourapp.netlify.app

Such subdomain is what you need to set in the hostname field

languid kernel
acoustic junco
#

I tried with domain name, getting same error

rancid herald
#

What's your domain?

#

mychat.app is the app package name

acoustic junco
#

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

rancid herald
#

Nothing

acoustic junco
#

Hostname is required field @rancid herald .

rancid herald
#

Ok, let me check

#

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

#

As @languid kernel said

#

So then add it as web app

#

Instead of Flutter

acoustic junco
#

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

rancid herald
#

Hmmm weird

acoustic junco
#

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

rancid herald
#

At least it seems to work fine for me

#

You click add platform

#

And then web app instead of flutter app

#

Then you add localhost as domain

acoustic junco
rancid herald
#

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

hoary sleet
#

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

acoustic junco
#

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

hoary sleet
#

What error you getting?