You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ff-concepts/adding-customization/common-examples.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -348,7 +348,7 @@ Here’s a list of other Firebase Auth variables that can be referenced in Custo
348
348
349
349
### Get Dev Environment Values in Custom Code
350
350
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.
352
352
353
353
To access any Dev Environment values in custom code, simply use:
354
354
@@ -365,7 +365,7 @@ When using a library dependency in your project, you can also access its compone
365
365
366
366
#### Get Library Values
367
367
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)**.
369
369
370
370
To access Library Values directly in custom code:
371
371
@@ -397,7 +397,7 @@ int getRandomIndex(List<int> indexList) {
397
397
}
398
398
```
399
399
400
-
#### Manually add Library Imports
400
+
#### Manually Add Library Imports
401
401
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:
402
402
403
403
For example, let's import the library's custom actions into the user project's Custom Widget resource.
Copy file name to clipboardExpand all lines: docs/testing-deployment-publishing/development-environments/development-environments.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ You may also encounter different project errors depending on the selected enviro
104
104
In the generated code, FlutterFlow creates two files:
105
105
106
106
-`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)**.
0 commit comments