appwrite / sdk-for-flutter

[READ-ONLY] Official Appwrite Flutter SDK πŸ’™

Home Page:https://appwrite.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ› Bug Report: Teams API - create/list methods throwing type conversion errors because of null value

jemish54 opened this issue Β· comments

πŸ‘Ÿ Reproduction steps

Type Conversion Error because of Cloud beta version does not have property Prefs in Team Model.

  • Create / List methods of Teams API giving:
    null is not a subtype of Map<String,dynamic>.

πŸ‘ Expected behavior

It should work with Cloud Beta Appwrite version even if it doesn't contain Preference object inside Team Model.

As Appwrite cloud will be upgraded to version 1.3.x ,This issue will not persist as Preference Object will be added.

Till Then please consider this as it will be a very quick issue to fix.

πŸ‘Ž Actual Behavior

create team is working (As i can see Team getting added on Appwrite Dashboard) but throwing error

List method will always throw Type conversion error because of null value of Preferences.

🎲 Appwrite version

Version 1.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?

For Appwrite cloud please use Flutter Appwrite SDK version 8.x.x not 9.x.x and that should solve your issue.