Skip to content

Commit

Permalink
feat: gem icon (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo authored Feb 3, 2025
1 parent 4c631f2 commit 735b92d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 0.22.0
- feat: adding `NesIcons.shovel`.
- feat: adding `NesDpad`
- feat: adding `NesIcons.gem`.

# 0.21.0
- Update to Flutter 3.22.0
Expand Down
4 changes: 4 additions & 0 deletions example/lib/gallery/sections/icons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,10 @@ class IconsSection extends StatelessWidget {
data: NesIcons.alien,
label: 'alien',
),
_IconEntry(
data: NesIcons.gem,
label: 'gem',
),
],
),
),
Expand Down
7 changes: 7 additions & 0 deletions lib/src/widgets/nes_icon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,13 @@ class NesIconCollection {
'8,8;2,-1;4,0;3,-1;1,0;4,-1;1,0;1,-1;1,0;1,-1;1,0;4,-1;2,0;2,-1;1,0;3,-1;2,0;3,-1;1,0;2,-1;2,0;4,-1;1,0;1,-1;1,0;1,-1;1,0;4,-1;1,0;3,-1;4,0;2,-1',
),
);

/// Gem
late final gem = NesIconData(
MiniSprite.fromDataString(
'8,8;2,-1;4,0;3,-1;1,0;2,1;1,0;1,1;1,0;1,-1;2,0;1,1;1,0;1,1;4,0;1,1;7,0;2,1;1,0;2,1;2,0;1,-1;2,0;2,1;2,0;3,-1;1,0;1,1;2,0;5,-1;2,0;3,-1',
),
);
}

/// {@template nes_icon}
Expand Down

0 comments on commit 735b92d

Please sign in to comment.