Skip to content

Commit

Permalink
feat: adding NesIcons.arrowCursor
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo committed Jan 22, 2024
1 parent a19623a commit 9304243
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions example/lib/gallery/sections/icons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ class IconsSection extends StatelessWidget {
data: NesIcons.hamburgerMenu,
label: 'hamburgerMenu',
),
_IconEntry(
data: NesIcons.arrowCursor,
label: 'arrowCursor',
),
],
),
],
Expand Down
7 changes: 7 additions & 0 deletions lib/src/widgets/nes_icon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 9304243

Please sign in to comment.