Skip to content

Commit cb38e7a

Browse files
committed
Merge branch 'refs/heads/main' into rewrite/notifications
# Conflicts: # firebase.json
2 parents 6ea6474 + 7003174 commit cb38e7a

File tree

105 files changed

+1823
-2205
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+1823
-2205
lines changed

docs/ff-concepts/adding-customization/configuration-files.md

+710
Large diffs are not rendered by default.

docs/ff-concepts/adding-customization/custom-code.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ There are a few different ways to make custom code accessible in FlutterFLow:
1919
* **[Custom Functions](custom-functions.md):** Custom Dart functions that can be used to set Widget or Action properties.
2020
* **[Custom Actions](custom-actions.md):** Custom Dart functions that can be triggered by [Action Triggers](https://docs.flutterflow.io/resources/functions/action-triggers/) or used as nodes in an [Action Flow](https://docs.flutterflow.io/resources/functions/action-flow-editor#action-flow-editor). These are usually `async` functions and are able to import [custom package dependencies](#adding-a-pubspec-dependency).
2121
* **[Custom Widgets](custom-widgets.md):** Custom Flutter widgets that can also import [custom package dependencies](#adding-a-pubspec-dependency) and be used in the same way as [Components](https://docs.flutterflow.io/resources/ui/components) throughout your project.
22-
* **[Custom Files](custom-files.md):** Within Custom Files, you'll have the ability to edit some parts of the `main.dart` file.
22+
* **[Configuration Files](configuration-files.md):** You'll have the ability to edit native files for Android and iOS.
2323

2424

2525
:::tip[Why Write Custom Code?]

docs/ff-concepts/adding-customization/custom-files.md

-159
This file was deleted.

docs/ff-concepts/adding-customization/custom-functions.md

+27-36
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,31 @@ keywords: [FlutterFlow, Custom Functions, Customizations, Flutter, Dart, Pub.dev
88
---
99

1010
# Custom Functions
11-
Custom Functions in FlutterFlow allow you to perform simple Dart calculations and logic. These functions are ideal for tasks that require immediate results, such as data transformations, mathematical calculations, or simple logic operations. **Custom Functions** enable you to encapsulate reusable logic, making your code more organized and maintainable.
11+
Custom Functions in FlutterFlow allow you to perform simple Dart calculations and logic. These functions are ideal for tasks that require immediate results, such as data transformations, mathematical calculations, or simple logic operations. **Custom Functions** enable you to encapsulate reusable logic, making your code more organized and maintainable. Let's see some common examples:
12+
13+
**To calculate discount given price and discount rate:**
14+
15+
```js
16+
double calculateDiscount(double price, double discountRate) {
17+
return price - (price * discountRate / 100);
18+
}
19+
```
20+
21+
**To capitalize a String input:**
22+
23+
```js
24+
String capitalize(String input) {
25+
return input.isNotEmpty ? '${input[0].toUpperCase()}${input.substring(1)}' : '';
26+
}
27+
```
28+
29+
**To convert Celsius to Fahrenheit**
30+
31+
```js
32+
double celsiusToFahrenheit(double celsius) {
33+
return (celsius * 9/5) + 32;
34+
}
35+
```
1236

1337
## Key Use Cases
1438

@@ -77,38 +101,5 @@ function code. Instead, you can pass the app state variable as a parameter and t
77101
</details>
78102

79103

80-
## Some common examples
81-
82-
<details>
83-
<summary>Calculating Discounts:</summary>
84-
85-
```
86-
double calculateDiscount(double price, double discountRate) {
87-
return price - (price * discountRate / 100);
88-
}
89-
```
90-
91-
</details>
92-
93-
94-
<details>
95-
<summary>String Capitalization:</summary>
96-
97-
```
98-
String capitalize(String input) {
99-
return input.isNotEmpty ? '${input[0].toUpperCase()}${input.substring(1)}' : '';
100-
}
101-
```
102-
</details>
103-
104-
<details>
105-
<summary>Temperature Conversion:</summary>
106-
107-
```
108-
double celsiusToFahrenheit(double celsius) {
109-
return (celsius * 9/5) + 32;
110-
}
111-
112-
```
113-
</details>
114-
104+
## Utility Functions Library
105+
Instead of building everything from scratch, explore our **[Utility Functions Library](https://marketplace.flutterflow.io/item/ZVBmWMGpXe6vqnASRHDA)** — packed with 50+ helpful functions for everyday tasks like formatting text, manipulating dates, validating input, and more. Easily plug them into your custom logic to save time and reduce errors.

docs/ff-concepts/adding-customization/custom-widgets.md

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ FlutterFlow:
9999
</iframe>
100100
</div>
101101

102+
<p></p>
103+
102104
:::tip[Choosing a Pubspec Dependency]
103105
For a comprehensive guide on navigating external packages using pub.dev, evaluating packages, and making the best choices for your app, [**follow the guide**](custom-code.md#adding-a-pubspec-dependency).
104106
:::

docs/ff-concepts/design-system/design-system.md

+13-8
Original file line numberDiff line numberDiff line change
@@ -645,12 +645,12 @@ You can add the responsive style by following the instructions below:
645645
</div>
646646
<p></p>
647647

648-
### Adding Custom Fonts
648+
### Custom Fonts
649649

650650
Adding Custom Fonts to your app makes it stand out from others. This section allows you to upload your own fonts. You can upload the custom font files of types `.ttf`, `.otf`, and `.woff.` Once the font is uploaded, you can use it directly from the widget or add it to the text style section to create a general theme.
651651

652652
:::info
653-
Before you upload the *Custom Fonts*, make sure you have permission to use the font in your application.
653+
Before you upload the Custom Fonts, make sure you have permission to use the font in your application.
654654
:::
655655

656656
To add the *Custom Fonts*:
@@ -718,15 +718,18 @@ If you prefer watching a video tutorial, here's the one for you:
718718
<p></p>
719719

720720

721-
### Adding Custom Icons
721+
### Custom Icons
722+
723+
Custom icons help reinforce your brand identity and add a unique touch to your app. Before uploading icons to FlutterFlow, you’ll first need to generate them using an icon font generator like [FlutterIcon](https://www.fluttericon.com/) or [IcoMoon](https://icomoon.io/).
724+
725+
We’ve also built our **[own SVG to Custom Icon Generator](https://icons.flutterflow.app)** to make the process even easier — feel free to use that instead.
722726

723-
Adding *Custom Icons* to your app helps you build the brand identity. Before you add the Custom Icons in FlutterFlow, you need to generate them from any icon generation site (like [fluttericon](https://www.fluttericon.com/) and [iconmoon](https://icomoon.io/)) and export them using appropriate settings.
724727

725728
:::info
726-
Make sure you have permission to use the icons in your application.
729+
Make sure you have the proper rights or licenses to use the icons in your application.
727730
:::
728731

729-
To add custom icons:
732+
**Steps to Generate and Add Custom Icons**
730733

731734
1. Head over to the [iconmoon](https://icomoon.io/app/#/select).
732735
2. Import your custom icon (.svg) or select from the free icons set.
@@ -769,8 +772,10 @@ To add custom icons:
769772
12. Now click on the **Upload Icon Info** button.
770773
13. Select and upload the `filename.dart` under the downloaded folder (besides the fonts folder).
771774
14. Click **Add Icons**.
772-
15. To use a custom icon, add the **Icon** widget, move to the properties panel, and scroll down to the **Icon** section.
773-
16. Click on the already selected icon, select the **Custom Icons** tab, and then select your icon.
775+
776+
#### Use the Custom Icon
777+
778+
To use a custom icon, add the **Icon** widget, move to the properties panel, and scroll down to the **Icon** section. Click on the already selected icon, select the **Custom Icons** tab, and then select your icon.
774779

775780
<div style={{
776781
position: 'relative',

docs/ff-concepts/file-handling/audio/_category_.json

-4
This file was deleted.

0 commit comments

Comments
 (0)