From fc217a9a2855726ac1e0110b6c9bd63774b8ded7 Mon Sep 17 00:00:00 2001 From: Erick Date: Wed, 15 Feb 2023 09:12:48 -0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Elias Reis --- lib/src/widgets/nes_key_icon.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/src/widgets/nes_key_icon.dart b/lib/src/widgets/nes_key_icon.dart index 06b83c4..c984f3f 100644 --- a/lib/src/widgets/nes_key_icon.dart +++ b/lib/src/widgets/nes_key_icon.dart @@ -17,7 +17,7 @@ class NesKeyIcon extends StatelessWidget { this.size, }) : assert(buttonKey.length == 1, 'buttonKey must be a single character'); - /// The key that this icon represents + /// The key that this icon represents. final String buttonKey; /// If this button is in a pressed state or not. @@ -48,9 +48,7 @@ class NesKeyIcon extends StatelessWidget { Positioned( child: NesIcon( size: buttonSize, - iconData: pressed - ? NesIcons.instance.pressedButton - : NesIcons.instance.unpressedButton, + iconData: iconData, ), ), Positioned(