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: docs/resources/control-flow/backend-logic/api/streaming-api.md
-9Lines changed: 0 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -229,7 +229,6 @@ When working with Server Sent Events (SSE) in FlutterFlow, it's essential to und
229
229
230
230
This field captures the result of JSON parsing. For example:
231
231
232
-
Copy
233
232
```
234
233
event: chat
235
234
@@ -239,7 +238,6 @@ id: 2
239
238
```
240
239
The Server Sent Event Data JSON would be:
241
240
242
-
Copy
243
241
```
244
242
{
245
243
"response": "hello",
@@ -248,7 +246,6 @@ Copy
248
246
```
249
247
**Note that** If the data is not in JSON format, it will be null:
250
248
251
-
Copy
252
249
```
253
250
event: ping
254
251
@@ -262,7 +259,6 @@ The Server Sent Event Data JSON would be `null`.
262
259
263
260
This field contains just the text of the "data" field from the SSE. If there are multiple "data" entries, they are concatenated with a new line. For example, from the event:
264
261
265
-
Copy
266
262
```
267
263
event: ping
268
264
@@ -274,7 +270,6 @@ The Server Sent Event Data Text would be: `Server time is 2024-06-28T11:52:56+00
274
270
275
271
And from the event:
276
272
277
-
Copy
278
273
```
279
274
event: journalEntry
280
275
@@ -286,7 +281,6 @@ id: 3
286
281
```
287
282
The Server Sent Event Data Text would be:
288
283
289
-
Copy
290
284
```
291
285
Today I went to the park.
292
286
@@ -296,7 +290,6 @@ For Lunch I had a sandwich.
296
290
297
291
This field contains the text of the "event" field from the SSE. For example:
298
292
299
-
Copy
300
293
```
301
294
event: ping
302
295
@@ -310,7 +303,6 @@ The Server Sent Event Name would be `ping`.
310
303
311
304
This field contains the text of the "id" field from the SSE, typically used to keep track of the last sent item from the server. For example:
312
305
313
-
Copy
314
306
```
315
307
event: ping
316
308
@@ -328,7 +320,6 @@ This field contains the "retry" field from the SSE, typically used to communicat
328
320
329
321
This includes the entire Server Sent Event (SSE) message, including new lines and fields ('data', 'event', 'id', 'retry'). For example:
Copy file name to clipboardExpand all lines: docs/resources/control-flow/backend-logic/backend-query/algolia-search-query.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,13 +27,13 @@ You will need a text to be used as the **search term** while using the Algolia s
27
27
28
28
Follow the steps below to create this UI:
29
29
30
-
1. Drag a `**TextField**` widget from the [Widget Panel]
31
-
(/getting-started/ui-builder/navigation-menu/widget-and-component-panel) and drop it onto the canvas. (In the demo below, the `TextField` is placed inside the `AppBar` of the app).
32
-
5. You can customize the `TextField` properties to match your app's design style. Add a search `Icon` to signify that it's a search field.
33
-
8. Check the **Update Page On Change** checkbox. This helps to update the page as the user types inside the `TextField`. This would be required to use the latest text field value as the search term.
30
+
1. Drag a TextField widget from the [Widget Panel]
31
+
(/getting-started/ui-builder/navigation-menu/widget-and-component-panel) and drop it onto the canvas. (In the demo below, the TextField is placed inside the AppBar of the app).
32
+
5. You can customize the TextField properties to match your app's design style. Add a search Icon to signify that it's a search field.
33
+
8. Check the **Update Page On Change** checkbox. This helps to update the page as the user types inside the TextField. This would be required to use the latest text field value as the search term.
34
34
11. Set an **Update Delay** (in milliseconds). This specifies the amount of time after the user stops typing to update the page.
35
-
14. Now, drag and drop a `**ListView**` widget onto the canvas.
36
-
17. Similarly, you can add widgets inside the `ListView` that you need for displaying the search result. (In the following demo, you will find that two `Text` widgets are added inside a `Column`).
35
+
14. Now, drag and drop a ListView widget onto the canvas.
36
+
17. Similarly, you can add widgets inside the ListView that you need for displaying the search result. (In the following demo, you will find that two Text widgets are added inside a Column).
37
37
38
38
<div style={{
39
39
position: 'relative',
@@ -73,7 +73,7 @@ apply the query on the `ListView` widget.
73
73
8. Select the **Query Type** as ***Algolia Search***.
74
74
11. Choose the **Firebase Collection** on which to perform the search.
75
75
14. Define from where to get the **Search Term**. You can either choose ***Specific Value*** or ***From Variable***. If you want to use a `TextField` value as the search term, you should choose *From Variable*.
76
-
17. If you have chosen ***Specific Value****,*define the term inside the field present.
76
+
17. If you have chosen **Specific Value**,define the term inside the field present.
77
77
20. If you have chosen ***From Variable***, select a **Source** from the dropdown menu and then select an option from the **Available Options**. For example, if you want to use the value of a `TextField`, select the Source as ***Widget State*** and choose the field name under Available Options.
78
78
23. Set the number of maximum search results to fetch under **Max Results**. Keep this field blank if you want to fetch all the matching search results.
Copy file name to clipboardExpand all lines: docs/resources/control-flow/backend-logic/backend-query/backend-query.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,12 +64,12 @@ While the backend query is busy retrieving results, it shows the default *Projec
64
64
To change the loading indicator:
65
65
66
66
1. Ensure you have added a backend query.
67
-
5. Open the **Backend Query** section (on the right side) and scroll down to the **Backend Query Loading Widget**. Open it by clicking on the arrow icon.
68
-
8. Set the **Loading Widget Type** to **Image**. You can also choose a [**Component**](/widgets-and-components/custom-components) if you have already designed a loading component.
69
-
11. Enable the **View in UI Builder**. This allows you to see your custom loading indicator on canvas (before you actually run the app).
70
-
14. Choose the **Image Type**, [add the image](/widgets-and-components/widgets/widget-commonalities#changing-image-type), and adjust its **Padding** and **Width**.
71
-
17. To show the indicator in the center, turn on the **Center Image** toggle.
72
-
20. Run the app, and your custom loading indicator will appear while the data is being loaded.
67
+
2. Open the **Backend Query** section (on the right side) and scroll down to the **Backend Query Loading Widget**. Open it by clicking on the arrow icon.
68
+
3. Set the **Loading Widget Type** to **Image**. You can also choose a [**Component**](/widgets-and-components/custom-components) if you have already designed a loading component.
69
+
4. Enable the **View in UI Builder**. This allows you to see your custom loading indicator on canvas (before you actually run the app).
70
+
5. Choose the **Image Type**, [add the image](/widgets-and-components/widgets/widget-commonalities#changing-image-type), and adjust its **Padding** and **Width**.
71
+
6. To show the indicator in the center, turn on the **Center Image** toggle.
72
+
7. Run the app, and your custom loading indicator will appear while the data is being loaded.
@@ -110,11 +110,11 @@ The *Empty List* widget is a widget used to display a message when there are no
110
110
111
111
To display the empty list widget:
112
112
113
-
2. Ensure you have added a backend query on any scrollable widget, such as [ListView](/widgets-and-components/widgets/layout-elements/listview), [GridView](/widgets-and-components/widgets/layout-elements/gridview), [Column](/widgets-and-components/widgets/layout-elements/columns), [Row](/widgets-and-components/widgets/layout-elements/row), DataTable, and [StaggeredView](/widgets-and-components/widgets/layout-elements/staggeredview).
114
-
5. Select the scrollable widget (on which you have added the backend query), move to the properties panel, and turn on the **Show Empty List Widget**.
115
-
8. Set **Widget Type** to **Image** or **Component**. The further options are available based on what you choose.
116
-
11. Try toggling the **View in UI Builder**. This allows you to see your empty list widget on canvas (before you actually run the app).
117
-
14. You can also control the size and centering of the widget using the available options.
113
+
1. Ensure you have added a backend query on any scrollable widget, such as [ListView](/widgets-and-components/widgets/layout-elements/listview), [GridView](/widgets-and-components/widgets/layout-elements/gridview), [Column](/widgets-and-components/widgets/layout-elements/columns), [Row](/widgets-and-components/widgets/layout-elements/row), DataTable, and [StaggeredView](/widgets-and-components/widgets/layout-elements/staggeredview).
114
+
2. Select the scrollable widget (on which you have added the backend query), move to the properties panel, and turn on the **Show Empty List Widget**.
115
+
3. Set **Widget Type** to **Image** or **Component**. The further options are available based on what you choose.
116
+
4. Try toggling the **View in UI Builder**. This allows you to see your empty list widget on canvas (before you actually run the app).
117
+
5. You can also control the size and centering of the widget using the available options.
Once you have the SQLite query defined, you can use the data retrieved from the query to display on widgets present inside. Follow the steps below:
41
41
42
-
2. Select the **widget** (e.g., `Text`) on which you want to display the data.
43
-
5. From the [Properties Panel](/getting-started/ui-builder/properties-panel), open the **Set from Variable** menu **>** select **[your query name] Row****>** select the column data that you want display here.
44
-
8. Click **Confirm**.
42
+
1. Select the **widget** (e.g., `Text`) on which you want to display the data.
43
+
2. From the [Properties Panel](/getting-started/ui-builder/properties-panel), open the **Set from Variable** menu **>** select **[your query name] Row****>** select the column data that you want display here.
0 commit comments