Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsieu committed Jul 3, 2024
1 parent 4099139 commit 37f8471
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,9 @@ class MainPageState extends State<MainPage>
}

Widget _buildCard(SolitaireCard card, SolitaireCardLocation location) {
final _draggedLocation = draggedLocation;
final _hoveredLocation = hoveredLocation;
final bool isDraggedByAnotherCard = _draggedLocation != null
? location.pile == _draggedLocation.pile &&
location.row >= _draggedLocation.row
final bool isDraggedByAnotherCard = draggedLocation != null
? location.pile == draggedLocation!.pile &&
location.row >= draggedLocation!.row
: false;
final bool isReturning = animatingCards.contains(card);
final bool isRenderedByAnotherCard = isDraggedByAnotherCard || isReturning;
Expand All @@ -436,9 +434,9 @@ class MainPageState extends State<MainPage>
elevation: 10.0,
hoverElevation: 10.0,
data: location,
forceHovering: _hoveredLocation != null
? location.pile == _hoveredLocation.pile &&
location.row >= _hoveredLocation.row
forceHovering: hoveredLocation != null
? location.pile == hoveredLocation!.pile &&
location.row >= hoveredLocation!.row
: null,
onDoubleTap: () {
tryMoveToFoundation(card, location);
Expand Down

0 comments on commit 37f8471

Please sign in to comment.