Reputation: 11
I'm trying to build an app on Flutterflow using a Supabase Realtime table. This is not the final app, I was just trying the realtime feature with the timer, which is mandatory for the final app.
I didn't write a single line of code, I'm trying to do everything natively with last features added on Supabase v2.
I created a backend query as follow:
Then, I created the action "On Data Change" as follow:
It should set an App State variable value with a database value, then reset timer countdown value with this App State variable.
When I run it, I get this error on build:
62 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Launching lib/main.dart on Web Server in debug mode...
Waiting for connection from debug service on Web Server...
lib/pages/home_page/home_page_widget.dart:113:32: Error: The getter 'homePageBlindsRow' isn't defined for the class '_HomePageWidgetState'.
- '_HomePageWidgetState' is from 'package:timer_test/pages/home_page/home_page_widget.dart' ('lib/pages/home_page/home_page_widget.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'homePageBlindsRow'.
_model.countdownms = homePageBlindsRow!.countdownMs!;
^^^^^^^^^^^^^^^^^
Waiting for connection from debug service on Web Server... 38.7s
Failed to compile application.
I checked that Supabase settings and Backend Query are ok, because when I run without action everything works, including the realtime feature, I could check a row change on debug panel.
I tried to do the same query and action on the Timer widget, but the result is the same, just a few names changed.
I tried to create a new project with only this feature, but the result was the same.
So, after these workarounds I tried, the error could be resumed: when I use the row item from Supabase query it generates the error.
What could I be missing here? As I said, didn't write a single line of code.
Upvotes: 1
Views: 118