-
Notifications
You must be signed in to change notification settings - Fork 263
FaDuotoneIcon explicitly requires IconDataDuotone #154
New issue
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
Comments
You mean |
Yes, generator outputs all icon data to |
[√] Flutter (Channel master, 2.1.0-13.0.pre.175, on Microsoft Windows [Version 10.0.18363.1440], locale en-IN) |
Showing the same issue here. Duotone icons are casting compile-time errors |
To avoid unnecessary cast and allow direct usage, please change this line: font_awesome_flutter/tool/generate_font.dart Line 189 in b373540
to... return '$doc\nstatic const IconDataDuotone $iconName = const IconDataDuotone(0x$primaryUnicode, secondary: const IconDataDuotone(0x$secondaryUnicode),);'; |
- example/lib/example_icon.dart - Adds reference to allow duotone (fluttercommunity#154) - example/lib/icons.dart - Regenerated with duotone null references (fluttercommunity#154) - example/lib/main.dart [WIP] - Updates hero to allow for duotone icons - lib/fonts/* - fonts updated - tool/generate_example.dart - Adds 360-degrees to nameAdjustments (fluttercommunity#158) - Updates for duotone icons (fluttercommunity#154) - tool/generate_font.dart - Adds 360-degrees to nameAdjustments (fluttercommunity#158) - Adjusts return of generateDuotoneIconDefinition (fluttercommunity#154)
same issue here |
Just upgraded and hit this error too. |
Yup, encountering as well. |
But generator still outputs
IconData
for those.This prevents direct usage of duotone icons.
We need to cast each icon
IconData
toIconDataDuotone
.The text was updated successfully, but these errors were encountered: