Skip to content

Commit 012ff5a

Browse files
authored
Merge branch 'main' into rewrite/common-widget-properties
2 parents 0383e6a + a32a769 commit 012ff5a

File tree

17 files changed

+656
-38
lines changed

17 files changed

+656
-38
lines changed

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

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ FlutterFlow provides two main ways to modify native XML files: [**Add Individual
4141

4242
For Android, modifications are typically made in the `AndroidManifest.xml` file, where you can add the following tags:
4343

44-
- **Activity Tags**: This injects code inside the `<activity> ... </activity>` block. You’d use this to declare an additional activity in an Android application. An activity represents a single screen with a user interface (UI). This tag can control the behavior, orientation, and themes, and determines how the activity interacts with other apps or system events.
45-
- **Application Tags**: This injects code inside the `<application> ... </application>` block. You’d use this to configure `<meta-data>` entries, application-wide settings, declare app components like services, broadcast receivers, and content providers, and specify intent filters.
44+
- **Activity Tags:** Inserts XML code inside the `MainActivity` block. This is typically used to add child XML elements within the MainActivity, such as `<intent-filter>` or `<meta-data>` to control aspects such as deep linking, theme application, or launch mode.
45+
- **Application Tags**: Used to inject properties or attributes directly on the `<application>` tag itself. For example, you can use this to set values such as `android:icon`, `android:label`, `android:allowBackup`.
46+
- **App Component Tags**: Inserts complete XML components inside the `<application>...</application>` block. Use this to add additional activities, services, broadcast receivers, or content providers that your app depends on.
4647

47-
To add a snippet to your `AndroidManifest.xml`, navigate to **Custom Code** from the left navigation menu, select **Configuration Files**, then choose `AndroidManifest.xml`. Click the **plus** (+) button next to either the *Activity* or *Application* tag—depending on where you'd like to insert the snippet. Provide a name (this will be included as a comment in the file) and paste your snippet code.
48+
To add a snippet to your `AndroidManifest.xml`, navigate to **Custom Code** from the left navigation menu, select **Configuration Files**, then choose `AndroidManifest.xml`. Click the **plus (+)** button next to the tag where you want to insert the snippet. Provide a name (this will be included as a comment in the file) and paste your snippet code.
4849

4950
<div style={{
5051
position: 'relative',
@@ -166,7 +167,7 @@ Here’s exactly how you do it:
166167
height: 0,
167168
width: '100%'}}>
168169
<iframe
169-
src="https://demo.arcade.software/srZqoYaaoVR1mCE3t8AL?embed&show_copy_link=true"
170+
src="https://demo.arcade.software/wHFUlfRHxQlbzmjR0Bfs?embed&show_copy_link=true"
170171
title=""
171172
style={{
172173
position: 'absolute',
@@ -756,9 +757,15 @@ There's a known limitation where editing the `main.dart` file with Supabase enab
756757

757758
<details>
758759
<summary>
759-
How can I create a Library that needs to edit Info.plist / Entitlements.plist / AndroidManifest.xml
760+
Can I modify the Configuration Files in a Library project?
760761
</summary>
761762
<p>
762-
Right now, changes to the configuration files made in a Library project are not ported over to the projects that import them. This means if you create a Library that needs specific permissions added to these files, the consumers of your Library will need to edit the files in the project that imports the Library. We are hoping to have automatic import of changes to the configuration files available in the next few releases.
763+
Yes, you can. When a Library Project is imported, any configuration file snippets, such as those for `AndroidManifest.xml`, `Info.plist`, or `Entitlements.plist` are automatically merged into the importing project's configuration files.
764+
765+
Additionally, your Library Project can pass values (like API keys) into those snippets using [**Library Values**](../../resources/projects/libraries.md#library-values), making it easy to customize.
766+
767+
![config-values-in-library](imgs/config-values-in-library.avif)
768+
769+
This makes Libraries incredibly powerful and enables easy integration of tools like **PostHog** (analytics), **Sentry** (crash reporting), **CleverTap**, **flutter_local_notifications**, **flutter_nfc_kit**, and many more directly from the Marketplace.
763770
</p>
764771
</details>

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,10 @@ Compiling Custom Functions should be pretty fast, but sometimes, compiling Custo
117117
The code analyzer is available in all your custom code snippets and ensures the quality and
118118
correctness of your custom code. It automatically checks your Dart code for errors and warnings,
119119
providing real-time feedback as you write.
120-
![code-analyzer.png](imgs/code-analyzer.png)
121120

122-
When there is a compilation error, the code analyzer will stop running and display the errors caught
123-
by the compiler. Once fixed, save the code and rerun using the Compile Code button. The code analyzer
124-
should then be reconnected. You can also manually reconnect it if needed.
121+
![code-analyzer](imgs/code-analyzer.avif)
122+
123+
When there is a compilation error, the code analyzer will stop running and display the errors caught by the compiler. Once fixed, save the code and restart the code analyzer to resume real-time analysis and receive feedback on updated code.
125124

126125
### Automatic FlutterFlow Imports
127126

Binary file not shown.
Binary file not shown.
Binary file not shown.

docs/ff-concepts/localization-accessibility/accessibility.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,25 @@ The **Focus Traversal Group** defines a context or scope for focus traversal, an
144144

145145
:::
146146

147+
## Update Text Scaling Factor [Action]
148+
The **Update Text Scaling Factor** action in FlutterFlow allows you to dynamically adjust the text size across your app during runtime. This is particularly useful for improving accessibility by letting users control the size of the text without having to manually change system settings.
149+
150+
Imagine you have a "+" and "-" button on a page to help users adjust text size. When the user taps the "+" button, the text scaling factor increases by 1, making the text larger. Tapping the "-" button decreases the text scaling factor by 1, making the text smaller. Additionally, a Reset button can be provided to return the text scaling back to its default value.
151+
152+
:::info
153+
154+
This action works in conjunction with the [**Display Settings**](../../resources/projects/settings/general-settings.md#display-settings) configured at the project level, such as **Min Text Scaling Factor** and **Max Text Scaling Factor**.
155+
156+
:::
157+
158+
When configuring the Update Text Scaling Factor action, you can choose from three update types:
159+
160+
- **Set Value**: Directly assigns the text scaling factor to a specific value.
161+
- **Increment/Decrement**: Adjusts the current scaling factor by a specified amount. A positive value increases scaling, and a negative value decreases it.
162+
- **Reset**: Restores the text scaling factor to the project's default setting.
163+
164+
![text-scaling-action](imgs/text-scaling-action.avif)
165+
147166
## Keyboard Navigation
148167

149168
You can use the [On Shortcut Press](../../resources/ui/pages/page-lifecycle.md#on-shortcut-press-action-trigger) action trigger to bind keyboard shortcuts to specific actions. This makes it easier for users with disabilities to navigate your app, especially in web and desktop environments.
Binary file not shown.

0 commit comments

Comments
 (0)