#[Workaround] New Flutter SDK 13.1.0 does not work and I can't downgrade to 13.0.0...
38 messages · Page 1 of 1 (latest)
- can you share some more info on this, like code snippet, error on the code
- Whats the issue when you say -
I can't downgrade?
so it happens like in when I login or just everything that uses the appwrite sdk and always in the .fromMap functions
here is my pubspec but still get version 13.1.0
dependency_overrides:
appwrite: ^13.0.0
flutter: type 'List<dynamic>' is not a subtype of type 'List<String>'
flutter: #0 new Session.fromMap (package:appwrite/src/models/session.dart:152:31)
just one exampel
if I fix this line I get something in User.fromMap and then Target and so on
but it worked just 1h ago
iirc you can fallback to 13.0.0 by removing the ^. haven't tried Flutter in a while but feel free to try.
You must've done a pub get or pub update which updated the dependency to 13.1.0.
let me take a look at the Flutter sdk.
can you share a screenshot of this?
you are a live savoir 🫶
what do you mean the line?
[Workaround] Critical Issue: New Flutter SDK 13.1.0 does not work and I can't downgrade to 13.0.0...
yeah, the point of error. I can check later on the issue.
either do
map['factors'].cast<String>() ?? <String>[],
or look that you get the right datatype in the map...
Thanks, will check and let the team know.
also there was the value null
[Workaround] New Flutter SDK 13.1.0 does not work and I can't downgrade to 13.0.0...
this is odd...expired shouldn't be null 🧐 you're running against Appwrite Cloud? what API call did you make?
no self-hosted 1.6.0 and just createSessionWithEmail()
also with 13.0.0 it works with no problem at all :X
I have the same error "type 'List<dynamic>' is not a subtype of type 'List<String>'"
oh expired isn't in 1.6.0 😬 You'll need to stay on the older version, then
Same, on cloud
- Flutter 3.24.5
- Dart 3.5.4
Same issues. Many classes are broken now! Cloud
Users, Document, Streams, etc...
and no change log for 13.1.0 for pub.dev
a fix is in place, yet to be released. Feel free to downgrade to 13.0.0 in the meantime.
Having the same error
when call listDocuments
@opaque iris can you tell me when will this fix will be live ?
@tight musk @upper kayak
Change the SDK version as mentioned
I changed the version of appwrite but still getting the same error. How can I solve this
remove the carat (^) to explicitly target 13.0.0.
Thanks, debugged for hours just to find this later 😔
why not, you can downgrade
use 13.0.0 and do not use ^13.0.0
I am glad I found this thread with the version issue. I was also trying to figure out why the final Session session = await account.createAnonymousSession(); is giving that error and downgrading to 13.0.0 worked.
Error: type 'List<dynamic>' is not a subtype of type 'List<String>'