Skip to content

Commit 5e3db82

Browse files
authored
Rewrite Share Action (#279)
* Rewrite share action * fix
1 parent e6895c2 commit 5e3db82

File tree

2 files changed

+4
-48
lines changed

2 files changed

+4
-48
lines changed
Binary file not shown.

docs/ff-concepts/navigation-routing/share-action.md

Lines changed: 4 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,10 @@ keywords: [FlutterFlow, Share Action, Navigation, Concepts]
99

1010
# Share [Action]
1111

12-
Share Action can be used to send a text using the Android or iOS device's share dialog. You can send the text using email, message, or any other application present on the device that supports sharing functionality.
13-
14-
<figure>
15-
<img src="https://firebasestorage.googleapis.com/v0/b/ecommerceflow-docs/o/share-example.gif?alt=media&token=f902c889-56e0-4f40-9413-7e5852d5d8c2"></img>
16-
<figcaption class="centered-caption"></figcaption>
17-
</figure>
18-
19-
## Define Share Action
20-
21-
Go to your project page on FlutterFlow and follow the steps below to define an Upload Photo/Video Action to a widget:
22-
23-
1. Select the **widget** in which you want to set the Action.
24-
25-
2. Select the **Actions** from the Properties Panel (the right menu).
26-
27-
3. Click **+ Add Action** button.
28-
29-
4. Choose a gesture from the dropdown among ***On Tap****,* ***On Double Tap****,**or* **On Long
30-
Press**.
31-
32-
5. Select the **Action Type** as ***Share***.
33-
34-
6. Now, you need to specify a **URL/Text Value**. It can be set either by defining a **Specific
35-
Value** or by using **From Variable** to use a value stored inside a variable.
36-
- If you are using **Specific Value**, enter the text in the **Value** field.
37-
- If you are using **From Variable**, you need to select the **Source**.
38-
39-
Demo of defining Share Action using a **Specific Value** is as follows:
40-
41-
<img src="https://firebasestorage.googleapis.com/v0/b/ecommerceflow-docs/o/share-with-value.gif?alt=media&token=415cf039-dae7-4ee0-ad3c-c31a8c5c4a50"></img>
42-
43-
<p></p>
44-
45-
Alternatively, a demo of defining Share Action using **From Variable** option is as follows:
46-
47-
<p></p>
48-
49-
50-
<figure>
51-
<img src="https://firebasestorage.googleapis.com/v0/b/ecommerceflow-docs/o/share-with-variable.gif?alt=media&token=7d77df34-7c82-47fe-ba50-8eedf699c6ea"></img>
52-
<figcaption class="centered-caption"></figcaption>
53-
</figure>
54-
12+
The **Share Action** enables users to send text or URLs from your app using the native sharing capabilities of their device. This functionality allows users to share information through various applications installed on their devices, such as email, messaging apps, or social media platforms.
5513

5614
:::warning
57-
You won't be able to try out this Action using FlutterFlow's *Run Mode* or *Preview Mode*. To
58-
test this Action, you have to run it on an iOS or Android device or emulator. You can either
59-
**Download the Code** (by going to `Developer Menu > Download Code`) and build it for your
60-
device, or use the **Build APK** button (present on the [**Tool Bar**](../../intro/ff-ui/toolbar.md) to generate an APK that
61-
you can run on your Android device.
15+
It's important to note that the Share Action is designed for mobile platforms and is not supported in FlutterFlow's Run Mode or Preview Mode. To test this functionality, you need to [**run your app on an iOS or Android device or emulator**](../../testing-deployment-publishing/running-your-app/local-run.md).
6216
:::
17+
18+
![share-action](imgs/share-action.avif)

0 commit comments

Comments
 (0)