diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ea2132..6c0181a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - feat: add `NesIcons.arrowCursor`. - feat: `NesWindow` uses `NesContainerTheme` instead of Material's card. - feat: update mini sprite to improve icons. + - feat: add `NesIcons.center`. # 0.12.1 - fix: theme lerp causing error on null access. diff --git a/example/lib/gallery/sections/icons.dart b/example/lib/gallery/sections/icons.dart index 7f36ab7..c16f431 100644 --- a/example/lib/gallery/sections/icons.dart +++ b/example/lib/gallery/sections/icons.dart @@ -385,6 +385,10 @@ class IconsSection extends StatelessWidget { data: NesIcons.arrowCursor, label: 'arrowCursor', ), + _IconEntry( + data: NesIcons.center, + label: 'center', + ), ], ), ], diff --git a/lib/src/widgets/nes_icon.dart b/lib/src/widgets/nes_icon.dart index 79bb56a..d402cf8 100644 --- a/lib/src/widgets/nes_icon.dart +++ b/lib/src/widgets/nes_icon.dart @@ -687,6 +687,13 @@ class NesIconCollection { '8,8;3,0;5,-1;1,0;2,1;2,0;3,-1;1,0;4,1;2,0;1,-1;2,0;4,1;1,0;1,-1;2,0;3,1;1,0;3,-1;2,0;1,1;1,0;1,1;1,0;2,-1;7,0;2,-1;2,0;1,-1;2,0;1,-1', ), ); + + /// Center + late final center = NesIconData( + MiniSprite.fromDataString( + '8,8;3,-1;2,0;6,-1;2,0;4,-1;6,0;3,-1;4,0;5,-1;2,0;14,-1;2,0;6,-1;2,0;3,-1', + ), + ); } /// {@template nes_icon}