Skip to content

🐛 Bug Report: Collsion between Account Model between appwrite import #137

@Vedsaga

Description

@Vedsaga

👟 Reproduction steps

import 'package:appwrite/appwrite.dart';
import 'package:appwrite/models.dart' ;

class Appwrite {
  static final _clientInstance = Client()
    ..setEndpoint(AppWriteConst.endpoint)
    ..setProject(AppWriteConst.projectId)
    ..setSelfSigned();
  static final _databaseInstance = Databases(_clientInstance);
  static final realTimeInstance = Realtime(_clientInstance);
  static final accountInstace = Account(_clientInstance);
}

Please copy paste this. Version is appwrite: ^8.3.0 in flutter project.

👍 Expected behavior

It is expected that class Account would be defined at only one place. But, it is defined at two place. So, either we rename one or if both Account is duplicate then better retain only one... Else right now causing confusion...

👎 Actual Behavior

But, currently account class is defined at two place due to that I have to use import like this,

import 'package:appwrite/appwrite.dart';
import 'package:appwrite/models.dart' hide Account;

🎲 Appwrite version

Version 2.0.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions