Skip to content

Commit 9c4733a

Browse files
authored
Merge pull request #123 from FlutterFlow/pooja/devr-598
Fix widget hierarchy & add more content to Variables
2 parents 9042b56 + 526d275 commit 9c4733a

File tree

89 files changed

+944
-389
lines changed

Some content is hidden

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

89 files changed

+944
-389
lines changed

docs/ff-concepts/adding-customization/cloud-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ loading indicator during the logo creation process. Its value is set to *True* b
5959

6060
### 2. Build a page
6161

62-
Let's add a page that allows users to enter the prompt. To speed up, you can add a page from the template or use [AI Page Gen](../../resources/ui/pages/pages.md#create-an-ai-generated-page). Here is the page added using AI Page Gen, and after some modification, it looks the below:
62+
Let's add a page that allows users to enter the prompt. To speed up, you can add a page from the template or use [AI Page Gen](../../resources/ui/pages/intro-pages.md#create-an-ai-generated-page). Here is the page added using AI Page Gen, and after some modification, it looks the below:
6363

6464
Also, see how to [build a page layout](../../ff-concepts/layout/building-layout.md) if you want to build a page from scratch.
6565

docs/ff-concepts/alerts-notification/alert-dialog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ We allow you to define two types of Alert Dialog Actions:
4242

4343
- **Informational Dialog:** To show some information the user should be aware of before interacting with the app. Contains only a single action button.
4444
- **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.
45-
- **Custom Dialog**: This is a fully customizable dialog that you can create using [components](../../resources/ui/components/overview.md).
45+
- **Custom Dialog**: This is a fully customizable dialog that you can create using [components](../../resources/ui/components/intro-components.md).
4646

4747
### Adding Informational Dialog [Action]
4848

@@ -126,7 +126,7 @@ Follow the steps below to add this type of action to any widget:
126126

127127
### Adding Custom Dialog [Action]
128128

129-
Before you add this action, ensure you [create a component](../../resources/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:
129+
Before you add this action, ensure you [create a component](../../resources/ui/components/creating-components.md) that you want to display as a custom dialog. Now follow the steps below to add this type of action to any widget:
130130

131131
1. Select the **Widget** (e.g., Button) on which you want to add the action.
132132
2. Select **Actions** from the Properties panel (the right menu), and click **+ Add Action**.

docs/ff-concepts/file-handling/audio/audio-player.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ To change the title text style:
182182

183183
1. Select the **AudioPlayer** widget from the widget tree or the canvas area.
184184
2. Move to the properties panel (on the right side of your screen) and scroll down to the **Title Text Style** section.
185-
3. Find the **Theme Text Style** property and change the style as per instructions [here](../../../resources/ui/widgets/built-in-widgets/text.md#common-text-styling-properties).
185+
3. Find the **Theme Text Style** property and change the style as per instructions [here](../../../resources/ui/widgets/basic-widgets/text.md#common-text-styling-properties).
186186

187187

188188
### Styling playback duration text
@@ -191,4 +191,4 @@ To change the playback duration text style:
191191

192192
1. Select the **AudioPlayer** widget from the widget tree or the canvas area.
193193
2. Move to the properties panel (on the right side of your screen) and scroll down to the **Playback Duration Text Style** section.
194-
3. Find the **Theme Text Style** property and change the style as per instructions [here](../../../resources/ui/widgets/built-in-widgets/text.md#common-text-styling-properties).
194+
3. Find the **Theme Text Style** property and change the style as per instructions [here](../../../resources/ui/widgets/basic-widgets/text.md#common-text-styling-properties).

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ keywords: [FlutterFlow, Building Layout, Concepts]
99

1010
# Building Layout
1111

12-
In FlutterFlow, you build a page layout using Widgets. **Widgets**, such as [Text](../../resources/ui/widgets/built-in-widgets/text.md), [Buttons](../../resources/ui/widgets/built-in-widgets/button.md), [Images](../../resources/ui/widgets/built-in-widgets/image.md), and [Icons](../../resources/ui/widgets/built-in-widgets/icons.md), are visible on the screen. Others, like [Containers](../../resources/ui/widgets/built-in-widgets/container.md), Rows, Columns, and Stacks, are not directly visible but help arrange and position the visible elements on the page.
12+
In FlutterFlow, you build a page layout using Widgets. **Widgets**, such as [Text](../../resources/ui/widgets/basic-widgets/text.md), [Buttons](../../resources/ui/widgets/basic-widgets/button.md), [Images](../../resources/ui/widgets/basic-widgets/image.md), and [Icons](../../resources/ui/widgets/basic-widgets/icons.md), are visible on the screen. Others, like [Containers](../../resources/ui/widgets/basic-widgets/container.md), Rows, Columns, and Stacks, are not directly visible but help arrange and position the visible elements on the page.
1313

1414
These widgets are categorized into four main types: [Layout Elements](/tags/layout-elements), [Base Elements](/tags/base-elements),
1515
[Page Elements](/tags/page-elements), and [Form Elements](/tags/form-elements). To build a page, you combine different widgets from these categories to get the desired look and feel of your app.
1616

17-
## Understanding layout concept
17+
## Understanding Layout Concept
1818

1919
One of the most common layout patterns is to arrange widgets either **vertically** or **horizontally**. To display widgets in a vertical layout, use the **Column** widget. For a horizontal layout, use the **Row** widget. If you need to place one widget on top of another, use the **Stack** widget.
2020

2121
:::info
22-
**Composing widgets** is a fundamental aspect of creating layouts in FlutterFlow. It involves combining different widgets to form a cohesive and functional user interface. Understanding how to effectively compose widgets allows you to design complex layouts and create intuitive, user-friendly apps. Learn more about composing widgets [**here**](../../resources/ui/widgets/composing-widgets.md).
22+
**Composing widgets** is a fundamental aspect of creating layouts in FlutterFlow. It involves combining different widgets to form a cohesive and functional user interface. Understanding how to effectively compose widgets allows you to design complex layouts and create intuitive, user-friendly apps. Learn more about composing widgets [**here**](../../resources/ui/widgets/composing-widgets/rows-column-stack.md).
2323

2424
:::
2525

26-
## Putting layout concept into practice
26+
## Building Layouts: Exercise
2727

2828
Let's walk through an exercise to build the following layout:
2929

@@ -36,7 +36,7 @@ The steps to build the given layout are as follows:
3636
3. [Add info section](#3-add-info-section)
3737
4. [Add reviews section](#4-add-reviews-section)
3838

39-
### 1. Sketch the layout
39+
#### 1. Sketch the layout
4040

4141
When you are just starting out with building apps, this step is very crucial. Before you actually start adding widgets to the page, sketch a picture of how the main layout will be broken into smaller parts.
4242

@@ -61,7 +61,7 @@ A page can only have one parent widget. i.e., you can't have two containers (at
6161

6262
:::
6363

64-
### 2. Add Image section
64+
#### 2. Add Image section
6565

6666
The top section includes the Image and IconButton widgets. To place the IconButton on top of the Image, wrap them inside a Stack widget. Here's how you do it:
6767

@@ -91,7 +91,7 @@ The top section includes the Image and IconButton widgets. To place the IconButt
9191
</div>
9292
<p></p>
9393

94-
### 3. Add info section
94+
#### 3. Add info section
9595

9696
The info section consists of a few Text widgets inside the Column.
9797

@@ -121,7 +121,7 @@ The info section consists of a few Text widgets inside the Column.
121121
</div>
122122
<p></p>
123123

124-
### 4. Add reviews section
124+
#### 4. Add reviews section
125125

126126
The review section consists of multiple different widgets. First, add a Column to separate the reviewer's information (image and name) from the actual review text. Next, display the reviewer's information inside a Row widget using the CircleImage and Text widgets. Here’s exactly how you do it:
127127

@@ -151,21 +151,21 @@ The review section consists of multiple different widgets. First, add a Column t
151151
</div>
152152
<p></p>
153153

154-
## Common layout widget
154+
## Common Layout Widgets
155155

156156
Apart from Row, Column, and Stack widgets, there are some other widgets that are widely used for building the page layout. Here are some of them:
157157

158-
- [Container](../../resources/ui/widgets/built-in-widgets/container.md)
158+
- [Container](../../resources/ui/widgets/basic-widgets/container.md)
159159
- [Card](../../resources/ui/widgets/built-in-widgets/card.md)
160-
- [ListView](../../resources/ui/widgets/built-in-widgets/list-grid.md)
161-
- [GridView](../../resources/ui/widgets/built-in-widgets/list-grid.md)
160+
- [ListView](../../resources/ui/widgets/composing-widgets/list-grid.md)
161+
- [GridView](../../resources/ui/widgets/composing-widgets/list-grid.md)
162162
- [TabBar](../../ff-concepts/navigation-routing/special-page-navigation/tabbar-widget.md)
163163
- [PageView](../../ff-concepts/navigation-routing/special-page-navigation/pageview-widget.md)
164164
- [Form](../../resources/control-flow/user-interactivity/forms/forms.md)
165165

166166
## Video guides
167167

168-
To learn more about the layout, watch our videos:
168+
To learn more about building layout, watch our videos:
169169

170170
<div style={{
171171
position: 'relative',

docs/ff-concepts/layout/responsive-widgets/wrap-widget.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The Wrap widget is similar to Row and Column as it shows its children one after
1515

1616
Here's an example of how you can use a Wrap widget in your project:
1717

18-
1. First, drag the [**Container**](../../../resources/ui/widgets/built-in-widgets/container.md) widget from the **Layout Elements** tab (in the Widget Panel) or add it directly from the widget tree and set its **width** to **infinity** and **height** to **200**.
18+
1. First, drag the [**Container**](../../../resources/ui/widgets/basic-widgets/container.md) widget from the **Layout Elements** tab (in the Widget Panel) or add it directly from the widget tree and set its **width** to **infinity** and **height** to **200**.
1919

2020
2. Add the **Wrap** widget from the **Layout Elements** tab inside the Container.
2121
3. Add the **Button** widget inside the Wrap widget.

docs/ff-concepts/localization-accessibility/add-multiple-languages.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ You can skip this step if you have already built your page.
139139
To build a page:
140140

141141
1. Create a page and add the Column widget.
142-
3. Add a [**Text**](../../resources/ui/widgets/built-in-widgets/text.md) Widget that shows some texts.
143-
4. Add a [**Button**](../../resources/ui/widgets/built-in-widgets/button.md) to change the language and add some padding around it.
142+
3. Add a [**Text**](../../resources/ui/widgets/basic-widgets/text.md) Widget that shows some texts.
143+
4. Add a [**Button**](../../resources/ui/widgets/basic-widgets/button.md) to change the language and add some padding around it.
144144

145145
<div style={{
146146
position: 'relative',
@@ -427,12 +427,12 @@ Let's build an example of showing the current language code in a Text widget.
427427

428428
To retrieve the current language code:
429429

430-
1. Add the **Column > [Text](../../resources/ui/widgets/built-in-widgets/text.md)** widget to your app.
430+
1. Add the **Column > [Text](../../resources/ui/widgets/basic-widgets/text.md)** widget to your app.
431431
2. Move to the property panel and click on the **Set from Variable** text.
432432
3. Select **Source** as **Internationalization** and **Available Options** as the **Current Language Code**.
433433
4. (Optional) Set the *Default Variable Value* if you wish to.
434434
5. Click **Confirm**.
435-
6. Add [**Button**](../../resources/ui/widgets/built-in-widgets/button.md) widgets with an action to change the language. To change the language manually, find the instructions [here](#changing-app-language-manually).
435+
6. Add [**Button**](../../resources/ui/widgets/basic-widgets/button.md) widgets with an action to change the language. To change the language manually, find the instructions [here](#changing-app-language-manually).
436436

437437
<div style={{
438438
position: 'relative',
@@ -494,14 +494,14 @@ Let's build an example of showing the nation/country flag in a Text widget.
494494

495495
To show the language-dependent text:
496496

497-
1. Add the **Column > [Text](../../resources/ui/widgets/built-in-widgets/text.md)** widget to your app.
497+
1. Add the **Column > [Text](../../resources/ui/widgets/basic-widgets/text.md)** widget to your app.
498498
2. Move to the property panel and click on the **Set from Variable** text.
499499
3. Select **Source** as **Internationalization** and **Available Options** as the **Language Dependent Text**.
500500
4. Click on the language name to open the section and enter your text inside the **Value** input box.
501501
5. Similarly, enter a value for other languages as well.
502502
6. (Optional) Set the default value if you wish to.
503503
7. Click **Confirm**.
504-
8. Add [**Button**](../../resources/ui/widgets/built-in-widgets/button.md) widgets with an action to change the language. To change the language manually, find the instructions [here](#changing-app-language-manually).
504+
8. Add [**Button**](../../resources/ui/widgets/basic-widgets/button.md) widgets with an action to change the language. To change the language manually, find the instructions [here](#changing-app-language-manually).
505505

506506
<div style={{
507507
position: 'relative',

docs/ff-concepts/localization-accessibility/language-selector.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ To add LanguageSelector to your project:
4646
1. Make sure you have added multi-language support to your app. If you haven't already done so, find the instructions here.
4747
2. First, drag the **Column** widget from the **Layout Elements** tab (in the Widget Panel).
4848
3. Now, add the **LanguageSelector** widget (inside Column) by dragging it from the **Base Elements** tab or adding it directly from the widget tree. Align it in the center.
49-
4. Add the [**Text**](../../widgets/built-in-widgets/text.md) widget to show the text.
49+
4. Add the [**Text**](../../resources/ui/widgets/basic-widgets/text.md) widget to show the text.
5050
5. Translate the text by navigating to Settings and Integration -> General -> Languages -> App Content Translations -> Page Name -> Your Text.
5151
6. Find the language dropdown above the canvas and try changing it to other languages and see the translated text appear on the canvas.
5252

@@ -79,7 +79,7 @@ To add LanguageSelector to your project:
7979

8080
## Customization
8181

82-
You can customize the behavior of this widget using the various properties available under the [properties panel](../../../../intro/ff-ui/builder.md#navigation-menu).
82+
You can customize the behavior of this widget using the various properties available under the [Properties Panel](../../resources/ui/widgets/widget-properties.md).
8383

8484
### Customizing Flag
8585

docs/ff-concepts/navigation-routing/bottom-sheet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Below are the types of Bottom Sheet actions:
4747

4848
Follow the steps below to add an action that opens the bottom sheet:
4949

50-
1. First, create a bottom sheet [component](../../resources/ui/components/overview.md).
50+
1. First, create a bottom sheet [component](../../resources/ui/components/intro-components.md).
5151
:::tip
52-
You can also create one from the 'BottomSheet' [**templates**](../../resources/ui/components/custom-components/getting-started.md#creating-a-component-from-a-popular-template).
52+
You can also create one from the 'BottomSheet' [**templates**](../../resources/ui/components/creating-components.md#creating-a-component-from-a-popular-template).
5353
:::
5454

5555
<div style={{
@@ -88,7 +88,7 @@ You can also create one from the 'BottomSheet' [**templates**](../../resources/u
8888

8989
![Set Background and Barrier color](imgs/bottom-sheet-background-color.png)
9090

91-
9. You can also [pass parameters](../../resources/ui/components/custom-components/using-components.md#pass-down-values) to a bottom sheet component.
91+
9. You can also [pass parameters](../../resources/ui/components/using-components.md#pass-down-values) to a bottom sheet component.
9292
10. By default, this type of action blocks the following action (if any) from triggering while this action is in progress. (i.e., meaning the bottom sheet 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 bottom sheet. To do so, enable **Non Blocking** option.
9393
11. By default, **Non Dismissble** option closes the bottom sheet when you click outside of it. To disable this behavior, enable this option.
9494
12. With **Enable Drag** option, you can open and close the bottom sheet using a swipe gesture.

docs/ff-concepts/navigation-routing/special-page-navigation/pageview-widget.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To add the PageView widget to your app:
2222
2. By default, it adds three pages and shows the first one in the canvas. In the widget tree, it is represented as **PageView Page**. To see another page in the canvas, move to the **Properties Panel >** set the **Active Page** to the page you want to see.
2323
3. To add a new page, move to the **Properties Panel > Active Page >** click **+ Add Page**.
2424
4. To delete any page, select the **PageView Page** (which you want to delete) from the widget tree or the canvas area and press the **Delete** key on the keyboard.
25-
5. By default, PageView Page contains an [Image](../../../resources/ui/widgets/built-in-widgets/image.md) widget; however, you can customize it as per your requirement. For example, if you want to use the PageView widget to create an onboarding experience, you could wrap (`` + B) the default image widget inside the Stack widget and then add some more widgets.
25+
5. By default, PageView Page contains an [Image](../../../resources/ui/widgets/basic-widgets/image.md) widget; however, you can customize it as per your requirement. For example, if you want to use the PageView widget to create an onboarding experience, you could wrap (`` + B) the default image widget inside the Stack widget and then add some more widgets.
2626

2727
<div style={{
2828
position: 'relative',
@@ -55,7 +55,7 @@ The PageView widget is an incredibly versatile widget that can be utilized in a
5555

5656
In such situations, you might consider adding an infinite scroll on this widget, which automatically loads the new pages as you swipe.
5757

58-
We have already covered how to [add infinite scroll on ListView](../../../resources/ui/widgets/built-in-widgets/list-grid.md#adding-infinite-scroll) widget, which will give you an overall idea of how to add infinite scroll on the PageView widget as well.
58+
We have already covered how to [add infinite scroll on ListView](../../../resources/ui/widgets/composing-widgets/list-grid.md#adding-infinite-scroll) widget, which will give you an overall idea of how to add infinite scroll on the PageView widget as well.
5959

6060
## Customizing
6161

docs/ff-concepts/navigation-routing/special-page-navigation/tabbar-widget.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To add the TabBar widget to your app:
2424
3. To customize the Tab:
2525
1. Select the **Tab >** Move to **Properties Panel**.
2626
2. Use the **Text** property to change the label of the Tab.
27-
3. You can also [add Icon](../../../resources/ui/widgets/built-in-widgets/icons.md), align it horizontally, and set its margin. **Tip**: To only display Icon, remove the Text value.
27+
3. You can also [add Icon](../../../resources/ui/widgets/basic-widgets/icons.md), align it horizontally, and set its margin. **Tip**: To only display Icon, remove the Text value.
2828
4. Inside the **TabBar Page**, you can replace the existing **Text** widget with any widget of your choice.
2929
5. To add a new tab, move to the **Properties Panel > Active Page >** click **+ Add Page**.
3030

@@ -73,7 +73,7 @@ To customize the tab label:
7373
1. Select the **TabBar** widget > move to the **Properties Panel > Label Properties**.
7474
2. To set different colors when the tab is selected and unselected, use the **Selected Color** and **Unselected Color** properties.
7575
3. To add some space around the label, use the **Label Padding** property.
76-
4. Use the **Label Style** property to change its [styling](../../../resources/ui/widgets/built-in-widgets/text.md#common-text-styling-properties). You can also set the label styling for the unselected tab text by enabling the **Custom Unselected Label Style**.
76+
4. Use the **Label Style** property to change its [styling](../../../resources/ui/widgets/basic-widgets/text.md#common-text-styling-properties). You can also set the label styling for the unselected tab text by enabling the **Custom Unselected Label Style**.
7777

7878
<div style={{
7979
position: 'relative',

0 commit comments

Comments
 (0)