Skip to content

Commit

Permalink
update dcos
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianBissekkou committed Mar 12, 2024
1 parent ec25c37 commit c2e681c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .fvm/flutter_sdk
6 changes: 4 additions & 2 deletions lib/gesture_listener.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ class _GestureListenerState extends State<GestureListener> {
final delta = event.delta;
final primaryDelta = delta.dy;

/// ⚠️ If not assign the dx to 0, an assertion is not working.
/// ⚠️ If not assign the dx to 0, an assertion
/// in the constructor of [DragUpdateDetails] is thrown.
final offset = Offset(0, primaryDelta);

final details = DragUpdateDetails(
Expand All @@ -62,7 +63,8 @@ class _GestureListenerState extends State<GestureListener> {

final pixelsPerSecondY = velocity.pixelsPerSecond.dy;

/// ⚠️ If not assign the dx to 0, an assertion is not working.
/// ⚠️ If not assign the dx to 0, an assertion
/// in the constructor of [DragEndDetails] is thrown.
final offset = Offset(0, pixelsPerSecondY);
final details = DragEndDetails(
velocity: Velocity(pixelsPerSecond: offset),
Expand Down

0 comments on commit c2e681c

Please sign in to comment.