Skip to content

📝 Updated README.md to help first setup #217

New issue

Have a question about this project? Sign up for a free account to open an issue and contact its maintainers and the community.

By clicking “Sign up for ”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on ? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

b099l3
Copy link

@b099l3 b099l3 commented Jun 21, 2022

When running the setup for the first time I hit some problems that seem to be common with some other PR/issues
I have updated the readme to hopefully helps others in adding a custom version

From following the steps I hit these errors:
Example of running flutter pub get following steps in docs, similar issue in #216 :

Error detected in pubspec.yaml:
Expected "fonts" to be a list, but got null (Null).
Please correct the pubspec.yaml file at /Users/b099l3/Developer/font_awesome_flutter/pubspec.yaml

where I needed to comment out lines 24-25 in pubspec.yaml:

...
flutter:
  fonts:
...

then from running ./util/configurator.sh I got this:

####  #   #####################################################################
###  ###  ############ Font Awesome Flutter Configurator ######################
#   #   # #####################################################################
  
Using font_awesome_flutter version 10.1.0
Downloading https://api..com/repos/fluttercommunity/font_awesome_flutter/releases

Custom icons.json found, generating files
Duotone icons are no longer supported. Automatically disabled them.

Generating icon definitions
Formatted lib/font_awesome_flutter.dart
Formatted 1 file (1 changed) in 0.87 seconds.

Generating example code
Formatted example/lib/icons.dart
Formatted 1 file (1 changed) in 0.61 seconds.
Unhandled exception:
RangeError (index): Invalid value: Not in inclusive range 0..43: -1
#0      List.[] (dart:core-/growable_array.dart:260:36)
#1      adjustPubspecFontIncludes (file:///Users/b099l3/Developer//font_awesome_flutter/util/lib/main.dart:194:37)
#2      main (file:///Users/b099l3/Developer//font_awesome_flutter/util/lib/main.dart:165:3)
<asynchronous suspension>

Where I realised the generation relies on those lines being there so uncomment, and re-ran to find no errors.

@b099l3b099l3 changed the title Update README.md to 📝 Updated README.md to help first setup Jun 21, 2022
michaelspiss added a commit that referenced this pull request Jun 21, 2022
@michaelspiss
Copy link
Collaborator

Hi @b099l3! Seems like I was a bit too eager while removing the duotone generator code and accidentally removed the style collector as well. No idea how I didn't spot the empty pubspec during the commit check. I provided a fix and everything should work as expected again.
I highly appreciate your effort to provide a simple workaround for others while this issue persisted!

@b099l3
Copy link
Author

No worries thanks for the quick update and fix!

Sign up for free to join this conversation on . Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants