Skip to content
Back

[Workaround] Critical Issue: New Flutter SDK 13.1.0 does not work and I can't downgrade to 13.0.0...

  • 1
  • Flutter
Kuromory
18 Dec, 2024, 13:08

1h ago you uploaded the new? version of the Flutter SDK 13.1.0 and now my project does not work anymore... its all about casting errors like List<dynamic> is not type List<String> or null is not type bool and so on... also I can't load documents from the database... please revert the changes or give us a way to downgrade...

TL;DR
Critical issue reported with Flutter SDK 13.1.0 update causing casting errors. Workaround: Remove `^` to downgrade back to 13.0.0 if needed. Error examples cited, primarily with casting issues and loading documents from the database. Request for a revert or downgrade option due to project disruptions post-update.
Kuromory
18 Dec, 2024, 13:10

I was just working before and everything worked... so it has to be the update...

Darshan Pandya
18 Dec, 2024, 13:11
  1. can you share some more info on this, like code snippet, error on the code
  2. Whats the issue when you say - I can't downgrade?
Kuromory
18 Dec, 2024, 13:13

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

TypeScript
dependency_overrides:
  appwrite: ^13.0.0
Kuromory
18 Dec, 2024, 13:14
TypeScript
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)
Kuromory
18 Dec, 2024, 13:14

just one exampel if I fix this line I get something in User.fromMap and then Target and so on

Kuromory
18 Dec, 2024, 13:15

but it worked just 1h ago

Darshan Pandya
18 Dec, 2024, 13:16

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.

Darshan Pandya
18 Dec, 2024, 13:16

let me take a look at the Flutter sdk.

Darshan Pandya
18 Dec, 2024, 13:17

can you share a screenshot of this?

Kuromory
18 Dec, 2024, 13:17

you are a live savoir 🫶

Kuromory
18 Dec, 2024, 13:18

what do you mean the line?

Kuromory
18 Dec, 2024, 13:18

[Workaround] Critical Issue: New Flutter SDK 13.1.0 does not work and I can't downgrade to 13.0.0...

Darshan Pandya
18 Dec, 2024, 13:18

yeah, the point of error. I can check later on the issue.

Kuromory
18 Dec, 2024, 13:19
Kuromory
18 Dec, 2024, 13:20

either do

TypeScript
map['factors'].cast<String>() ?? <String>[],

or look that you get the right datatype in the map...

Darshan Pandya
18 Dec, 2024, 13:21

Thanks, will check and let the team know.

Kuromory
18 Dec, 2024, 13:22

also there was the value null

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