Skip to content

Commit 8b1c7cc

Browse files
committed
Minor fix
1 parent 2902212 commit 8b1c7cc

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

docs/ff-concepts/writing-custom-code/custom-files.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ By default, the file you want to edit is in 'read-only' mode. However, using our
1212
You can only add custom actions that have no arguments (including *BuildContext*).
1313
:::
1414

15-
## Edit *main.dart*
15+
## Edit `main.dart`
1616

17-
The *main.dart* is a critical file in your project, as it serves as the entry point for the application. This file contains the `main()` function, which is responsible for starting the application by running the code that builds the UI and initializes any other necessary components.
17+
The **main.dart** is a critical file in your project, as it serves as the entry point for the
18+
application. This file contains the `main()` function, which is responsible for starting the application by running the code that builds the UI and initializes any other necessary components.
1819

19-
You can edit the *main.dart* file to include anything in `main()` function that we don't yet support. For example, initializing third-party plugins or libraries and setting up system-level configurations, such as changing the status bar color or orientation.
20+
You can edit the **main.dart** file to include anything in `main()` function that we don't yet
21+
support. For example, initializing third-party plugins or libraries and setting up system-level configurations, such as changing the status bar color or orientation.
2022

21-
Let's see an example of how you can add a code in *main.dart* file to change the status bar color for the mobile app. Here's how it looks:
23+
Let's see an example of how you can add a code in **main.dart** file to change the status bar
24+
color for the mobile app. Here's how it looks:
2225

2326
<figure>
2427
![img_3.png](imgs%2Fimg_3.png)
@@ -27,7 +30,8 @@ Let's see an example of how you can add a code in *main.dart* file to change the
2730

2831
To do so, you can edit *main.dart* file by following the steps below:
2932

30-
2. Create a [custom action](/customizing-your-app/custom-functions/custom-actions#adding-custom-action) for the code you want to include in a *main.dart* file. For this example, here's code in a custom action named 'setStatusbarColor'.
33+
1. Create a [custom action](/customizing-your-app/custom-functions/custom-actions#adding-custom
34+
-action) for the code you want to include in a *main.dart* file. For this example, here's code in a custom action named 'setStatusbarColor'.
3135

3236
```dart
3337
// Automatic FlutterFlow imports

0 commit comments

Comments
 (0)