Skip to content

Commit

Permalink
feat: Add sound icon variation (#123)
Browse files Browse the repository at this point in the history
* Added audio mute icon

* Updated example with new icon

* renamed to conform to standard

* updated changelog

* deleted prettier ignore
  • Loading branch information
chrisstayte authored Jan 29, 2024
1 parent 4adcdb0 commit 009f091
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.15.0
- feat: add `NesIcons.audioMuted`

# 0.14.0
- feat: add `NesIcons.audio`.
- feat: add `NesIcons.screen`.
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 @@ -369,6 +369,10 @@ class IconsSection extends StatelessWidget {
data: NesIcons.audio,
label: 'audio',
),
_IconEntry(
data: NesIcons.audioMuted,
label: 'audioMuted',
),
_IconEntry(
data: NesIcons.screen,
label: 'screen',
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 @@ -660,6 +660,13 @@ class NesIconCollection {
),
);

/// Audio Muted
late final audioMuted = NesIconData(
MiniSprite.fromDataString(
'8,8;1,0;3,-1;2,0;3,-1;1,0;1,-1;1,0;2,1;1,0;3,-1;1,0;3,1;1,0;1,-1;2,0;1,1;1,0;2,1;1,0;1,-1;2,0;2,1;1,0;1,1;1,0;3,-1;1,0;2,1;2,0;4,-1;1,0;2,1;1,0;5,-1;2,0;1,-1;1,0',
),
);

/// Screen
late final screen = NesIconData(
MiniSprite.fromDataString(
Expand Down

0 comments on commit 009f091

Please sign in to comment.