1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00

Ensure flutter format and fix offending files (#80)

The current Travis script will only print offending files, but won’t fail the build. Added `--set-exit-if-changed` to fix that.

Also, simplified the call from using `grep` and `xargs` to simple `flutter format .`, which recurses directories.

Lastly, fixed offending files that needed `dartfmt`. (But not in the directories that aren’t covered by `travis_script.sh`.
This commit is contained in:
Filip Hracek
2019-05-21 13:30:37 -07:00
committed by GitHub
parent fbf40c0cd2
commit fa356540c6
5 changed files with 10 additions and 14 deletions

View File

@@ -270,8 +270,7 @@ abstract class Styles {
static const servingInfoBorderColor = Color(0xffb0b0b0);
static const ColorFilter desaturatedColorFilter =
static const ColorFilter desaturatedColorFilter =
// 222222 is a random color that has low color saturation.
ColorFilter.mode(Color(0xFF222222), BlendMode.saturation);
}