Skip to content

Commit d106a3e

Browse files
committed
Merge branch 'feature/custom-classes' of https://github.com/FlutterFlow/flutterflow-documentation into feature/custom-classes
2 parents 6520f26 + 1536c98 commit d106a3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/ff-concepts/adding-customization/code-file.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ FlutterFlow allows you to add your own custom Dart files with [classes](https://
2525

2626
:::
2727

28-
## Add Custom Class
28+
## Create Custom Class
2929

3030
To add a custom class, go to the **Custom Code** from the left navigation menu, click **plus (+)** button, and select **Code File**. Set the name of the file, add your code, and hit the **Save** button. Now, you must **validate** your code in the editor to catch basic syntax errors. If there are no errors, click the **Parse** button. FlutterFlow will scan your code and automatically detect supported classes and enums.
3131

@@ -115,7 +115,7 @@ class Review {
115115
}
116116
```
117117

118-
## Create Class Instance
118+
## Create Custom Class Instance
119119

120120
You need to create an instance of a class so you can work with actual data and use the class’s properties and methods in your app. Here’s a simple explanation:
121121

@@ -192,7 +192,7 @@ In such cases, you can directly access the class data and methods via the **Set
192192

193193
Once the custom class is added successfully, you can access its fields and methods in the Variable Dialog, call its methods in the Action Flow Editor, assign instances to state variables, pass them to page or component parameters, and use enum values in dropdowns or conditionals.
194194

195-
### Data Types
195+
### Custom Class as Data Type
196196

197197
You can select your custom class as a Type for variables, state, or parameters, just like a [Custom Data Type](../../resources/data-representation/custom-data-types.md).
198198

0 commit comments

Comments
 (0)