{"id":28443729,"url":"https://github.com/bruhtek/custom-dartfmt","last_synced_at":"2026-04-27T18:34:56.213Z","repository":{"id":128591703,"uuid":"472113742","full_name":"Bruhtek/custom-dartfmt","owner":"Bruhtek","description":"A quick and (relatively) easy tutorial on how to use a customised dart formatting tool in your project!","archived":false,"fork":false,"pushed_at":"2022-03-22T20:04:54.000Z","size":5,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-29T14:39:18.437Z","etag":null,"topics":["code-formatter","dart","dart-format","dart-formatter","dartfmt","flutter","flutter-format","flutter-formatter","fmt","formatter","vscode"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bruhtek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-03-20T22:04:03.000Z","updated_at":"2025-03-08T23:54:14.000Z","dependencies_parsed_at":"2023-04-13T16:16:02.006Z","dependency_job_id":null,"html_url":"https://github.com/Bruhtek/custom-dartfmt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bruhtek/custom-dartfmt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bruhtek%2Fcustom-dartfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bruhtek%2Fcustom-dartfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bruhtek%2Fcustom-dartfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bruhtek%2Fcustom-dartfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bruhtek","download_url":"https://codeload.github.com/Bruhtek/custom-dartfmt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bruhtek%2Fcustom-dartfmt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32349866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-formatter","dart","dart-format","dart-formatter","dartfmt","flutter","flutter-format","flutter-formatter","fmt","formatter","vscode"],"created_at":"2025-06-06T08:08:21.224Z","updated_at":"2026-04-27T18:34:56.208Z","avatar_url":"https://github.com/Bruhtek.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom dartfmt / dart format / flutter format\nA quick and (relatively) easy tutorial on how to use a customised dart formatter in your dart/flutter project!\n\n**Currently works only in VSCode**\n\n## What you'll need:\n- VSCode editor\n- A dart/flutter project\n- [This extension](https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave), or if it's no longer available, any kind of Run-On-Save extension will do, you'll just have to customize the [.vscode/settings.json](.vscode/settings.json) file for it.\n\n## What you need to do:\n- Clone the https://github.com/dart-lang/dart_style to your pc\n- Make edits to whatever you need. (A good idea is to search commits, since then you will just need to revert the changes)\n- Compile it using `dart compile exe bin/format.dart` - it will produce an `format.exe` file in the `bin` folder.\n- Move the `format.exe` file to your project directory in the `.vscode` folder, and rename it to `dartfmt.exe`\n- Copy the settings from [.vscode/settings.json](.vscode/settings.json) to your files, and edit it to your preferences. **(Remember: the number after `-l` in the 7th line is the max line length)**\n- Check whether the Dart SDK compiler is disabled in VSCode settings!\n- You're ready to go!\n\n## Additional notes:\n- I needed it to stop forcing a blank line after functions, so I went and found [this](https://github.com/dart-lang/dart_style/commit/8b5aa7e9d090def190d4ae44a21c9d689928935f) commit, and forced the needsDouble variables to false. \n- Yes, I know the current method is a bit janky, but simply writing to the same file creates endless problems, and I couldn't find any better method. If you find one, feel free to share it!\n\n## Changelog\n### 22.03.2022 \n- Add a check if the format was successful before moving the temp file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbruhtek%2Fcustom-dartfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbruhtek%2Fcustom-dartfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbruhtek%2Fcustom-dartfmt/lists"}