Closed
Conversation
Ignore rules for the Flutter SDK (see flutter.io). Based of the default .gitignore rule generated for new projects. Does not include rules already covered by Dart.gitignore. Includes rules for Firebase / Google Cloud Services as those are rather popular amongst Flutter users. The 'google-services.json' for Android is also covered by the 'Android' rules but the iOS equivalent seems not.
Member
@saschpe correct me if I'm wrong here, but given how Flutter is coupled to Dart I think it's worth keeping those rules together - if you were to create a new Flutter project using just these rules you might find yourself committing the wrong files from the beginning. Two potential solutions come to mind:
|
Contributor
Author
|
@shiftkey There are other popular Dart projects around, most notably AngularDart, that would yield another section in Dart.gitignore soon as well. I don't have a strong opinion in either direction... @RinaFave01 huh? |
Member
|
I'm going to close this out due to inactivity, but based on #2857 I'm interested in:
|
lovelypuppy0607
added a commit
to lovelypuppy0607/gitignore-1
that referenced
this pull request
May 11, 2023
ukushu
pushed a commit
to ukushu/gitignore
that referenced
this pull request
Nov 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ignore rules for the Flutter SDK (see flutter.io). Based of the default
.gitignore rule generated for new projects. Does not include
rules already covered by Dart.gitignore.
Reasons for making this change:
Google's Flutter SDK needs custom ignore rules on top of Dart.gitignore
Links to documentation supporting these rule changes:
https://github.com/flutter/flutter/blob/master/.gitignore
If this is a new template: