-
Notifications
You must be signed in to change notification settings - Fork 113
Missing topics 2.1 #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Missing topics 2.1 #106
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
86006a4
Added alert dialog
pinkeshmars 49ad641
Added dismiss custom dialog
pinkeshmars e2cf3cb
Added PDF viewer widget
pinkeshmars a52a2fb
Added bottom sheet
pinkeshmars 12e26e8
Added audio actions
pinkeshmars 5d63a6f
Moved push notifications
pinkeshmars e4d7546
Moved one signal
pinkeshmars 0d0a8fe
Notification folder removed from integrations
pinkeshmars 600e242
Added biometric verification action
pinkeshmars 6e621db
Fix wrong redirect URL
PoojaB26 9384ea5
Review comments addressed!
pinkeshmars dcb9486
Merge branch 'pinkesh/missing-topics-2-1' of https://github.com/Flutt…
pinkeshmars File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"label": "Alerts & Notifications", | ||
"position": 8 | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,199 @@ | ||
--- | ||
title: Alert Dialog | ||
slug: /concepts/alerts-notification/alert-dialog | ||
sidebar_position: 0 | ||
tags: [Actions, Alerts & Notifications] | ||
keywords: [FlutterFlow, Actions, Alerts & Notifications, Alert Dialog] | ||
--- | ||
|
||
# Alert Dialog | ||
|
||
The action allows you to alert the user of important situations that require acknowledgment in the form of a pop-up or custom-designed dialog. With this feature, you can choose to display a pre-built pop-up or create a custom design that suits your specific requirements. | ||
|
||
<div style={{ | ||
position: 'relative', | ||
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding | ||
height: 0, | ||
width: '100%'}}> | ||
<iframe | ||
src="https://demo.arcade.software/i3HbwgcbqbLyJQPRjr8a?embed&show_copy_link=true" | ||
title="" | ||
style={{ | ||
position: 'absolute', | ||
top: 0, | ||
left: 0, | ||
width: '100%', | ||
height: '100%', | ||
colorScheme: 'light' | ||
}} | ||
frameborder="0" | ||
loading="lazy" | ||
webkitAllowFullScreen | ||
mozAllowFullScreen | ||
allowFullScreen | ||
allow="clipboard-write"> | ||
</iframe> | ||
</div> | ||
<p></p> | ||
|
||
### Types of Alert Dialog | ||
|
||
We allow you to define two types of Alert Dialog Actions: | ||
|
||
- **Informational Dialog:** To show some information the user should be aware of before interacting with the app. Contains only a single action button. | ||
- **Confirm Dialog:** This dialog can contain two action buttons. It can trigger the subsequent action based on whether a user confirms the action. It can also be used before performing any non-revertable user action, for example, before deleting a user account. | ||
- **Custom Dialog**: This is a fully customizable dialog that you can create using [components](../../ui/components/overview.md). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Link doesnt work. |
||
|
||
### Adding Informational Dialog [Action] | ||
|
||
Follow the steps below to add this type of action to any widget: | ||
|
||
1. Select the **Widget** (e.g., Button) on which you want to add the action. | ||
2. Select **Actions** from the Properties panel (the right menu), and click **+ Add Action**. | ||
3. Search and select the **Alert Dialog** (under *Alerts/Notifications*) action. | ||
4. Set the **Alert Dialog Type** to **Informational Dialog**. | ||
5. Provide the **Title** and **Message** for the dialog. Note: You can also set it from a variable; for example, a combined text with a value from a variable. | ||
6. Also, enter a **Dismiss Text** that will be shown on the action button. | ||
|
||
<div style={{ | ||
position: 'relative', | ||
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding | ||
height: 0, | ||
width: '100%'}}> | ||
<iframe | ||
src="https://demo.arcade.software/99GFeVxk2dvIX7kFatOP?embed&show_copy_link=true" | ||
title="" | ||
style={{ | ||
position: 'absolute', | ||
top: 0, | ||
left: 0, | ||
width: '100%', | ||
height: '100%', | ||
colorScheme: 'light' | ||
}} | ||
frameborder="0" | ||
loading="lazy" | ||
webkitAllowFullScreen | ||
mozAllowFullScreen | ||
allowFullScreen | ||
allow="clipboard-write"> | ||
</iframe> | ||
</div> | ||
<p></p> | ||
|
||
### Adding Confirm Dialog [Action] | ||
|
||
Follow the steps below to add this type of action to any widget: | ||
|
||
1. Select the **Widget** (e.g., Button) on which you want to define the action. | ||
2. Select **Actions** from the Properties panel (the right menu), and click **Open**. This will open an **Action Flow Editor** in a new popup window. | ||
1. Click on the **+ Add Action**. | ||
2. On the right side, search and select **Alert Dialog**. | ||
3. Set the **Alert Dialog Type** to **Confirm Dialog**. | ||
4. Provide the **Title** and **Message** for the dialog. Note: You can also set it from a variable; for example, a combined text with a value from a variable. | ||
5. Now, enter a **Dismiss Text** (shown on the action button that will cancel the Action) and a **Confirm Text** (shown on the action button that will trigger the Action that you will define in the next step). | ||
6. Now, click on the **+** button and select **Add Conditional**. | ||
7. On the right side (**Set Condition for Action**), set the **Source** to **Confirm Dialog Response**. | ||
1. Under the **TRUE** section, add an action that will be triggered if a user gives confirmation. | ||
2. Under the **FALSE** section, add an action that will be triggered if a user cancels this dialog. | ||
3. Click **Close**. | ||
|
||
<div style={{ | ||
position: 'relative', | ||
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding | ||
height: 0, | ||
width: '100%'}}> | ||
<iframe | ||
src="https://demo.arcade.software/zlP2hl64nrid2ODbN8wb?embed&show_copy_link=true" | ||
title="" | ||
style={{ | ||
position: 'absolute', | ||
top: 0, | ||
left: 0, | ||
width: '100%', | ||
height: '100%', | ||
colorScheme: 'light' | ||
}} | ||
frameborder="0" | ||
loading="lazy" | ||
webkitAllowFullScreen | ||
mozAllowFullScreen | ||
allowFullScreen | ||
allow="clipboard-write"> | ||
</iframe> | ||
</div> | ||
<p></p> | ||
|
||
### Adding Custom Dialog [Action] | ||
|
||
Before you add this action, ensure you [create a component](../../ui/components/custom-components/getting-started.md) that you want to display as a custom dialog. Now follow the steps below to add this type of action to any widget: | ||
|
||
1. Select the **Widget** (e.g., Button) on which you want to add the action. | ||
2. Select **Actions** from the Properties panel (the right menu), and click **+ Add Action**. | ||
3. Search and select the **Alert Dialog** (under *Alerts/Notifications*) action. | ||
4. Set the **Alert Dialog Type** to **Custom Dialog** and **Select Component**. | ||
5. It is recommended to set the appropriate **Width** and **Height** for the custom dialog. | ||
6. Optionally, you can set the **Background** and **Barrier Color** for this dialog. | ||
|
||
 | ||
|
||
7. By default, this type of action blocks the following action (if any) from triggering while this action is in progress, meaning the dialog is present on the screen. However, in some cases, you might want to allow the next action (after this) to execute, for example, making an API call immediately after showing the custom loading dialog. To do so, enable **Non Blocking** option. | ||
8. By default, **Non Dismissble** option closes the dialog when you click outside of it. To disable this behavior, enable this option. | ||
|
||
<div style={{ | ||
position: 'relative', | ||
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding | ||
height: 0, | ||
width: '100%'}}> | ||
<iframe | ||
src="https://demo.arcade.software/F5SinThEDKDwc337AM60?embed&show_copy_link=true" | ||
title="" | ||
style={{ | ||
position: 'absolute', | ||
top: 0, | ||
left: 0, | ||
width: '100%', | ||
height: '100%', | ||
colorScheme: 'light' | ||
}} | ||
frameborder="0" | ||
loading="lazy" | ||
webkitAllowFullScreen | ||
mozAllowFullScreen | ||
allowFullScreen | ||
allow="clipboard-write"> | ||
</iframe> | ||
</div> | ||
<p></p> | ||
|
||
9. By default, the custom dialog appears in the center of the screen. However, you can use the **Dialog Alignment** property to decide where to position the dialog on the screen. | ||
|
||
 | ||
|
||
10. To position the dialog around the widget that opened it, enable the **Align with the Target Widget**, and then align using the **Target Alignment** property. **Tip**: If dialog goes out of the screen, enable **Avoid Overflow**. | ||
|
||
<div style={{ | ||
position: 'relative', | ||
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding | ||
height: 0, | ||
width: '100%'}}> | ||
<iframe | ||
src="https://demo.arcade.software/DwufbH1LAEpjw1dBSRYX?embed&show_copy_link=true" | ||
title="" | ||
style={{ | ||
position: 'absolute', | ||
top: 0, | ||
left: 0, | ||
width: '100%', | ||
height: '100%', | ||
colorScheme: 'light' | ||
}} | ||
frameborder="0" | ||
loading="lazy" | ||
webkitAllowFullScreen | ||
mozAllowFullScreen | ||
allowFullScreen | ||
allow="clipboard-write"> | ||
</iframe> | ||
</div> | ||
<p></p> |
48 changes: 48 additions & 0 deletions
48
docs/ff-concepts/alerts-notification/dismiss-custom-dialog.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
title: Dismiss Custom Dialog | ||
slug: /concepts/alerts-notification/dismiss-custom-dialog | ||
sidebar_position: 1 | ||
tags: [Actions, Alerts & Notifications] | ||
keywords: [FlutterFlow, Actions, Alerts & Notifications, Dismiss Custom Dialog] | ||
--- | ||
|
||
# Dismiss Custom Dialog | ||
|
||
With this action, you can easily close the [custom dialog](alert-dialog.md#adding-custom-dialog-action), providing a convenient way for users to dismiss it. This functionality is handy when you want to give users the option to close the dialog from any widget within it, like a close button. | ||
|
||
<div style={{ | ||
position: 'relative', | ||
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding | ||
height: 0, | ||
width: '100%'}}> | ||
<iframe | ||
src="https://demo.arcade.software/ihrcUlB3vJ7L6Oog2Ob0?embed&show_copy_link=true" | ||
title="" | ||
style={{ | ||
position: 'absolute', | ||
top: 0, | ||
left: 0, | ||
width: '100%', | ||
height: '100%', | ||
colorScheme: 'light' | ||
}} | ||
frameborder="0" | ||
loading="lazy" | ||
webkitAllowFullScreen | ||
mozAllowFullScreen | ||
allowFullScreen | ||
allow="clipboard-write"> | ||
</iframe> | ||
</div> | ||
<p></p> | ||
|
||
## Adding Dismiss Custom Dialog [Action] | ||
|
||
Follow the steps below to add this type of action to any widget: | ||
|
||
1. Select the **Widget** (e.g., Button) on which you want to add the action. | ||
2. Select **Actions** from the Properties panel (the right menu), and click **+ Add Action**. | ||
3. Search and select the **Dismiss Custom Dialog** (under *Alerts/Notifications*) action. | ||
4. You can set a default value to be sent when the user closes the custom dialog. You can do so by enabling the **Has Value** option. For instance, if the dialog provides a list of colors and the user closes it without selecting any color, you can set a default color value of "Black" to be sent as the default selection. | ||
|
||
 |
Binary file added
BIN
+53.4 KB
docs/ff-concepts/alerts-notification/imgs/adding-dismiss-custom-dialog-action.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check the component URLs, they dont link to anything.