Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Elias Reis <[email protected]>
  • Loading branch information
erickzanardo and eliasreis54 authored Feb 15, 2023
1 parent 321afc9 commit fc217a9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/src/widgets/nes_key_icon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -48,9 +48,7 @@ class NesKeyIcon extends StatelessWidget {
Positioned(
child: NesIcon(
size: buttonSize,
iconData: pressed
? NesIcons.instance.pressedButton
: NesIcons.instance.unpressedButton,
iconData: iconData,
),
),
Positioned(
Expand Down

0 comments on commit fc217a9

Please sign in to comment.