Skip to content

Commit 6009bbb

Browse files
Apply suggestions from code review
Fixes from code suggestions Co-authored-by: pinkeshmars <[email protected]>
1 parent 17f396b commit 6009bbb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ Most custom FlutterFlow classes are prefixed with `FF<ClassName>` or `FlutterFlo
1717

1818
![suggestions-dropdown.png](imgs/suggestions-dropdown.png)
1919

20-
### Returning Component from Custom Widget
20+
### Leveraging Component from Custom Widget
2121

2222
In a **[Custom Widget](custom-widgets.md)**, you can integrate a previously built **[FlutterFlow Component](../../resources/ui/components/intro-components.md)** directly, saving you from recreating child content in code. For example, if you’re building a Custom Widget to display custom dialog boxes or bottom sheets using a package from
23-
[pub.dev](custom-code.md#pubdev), you can simply return an existing Component created on the canvas, rather than coding the content from scratch.
23+
[pub.dev](custom-code.md#pubdev), you can simply return an existing Component created on the canvas, rather than coding a new one from scratch.
2424

2525
:::tip[Imports]
2626
When referencing a Component class in your code, FlutterFlow will automatically add the necessary import statement.
@@ -114,7 +114,7 @@ Future enableDarkMode() async {
114114

115115
- **Modifying a List in AppState Using Helper Functions**
116116

117-
The `FFAppState` class offers a variety of helper functions to easily manage list variables in AppState. For a detailed overview of this generated class, check out **[this guide](../../generated-code/ff-app-state.md#managing-appstatelist)**. Here’s some examples of how to use these helper functions to modify an AppState list variable:
117+
The `FFAppState` class offers a variety of helper functions to easily manage list variables in AppState. For a detailed overview of this generated class, check out **[this guide](../../generated-code/ff-app-state.md#managing-appstatelist)**. Here are some examples of how to use these helper functions to modify an AppState list variable:
118118

119119
```js
120120
Future addLocation(LatLng value) async {
@@ -144,7 +144,7 @@ Future insertLocationAtIndex(int index, LatLng value) async {
144144
```
145145

146146

147-
### Manipulate Custom Data Types
147+
### Leverage Custom Data Types
148148
When you create a custom data type in FlutterFlow, it **[generates a corresponding `<Name>Struct` class](../../generated-code/custom-data-type-gen.md)**. In FlutterFlow's custom code, you can create new instances of such data types, pass instances back into an action, or manipulate and retrieve information from existing objects. Here are some examples to help illustrate working with an example `ProductStruct` class.
149149

150150
#### Example 1: Creating a new Instance of `ProductStruct`
@@ -242,7 +242,7 @@ Future addNewReviews(ProductStruct product) {
242242
}
243243
```
244244
245-
or if the new list of reviews are being provided to the Custom Action, then:
245+
or if the new list of reviews is being provided to the Custom Action, then:
246246
247247
```js
248248
Future addDynamicReviews(ProductStruct product, List<ReviewStruct> newReviews) {

0 commit comments

Comments
 (0)