ssrajputtheboss / any_syntax_highlighter

any_syntax_highlighter a flutter package for syntax highlighting
https://pub.dev/packages/any_syntax_highlighter
MIT License
9 stars 2 forks source link

feat: :fire: remove `google_fonts` dependencies (+ fixes) #5

Open rootasjey opened 9 months ago

rootasjey commented 9 months ago

Hi, Thank you for this nice package. I recently noticed a version conflict in my project while using the last version of google_fonts (current at 6.1.0 as of speaking). This is because any_syntax_highlighter (0.0.13) use its own version of google_fonts (4.0.3).

I would like to suggest a solution:

Solution

The package should let the user use any external font. I don't think that depending on google_fonts is useful here since we can pass any TextStyle variable, including one coming from google_fonts.

So I made these changes:

I also took the freedom to:

Let me know what you think. Have a nice day.