FlutterGen / flutter_gen

The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.
https://pub.dev/packages/flutter_gen
MIT License
1.44k stars 142 forks source link

Not updating colors.gen.dart #215

Closed premedios-i9 closed 2 years ago

premedios-i9 commented 2 years ago

I'm getting the following error when I run the generator:

`[INFO] Generating build script... [INFO] Generating build script completed, took 468ms

[INFO] Initializing inputs FlutterGen v4.1.6 FlutterGen Loading ... pubspec.yaml [INFO] Reading cached asset graph... [SEVERE] XmlParserException: Expected end of input at 2:1 [INFO] Reading cached asset graph completed, took 156ms

[INFO] Checking for updates since last build... [INFO] Checking for updates since last build completed, took 529ms

[INFO] Running build... [INFO] Running build completed, took 6ms

[INFO] Caching finalized dependency graph... [INFO] Caching finalized dependency graph completed, took 44ms [INFO] Succeeded after 63ms with 0 outputs (0 actions)`

This is my dark.xml file:

`#235E91

#339F6E #F8AC58 #F53948 #DEE7EF #E7F6EF #FEF3E6 #FEE1E4 #235E9199 #5EC29499 #F8AC5899 #F5394899 #FFFFFF #000000 #222222 #666666 #999999 #CCCCCC #E6E6E6 #4863AE #A1C7E4 #E8F1FA #F3F8FC #CCCCCC #E6E6E6 #EFEFEF #F7F7F7 #FAFAFA` The file actually has one "color" per line. What's wrong with that xml?!?
premedios-i9 commented 2 years ago

You should say in the docs that the xml file should be following ANDROID RESOURCE XML FORMAT! Closing this.