Skip to content

Commit 842b534

Browse files
committed
Minor fixes
1 parent 958f1f9 commit 842b534

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,25 @@ Custom Functions in FlutterFlow allow you to perform simple Dart calculations an
1313
**To calculate discount given price and discount rate:**
1414

1515
```js
16-
1716
double calculateDiscount(double price, double discountRate) {
18-
return price - (price * discountRate / 100);
17+
return price - (price * discountRate / 100);
1918
}
2019
```
2120

2221
**To capitalize a String input:**
2322

2423
```js
2524
String capitalize(String input) {
26-
return input.isNotEmpty ? '${input[0].toUpperCase()}${input.substring(1)}' : '';
25+
return input.isNotEmpty ? '${input[0].toUpperCase()}${input.substring(1)}' : '';
2726
}
2827
```
2928

3029
**To convert Celsius to Fahrenheit**
3130

3231
```js
3332
double celsiusToFahrenheit(double celsius) {
34-
return (celsius * 9/5) + 32;
33+
return (celsius * 9/5) + 32;
3534
}
36-
3735
```
3836

3937
## Key Use Cases

docs/ff-integrations/payments/revenuecat.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ To enable RevenueCat in FlutterFlow, follow the steps below:
9999

100100
To show in-app purchase and subscription information — such as pricing, product name, and description — within your app’s UI, you'll need to fetch these details from RevenueCat using the appropriate API or method.
101101

102-
To display the in-app purchases and subscription details, such as price, description, etc., inside the UI elements, you need to retrieve this information from RevenueCat.
103-
104102
Here is an example of retrieving monthly subscription details:
105103

106104
<div style={{

0 commit comments

Comments
 (0)