Skip to content

Commit 1e38dd2

Browse files
committed
fix language
1 parent 57f08f3 commit 1e38dd2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/ff-concepts/adding-customization/common-examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ Here’s a list of other Firebase Auth variables that can be referenced in Custo
348348
349349
### Get Dev Environment Values in Custom Code
350350
351-
Similar to the `FFLibraryValues` class, if you are using **[Dev Environments](../../testing-deployment-publishing/development-environments/development-environments.md)** in your FlutterFlow project, a new class called `FFDevEnvironmentValues` will be created. This class can also be accessed from custom code if needed. It is generated based on the environment selected by the user at the time of code generation.
351+
Similar to `FFAppState`, FlutterFlow generates a singleton `FFDevEnvironmentValues` class in your FlutterFlow generated codebase, if you are using **[Dev Environments](../../testing-deployment-publishing/development-environments/development-environments.md)**. This class can also be accessed from custom code if needed. It is generated based on the environment selected by the user at the time of code generation.
352352
353353
To access any Dev Environment values in custom code, simply use:
354354
@@ -365,7 +365,7 @@ When using a library dependency in your project, you can also access its compone
365365
366366
#### Get Library Values
367367
368-
Similar to `FFAppState`, FlutterFlow generates an abstract `FFLibraryValues` class for library projects, which provides direct access to **[Library Values](../../resources/projects/libraries.md#library-values)**.
368+
Similar to `FFAppState` or `FFDevEnvironmentValues` class, FlutterFlow generates a singleton `FFLibraryValues` class for library projects, which provides direct access to **[Library Values](../../resources/projects/libraries.md#library-values)**.
369369
370370
To access Library Values directly in custom code:
371371
@@ -397,7 +397,7 @@ int getRandomIndex(List<int> indexList) {
397397
}
398398
```
399399
400-
#### Manually add Library Imports
400+
#### Manually Add Library Imports
401401
If the library import doesn’t appear in your project automatically, you can manually add it and assign a custom alias. For example, to import a library’s custom actions into your project’s Custom Widget resource, add the import yourself as shown below:
402402
403403
For example, let's import the library's custom actions into the user project's Custom Widget resource.

docs/testing-deployment-publishing/development-environments/development-environments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ You may also encounter different project errors depending on the selected enviro
104104
In the generated code, FlutterFlow creates two files:
105105

106106
- `environment.json` – Stores the environment values defined by the user in FlutterFlow.
107-
- `FFDevEnvironmentValues` class – A singleton class that holds a single instance of the `FFDevEnvironmentValues` object. It includes initialization logic and getters for accessing these environment values. They can also be referenced in your custom code resources. See **[Common Custom Code Examples](../../ff-concepts/adding-customization/common-examples.md)**.
107+
- `FFDevEnvironmentValues` class – A singleton class that holds a single instance of the `FFDevEnvironmentValues` object. It includes initialization logic and getters for accessing these environment values. They can also be referenced in your custom code resources. See **[Common Custom Code Examples](../../ff-concepts/adding-customization/common-examples.md#get-dev-environment-values-in-custom-code)**.
108108
:::
109109

110110
#### Private Environment Values

0 commit comments

Comments
 (0)