Skip to content

Commit 883cb95

Browse files
πŸ“ Update filtered exports section with .flutterflowignore example (#306)
* πŸ“ Update filtered exports section with .flutterflowignore example * Suggested change: Removed bold styling from the Example header Co-authored-by: Pooja Bhaumik <[email protected]> * Suggested change: Removed bold styling from the Example `.flutterflowignore` contents header Co-authored-by: Pooja Bhaumik <[email protected]> * Suggested change: Update wording in documentation for .flutterflowignore file Co-authored-by: Pooja Bhaumik <[email protected]> --------- Co-authored-by: Pooja Bhaumik <[email protected]>
1 parent 5c04f1f commit 883cb95

File tree

1 file changed

+23
-2
lines changed
  • docs/testing-deployment-publishing/exporting-code

1 file changed

+23
-2
lines changed

β€Ždocs/testing-deployment-publishing/exporting-code/ff-cli.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,28 @@ To use the CLI, you'll need to create an API token and use it in your requests.
7575

7676
## Filtered exports
7777

78-
We've developed [a solution](https://github.com/krabhishek/flutterflow-filtered-pull) that allows you to use the CLI tool without overwriting specific files or directories. This is especially useful if you're managing code outside of FlutterFlow and want to prevent it from being overwritten during a code export.
78+
If you are updating an existing project and do not want certain files to be overwritten during a code export, you can create a `.flutterflowignore` file in the root of your project directory. This file should contain a list of files to be ignored using globbing syntax.
79+
80+
### Example:
81+
If your project is located at:
82+
```
83+
/Users/yourname/projects/my_flutterflow_app/
84+
```
85+
Then, place the `.flutterflowignore` file in:
86+
```
87+
/Users/yourname/projects/.flutterflowignore
88+
```
89+
90+
### Example `.flutterflowignore` contents:
91+
```
92+
my_flutterflow_app/android/app/build.gradle # Prevents FlutterFlow from overwriting native Android build configuration
93+
my_flutterflow_app/ios/Runner/Info.plist # Keeps iOS app metadata unchanged
94+
my_flutterflow_app/web/index.html # Ensures custom modifications to the web entry file are retained
95+
```
96+
This ensures that the specified files and directories are not overwritten during code export.
97+
98+
For more details on globbing syntax, refer to [this guide](https://pub.dev/packages/glob#syntax).
99+
79100

80101
## FAQ
81102
<details>
@@ -87,4 +108,4 @@ dart pub global activate flutterflow_cli
87108
```
88109
This should update the CLI and fix the issue.
89110
</p>
90-
</details>
111+
</details>

0 commit comments

Comments
Β (0)