Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/src/flutter_sliding_box.dart
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,16 @@ class BoxController extends ValueNotifier<MenuIconValue> {
_boxState = boxState;
}

/// Handles when a new position is passed as a drag externally
void onDragUpdate(double dy) {
_boxState?._onGestureUpdate(dy);
}

/// Handles when drag end event is passed as a drag externally
void onDragEnd(Velocity v) {
_boxState?._onGestureEnd(v);
}

/// Determine if the [SlidingBox.controller] is attached to an instance of the
/// [SlidingBox] (this property must be true before any other [BoxController]
/// functions can be used)
Expand Down