INFRA: Set Up Project.

This commit is contained in:
2025-11-28 11:10:49 +05:00
commit c798279f7d
609 changed files with 77436 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
enum LoadState { loading, success, failure }
enum Direction { up, down, left, right }
class VerticalDragInfo {
bool cancel = false;
Direction? direction;
void update(double primaryDelta) {
Direction tmpDirection;
if (primaryDelta > 0) {
tmpDirection = Direction.down;
} else {
tmpDirection = Direction.up;
}
if (direction != null && tmpDirection != direction) {
cancel = true;
}
direction = tmpDirection;
}
}