Skip to content

Commit 18a6035

Browse files
committed
updated content, improved formatting
1 parent 3da6634 commit 18a6035

14 files changed

+268
-273
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"label": "Migrate Widget"
2+
"label": "Widget"
33
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
keywords: ['widget', 'auto size', 'text widget']
3+
slug: /configure-text-widget-auto-size-behavior
4+
title: Configure Text Widget Auto Size Behavior
5+
---
6+
7+
# Configure Text Widget Auto Size Behavior
8+
9+
The `Auto Size` option allows the `Text` widget to automatically reduce its font size to fit within its parent widget. This guide outlines the expected behavior and conditions required for this feature to function correctly.
10+
11+
:::info[Prerequisites]
12+
- A `Text` widget has been added to the canvas.
13+
- The widget is placed inside a parent widget such as a `Container` or `Stack`.
14+
:::
15+
16+
## Configure Parent Widget Dimensions
17+
18+
To enable `Auto Size`, the `Text` widget must be inside a widget that has both defined width and height. Without these constraints, the font size cannot be adjusted automatically.
19+
20+
1. Select the `Text` widget.
21+
2. Check its parent widget.
22+
3. Ensure both width and height are explicitly defined.
23+
24+
Without defined dimensions, the `Auto Size` feature may not behave as expected.
25+
26+
**Behavior Scenarios:**
27+
28+
The following examples illustrate how `Auto Size` behaves under different container configurations:
29+
30+
- Container with width set to `infinity` and height set to `100px`, `Auto Size` disabled.
31+
The text may overflow beyond the container.
32+
33+
- Container with width set to `infinity` and height set to `100px`, `Auto Size` enabled.
34+
The font size adjusts to fit the defined height.
35+
36+
- Container with width set to `30%` and no height defined, `Auto Size` enabled.
37+
The feature has no visible effect due to missing height constraint.
38+
39+
- Container with width set to `70%` and height set to `50px`, `Auto Size` enabled.
40+
The text is resized to the minimum allowed font size to remain within the container.
41+
42+
![](../assets/20250430121459696014.png)
43+
44+
:::tip
45+
Use `Auto Size` with percentage-based dimensions for better responsiveness. For example, set the container width to `30%` and enable `Auto Size` to allow the text size to adjust as the screen size changes.
46+
:::
47+
48+
:::note
49+
The `Auto Size` feature has a minimum font size threshold. If the container becomes too small, text may clip or overflow when resizing is no longer possible.
50+
:::
51+
52+
53+
:::info[Additional Resources]
54+
For more information, refer to the **[Text Widget Configuration Guide](/ui-builder/text-widget)**.
55+
:::

docs/troubleshooting/migrate-widget-issues/troubleshooting_custom_widgets.md renamed to docs/troubleshooting/migrate-widget-issues/custom_widget_errors.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
keywords: ['custom widget', 'widget errors', 'widget troubleshooting', 'flutterflow']
3-
slug: /troubleshooting-custom-widgets
4-
title: Troubleshooting Custom Widgets
3+
slug: /custom-widget-errors
4+
title: Custom Widget Errors
55
---
66

7-
# Troubleshooting Custom Widgets
7+
# Custom Widget Errors
88

99
This article demonstrates common errors and issues that may occur when creating a `Custom Widget` in FlutterFlow, along with steps to resolve them. In this example, an `Animated Text Widget` is used.
1010

@@ -14,18 +14,22 @@ This article demonstrates common errors and issues that may occur when creating
1414

1515
**Run Mode URL:** [Animated Kit Widget Run Mode](https://app.flutterflow.io/run/QP62FwanUTRs7O3HJzdo)
1616

17+
:::info[Prerequisites]
18+
- A custom widget has been added to your project.
19+
- Necessary packages have been added to **Custom Code > Packages**.
20+
:::
1721

1822
:::tip[Best Practices Before Creating a Custom Widget]
1923
- Set a unique name for the custom widget in the left panel `Side Widget` field.
2024
- Start with the boilerplate code template provided by FlutterFlow. Copy it and modify your code from there.
21-
:::
2225

2326
![](../assets/20250430121323364253.gif)
27+
:::
2428

2529

2630
**Common Errors and Solutions:**
2731

28-
1. **Widget Name Conflicts with Package Name**
32+
- **Widget Name Conflicts with Package Name**
2933

3034
One common issue is using a widget name that conflicts with the name of a package you have imported as a dependency.
3135

@@ -35,11 +39,13 @@ This article demonstrates common errors and issues that may occur when creating
3539

3640
Avoid using generic or conflicting names like `main` or `widget`. Always use unique widget names that do not overlap with any package names.
3741

38-
2. **Missing Package Imports in Code**
42+
- **Missing Package Imports in Code**
3943

4044
After adding an external package as a dependency, it is required to import the package at the top of your code. If you forget to do this, you may encounter errors such as:
4145

42-
"The method X isn't defined..."
46+
```js
47+
The method 'AnimatedText' isn't defined...
48+
```
4349

4450
![](../assets/20250430121324695186.png)
4551

@@ -48,26 +54,22 @@ This article demonstrates common errors and issues that may occur when creating
4854
- Visit the package page on **[pub.dev](https://pub.dev/)** and locate the import line in the package details section.
4955
- Copy and paste the correct import statement into your custom widget code.
5056

51-
Example:
52-
5357
![](../assets/20250430121324981835.png)
5458
![](../assets/20250430121325311155.png)
5559

5660

57-
3. **Missing Indirect Dependencies**
61+
- **Missing Indirect Dependencies**
5862

5963
Some packages may rely on additional external packages. Ensure that all required dependencies are also imported in your code.
6064

6165
![](../assets/20250430121325659677.png)
6266

63-
In this example, the package depends on another package named `silver_tools`, which must also be imported:
67+
In this example, the package depends on another package named `silver_tools`, which must also be imported. Always review the dependency chain for any external packages you add.
6468

6569
![](../assets/20250430121325972589.png)
6670

67-
Always review the dependency chain for any external packages you add.
68-
69-
70-
4. **Widget Name Mismatch Between UI and Code**
71+
72+
- **Widget Name Mismatch Between UI and Code**
7173

7274
If you forget to update the widget name in the boilerplate code, a mismatch may occur between the widget name defined in FlutterFlow and the class name in your code. This will lead to compilation errors.
7375

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
keywords: ['ios', 'emoji', 'text', 'size']
3+
slug: /emoji-size-on-ios-devices
4+
title: Emoji Size on iOS Devices
5+
---
6+
7+
# Emoji Size on iOS Devices
8+
9+
On iOS devices, emojis can appear oversized when rendered inside text widgets, disrupting the intended design and layout. This guide explains how to maintain consistent emoji sizing across all devices using container constraints and auto-sizing configuration.
10+
11+
:::info[Prerequisites]
12+
- You are using a `Text` widget that includes emojis.
13+
- You are targeting iOS devices as part of your app deployment.
14+
:::
15+
16+
## Steps to Maintain Consistent Emoji Size
17+
18+
1. **Wrap the Text Widget in a Container**
19+
Create a `Container` with fixed width and height (example `32x32 pixels`) to restrict the emoji size.
20+
21+
2. **Place the Emoji Inside a Text Widget**
22+
Add a `Text` widget containing the emoji and place it inside the container.
23+
24+
3. **Set a Font Size**
25+
Apply a specific font size to the `Text` widget (example, `16`, `24`, etc.).
26+
27+
4. **Enable Auto-Size**
28+
Turn on **Auto-Size** in the `Text` widget to allow responsive resizing within the fixed container.
29+
30+
![](../assets/20250430121253238523.png)
31+
32+
This ensures that the emoji will resize according to the container's constraints and not exceed the intended bounds.
33+
34+
:::tip
35+
Auto-sizing works best when paired with fixed dimensions. This combination allows the emoji to scale appropriately while avoiding oversized rendering.
36+
:::
37+
38+
![](../assets/20250430121252902305.png)
39+
40+
:::info
41+
For more context and support, refer to the **[official FlutterFlow guide on emoji rendering](https://intercom.help/flutterflow/en/articles/7044370-text-emoji-is-very-large-on-some-ios-devices)**.
42+
:::

docs/troubleshooting/migrate-widget-issues/getting_output_from_custom_widgets_using_app_state.md

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
keywords: ['listview', 'infinite scroll', 'pagination']
3+
slug: /infinite-scroll-pagination-in-listview
4+
title: Infinite Scroll Pagination in ListView
5+
---
6+
7+
# Infinite Scroll Pagination in ListView
8+
9+
If a `ListView` with **Infinite Scroll** enabled loads all items at once instead of paginating, the issue is typically related to layout configuration. This guide outlines how to correctly structure the widget for proper pagination behavior.
10+
11+
:::info[Prerequisites]
12+
- Infinite Scroll is enabled in the `ListView`.
13+
- The widget is placed inside a layout that allows height constraints to be respected.
14+
:::
15+
16+
Follow the steps below to configure listView for pagination:
17+
18+
1. **Ensure ListView Has a Defined Height**
19+
A `ListView` must have a height constraint to determine the viewport size and paginate correctly. Without a defined height, it will attempt to load all items.
20+
21+
2. **Let ListView Handle Its Own Scrolling**
22+
- Disable scrolling in any parent `Column` or scrollable container.
23+
- Enable the **Primary** option and wrap `ListView` in an `Expanded` widget.
24+
- This allows `ListView` to control scroll behavior and calculate items to load per page.
25+
26+
![](../assets/20250430121248035007.png)
27+
28+
3. **Wrap ListView Inside a Fixed-Height Container (if nested)**
29+
If `ListView` is inside a scrollable parent (like `Column` or `ListView`), wrap it in a `Container` with a defined height (e.g., `500px`). This ensures it doesn't expand indefinitely.
30+
31+
![](../assets/20250430121248379992.png)
32+
33+
4. **Avoid Missing Height Constraints**
34+
Without constraints, `ListView` will not know the visible size and will load all data at once, bypassing pagination.
35+
36+
:::warning
37+
Placing `ListView` directly inside a scrollable parent without a defined height will break Infinite Scroll behavior.
38+
:::
39+
40+
5. **Use Layout Structure That Supports Scroll Isolation**
41+
Allow `ListView` to scroll independently before the parent scroll takes over. Combine this with defined height and `Expanded` usage for best results.
42+
43+
![](../assets/20250430121249048672.gif)
44+
45+
:::tip
46+
To optimize pagination, define consistent item heights and test using varying screen sizes.
47+
:::
48+
49+
:::info[Additional Resources]
50+
- **[ListView Scroll Example Project](https://app.flutterflow.io/project/list-view-scroll-example-wdv076)** – View a working configuration example.
51+
:::

docs/troubleshooting/migrate-widget-issues/ios_emoji_size_issue_fix.md

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

docs/troubleshooting/migrate-widget-issues/listview_infinite_scroll_not_paginating.md

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

0 commit comments

Comments
 (0)