Open rsbichkar opened 1 year ago
I got the same issue but it's working with this code. final getCurrentUserDataProvider = FutureProvider((ref) async { final userId = ref.watch(currentUserAccountProvider).value?.$id; final getUserData = ref.watch(getUserDataProvider(userId)); return getUserData.asData?.value; });
although there's no error, the loading page still keep loading unless I use the flutter reload.
I got the same issue but it's working with this code. final getCurrentUserDataProvider = FutureProvider((ref) async { final userId = ref.watch(currentUserAccountProvider).value?.$id; final getUserData = ref.watch(getUserDataProvider(userId)); return getUserData.asData?.value; });
although there's no error, the loading page still keep loading unless I use the flutter reload.
It's not working for me. I am still getting Null check operator used on null value for first time. and after hot reload it goes back
has this problem been solved? if resolved can someone explain pls
The error 'Null check operator used on a null value' is thrown for the following line in currentUserDetailsProvider definition:
final currentUserId = ref.watch(currentUserAccountProvider).value!.$id;
okay I solved like this.
final currentUserDetailsProvider = FutureProvider((ref) async { final authController = ref.watch(authControllerProvider.notifier); final current = await authController.currentUser(); if (current == null) { } else { final currentUserId = current.$id; final userDetails = ref.watch(userDetailsProvider(currentUserId)); return userDetails.value; } });
Hi, Thank you very much for this flutter twitter clone. I am learning to use Riverpod with AppWrite from your project.
However, I faced some issues while working with Appwrite 9 version in Flutter 3.10.6 (latest stable version). I am currently using Appwrite 1.3.8 local version. Also tested it with AppWrite Cloud. The model.Account was replaced by model.User in AuthAPI and AuthController files. Also the stack trace demangling was used.
The issues faced are as follows: