From bc35105860a5d96bdd357ab9ce86e8accbd48f21 Mon Sep 17 00:00:00 2001 From: Erick Date: Wed, 17 Jan 2024 09:06:08 -0300 Subject: [PATCH] feat: adding rename 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 5b2f481..81b4dc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - feat: add `NesIcons.windows`. - feat: add `NesIcons.audio`. - feat: add `NesIcons.screen`. + - feat: add `NesIcons.rename`. # 0.12.1 - fix: theme lerp causing error on null access. diff --git a/example/lib/gallery/sections/icons.dart b/example/lib/gallery/sections/icons.dart index 00cdc31..1ee2847 100644 --- a/example/lib/gallery/sections/icons.dart +++ b/example/lib/gallery/sections/icons.dart @@ -373,6 +373,10 @@ class IconsSection extends StatelessWidget { data: NesIcons.screen, label: 'screen', ), + _IconEntry( + data: NesIcons.rename, + label: 'rename', + ), ], ), ], diff --git a/lib/src/widgets/nes_icon.dart b/lib/src/widgets/nes_icon.dart index b352e03..78624bd 100644 --- a/lib/src/widgets/nes_icon.dart +++ b/lib/src/widgets/nes_icon.dart @@ -666,6 +666,13 @@ class NesIconCollection { '8,8;9,0;6,1;2,0;6,1;2,0;6,1;12,0;2,1;3,0;2,-1;4,0;2,-1;8,0', ), ); + + /// Rename + late final rename = NesIconData( + MiniSprite.fromDataString( + '8,8;13,-1;3,0;1,-1;1,0;4,-1;1,0;1,-1;1,0;1,-1;1,0;3,-1;1,0;1,-1;3,0;3,-1;1,0;1,-1;1,0;1,-1;1,0;3,-1;1,0;6,-1;3,0;8,-1', + ), + ); } /// {@template nes_icon}