Skip to content

Commit bbfefb6

Browse files
authored
Merge branch 'main' into pinkesh/library-values
2 parents cf4f744 + c871de1 commit bbfefb6

File tree

7 files changed

+141
-4
lines changed

7 files changed

+141
-4
lines changed

docs/ff-concepts/adding-customization/vscode-extension.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,42 @@ To delete a Custom Action or Widget, delete the associated file.
229229
You can add custom [pub.dev](https://pub.dev/) package dependencies with the `Dart: Add Dependency` command from the Visual Studio Code command palette. This will update the `pubspec.yaml` file.
230230

231231

232+
## FAQs
233+
<details>
234+
<summary>How do I download code from the Beta or Enterprise version of FlutterFlow?</summary>
235+
<p>
236+
If you're using a different version of FlutterFlow, such as *Beta* or *Enterprise*, you can override the URL by modifying the **Extension Settings > settings.json** file.
237+
238+
For example:
239+
240+
- For the **Beta** version, set the `flutterflow.urlOverride` value to `https://api-beta.flutterflow.io/v1`.
241+
- For the **Enterprise** version, set the `flutterflow.urlOverride` value to `https://api-enterprise-[region].flutterflow.io` (replace [region] with your specific region).
242+
243+
<div style={{
244+
position: 'relative',
245+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
246+
height: 0,
247+
width: '100%'}}>
248+
<iframe
249+
src="https://demo.arcade.software/nt5zn8DE5GxLPbKeZVL3?embed&show_copy_link=true"
250+
title=""
251+
style={{
252+
position: 'absolute',
253+
top: 0,
254+
left: 0,
255+
width: '100%',
256+
height: '100%',
257+
colorScheme: 'light'
258+
}}
259+
frameborder="0"
260+
loading="lazy"
261+
webkitAllowFullScreen
262+
mozAllowFullScreen
263+
allowFullScreen
264+
allow="clipboard-write">
265+
</iframe>
266+
</div>
267+
<p></p>
268+
269+
</p>
270+
</details>

docs/ff-concepts/layout/responsive-layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ For `Row 2`, set its Expansion property to *Flexible* (the middle icon) and assi
8585

8686
![test-expansion.avif](imgs/test-expansion.avif)
8787

88-
I encourage you to test with different web dimensions and sizes to see how well this adapts.
88+
We encourage you to test with different web dimensions and sizes to see how well this adapts.
8989

9090
Depending on your design needs, there are various approaches to managing space. Let's consider a different scenario: What if we want the searchBar to always occupy 40% of the screen width, with `Row 2` taking up the remaining space after placing the `searchBar` and `search IconButton`?
9191

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
---
2+
slug: /concepts/layouts/flex
3+
title: Flex
4+
description: Learn how to add the Flex widget in your FlutterFlow app.
5+
tags: [Flex, Widget, Concepts]
6+
sidebar_position: 2
7+
keywords: [FlutterFlow, Wrap, Concepts]
8+
---
9+
10+
# Flex
11+
12+
The **Flex** widget can be used as an alternative to **Row** and **Column**. It allows you to dynamically set the layout axis (horizontal or vertical) based on specific conditions or logic. This is especially useful for creative responsive layouts - where child elements should be horizontal when the screen is wide, and vertical when the screen is narrow.
13+
14+
![flex.png](imgs/flex.png)
15+
16+
17+
18+
## Adding Flex Widget
19+
20+
To use the Flex widget, add it from the **Layout Elements** section of the **Widget Palette**, then add child widgets inside it. From the properties panel, set a condition for the **Is Horizontal** property. When this condition evaluates to `True`, the items will be laid out horizontally.
21+
22+
Consider an ecommerce app where recent orders are displayed vertically on mobile devices and switch to a horizontal layout on larger screens to make better use of the available space.
23+
24+
<div style={{
25+
position: 'relative',
26+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
27+
height: 0,
28+
width: '100%'}}>
29+
<iframe
30+
src="https://demo.arcade.software/3zWIgGDDec21fNIeCVOU?embed&show_copy_link=true"
31+
title=""
32+
style={{
33+
position: 'absolute',
34+
top: 0,
35+
left: 0,
36+
width: '100%',
37+
height: '100%',
38+
colorScheme: 'light'
39+
}}
40+
frameborder="0"
41+
loading="lazy"
42+
webkitAllowFullScreen
43+
mozAllowFullScreen
44+
allowFullScreen
45+
allow="clipboard-write">
46+
</iframe>
47+
</div>
48+
<p></p>
49+
50+
Here's another example of using a Flex widget on a create account page to dynamically align the signup fields based on screen size.
51+
52+
<div style={{
53+
position: 'relative',
54+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
55+
height: 0,
56+
width: '100%'}}>
57+
<iframe
58+
src="https://demo.arcade.software/HPk574WhIatWbJBdlxtf?embed&show_copy_link=true"
59+
title=""
60+
style={{
61+
position: 'absolute',
62+
top: 0,
63+
left: 0,
64+
width: '100%',
65+
height: '100%',
66+
colorScheme: 'light'
67+
}}
68+
frameborder="0"
69+
loading="lazy"
70+
webkitAllowFullScreen
71+
mozAllowFullScreen
72+
allowFullScreen
73+
allow="clipboard-write">
74+
</iframe>
75+
</div>
76+
<p></p>
77+
78+
:::tip[Best Practices]
79+
80+
- If you only need a simple vertical or horizontal arrangement, consider using [**Row**](../../../resources/ui/widgets/composing-widgets/rows-column-stack.md) or [**Column**](../../../resources/ui/widgets/composing-widgets/rows-column-stack.md).
81+
- For very large numbers of children, consider using [**ListView**](../../../resources/ui/widgets/composing-widgets/list-grid.md#listview-widget) or [**GridView**](../../../resources/ui/widgets/composing-widgets/list-grid.md#gridview-widget) instead of **Flex**, as they offer better performance for scrolling large lists of items.
82+
- When the content exceeds the screen limit, you can enable scrolling to make the content accessible. However, if you want to avoid scrolling altogether and still fit all the content on the screen, consider using a [**Wrap**](wrap-widget.md) widget.
83+
84+
:::
85+
86+
## Customization
87+
88+
When **Is Horizontal** property is disabled, the Flex widget behaves like a Column, and when enabled, it acts as a Row. Settings like [main axis alignment](../../../resources/ui/widgets/composing-widgets/rows-column-stack.md#main-axis), [cross axis alignment](../../../resources/ui/widgets/composing-widgets/rows-column-stack.md#cross-axis), [scrollability](../../../resources/ui/widgets/composing-widgets/rows-column-stack.md#scrollability), and [spacing](../../../resources/ui/widgets/composing-widgets/rows-column-stack.md#spacing) work the same way they do for the Column and Row widgets.
89+
90+
49.2 KB
Loading

docs/resources/data-representation/app-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ How this app state update will affect your app.
8383
- **No Rebuild:** No rebuild is required.
8484

8585
:::tip[Generated Code]
86-
Curious about how state changes are handled internally when you choose different **Update Type** options? Explore the detailed [**FFAppState**](../../generated-code/ff-app-state) guide.
86+
Curious about how state changes are handled internally when you choose different **Update Type** options? Explore the detailed [**FFAppState**](../../generated-code/ff-app-state.md) guide.
8787
:::
8888

8989
Here's a quick guide to updating the app state variable. We need to add an action to the 'Add to Bag' button. Within this action, we'll provide the product details and configure it to add to the current cart list.

docs/resources/projects/libraries.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ With Libraries, you can publish the complete FlutterFlow project as a library an
3737

3838
## Publishing a Library
3939

40+
To make the resources in your project available for others to use, publish your project as Library.
41+
42+
When you publish your project as a Library, your project will become a **Library Project**, and [certain features](#disabled-features-in-a-library) will no longer be available.
43+
44+
:::note
45+
When you publish your project as Library, it can not be reverted. If you want to restore your project so that it is no longer a Library, you can clone the project. However, things like your deployment and Firestore settings will be cleared. If you want to preserve the state of your project before turning it into a Library, you should clone it first and then publish.
46+
:::
47+
4048
To publish a FlutterFlow project as a library, start by creating a FlutterFlow project as you normally would, then follow these steps:
4149

4250
<div style={{
@@ -78,7 +86,7 @@ When a project is converted into a library, the following features are disabled
7886

7987
- App settings
8088
- Firebase
81-
- Development environment
89+
- Development environments
8290
- Authentication
8391
- Push notifications
8492
- Mobile deployment

docs/testing-deployment-publishing/development-environments/development-environments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Additionally, you must manually set up [**Firestore rules**](../../ff-integratio
119119
The data that you add to Firebase through the Content Manager is specific to the Firebase project, and environment, that you have selected.
120120
:::
121121

122-
#### Comnfiguring Supabase
122+
#### Configuring Supabase
123123
If your project uses Supabase, you'll need to [**set up a new Supabase project**](../../ff-integrations/supabase/supabase-setup.md) for each environment.
124124

125125
Create environment-specific values like `SupabaseAPIURL` and `SupabaseAnonKey`, and then configure the Supabase properties to point to these newly created values. Below is an example of how it would look like.

0 commit comments

Comments
 (0)