Skip to content

Commit 57b7670

Browse files
committed
updated content, consolidated and reorganized the articles
1 parent 1761c49 commit 57b7670

File tree

123 files changed

+2820
-3674
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+2820
-3674
lines changed

docs/ff-concepts/adding-customization/add_dependencies_to_custom_widgets_or_actions_in.md

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,37 @@
11
---
2-
keywords: ['permissions', 'upload', 'view']
3-
slug: enable-image-upload-in-webview-on-device
2+
keywords: ['permissions', 'upload', 'webview', 'image']
3+
slug: enable-image-upload-in-webview-on-real-devices
44
title: Enable Image Upload in WebView on Real Devices
55
---
66

7-
# Enable Image Upload in WebView on Real Devices
7+
## Enable Image Upload in WebView on Real Devices
88

9-
Image uploads may work in Run/Test mode but fail on real devices due to missing runtime permissions related to accessing the photo library.
9+
Image uploads may function correctly in Run/Test mode but fail on real devices due to missing runtime permissions required for accessing the photo library. This document outlines the steps to resolve this issue.
1010

11-
## Problem
11+
In web preview mode, the browser handles permissions, allowing image uploads to proceed without specific configurations. However, when deploying to physical Android or iOS devices, explicit runtime permissions are necessary to access the device's photo library. If image upload functionality is embedded within a **WebView**, FlutterFlow does not automatically detect this requirement and therefore does not request the required permissions during the build process.
1212

13-
In web preview mode, permissions are managed by the browser, and image upload typically works without issues. However, on physical devices, accessing the photo library requires explicit runtime permissions.
13+
To enable image uploads from a **WebView** on a physical device, follow these steps:
1414

15-
If the image upload is implemented inside a WebView, FlutterFlow does not automatically detect it and therefore does not request the necessary permissions.
15+
1. **Enable Photo Library Permission:**
1616

17-
## Solution
17+
Navigate to **Settings > [Permissions](/settings-and-integrations/mobile-deployment/permissions)** in your FlutterFlow project and enable the **Photo Library** permission.
1818

19-
To allow image uploads from a WebView on a physical device, follow these steps:
19+
![](../assets/20250430121337121891.png)
2020

21-
1. **Enable the Required Permission**
22-
Navigate to **Settings → Permissions** in your FlutterFlow project and enable the **Photo Library** permission.
21+
2. **Request Permission at Runtime:**
22+
Before initiating the image upload action inside the **WebView**, add a **[Get Permission](/actions/widget-actions/permissions/get-permission)** action. Configure this action to explicitly request access to the **Photo Library**. This action should typically be placed on a button tap or an equivalent user interaction that precedes the upload.
2323

24-
![](../assets/20250430121337121891.png)
24+
![](../assets/20250430121337385659.png)
2525

26-
2. **Request Permission at Runtime**
27-
Before initiating the upload action inside the WebView, use the **Get Permission** action to explicitly request access to the photo library.
26+
3. **Reinstall the Application:**
2827

29-
![](../assets/20250430121337385659.png)
28+
After adding and configuring the permission, it is crucial to re-deploy your application to the device:
29+
* Uninstall any existing versions of the app from the target device.
30+
* Clear the app's cache (if applicable).
31+
* Reinstall the updated application. This step ensures that the permission prompt appears when the app is launched for the first time or when the `Get Permission` action is triggered.
3032

31-
3. **Reinstall the App**
32-
After adding the permission:
33-
- Uninstall the app from the device.
34-
- Clear the app cache.
35-
- Reinstall the app to ensure the permission prompt appears.
33+
:::warning
34+
If the permission dialog does not appear on the first launch or when the `Get Permission` action is triggered, the app will not have access to the photo library, and uploads inside the **WebView** will fail. Users may need to manually enable the permission through their device's app settings.
35+
:::
3636

37-
## Notes
38-
39-
:::warning
40-
If the permission dialog does not appear on first launch, the app will not have access to the photo library, and uploads inside the WebView will fail.
41-
:::
42-
43-
Once permissions are correctly granted, image uploads inside the WebView will function as expected on physical devices.
37+
Once permissions are correctly granted, image uploads initiated from within the **WebView** will function as expected on physical devices.

docs/ff-concepts/alerts/Create an alert if a user's email address or password is invalid.md

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
keywords: ['login', 'authentication', 'snackbar', 'error']
3+
slug: /display-error-message-for-invalid-login-credentials
4+
title: Display Error Message for Invalid Login Credentials
5+
---
6+
7+
# Display Error Message for Invalid Login Credentials
8+
9+
When a user enters incorrect login credentials, FlutterFlow automatically displays a `SnackBar` with an error message. This helps users understand why their login attempt failed without needing custom logic.
10+
11+
![](../imgs/20250430121519975010.gif)
12+
13+
When the **Login Action** fails, a `SnackBar` is shown with the relevant error (e.g., “No user found” or “Wrong password”). This message appears automatically during runtime; no additional configuration is required.
14+
15+
**Customize the SnackBar (Optional)**
16+
17+
To add custom logic or change the appearance:
18+
19+
1. Select the **Login Action** from your button or trigger.
20+
2. In the **Actions tab**, open the **Action Output** section.
21+
3. Use conditional logic to check the error message.
22+
4. Display a custom `SnackBar` or navigate based on the message content.
23+
24+
:::tip
25+
There is no need to manually add alert dialogs for failed login attempts. FlutterFlow handles `SnackBar` display automatically when authentication fails.
26+
:::
27+
28+
:::note
29+
To customize the `SnackBar` further, use the **Action Output** and attach additional logic based on the error string.
30+
:::

docs/ff-concepts/file-handling/Can't upload photo to Content Manager.md

Lines changed: 0 additions & 51 deletions
This file was deleted.

docs/ff-concepts/navigation-routing/How can i access to Page link [ after activating the dynamic link ].md

Lines changed: 0 additions & 40 deletions
This file was deleted.

docs/ff-concepts/state-management/Missing Data Types in App State Variable List.md

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
keywords: ['list', 'missing', 'state']
3+
slug: /missing-data-types-in-app-state-variable-list
4+
title: Missing Data Types in App State Variable List
5+
---
6+
7+
# Missing Data Types in App State Variable List
8+
9+
When creating an **App State Variable** in FlutterFlow, you should see a list of available data types. However, in some cases—especially in older projects—these data types may not appear.
10+
11+
This issue is typically caused by the **Deep Linking** setting being turned off in your project. If Deep Linking is disabled, the data type selection list may not populate correctly.
12+
13+
Follow the steps below to enable Deep Linking and restore the missing data types:
14+
15+
1. Open your FlutterFlow project.
16+
2. Go to **Settings > App Details**.
17+
3. Scroll to the **Deep Linking & Route** section.
18+
4. Enable the **Deep Linking** toggle.
19+
20+
![](../assets/20250430121217509964.png)
21+
22+
After enabling Deep Linking, the list of data types should now be visible when adding or editing an App State Variable.
23+
24+
:::note
25+
This fix is particularly effective for older projects where the setting may be disabled by default.
26+
:::

docs/intro/before-you-begin/build_your_first_app.md

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)