Skip to content

Commit 4b042aa

Browse files
authored
Draft FlutterFlow attachments guide (#130)
* Draft FlutterFlow attachments guide * attachments guide v0.9 * Add warning * Polish * blurb * Polish * Polish
1 parent b600a06 commit 4b042aa

22 files changed

+492
-80
lines changed
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

integration-guides/flutterflow-+-powersync.mdx

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Used in conjunction with **FlutterFlow**, PowerSync enables developers to build
2222

2323
* No more dozens of custom actions
2424

25-
* Working Attachments package (Guide coming soon)
25+
* Working Attachments package - learn how to sync attachments [here](/integration-guides/flutterflow-+-powersync/handling-attachments).
2626

2727
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.
2828
</Tip>
@@ -179,7 +179,7 @@ This guide walks you through building a basic item management app from scratch a
179179
<img src="/images/integration-25.avif" />
180180
</Frame>
181181
182-
2. Select the "Auth1" template and name the page `Login`.
182+
2. Select the "Auth 1" template and name the page `Login`.
183183

184184
3. Delete the *Sign Up*, *Forgot Password* and *Social Login* buttons — we will only be supporting Sign In for this demo app.
185185

@@ -191,11 +191,11 @@ This guide walks you through building a basic item management app from scratch a
191191

192192
1. Enable Authentication.
193193

194-
2. Set "Supabase" as the "Authentication Type".
194+
2. Set "Authentication Type" to "Supabase".
195195

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.
197197

198-
4. Set "HomePage" as the "Logged In Page":
198+
4. Set "Logged In Page" to "HomePage".
199199

200200
<Frame>
201201
<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
229229

230230
1. Auto-updating queries for Layout Elements with Dynamic Children e.g. the ListView Element
231231

232-
* This uses the library's `PowerSyncQuery` component
232+
* This uses the library's `PowerSyncQuery` component.
233233

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.
235235

236-
* This uses the library's `PowerSyncStateUpdater` component
236+
* This uses the library's `PowerSyncStateUpdater` component.
237237

238-
3. Once-off reads for static data
238+
3. Once-off reads for static data.
239239

240-
* This uses the library's `PowerSyncQueryOnce` custom action
240+
* This uses the library's `PowerSyncQueryOnce` custom action.
241241

242242
### Prepare Supabase Tables for Reads
243243

@@ -247,13 +247,13 @@ For reading data in FlutterFlow, you need a Custom Function per Supabase table t
247247

248248
2. Name the function `supabaseRowsToList` (if your Supabase table name is "Customers", you would name this `supabaseRowsToCustomers`).
249249

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`
251251

252252
1. Check "Is List".
253253

254254
2. Uncheck "Nullable".
255255

256-
3. Specify `lists` as the "Table Name".
256+
3. Under "Table Name", select `lists`.
257257

258258
4. Also under Function Settings, click "Add Arguments".
259259

@@ -308,7 +308,7 @@ For reading data in FlutterFlow, you need a Custom Function per Supabase table t
308308

309309
5. Check "Is List".
310310

311-
6. Specify `lists` as the "Table Name".
311+
6. Under "Table Name", select `lists`.
312312

313313
7. Click "Confirm".
314314

@@ -376,9 +376,9 @@ For reading data in FlutterFlow, you need a Custom Function per Supabase table t
376376

377377
3) Click on `lists`.
378378

379-
4) Set the "Value" to "Custom Functions" > `supabaseRowsToList` we created previously.
379+
4) Set the "Value" to "Custom Functions" -> `supabaseRowsToList` we created previously.
380380

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`.
382382

383383
6) Click "Confirm".
384384

@@ -461,7 +461,7 @@ This variable will store the selected list row.
461461

462462
3. Set the "Type" to "Supabase Row".
463463

464-
4. Select `lists` as the "Table Name".
464+
4. Under "Table Name", select `lists`.
465465

466466
5. Click "Confirm".
467467

@@ -513,9 +513,9 @@ This variable will store the selected list row.
513513

514514
7) Set "Select Update Type" to "Set Value".
515515

516-
8) Set "Value to set" to "Custom Functions" > `supabaseRowsToList`.
516+
8) Set "Value to set" to "Custom Functions" -> `supabaseRowsToList`.
517517

518-
9) Set the "Value" to "Callback Parameters" > `rows`
518+
9) Set the "Value" to "Callback Parameters" -> `rows`
519519

520520
10) Click "Confirm".
521521

@@ -535,7 +535,7 @@ This variable will store the selected list row.
535535

536536
1. In the **"Properties"** panel on the right, click on settings icon next to "Text".
537537

538-
2. Click on "Page State" > "List".
538+
2. Click on "Page State" -> "List".
539539

540540
3. Set "Supabase Row Fields" to "name".
541541

@@ -605,9 +605,9 @@ You will now update the app so that we can capture new list entries.
605605

606606
3. In the **"Actions"** panel on the right, click "Add Action".
607607

608-
1. Under "Custom Action" > "PowerSync", select "powersyncWrite".
608+
1. Under "Custom Action" -> "PowerSync", select "powersyncWrite".
609609

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.
611611

612612
1. Paste the following into the "Value" field:
613613

@@ -623,7 +623,7 @@ You will now update the app so that we can capture new list entries.
623623

624624
4. Set the "Key" to `userId`.
625625

626-
5. Set the "Value" to "Authenticated User" > "User ID".
626+
5. Set the "Value" to "Authenticated User" -> "User ID".
627627

628628
6. Click "Confirm".
629629

@@ -661,9 +661,9 @@ In this section we will add the ability to swipe on a `ListTile` to delete it.
661661

662662
6. In the **"Actions"** panel on the right, click "Add Action".
663663

664-
1. Under "Custom Action" > "PowerSync", select "powersyncWrite".
664+
1. Under "Custom Action" -> "PowerSync", select "powersyncWrite".
665665

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.
667667

668668
1. Paste the following into the "Value" field:
669669
`delete from lists where id = :id;`
@@ -745,7 +745,7 @@ Future signOut() async {
745745

746746
7. Click "Add Action" and add a call to the `signOut` Custom Action.
747747

748-
8. Chain another Action and call to "Supabase Authentication" > "Log Out":
748+
8. Chain another Action and call to "Supabase Authentication" -> "Log Out":
749749

750750
<Frame>
751751
<img src="/images/integration-66.avif" />

0 commit comments

Comments
 (0)