
You don't need this

Added appwrite already @Maniac_Fighter

umm, So the error says it's already defined. Did you made your own defination?

The error would show that where its defined

No I didn't

Could you please share the screenshot of the error

Here it is

Oh. So yess, ambuiguity is expected here. you can add prefix in model imports, or if you aren't using models for now, you can remove them

but the models will be needed later for documents though
how do I overcome that later on

as said you can do this
package:appwrite/models.dart as models
and whenever you need Account from models do this
models.Account

okay

It means two different kinds of Accounts right?
cause after adding model, the error didn't resurface

So there are two Accounts One Account (https://github.com/appwrite/sdk-for-flutter/blob/e5236a1375875f176937392360c6864888efb677/lib/services/account.dart) which does all the necessary calls for you like createAccount, getAccount etc
The Other Account is the response Model(https://github.com/appwrite/sdk-for-flutter/blob/91b9d02d45eb58aefae43f4e82c7d03fafd4809e/lib/src/models/account.dart)
This is being returned when you usually call account.get

Okay then
I'll check for all

I'm super grateful @Maniac_Fighter I really appreciate your efforts and time spent. Thank you so much.

Ooooo
Wonderful, I'm beginning to understand it now

[SOLVED] The name 'Account' is defined in the libraries

The name 'Account' is defined in the libraries

@Maniac_Fighter still on it

what do you mean?

He gave some resource to use. But I could not figure out solution

this should have been it: https://discord.com/channels/564160730845151244/1082638138066874368/1082651982369665086

@dammy to clarify further, a Service is a class used to make API calls. a Model is an object that holds data. does that make sense?

yes @Steven
that means the creation of service is like a platform to which api calls can be initiated while the model holds data to be used or something related

[SOLVED] The name 'Account' is defined in the libraries
Recommended threads
- Redirect URL sends HTTP instead of HTTPS...
I am not sure since when this issue is present, but my Google and Apple redirect URI are no longer pointing to the HTTPS redirect URI when I try to use OAuth. ...
- Failing to run document operations on sd...
Could someone point me in the right direction I'm going in cirlces. I have a problem with sdks and my self-hosted server in production (for ~3 years) I have bee...
- Functions fail to deploy after switching...
Hi <@1087889306208718959> , after switching my self-hosted Appwrite instance to use AWS S3 as the storage backend, my Cloud Functions stopped working. I’m runni...
