Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/ff-concepts/adding-customization/custom-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,22 @@ Here's an example of an Action that returns a _nullable_ integer.

![return-value-actions.png](imgs/return-value-actions.png)

## Description

You can add a [**Description**](../../intro/ff-ui/resource-hierarchy.md#resource-description) note on Custom Functions and Custom Actions to briefly explain their purpose, usage, or important details. This helps clarify what the function or action is intended for, making your project more understandable and maintainable—especially in libraries and collaborative environments.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--also gets added to the function code documentation (reflects in code editor too)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!


![adding-description-on-custom-function-action.avif](imgs/adding-description-on-custom-function-action.avif)

You can view these descriptions as tooltips by hovering over the green note icon when selecting a Custom Function or Custom Action.

![view-description-custom-function-and-custom-action](imgs/view-description-custom-function-and-custom-action.avif)

:::tip
In the generated code, descriptions are added as comments before the function definition, and they also appear in the custom code editor.

![description-in-custom-code](imgs/description-in-custom-code.avif)
:::

## Adding a Pubspec Dependency
To utilize community-built Flutter solutions in your FlutterFlow projects, you can add a "pubspec dependency". The **pubspec file** is the configuration file in Flutter projects that lists external packages or libraries, along with other project configurations.

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.