Skip to content

Commit

Permalink
fix: enable icon tree-shaking (#187)
Browse files Browse the repository at this point in the history
Add missing @staticIconProvider annotation to enable icon tree-shaking.
  • Loading branch information
Jupi007 committed Oct 23, 2023
1 parent 139c673 commit b4a0da4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion example/lib/src/icon_items.dart
Expand Up @@ -22,7 +22,7 @@ final List<IconItem> _staticIconItems = [
YaruIcons.all[iconName]!,
size: iconSize,
),
)
),
];

final List<IconItem> _animatedIconItems = [
Expand Down
1 change: 1 addition & 0 deletions lib/src/yaru_icons.dart
Expand Up @@ -23,6 +23,7 @@ import 'package:flutter/widgets.dart';
/// fonts:
/// - asset: fonts/yaru_icons.otf
/// ```
@staticIconProvider
class YaruIcons {
const YaruIcons._();

Expand Down

0 comments on commit b4a0da4

Please sign in to comment.