Back

Preference object in Flutter SDK is getting initialized with Empty list instead of a Map.

  • 0
  • Teams
  • Flutter
  • Cloud
  • Users
  • Functions
james54
7 Oct, 2023, 06:54

I have encountered this error with User object previously. when i was working with appwrite functions with Dart.

  • When User's preference is empty the User object's preference field is getting initialized as an Empty List instead of Empty Map.

Currently I am working with Client Flutter SDK where I am facing with same issue while accessing Team Object because it has also got Team Preference.

Just want to add , It is working fine if Preference is not empty, just the empty value is creating the issue.

TL;DR
There is a known issue with the Flutter SDK where the preference object is being initialized as an empty list instead of an empty map. This issue has been reported on GitHub. It seems to occur when the preference is empty, causing problems when accessing certain objects like the team object. The problem does not occur when the preference is not empty. Currently, there is no solution provided for this issue.
Drake
11 Oct, 2023, 02:22

This is currently a known issue: https://github.com/appwrite/appwrite/issues/6360

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more