It is a simple cast error in session.dart file, below is the logs:
E/flutter ( 6054): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'List<String>' in type cast E/flutter ( 6054): #0 new Session.fromMap (package:appwrite/src/models/session.dart:152:39) E/flutter ( 6054): #1 Account.createEmailPasswordSession (package:appwrite/services/account.dart:646:27) E/flutter ( 6054): <asynchronous suspension> E/flutter ( 6054): #2 _LoginScreenState.login (package:e_commerce_flutter/src/view/screen/auth/login_screen.dart:25:5) E/flutter ( 6054): <asynchronous suspension> E/flutter ( 6054): D/DecorView: onWindowFocusChanged hasWindowFocus false
This is from the flutter's appwrite package : 13.1.0, but i initially tried 13.1.1 and it also resulted in the same error!
Works! Thanks!
Recommended threads
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support š I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...