From c17acc0768506148c05163b054d872dfce0818b3 Mon Sep 17 00:00:00 2001 From: Erick Zanardo Date: Fri, 8 Sep 2023 19:49:41 -0300 Subject: [PATCH] feat: adding cut icon --- CHANGELOG.md | 1 + example/lib/gallery/sections/icons.dart | 4 ++++ lib/src/widgets/nes_icon.dart | 7 +++++++ 3 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ea3c27..3433786 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # 0.9.0 - feat: add `NesIcons.expand` - fix: `NesDialog` allows a generic to be informed. + - feat: add `NesIcons.cut` # 0.8.0 - feat: add `NesIcons.leftHand` diff --git a/example/lib/gallery/sections/icons.dart b/example/lib/gallery/sections/icons.dart index ee1a1f1..cafdb9a 100644 --- a/example/lib/gallery/sections/icons.dart +++ b/example/lib/gallery/sections/icons.dart @@ -229,6 +229,10 @@ class IconsSection extends StatelessWidget { data: NesIcons.instance.expand, label: 'expand', ), + _IconEntry( + data: NesIcons.instance.cut, + label: 'cut', + ), ], ), ], diff --git a/lib/src/widgets/nes_icon.dart b/lib/src/widgets/nes_icon.dart index d93b3f6..ee521e5 100644 --- a/lib/src/widgets/nes_icon.dart +++ b/lib/src/widgets/nes_icon.dart @@ -408,6 +408,13 @@ class NesIcons { '8,8;3,0;2,-1;5,0;4,-1;3,0;1,-1;1,0;2,-1;1,0;1,-1;1,0;3,-1;2,0;6,-1;2,0;3,-1;1,0;1,-1;1,0;2,-1;1,0;1,-1;3,0;4,-1;5,0;2,-1;3,0', ), ); + + /// Cut + late final cut = NesIconData( + MiniSprite.fromDataString( + '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', + ), + ); } /// {@template nes_icon}