From fb4ecaccf19967ac63b94c3d8ba7b282736a60c7 Mon Sep 17 00:00:00 2001 From: Erick Date: Fri, 22 Mar 2024 09:23:41 -0300 Subject: [PATCH] feat: Adding NesIcons.alien --- 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 eff1a2b..e8dfed2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # 0.20.0 - feat: adding different frames to `NesDialog`s - feat: allow `NesFileExplorer` to have custom icons + - feat: adding `NesIcons.alien` # 0.19.0 - feat: adding `NesSectionHeader` diff --git a/example/lib/gallery/sections/icons.dart b/example/lib/gallery/sections/icons.dart index 12a63ee..61633b1 100644 --- a/example/lib/gallery/sections/icons.dart +++ b/example/lib/gallery/sections/icons.dart @@ -435,6 +435,10 @@ class IconsSection extends StatelessWidget { data: NesIcons.bell, label: 'bell', ), + _IconEntry( + data: NesIcons.alien, + label: 'alien', + ), ], ), ), diff --git a/lib/src/widgets/nes_icon.dart b/lib/src/widgets/nes_icon.dart index afb5384..6c13e67 100644 --- a/lib/src/widgets/nes_icon.dart +++ b/lib/src/widgets/nes_icon.dart @@ -757,6 +757,13 @@ class NesIconCollection { '8,8;3,-1;2,0;5,-1;4,0;4,-1;1,0;1,1;2,0;4,-1;1,0;1,1;2,0;3,-1;1,0;1,1;4,0;1,-1;16,0;3,-1;2,0;3,-1', ), ); + + /// Alien + late final alien = NesIconData( + MiniSprite.fromDataString( + '8,8;1,0;6,-1;1,0;1,-1;2,0;2,-1;2,0;1,-1;9,0;2,-1;2,0;2,-1;10,0;1,-1;4,0;1,-1;1,0;1,-1;2,0;2,-1;2,0;9,-1', + ), + ); } /// {@template nes_icon}