Skip to content

Commit

Permalink
Merge branch 'main' into feat/nes-scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzanardo authored Mar 27, 2024
2 parents 0af154a + fb4ecac commit cb96297
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
@@ -1,6 +1,7 @@
# 0.20.0
- feat: adding different frames to `NesDialog`s
- feat: allow `NesFileExplorer` to have custom icons
- feat: adding `NesIcons.alien`
- feat: allow `NesScaffold` and allow snackbars to be shown on them.

# 0.19.0
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 @@ -435,6 +435,10 @@ class IconsSection extends StatelessWidget {
data: NesIcons.bell,
label: 'bell',
),
_IconEntry(
data: NesIcons.alien,
label: 'alien',
),
],
),
),
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 @@ -757,6 +757,13 @@ class NesIconCollection {
'8,8;3,-1;2,0;5,-1;4,0;4,-1;1,0;1,1;2,0;4,-1;1,0;1,1;2,0;3,-1;1,0;1,1;4,0;1,-1;16,0;3,-1;2,0;3,-1',
),
);

/// Alien
late final alien = NesIconData(
MiniSprite.fromDataString(
'8,8;1,0;6,-1;1,0;1,-1;2,0;2,-1;2,0;1,-1;9,0;2,-1;2,0;2,-1;10,0;1,-1;4,0;1,-1;1,0;1,-1;2,0;2,-1;2,0;9,-1',
),
);
}

/// {@template nes_icon}
Expand Down

0 comments on commit cb96297

Please sign in to comment.