You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: integration-guides/flutterflow-+-powersync.mdx
+25-25Lines changed: 25 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Used in conjunction with **FlutterFlow**, PowerSync enables developers to build
22
22
23
23
* No more dozens of custom actions
24
24
25
-
* Working Attachments package (Guide coming soon)
25
+
* Working Attachments package - learn how to sync attachments [here](/integration-guides/flutterflow-+-powersync/handling-attachments).
26
26
27
27
Note that using libraries in FlutterFlow requires being on a [paid plan with FlutterFlow](https://www.flutterflow.io/pricing). If this is not an option for you, you can use our [legacy guide](/integration-guides/flutterflow-+-powersync/powersync-+-flutterflow-legacy) with custom code to integrate PowerSync in your FlutterFlow project.
28
28
</Tip>
@@ -179,7 +179,7 @@ This guide walks you through building a basic item management app from scratch a
179
179
<img src="/images/integration-25.avif" />
180
180
</Frame>
181
181
182
-
2. Select the "Auth1" template and name the page `Login`.
182
+
2. Select the "Auth 1" template and name the page `Login`.
183
183
184
184
3. Delete the *Sign Up*, *Forgot Password* and *Social Login* buttons — we will only be supporting Sign In for this demo app.
185
185
@@ -191,11 +191,11 @@ This guide walks you through building a basic item management app from scratch a
191
191
192
192
1. Enable Authentication.
193
193
194
-
2. Set "Supabase" as the "Authentication Type".
194
+
2. Set "Authentication Type" to "Supabase".
195
195
196
-
3. Set the `Login` page you just created as the "Entry Page".
196
+
3. Set "Entry Page" to the `Login` page you just created.
197
197
198
-
4. Set "HomePage" as the "Logged In Page":
198
+
4. Set "Logged In Page" to "HomePage".
199
199
200
200
<Frame>
201
201
<img src="/images/integration-27.avif" />
@@ -229,15 +229,15 @@ There are three ways to read data from the SQLite database using PowerSync's Flu
229
229
230
230
1. Auto-updating queries for Layout Elements with Dynamic Children e.g. the ListView Element
231
231
232
-
* This uses the library's `PowerSyncQuery` component
232
+
* This uses the library's `PowerSyncQuery` component.
233
233
234
-
2. Auto-updating queries for basic Layout Elements e.g. Text Elements
234
+
2. Auto-updating queries for basic Layout Elements e.g. Text Elements.
235
235
236
-
* This uses the library's `PowerSyncStateUpdater` component
236
+
* This uses the library's `PowerSyncStateUpdater` component.
237
237
238
-
3. Once-off reads for static data
238
+
3. Once-off reads for static data.
239
239
240
-
* This uses the library's `PowerSyncQueryOnce` custom action
240
+
* This uses the library's `PowerSyncQueryOnce` custom action.
241
241
242
242
### Prepare Supabase Tables for Reads
243
243
@@ -247,13 +247,13 @@ For reading data in FlutterFlow, you need a Custom Function per Supabase table t
247
247
248
248
2. Name the function `supabaseRowsToList` (if your Supabase table name is "Customers", you would name this `supabaseRowsToCustomers`).
249
249
250
-
3. Under Function Settings, set the "Return Value" to `Supabase Row`
250
+
3. Under **Function Settings** on the right, set the "Return Value" to `Supabase Row`
251
251
252
252
1. Check "Is List".
253
253
254
254
2. Uncheck "Nullable".
255
255
256
-
3. Specify `lists` as the "Table Name".
256
+
3. Under "Table Name", select `lists`.
257
257
258
258
4. Also under Function Settings, click "Add Arguments".
259
259
@@ -308,7 +308,7 @@ For reading data in FlutterFlow, you need a Custom Function per Supabase table t
308
308
309
309
5. Check "Is List".
310
310
311
-
6. Specify `lists` as the "Table Name".
311
+
6. Under "Table Name", select `lists`.
312
312
313
313
7. Click "Confirm".
314
314
@@ -376,9 +376,9 @@ For reading data in FlutterFlow, you need a Custom Function per Supabase table t
376
376
377
377
3) Click on `lists`.
378
378
379
-
4) Set the "Value" to "Custom Functions" > `supabaseRowsToList` we created previously.
379
+
4) Set the "Value" to "Custom Functions" -> `supabaseRowsToList` we created previously.
380
380
381
-
5) Under the `supabaseRows` argument, set the "Value" to "Widget Builder Parameters" > `rows`.
381
+
5) Under the `supabaseRows` argument, set the "Value" to "Widget Builder Parameters" -> `rows`.
382
382
383
383
6) Click "Confirm".
384
384
@@ -461,7 +461,7 @@ This variable will store the selected list row.
461
461
462
462
3. Set the "Type" to "Supabase Row".
463
463
464
-
4. Select `lists` as the "Table Name".
464
+
4. Under "Table Name", select `lists`.
465
465
466
466
5. Click "Confirm".
467
467
@@ -513,9 +513,9 @@ This variable will store the selected list row.
513
513
514
514
7) Set "Select Update Type" to "Set Value".
515
515
516
-
8) Set "Value to set" to "Custom Functions" > `supabaseRowsToList`.
516
+
8) Set "Value to set" to "Custom Functions" -> `supabaseRowsToList`.
517
517
518
-
9) Set the "Value" to "Callback Parameters" > `rows`
518
+
9) Set the "Value" to "Callback Parameters" -> `rows`
519
519
520
520
10) Click "Confirm".
521
521
@@ -535,7 +535,7 @@ This variable will store the selected list row.
535
535
536
536
1. In the **"Properties"** panel on the right, click on settings icon next to "Text".
537
537
538
-
2. Click on "Page State" > "List".
538
+
2. Click on "Page State" -> "List".
539
539
540
540
3. Set "Supabase Row Fields" to "name".
541
541
@@ -605,9 +605,9 @@ You will now update the app so that we can capture new list entries.
605
605
606
606
3. In the **"Actions"** panel on the right, click "Add Action".
607
607
608
-
1. Under "Custom Action" > "PowerSync", select "powersyncWrite".
608
+
1. Under "Custom Action" -> "PowerSync", select "powersyncWrite".
609
609
610
-
2. Under the "Set Action Arguments" > "sql" section, add the SQL query to create a new list item. For the purpose of this guide we are hardcoding the list's name, normally you would build UI for this.
610
+
2. Under the "Set Action Arguments" -> "sql" section, add the SQL query to create a new list item. For the purpose of this guide we are hardcoding the list's name, normally you would build UI for this.
611
611
612
612
1. Paste the following into the "Value" field:
613
613
@@ -623,7 +623,7 @@ You will now update the app so that we can capture new list entries.
623
623
624
624
4. Set the "Key" to `userId`.
625
625
626
-
5. Set the "Value" to "Authenticated User" > "User ID".
626
+
5. Set the "Value" to "Authenticated User" -> "User ID".
627
627
628
628
6. Click "Confirm".
629
629
@@ -661,9 +661,9 @@ In this section we will add the ability to swipe on a `ListTile` to delete it.
661
661
662
662
6. In the **"Actions"** panel on the right, click "Add Action".
663
663
664
-
1. Under "Custom Action" > "PowerSync", select "powersyncWrite".
664
+
1. Under "Custom Action" -> "PowerSync", select "powersyncWrite".
665
665
666
-
2. Under the "Set Action Arguments" > "sql" section, add the SQL query to delete the list item.
666
+
2. Under the "Set Action Arguments" -> "sql" section, add the SQL query to delete the list item.
667
667
668
668
1. Paste the following into the "Value" field:
669
669
`delete from lists where id = :id;`
@@ -745,7 +745,7 @@ Future signOut() async {
745
745
746
746
7. Click "Add Action" and add a call to the `signOut` Custom Action.
747
747
748
-
8. Chain another Action and call to "Supabase Authentication" > "Log Out":
748
+
8. Chain another Action and call to "Supabase Authentication" -> "Log Out":
0 commit comments