https://github.com/munificent/format-sample
Temporary repo to apply an experimental dart format style to example code.
https://github.com/munificent/format-sample
Last synced: 9 months ago
JSON representation
Temporary repo to apply an experimental dart format style to example code.
- Host: GitHub
- URL: https://github.com/munificent/format-sample
- Owner: munificent
- Created: 2023-08-14T23:33:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-14T23:39:53.000Z (over 2 years ago)
- Last Synced: 2024-12-14T19:08:15.030Z (about 1 year ago)
- Language: Dart
- Size: 1.68 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo compares the current dart format behavior with a proposed set of
style changes applied to a random sample of pub packages, open source Flutter
applications, and open source Flutter widgets.
The sample code is first formatted using the current formatter. Then it is
formatted using [a prototype implementation][prototype] of the proposed new
style rules. In order to make the diffs easier in the GitHub UI, the changes are
broken across several commits:
[prototype]: https://github.com/dart-lang/dart_style/tree/flutter-style-experiment
* [apps-1/](https://github.com/munificent/format-sample/commit/3f9224c2806788cf36cb37c03f231038d0960bdb)
* [apps-2/](https://github.com/munificent/format-sample/commit/e6be07ce7764f3f34bf4d0ef255c9f4a645de35a)
* [apps-3/](https://github.com/munificent/format-sample/commit/383ab6c154620e94c095c5b69386b31782f651d4)
* [apps-4/](https://github.com/munificent/format-sample/commit/c2bfc13f94add76e013b6e6261fbc602407fb7a8)
* [pub-1/](https://github.com/munificent/format-sample/commit/f5efad8322b3d861628072abab68bacfe51e86fa)
* [pub-2/](https://github.com/munificent/format-sample/commit/4584c7080674e2b5d5063cb4d4c76c61b1331e08)
* [pub-3/](https://github.com/munificent/format-sample/commit/a7b35afe246232e7ea4c4299f33518cf014593d1)
* [pub-4/](https://github.com/munificent/format-sample/commit/44459cf4b9a3834e7b724b59e2ce4f1021ab8bd4)
* [widgets-1/](https://github.com/munificent/format-sample/commit/b2d08f533752cdb50f0e6a3330a93a63d4d9cf0b)
* [widgets-2/](https://github.com/munificent/format-sample/commit/3cfc12875628ce99f2660160c476f495c9e7a9d7)
* [widgets-3/](https://github.com/munificent/format-sample/commit/5b1d4108c9259dab5419a3cb5260f0f668507822)
* [widgets-4/](https://github.com/munificent/format-sample/commit/6495e3b2631806766af38657afd754e0ead6701e)
This shows you how the proposed formatting compares to the current formatter.
But keep in mind that a diff focuses your attention on places where the style is
*different*. It doesn't highlight the majority of lines of code that are
formatted exactly the same under this proposal as they are today.