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/ui/components/built-in-components/barcode.md
+70-1Lines changed: 70 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ tags: [Base Elements]
6
6
7
7
# Barcode
8
8
9
-
The Barcode widget is used to embed the information inside the series of lines and patterns. The data inside the barcode can be easily retried with a scanner machine, an app like [Google Lens](https://lens.google/) (Android), [Apple Camera](https://support.apple.com/en-in/HT208843) (iOS), or your [own app](#) created using FlutterFlow.
9
+
The Barcode widget is used to embed the information inside the series of lines and patterns. The data inside the barcode can be easily retried with a scanner machine, an app like [Google Lens](https://lens.google/) (Android), [Apple Camera](https://support.apple.com/en-in/HT208843) (iOS), or your [own app](#scan-barcode--qr-code-action) created using FlutterFlow.
10
10
11
11
12
12
It is typically used to retrieve product information quickly and accurately. For example, you could track the inventory/books (e.g., price, description, location, etc.), share website/app URL, quick onboarding process, and so on.
@@ -127,3 +127,72 @@ You can also display the actual data below the barcode by enabling the **Show Te
127
127
This option is only available when using the *1D Barcode*.
128
128
:::
129
129
130
+
131
+
## Scan Barcode / QR code [Action]
132
+
133
+
Using this Action, you open a barcode or QR code interface and scan a code using the device camera.
134
+
135
+
<div style={{
136
+
position: 'relative',
137
+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
Follow the steps below to define a Scan Action to any widget.
162
+
163
+
1. Select **Actions** from the Properties panel (the right menu)
164
+
2. Click **+ Add Action** button
165
+
3. Choose a gesture from the dropdown among ***On Tap**, **On Double Tap**, or***On Long Press**
166
+
4. Select the **Action Type** as ***Scan Barcode/QR code**.*
167
+
5. If you check the **Barcode Mode** checkbox then the UI will look like a barcode scanner. Otherwise, the UI will be like a QR code scanner.
168
+
6.**Cancel button text** would be ***Cancel*** by default, but you can specify any other text if you want.
169
+
7. In the **Output Variable Name** field, you can specify the name of the variable where the scanned text would be saved and then you can access it via the **Set from Variable menu > Action Outputs > [Action Output Variable Name]**.
170
+
171
+
<div style={{
172
+
position: 'relative',
173
+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
0 commit comments