Skip to content
Back

Type String is not a subtype of type int, Flutter Appwrite

  • 0
  • Databases
  • Flutter
  • Cloud
Freezman
26 Aug, 2025, 17:02

Hey! I just migrated to the new TablesDB system, and there seems to be a problem with the lib. When requesting a row, I get

TypeScript
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: type 'String' is not a subtype of type 'int'
#0      new Row.fromMap (package:appwrite/src/models/row.dart:42:21)
row.dart:42
#1      TablesDB.getRow (package:appwrite/services/tables_db.dart:90:23)
tables_db.dart:9

This can get fixed by temporary editing the row.dart file and wrapping the $sequence argument with int.parse, but it suggests that the API doesn't send the right type in the json.

TL;DR
Problem: Error stating 'type String is not a subtype of type int' in Flutter Appwrite after migrating to TablesDB. Solution: Temporarily edit the row.dart file and wrap the $sequence argument with int.parse to fix the issue, suggesting the API sends incorrect JSON data types.
Freezman
26 Aug, 2025, 17:43

I just checked and the same problem applies in the dart sdk

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