Skip to content

Commit 2c4f7e9

Browse files
committed
add FFclass examples
1 parent 343c144 commit 2c4f7e9

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,26 @@ import '/auth/firebase_auth/auth_util.dart';
3737
:::
3838
### Accessing FlutterFlow Generated Classes
3939

40-
Most custom FlutterFlow classes in the generated code are prefixed with `FF<ClassName>` or `FlutterFlow<ClassName>`. If you need to access these classes in your custom code, simply type "FF" or "FlutterFlow" in the code editor to locate them easily.
40+
FlutterFlow generates a complete Flutter codebase for you as you build apps in its platform. Part of this code includes custom classes that are designed to streamline common tasks and encapsulate reusable properties or logic.
41+
42+
For example:
43+
44+
- **Button Widgets:** FlutterFlow provides custom button classes like `FFButton` that come with built-in styling and behaviors.
45+
- **Google Places:** The `FFPlace` class encapsulates properties of a Google Place, such as name, address, and coordinates.
46+
- **File Uploads:** The `FFUploadedFile` class represents files uploaded to your app, encapsulating properties like the file name, bytes, and URL.
47+
48+
49+
:::tip[What is a Class?]
50+
In programming, a class is a blueprint for creating objects. It defines properties (data) and methods (functions) that belong to objects of that type.
51+
52+
For example,
53+
54+
- A `Car` class might have properties like `color` and `speed` and methods like `drive()` and `stop()`.
55+
- In FlutterFlow, a class like `FFPlace` might have properties like `address` and `latLng`, and methods to manipulate or retrieve these values.
56+
:::
57+
58+
These custom FlutterFlow classes in the generated code are mostly prefixed with `FF<ClassName>` or `FlutterFlow<ClassName>`. If you need to access these classes in your custom code, simply type "FF" or "FlutterFlow" in the code editor to locate them quick.
59+
4160

4261
![suggestions-dropdown.png](imgs/suggestions-dropdown.png)
4362

0 commit comments

Comments
 (0)