Skip to content

Commit

Permalink
feat: adding rename icon
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo committed Jan 17, 2024
1 parent f3e3dbf commit bc35105
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 @@ -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.
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 @@ -373,6 +373,10 @@ class IconsSection extends StatelessWidget {
data: NesIcons.screen,
label: 'screen',
),
_IconEntry(
data: NesIcons.rename,
label: 'rename',
),
],
),
],
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 @@ -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}
Expand Down

0 comments on commit bc35105

Please sign in to comment.