
I was following a tutorial to integrate Authentication in an App I am making. Link: https://devdactic.com/flutter-authentication-appwrite
I am getting this error: The name 'Account' is defined in the libraries 'package:appwrite/appwrite.dart' and 'package:appwrite/models.dart'.
Try using 'as prefix' for one of the import directives, or hiding the name from all but one of the imports.
in the auth_api.dart
file. Any idea how this can be fixed?

Could you please share your code?

Or what's giving you such error?

Here you go.

Just use prefix in one of them

So it would be import”some-lib” as customName (you can use models )

Then you can access the lib code as models.(the properties)

or possibly you can update latest version there it won't happen

I am on the latest version

Yeah I tried it doesn't work.

It works you just need to add prefix everywhere where the account class from model lib is used

It says it can't find the User class.

User is in latest version there shouldn't be any conflict pls can show how and what you imported
Recommended threads
- "Memberships privacy" setting in 1.7.4
Hi everyone, I'm experiencing an issue with a clean self-hosted installation of Appwrite version 1.7.4. I previously used version 1.6.1, and if I remember corre...
- Function 404 error - Deployment with the...
I have a function in my Appwrite Cloud (free plan) project that cannot be accessed or deleted (404 in both UI and CLI). I'm stuck at the 5 functions limit and c...
- 1.6 to 1.7 does not work
Appwrite (self-hosted) stopped working after updating from 1.6.2 that was stable. Getting the general_server_error. Mentioning I fallowed all steps for upgrad...
