Closed ltOgt closed 1 year ago
Had an issue where Font awesome icons were not reduced by tree shaking:
Turns out you need to add the @staticIconProvider annotation
@staticIconProvider
Compare
Icons
FontAwesomeIcons
https://github.com/fluttercommunity/font_awesome_flutter/blob/32beff2ea1156d62d0c2130b8202b88a9724508f/util/lib/main.dart#L345
Hey @ltOgt, thanks for bringing this up! @staticIconProvider will be available with the next release
Had an issue where Font awesome icons were not reduced by tree shaking:
Turns out you need to add the
@staticIconProvider
annotationCompare
Icons
with annotation: https://github.com/flutter/flutter/blob/e1e47221e86272429674bec4f1bd36acc4fc7b77/packages/flutter/lib/src/material/icons.dart#L153FontAwesomeIcons
without annotation: https://github.com/fluttercommunity/font_awesome_flutter/blob/32beff2ea1156d62d0c2130b8202b88a9724508f/lib/font_awesome_flutter.dart#L11https://github.com/fluttercommunity/font_awesome_flutter/blob/32beff2ea1156d62d0c2130b8202b88a9724508f/util/lib/main.dart#L345