Can we access your project?
Current Behavior
flutterflow ai init and refresh-context generate lib/flutterflow_project/schemas.dart. For a Supabase table with a column named Key, the generated [] operator returns its own parameter instead of the field.
At line 1258 of 7313:
ffai.PostgresTableField? operator [](Object? key) => switch (key) {
"Key" => key, // returns the PARAMETER, not the field
"Language" => language,
...
The class has a field key (generated for the Key column) and the operator takes a parameter also named key. The parameter shadows the field, so the "Key" arm returns the Object? parameter:
Error: A value of type 'Object?' can't be returned from a function with return type 'PostgresTableField?'.
The typed project SDK therefore does not compile at all. Every flutterflow ai validate and every flutterflow ai run fails before reaching the user's DSL, regardless of whether that work touches the affected table. There is no error message pointing at the real cause — the failure presents as a problem with the user's own script.
Local workaround, which must be re-applied after every regeneration:
It is the only occurrence in the file.
Expected Behavior
The generated code should compile. Either qualify generated field references with this., or rename the operator's parameter to something that cannot collide with a column-derived field name (for example fieldName).
This presumably affects any column whose name collides with the generated parameter, not only Key.
Steps to Reproduce
- Connect a Supabase project containing a table with a column named
Key (ours is the table app_content).
- Run
flutterflow ai init (or flutterflow ai refresh-context <project-id>) to generate the typed project SDK.
- Open
lib/flutterflow_project/schemas.dart and find the generated [] operator for that table. Observe the arm "Key" => key, — the parameter, not the field.
- Run any command that compiles the typed SDK, e.g.:
flutterflow ai validate
- Observe the failure:
Error: A value of type 'Object?' can't be returned from a function with return type 'PostgresTableField?'.
- Change that single line to
"Key" => this.key, and re-run step 4. It now succeeds — confirming the shadowing is the whole cause.
Reproducible from Blank
Bug Report Code (Required)
ITEelsn1z4pNj7xH1brUd8JFqwMwGkQ5a7sviu5+FBQaI+PvE+wxPuOlXFdvWOqHTXNiMFKajmAG+fTOivPpJ/BfHASZb7Vy1alpUxDjUk66aJSWDpewQmpAM8FRFX6+37ukkCN4XcZsdFpg3UOIHPOQa3qCf9qOYwx5e6fDbOY=
Visual documentation
Environment
- FlutterFlow v7.0.72 (released August 19, 2026), Flutter 3.38.6
- FlutterFlow AI CLI (`flutterflow`), run from Terminal.app on macOS
- Project: blank-phighh ("Altranovo"), Supabase backend
- Affected table: app_content, column `Key`
- File: lib/flutterflow_project/schemas.dart, line 1258 of 7313
Additional Information
No response
Can we access your project?
Current Behavior
flutterflow ai initandrefresh-contextgeneratelib/flutterflow_project/schemas.dart. For a Supabase table with a column namedKey, the generated[]operator returns its own parameter instead of the field.At line 1258 of 7313:
The class has a field
key(generated for theKeycolumn) and the operator takes a parameter also namedkey. The parameter shadows the field, so the"Key"arm returns theObject?parameter:The typed project SDK therefore does not compile at all. Every
flutterflow ai validateand everyflutterflow ai runfails before reaching the user's DSL, regardless of whether that work touches the affected table. There is no error message pointing at the real cause — the failure presents as a problem with the user's own script.Local workaround, which must be re-applied after every regeneration:
It is the only occurrence in the file.
Expected Behavior
The generated code should compile. Either qualify generated field references with
this., or rename the operator's parameter to something that cannot collide with a column-derived field name (for examplefieldName).This presumably affects any column whose name collides with the generated parameter, not only
Key.Steps to Reproduce
Key(ours is the tableapp_content).flutterflow ai init(orflutterflow ai refresh-context <project-id>) to generate the typed project SDK.lib/flutterflow_project/schemas.dartand find the generated[]operator for that table. Observe the arm"Key" => key,— the parameter, not the field.flutterflow ai validate
Error: A value of type 'Object?' can't be returned from a function with return type 'PostgresTableField?'.
"Key" => this.key,and re-run step 4. It now succeeds — confirming the shadowing is the whole cause.Reproducible from Blank
Bug Report Code (Required)
ITEelsn1z4pNj7xH1brUd8JFqwMwGkQ5a7sviu5+FBQaI+PvE+wxPuOlXFdvWOqHTXNiMFKajmAG+fTOivPpJ/BfHASZb7Vy1alpUxDjUk66aJSWDpewQmpAM8FRFX6+37ukkCN4XcZsdFpg3UOIHPOQa3qCf9qOYwx5e6fDbOY=
Visual documentation
Environment
Additional Information
No response