8000 feat: Adding NesIcons.heart by erickzanardo · Pull Request #174 · erickzanardo/nes_ui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: Adding NesIcons.heart #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.24.0
- feat: Adding `NesIcons.heart`


# 0.23.0
- fix: `NesDialog` would rely on the "root" theme, which would break if it was not a nes ui one.
- feat: Dialogs now can be "confirmed" with the enter key, and the cancel (esc key) can be intercepted by the developer now
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 @@ -447,6 +447,10 @@ class IconsSection extends StatelessWidget {
data: NesIcons.gem,
label: 'gem',
),
_IconEntry(
data: NesIcons.heart,
label: 'heart',
),
],
),
),
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 @@ -785,6 +785,13 @@ class NesIconCollection {
'8,8;2,-1;4,0;3,-1;1,0;2,1;1,0;1,1;1,0;1,-1;2,0;1,1;1,0;1,1;4,0;1,1;7,0;2,1;1,0;2,1;2,0;1,-1;2,0;2,1;2,0;3,-1;1,0;1,1;2,0;5,-1;2,0;3,-1',
),
);

/// Heart
late final heart = NesIconData(
MiniSprite.fromDataString(
'8,8;9,-1;2,0;2,-1;2,0;1,-1;24,0;1,-1;6,0;3,-1;4,0;5,-1;2,0;3,-1',
),
);
}

/// {@template nes_icon}
Expand Down
4 changes: 4 additions & 0 deletions widgetbook/lib/widgetbook/use_cases/icons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,10 @@ Widget normal(BuildContext context) => SingleChildScrollView(
data: NesIcons.gem,
label: 'gem',
),
_IconEntry(
data: NesIcons.heart,
label: 'heart',
),
],
),
);
Expand Down
0