Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- feat: Add `NesIcons.fillBucket`.
- feat: Add `NesIcons.transform`.
- feat: Add `NesIcons.shrink`.
- feat: Add `NesIcons.palette`.

# 0.30.0
- feat: Add `NesShakeEffect` widget with declarative `shaking` bool and optional `NesShakeEffectController`.
Expand Down
6 changes: 6 additions & 0 deletions lib/src/widgets/nes_icon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,12 @@ class NesIconCollection {
'8,8;1,-1;5,0;7,-1;2,0;7,-1;2,0;2,-1;1,0;2,-1;3,0;1,-1;14,0;2,-1;4,0;5,-1;1,0;5,-1',
),
);

late final palette = NesIconData(
Comment thread
erickzanardo marked this conversation as resolved.
MiniSprite.fromDataString(
'8,8;1,-1;6,0;1,-1;2,0;1,1;2,0;1,1;11,0;1,1;4,0;1,1;11,0;1,1;3,0;1,-1;1,0;1,-1;7,0;2,-1;5,0;1,-1',
),
);
}

/// {@template nes_icon}
Expand Down
1 change: 1 addition & 0 deletions widgetbook/lib/widgetbook/use_cases/icons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ Widget normal(BuildContext context) => SingleChildScrollView(
_IconEntry(data: NesIcons.shrink, label: 'shrink'),
_IconEntry(data: NesIcons.selection, label: 'selection'),
_IconEntry(data: NesIcons.rotateFlipped, label: 'rotateFlipped'),
_IconEntry(data: NesIcons.palette, label: 'palette'),
],
),
);
Expand Down