Skip to content

Commit

Permalink
feat: eraser icon (#77)
Browse files Browse the repository at this point in the history
* feat: eraser icon

* fix
  • Loading branch information
erickzanardo authored Sep 8, 2023
1 parent 20d1a89 commit 623a0cb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# 0.9.0
- feat: add `NesIcons.expand`
- fix: `NesDialog` allows a generic to be informed.
- feat: add `NesIcons.cut`
- feat: add `NesIcons.cut`
- feat: add `NesIcons.eraser`

# 0.8.0
- feat: add `NesIcons.leftHand`
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 @@ -233,6 +233,10 @@ class IconsSection extends StatelessWidget {
data: NesIcons.instance.cut,
label: 'cut',
),
_IconEntry(
data: NesIcons.instance.eraser,
label: 'eraser',
),
],
),
],
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 @@ -415,6 +415,13 @@ class NesIcons {
'8,8;1,0;6,-1;1,0;1,-1;1,0;4,-1;1,0;2,-1;2,0;2,-1;2,0;3,-1;4,0;5,-1;2,0;4,-1;2,0;2,-1;2,0;1,-1;1,0;1,-1;1,0;2,-1;1,0;1,-1;1,0;1,-1;1,0;4,-1;1,0;1,-1',
),
);

/// Eraser
late final eraser = NesIconData(
MiniSprite.fromDataString(
'8,8;4,-1;1,0;6,-1;3,0;4,-1;5,0;2,-1;1,0;1,-1;6,0;3,-1;3,0;2,-1;1,0;3,-1;1,0;4,-1;3,0;3,-1;8,0',
),
);
}

/// {@template nes_icon}
Expand Down

0 comments on commit 623a0cb

Please sign in to comment.