Skip to content

Commit

Permalink
fix direction demo3
Browse files Browse the repository at this point in the history
  • Loading branch information
nhancv committed Apr 5, 2018
1 parent 8b1ae62 commit f630868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/demo3.dart
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class Node {
dirAvailableList.add(Direction.LEFT);
dirAvailableList.add(Direction.RIGHT);
dirAvailableList.add(Direction.BOTTOM);
dirAvailableList.add(Direction.BOTTOM_LEFT);
dirAvailableList.add(Direction.BOTTOM_RIGHT);
}
//if x invalid and y valid
if (position.dx >= screenSize.width - 5.0 && position.dy > 5.0) {
Expand Down Expand Up @@ -291,7 +291,7 @@ class Node {
dirAvailableList.add(Direction.LEFT);
dirAvailableList.add(Direction.RIGHT);
dirAvailableList.add(Direction.TOP);
dirAvailableList.add(Direction.TOP_LEFT);
dirAvailableList.add(Direction.TOP_RIGHT);
}
//if x invalid and y valid
if (position.dx >= screenSize.width - 5.0 &&
Expand Down

0 comments on commit f630868

Please sign in to comment.