Skip to content

Commit 5ad0c34

Browse files
committed
Rewrite and correct widget hierarchy
1 parent 8221378 commit 5ad0c34

34 files changed

+336
-268
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"label": "Built-in Components",
3-
"position": 3
3+
"position": 4
44
}

docs/resources/ui/components/built-in-components/badge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ To change the badge text style:
100100
1. Select the **Badge** widget from the widget or the canvas area.
101101
2. Move to the properties panel (on the right side of your screen), and scroll down to the **Badge Properties** section.
102102
3. Find the **Theme Text Style** property and change the style as per instructions
103-
[here](../../widgets/built-in-widgets/text.md).
103+
[here](../../widgets/basic-widgets/text.md).
104104

105105
### Show/hide badge
106106

docs/resources/ui/components/built-in-components/chart/chart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ You can change the appearance of the legend box by following the instructions be
113113
To customize the legend text and indicator:
114114

115115
1. First, [enable the legend](#showing-legend).
116-
2. To style the legend text, scroll down to the **Legend Properties** > **Legend Text Properties** and change the style as per [here](../../../../../resources/ui/widgets/built-in-widgets/text.md#common-text-styling-properties).
116+
2. To style the legend text, scroll down to the **Legend Properties** > **Legend Text Properties** and change the style as per [here](../../../widgets/basic-widgets/text.md#common-text-styling-properties).
117117
3. To add space between the indicator and the text, adjust the **Text Padding** property.
118118
4. You can change the indicator size by entering a value inside the **Indicator Size** property.
119119
5. To create rounded corners around the indicator, you can use the **Indicator Border Radius** property.

docs/resources/ui/components/built-in-components/draggable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The DragTarget widget in this example allows users to drop items onto the shelf.
6969
Let's see how to add DragTarget widget:
7070

7171
1. Open the [Widget Palette](../../../../intro/ff-ui/widget-palette.md) and locate the **DragTarget** widget under the **Base Elements** tab. You can drag it into your desired location or add it directly from the widget tree.
72-
2. Inside the **DragTarget** widget, add a [**Container**](../../widgets/built-in-widgets/container.md) widget, preferably of the same size as the image, and set its background color to transparent. This will serve as the drop zone for draggable items.
72+
2. Inside the **DragTarget** widget, add a [**Container**](../../widgets/basic-widgets/container.md) widget, preferably of the same size as the image, and set its background color to transparent. This will serve as the drop zone for draggable items.
7373
3. Now, you need to specify the type of data this target will receive. To do so select the **DragTarget widget > Properties Panel > Draggable Properties >** specify the **Type** of the data. This is crucial for ensuring that only the correct items can be dropped on the target.
7474

7575
<div class="video-container"><iframe src="https://www.loom.

docs/resources/ui/components/built-in-components/media-display.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: Learn how to add MediaDisplay widget in your FlutterFlow app.
88
# MediaDisplay
99
The **MediaDisplay** widget in FlutterFlow automatically detects the type of media fetched from a URL and adjusts the widget accordingly. For instance, if the URL returns an image, the widget will behave as an Image widget.
1010

11-
This versatility allows you to easily present various types of media within your app. For example, it can be integrated into scrollable widgets like [ListView](../../widgets/built-in-widgets/list-grid.md#listview-widget) for displaying activity feeds or [GridView](../../widgets/built-in-widgets/list-grid.md#gridview-widget) for presenting photos and videos together.
11+
This versatility allows you to easily present various types of media within your app. For example, it can be integrated into scrollable widgets like [ListView](../../widgets/composing-widgets/list-grid.md#listview-widget) for displaying activity feeds or [GridView](../../widgets/composing-widgets/list-grid.md#gridview-widget) for presenting photos and videos together.
1212

1313
## Adding MediaDisplay widget
1414

@@ -106,7 +106,7 @@ You can customize the appearance and behavior of the widget using the various pr
106106

107107
### Customizing Image
108108

109-
To customize the widget when image is displayed, refer [here](../../widgets/built-in-widgets/image.md#common-image-properties).
109+
To customize the widget when image is displayed, refer [here](../../widgets/basic-widgets/image.md#common-image-properties).
110110

111111
### Customizing Video
112112

docs/resources/ui/components/custom-components/component-lifecycle.md renamed to docs/resources/ui/components/component-lifecycle.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ a Page or a Component.
4848
specific events or user interactions within an application. FlutterFlow provides
4949
developers with a way to define logic that responds to various events, such as
5050
button clicks, page loads, form submissions, or data changes.
51-
To learn more, head over to [**Action Flow Editor**](../../../../resources/control-flow/functions/action-flow-editor.md) section.
51+
To learn more, head over to [**Action Flow Editor**](../../control-flow/functions/action-flow-editor.md) section.
5252
:::
5353

5454
As you open the Action Flow Editor for your Component, you can see the `On Initialization`
@@ -70,7 +70,7 @@ created.
7070

7171
:::note[STATE VARIABLES]
7272
A state variable holds information or data about your UI at any given moment. To learn more
73-
about **states and state management, [refer here.](../../../../ff-concepts/state-management/state-variables.md)**
73+
about **states and state management, [refer here.](../../../ff-concepts/state-management/state-variables.md)**
7474
:::
7575

7676
**Component state** refers to the information that a component tracks about its current condition or
@@ -149,7 +149,7 @@ Now, let's apply these concepts to the `isFavourite` variable in the context of
149149
(true or false) and never be null.
150150

151151
:::note
152-
You can set the **Data Type** of your Component State variable to any primitive data types such as **String, Integer, Boolean, Double** or to any other complex built-in data types such as **Enum, Custom Data Type, Document,** etc. To learn more about the available data types, refer the [**Data Representation Section**](../../../data-representation/overview.md).
152+
You can set the **Data Type** of your Component State variable to any primitive data types such as **String, Integer, Boolean, Double** or to any other complex built-in data types such as **Enum, Custom Data Type, Document,** etc. To learn more about the available data types, refer the [**Data Representation Section**](../../data-representation/overview.md).
153153
:::
154154

155155
### Get Component State Value

docs/resources/ui/components/custom-components/getting-started.md renamed to docs/resources/ui/components/creating-components.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ keywords: [Custom Components]
66
tags: [Components]
77
---
88

9-
# Custom Components
9+
# Components
1010

1111
Custom Components or just user-defined Components in FlutterFlow are custom widgets you create to meet specific needs in your app. These components can be designed using FlutterFlow's drag-and-drop interface, allowing you to
1212
create reusable UI elements. This approach ensures consistency, saves
@@ -148,14 +148,14 @@ your components.
148148

149149
Here’s a detailed look at what you can typically find and modify in this panel:
150150

151-
![components-configurations.png](../../imgs/components-configurations.png)
151+
![components-configurations.png](../imgs/components-configurations.png)
152152

153153
### Component Parameters
154154

155155
In FlutterFlow, component parameters are values passed down from a parent entity like a page or another component. These parameters make the component adaptable and dynamic, adjusting to the context in which it is used.
156156

157157
:::info
158-
Learn [**how to add a component to an entity,**](using-components) such as a page or another
158+
Learn [**how to add a component to an entity,**](using-components.md) such as a page or another
159159
component, and how to pass parameters.
160160
:::
161161

@@ -167,7 +167,7 @@ the page using the current component.
167167

168168
Adding an action to a component element is exactly the same experience as adding actions to any page elements. Here's a quick overview:
169169

170-
![component-actions.png](../../imgs/component-actions.png)
170+
![component-actions.png](../imgs/component-actions.png)
171171

172172
For component actions, you can establish specific behaviors or functions that are triggered by
173173
certain events related to the component's lifecycle, such as **On Initialization**.

docs/resources/ui/components/custom-components/_category_.json

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

docs/resources/ui/components/overview.md renamed to docs/resources/ui/components/intro-components.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
2-
title: Overview
2+
title: Introduction to Components
33
sidebar_position: 0
4+
slug: /resources/ui/components
45
---
56

67
# Components
78

8-
Components in FlutterFlow are reusable elements. You design once and utilize throughout your app
9+
Components in FlutterFlow are reusable widgets. You design the widget once and utilize throughout your app
910
to save time, ensure consistency, and simplify maintenance.
1011

1112
Components help in the following ways:
@@ -47,11 +48,8 @@ Leveraging components effectively helps you build a consistent, efficient, and m
4748
out-of-the-box solutions provided by FlutterFlow that can be directly integrated into any project
4849
to offer specific functionalities.
4950

50-
- **[Custom Components](custom-components/getting-started.md)**: You can also build your own
51-
components by assembling
52-
multiple
53-
widgets using FlutterFlow’s drag-and-drop interface. This method involves strategically
54-
positioning atomic widgets such as `TextField`, `Button`s, or `Image`s, etc within the molecular
51+
- **[Custom Components](creating-components)**: You can also build your own
52+
components by assembling multiple widgets using FlutterFlow’s drag-and-drop interface. This method involves strategically positioning atomic widgets such as `TextField`, `Button`s, or `Image`s, etc within the molecular
5553
widgets like `Row`, `Column`, or `Stack` to create a combined widget that serve a specific
5654
function, like a `LoginComponent` or a `SearchBar`.
5755

docs/resources/ui/components/custom-components/using-components.md renamed to docs/resources/ui/components/using-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,6 @@ You can create a recursive component, meaning the component can include an insta
199199

200200
For example, in social media applications or forums, comments can have replies, and each reply can have further replies. A recursive component can display this nested structure effectively.
201201

202-
![recursive-comp.png](../../imgs/recursive-comp.png)
202+
![recursive-comp.png](../imgs/recursive-comp.png)
203203

204204

0 commit comments

Comments
 (0)