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:
Remove google_fonts dependency package from pubspec.yaml
Remove useGoogleFont property (parameter) from AnySyntaxHighlighter class
I also took the freedom to:
Migrate deprecated API (e.g. textScaleFactor)
Remove unused imports (e.g. in example/lib/main.dart)
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 becauseany_syntax_highlighter
(0.0.13
) use its own version ofgoogle_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 anyTextStyle
variable, including one coming fromgoogle_fonts
.So I made these changes:
google_fonts
dependency package frompubspec.yaml
useGoogleFont
property (parameter) fromAnySyntaxHighlighter
classI also took the freedom to:
textScaleFactor
)example/lib/main.dart
)Let me know what you think. Have a nice day.