From 881c265e6148656b1407923857a9ec0605fd2972 Mon Sep 17 00:00:00 2001 From: Erick Date: Thu, 15 Jun 2023 08:53:40 -0300 Subject: [PATCH] feat: adding exclamation and question mark block icons (#57) --- CHANGELOG.md | 2 ++ example/lib/gallery/sections/icons.dart | 8 ++++++++ lib/src/widgets/nes_icon.dart | 14 ++++++++++++++ 3 files changed, 24 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0d553e..1fe6220 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ - feat: add `NesIcons.yamlFile` - feat: add `NesIcons.xmlFile` - fix: `NesTabView` didn't keept state on tab change. + - feat: add `NesIcons.exclamationMarkBlock` + - feat: add `NesIcons.questionMarkBlock` # 0.6.0 diff --git a/example/lib/gallery/sections/icons.dart b/example/lib/gallery/sections/icons.dart index b2dc6a2..99307a0 100644 --- a/example/lib/gallery/sections/icons.dart +++ b/example/lib/gallery/sections/icons.dart @@ -189,6 +189,14 @@ class IconsSection extends StatelessWidget { data: NesIcons.instance.xmlFile, label: 'xmlFile', ), + _IconEntry( + data: NesIcons.instance.exclamationMarkBlock, + label: 'exclamationMarkBlock', + ), + _IconEntry( + data: NesIcons.instance.questionMarkBlock, + label: 'questionMarkBlock', + ), ], ), ], diff --git a/lib/src/widgets/nes_icon.dart b/lib/src/widgets/nes_icon.dart index ccffcc2..483e4be 100644 --- a/lib/src/widgets/nes_icon.dart +++ b/lib/src/widgets/nes_icon.dart @@ -338,6 +338,20 @@ class NesIcons { '8,8;6,0;2,-1;7,0;1,-1;2,0;1,1;2,0;1,1;3,0;1,1;4,0;1,1;2,0;1,1;4,0;1,1;3,0;1,1;2,0;1,1;18,0', ), ); + + /// Exclamation mark block + late final exclamationMarkBlock = NesIconData( + MiniSprite.fromDataString( + '8,8;1,-1;6,0;1,-1;3,0;2,1;6,0;2,1;6,0;2,1;6,0;2,1;14,0;2,1;3,0;1,-1;6,0;1,-1', + ), + ); + + /// Question mark block + late final questionMarkBlock = NesIconData( + MiniSprite.fromDataString( + '8,8;1,-1;6,0;1,-1;2,0;4,1;4,0;1,1;2,0;1,1;6,0;2,1;5,0;2,1;14,0;2,1;3,0;1,-1;6,0;1,-1', + ), + ); } /// {@template nes_icon}