Skip to content

Commit 1536c98

Browse files
Apply suggestions from code review
Co-authored-by: Pooja Bhaumik <[email protected]>
1 parent 30c9540 commit 1536c98

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

@@ -57,7 +57,7 @@ Here’s an example of adding a Review custom class:
5757
</div>
5858
<p></p>
5959

60-
## Create Class Instance
60+
## Create Custom Class Instance
6161

6262
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:
6363

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

135135
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.
136136

137-
### Data Types
137+
### Custom Class as Data Type
138138

139139
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).
140140

0 commit comments

Comments
 (0)