From 93042437c12b14e47030fa11292f231f0b22996f Mon Sep 17 00:00:00 2001 From: Erick Date: Mon, 22 Jan 2024 15:41:53 -0300 Subject: [PATCH] feat: adding NesIcons.arrowCursor --- 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 25a781c..f825ddc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - feat: add `NesIcons.rename`. - feat: add `NesIcons.hamburgerMenu`. - feat: adding `NesButton` helper constructors. + - feat: add `NesIcons.arrowCursor`. # 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 0ec667f..7f36ab7 100644 --- a/example/lib/gallery/sections/icons.dart +++ b/example/lib/gallery/sections/icons.dart @@ -381,6 +381,10 @@ class IconsSection extends StatelessWidget { data: NesIcons.hamburgerMenu, label: 'hamburgerMenu', ), + _IconEntry( + data: NesIcons.arrowCursor, + label: 'arrowCursor', + ), ], ), ], diff --git a/lib/src/widgets/nes_icon.dart b/lib/src/widgets/nes_icon.dart index f41164e..79bb56a 100644 --- a/lib/src/widgets/nes_icon.dart +++ b/lib/src/widgets/nes_icon.dart @@ -680,6 +680,13 @@ class NesIconCollection { '8,8;17,-1;6,0;10,-1;6,0;10,-1;6,0;9,-1', ), ); + + /// Arrow cursor + late final arrowCursor = NesIconData( + MiniSprite.fromDataString( + '8,8;3,0;5,-1;1,0;2,1;2,0;3,-1;1,0;4,1;2,0;1,-1;2,0;4,1;1,0;1,-1;2,0;3,1;1,0;3,-1;2,0;1,1;1,0;1,1;1,0;2,-1;7,0;2,-1;2,0;1,-1;2,0;1,-1', + ), + ); } /// {@template nes_icon}