Skip to content

Commit 02b2af8

Browse files
authored
Merge branch 'main' into pinkesh/supabase-or-filter
2 parents 5bb623f + a46b428 commit 02b2af8

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

docs/ff-concepts/adding-customization/custom-code.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,36 @@ FlutterFlow:
374374
This example demonstrates how to add a [**pub.dev**](https://pub.dev) package to a Custom Widget snippet, but you can follow the same process for adding a package to Custom Actions. For a deep dive, explore the detailed documentation on **[Custom Widgets](custom-widgets.md)** and [**Custom Actions**](custom-actions.md).
375375
:::
376376

377+
## Manage Dependencies
377378

379+
You can also add packages directly on the **Dependencies** page (at **Settings and Integrations > Project Setup > Project Dependencies**) and they will be reflected in your custom actions or custom widgets, because packages are managed at the project level.
378380

381+
Additionally, when you create a new custom action or widget, all previously added custom dependencies will be listed on the **Pubspec** **Dependencies** list on the right side. This ensures that you can easily track all custom dependencies in the project, avoiding duplication or conflicts that could override each other or cause project errors.
379382

383+
If any project errors related to packages arise, they will be displayed in both the custom code editor and the Dependencies page. You can also update the version numbers of custom packages directly from the Dependencies page. This streamlined process helps maintain consistency and reduces potential issues related to custom packages.
384+
385+
<div style={{
386+
position: 'relative',
387+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
388+
height: 0,
389+
width: '100%'}}>
390+
<iframe
391+
src="https://demo.arcade.software/aaX1a8s4Z1xytVa2DYd5?embed&show_copy_link=true"
392+
title=""
393+
style={{
394+
position: 'absolute',
395+
top: 0,
396+
left: 0,
397+
width: '100%',
398+
height: '100%',
399+
colorScheme: 'light'
400+
}}
401+
frameborder="0"
402+
loading="lazy"
403+
webkitAllowFullScreen
404+
mozAllowFullScreen
405+
allowFullScreen
406+
allow="clipboard-write">
407+
</iframe>
408+
</div>
409+
<p></p>
546 KB
Loading

docs/resources/ui/widgets/built-in-widgets/swipeablestack.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,23 @@ To loop the cards in SwipeableStack, move to the **Properties Panel > SwipeableS
156156

157157
![loopcard](imgs/loopcard.avif)
158158

159+
### Allowed Swipe Direction
160+
You can control the directions in which users can swipe cards by adjusting the **Allowed Swipe Direction** property. It enables you to customize how users interact with the SwipeableStack, letting you limit swipes to certain directions or enable swiping in any direction.
161+
162+
To do so, navigate to the **Properties Panel > SwipeableStack Properties > Allowed Swipe Direction**, and select one of the following options:
163+
164+
- **All**: Users can swipe in all directions.
165+
- **Left**: Swipe only to the left.
166+
- **Right**: Swipe only to the right.
167+
- **Down**: Swipe only downward.
168+
- **Up**: Swipe only upward.
169+
- **Vertical**: Swipe up or down.
170+
- **Horizontal**: Swipe left or right.
171+
172+
For example, in Tinder-like Swipeable Cards layout, you can set the **Allowed Swipe Direction** to **Horizontal**, enabling users to swipe left to "dislike" and right to "like" a profile.
173+
174+
![allowed-swipe-direction.png](imgs/allowed-swipe-direction.png)
175+
159176
### Customize card display count and scale
160177

161178
You can adjust how many cards are visible in the stack at one time and how they are scaled. This customization enhances the UX by letting you create a more engaging and visually appealing card stack, where the depth and hierarchy of cards can be easily perceived by users.

0 commit comments

Comments
 (0)