Hello,
I am developing an application using FlutterFlow where I need to set up a user interface with a TabBar
. My goal is to have each tab correspond to a "Place" stored in my Supabase database, and for each tab to display plants associated with that "Place" via their place_id
.
Current Configuration:
Database: I have two tables, one for "Places" and one for "Plants". Each "Plant" has a
place_id
that corresponds to a "Place".User Interface: I've added a
TabBar
in FlutterFlow and want to dynamically populate the tabs with the names of "Places" retrieved from the database.
Encountered Problem: I am unsure of the best way to dynamically load the tabs based on the "Places" data and to filter the "Plants" so that they display correctly according to the selected tab. I need help with:
Populating the
TabBar
tabs with data from "Places".Configuring the list of "Plants" to update correctly when a user switches tabs.
Specific Questions:
How can I dynamically load the names of "Places" into the
TabBar
tabs?What is the best way to filter and display the "Plants" based on the "Place" selected in the active tab?
Thank you in advance for your assistance and any suggestions to resolve these issues.
Best regards,