We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.1.0+1
build_runner (Default)
First time checking out this package.
Attempting to run with the following colors file (taken from the example dir)
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="white">#FFFFFF</color> <color name="black">#000000</color> <color name="gray_70">#EEEEEE</color> <color name="gray_410">#979797</color> <color name="crimson_red" type="material">#CF2A2A</color> <color name="yellow_ocher" type="material material-accent">#DF9527</color> </resources>
throws
Unhandled exception: FormatException: Invalid radix-16 number (at line 2, character 2)
Not sure what I'm doing wrong here or if it's a legitimate bug 🤷
name: theme_x version: 0.1.0+1 publish_to: none environment: sdk: '>=2.18.0 <3.0.0' flutter: 3.3.8 dependencies: flutter: sdk: flutter dev_dependencies: build_runner: ^2.3.3 flutter_gen_runner: ^5.1.0+1 flutter_test: sdk: flutter very_good_analysis: ^3.1.0 flutter_gen: colors: inputs: - assets/colors/colors.xml flutter: uses-material-design: true # Include the Material Icons font # Assets for the application assets: - assets/audio/ - assets/images/ - assets/text/ - assets/translations/ fonts: - family: Graphik fonts: - asset: assets/fonts/Graphik-Regular.otf weight: 400 - asset: assets/fonts/Graphik-Medium.otf weight: 500 - asset: assets/fonts/Graphik-Semibold.otf weight: 600 - family: Boing fonts: - asset: assets/fonts/Boing-Medium.ttf weight: 500 - family: Icons fonts: - asset: assets/fonts/Stile_X_Icons.ttf
FlutterGen v5.1.0+1 Loading ... theme_x/pubspec.yaml Unhandled exception: FormatException: Invalid radix-16 number (at line 2, character 2) ^ #0 int._handleFormatError (dart:core-patch/integers_patch.dart:131) #1 int._parse (dart:core-patch/integers_patch.dart:72) #2 int.parse (dart:core-patch/integers_patch.dart:65) #3 new HexColor (package:color/hex_color.dart:18) #4 swatchFromPrimaryHex (package:flutter_gen_core/utils/color.dart:20) #5 _colorStatement (package:flutter_gen_core/generators/colors_generator.dart:64) #6 MappedListIterable.elementAt (dart:_internal/iterable.dart:413) #7 ListIterable.forEach (dart:_internal/iterable.dart:39) #8 generateColors (package:flutter_gen_core/generators/colors_generator.dart:55) #9 FlutterGenerator.build (package:flutter_gen_core/flutter_generator.dart:53) #10 main (file:///Users/runner/work/flutter_gen/flutter_gen/packages/command/bin/flutter_gen_command.dart:48) #11 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:295) #12 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192)
The text was updated successfully, but these errors were encountered:
@DJTB Thank you for reporting. I will check it.
Sorry, something went wrong.
@DJTB DJ Can you tell me your Flutter and Dart versions?
I'm not sure since I didn't keep this repo around. It was created with https://pub.dev/packages/very_good_cli.
https://pub.dev/packages/very_good_cli
I am currently on:
Flutter 3.3.10 • channel stable • https://github.com/flutter/flutter.git Framework • revision 135454af32 (3 weeks ago) • 2022-12-15 07:36:55 -0800 Engine • revision 3316dd8728 Tools • Dart 2.18.6 • DevTools 2.15.0
But I expect when I filed this bug I would have been using Flutter 3.3.8 and Dart 2.18.x
Happy to close this issue if you were unable to reproduce.
wasabeef
No branches or pull requests
Is there an existing issue for this?
Version
5.1.0+1
Command type
build_runner (Default)
What happened?
First time checking out this package.
Attempting to run with the following colors file (taken from the example dir)
throws
Not sure what I'm doing wrong here or if it's a legitimate bug 🤷
Relevant a pubspec.yaml.
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: