Skip to content

Commit

Permalink
feat: adding exclamation and question mark block icons (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo authored Jun 15, 2023
1 parent f1c8c4e commit 881c265
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
- feat: add `NesIcons.yamlFile`
- feat: add `NesIcons.xmlFile`
- fix: `NesTabView` didn't keept state on tab change.
- feat: add `NesIcons.exclamationMarkBlock`
- feat: add `NesIcons.questionMarkBlock`

# 0.6.0

Expand Down
8 changes: 8 additions & 0 deletions example/lib/gallery/sections/icons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ class IconsSection extends StatelessWidget {
data: NesIcons.instance.xmlFile,
label: 'xmlFile',
),
_IconEntry(
data: NesIcons.instance.exclamationMarkBlock,
label: 'exclamationMarkBlock',
),
_IconEntry(
data: NesIcons.instance.questionMarkBlock,
label: 'questionMarkBlock',
),
],
),
],
Expand Down
14 changes: 14 additions & 0 deletions lib/src/widgets/nes_icon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,20 @@ class NesIcons {
'8,8;6,0;2,-1;7,0;1,-1;2,0;1,1;2,0;1,1;3,0;1,1;4,0;1,1;2,0;1,1;4,0;1,1;3,0;1,1;2,0;1,1;18,0',
),
);

/// Exclamation mark block
late final exclamationMarkBlock = NesIconData(
MiniSprite.fromDataString(
'8,8;1,-1;6,0;1,-1;3,0;2,1;6,0;2,1;6,0;2,1;6,0;2,1;14,0;2,1;3,0;1,-1;6,0;1,-1',
),
);

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

/// {@template nes_icon}
Expand Down

0 comments on commit 881c265

Please sign in to comment.