Skip to content

Commit

Permalink
feat: adding NesIcons.center
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo committed Jan 24, 2024
1 parent c5997e2 commit 58ae27e
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 @@ -15,6 +15,7 @@
- feat: add `NesIcons.arrowCursor`.
- feat: `NesWindow` uses `NesContainerTheme` instead of Material's card.
- feat: update mini sprite to improve icons.
- feat: add `NesIcons.center`.

# 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 @@ -385,6 +385,10 @@ class IconsSection extends StatelessWidget {
data: NesIcons.arrowCursor,
label: 'arrowCursor',
),
_IconEntry(
data: NesIcons.center,
label: 'center',
),
],
),
],
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 @@ -687,6 +687,13 @@ class NesIconCollection {
'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',
),
);

/// Center
late final center = NesIconData(
MiniSprite.fromDataString(
'8,8;3,-1;2,0;6,-1;2,0;4,-1;6,0;3,-1;4,0;5,-1;2,0;14,-1;2,0;6,-1;2,0;3,-1',
),
);
}

/// {@template nes_icon}
Expand Down

0 comments on commit 58ae27e

Please sign in to comment.