/format-sample

Temporary repo to apply an experimental dart format style to example code.

Primary LanguageDart

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 of the proposed new style rules. In order to make the diffs easier in the GitHub UI, the changes are broken across several commits:

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.