Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dragg from right #42

Open
SamiraAriaeifar opened this issue Sep 3, 2020 · 3 comments
Open

Dragg from right #42

SamiraAriaeifar opened this issue Sep 3, 2020 · 3 comments

Comments

@SamiraAriaeifar
Copy link

I want to dragg from right when i have typeOpen: TypeOpen.FROM_RIGHT,

@SamiraAriaeifar
Copy link
Author

??

@InfiniteTabs
Copy link

I can confirm this issue, dragging works very well from the left, but it's not working from the right.

@InfiniteTabs
Copy link

InfiniteTabs commented Sep 20, 2020

I can see that the code is already prepared for dragging on the right side as well. The problem is due to

  void _myOnHorizontalDragStart(DragStartDetails detail) {
    if (!widget.isDraggable) return;
    if (detail.localPosition.dx <= WIDTH_GESTURE &&
        !(widget.withPaddingTop && detail.localPosition.dy <= HEIGHT_APPBAR)) {
      this.setState(() {
        dragging = true;
      });
    }
  }

in animated_drawer_content.dart:120

Increasing WIDTH_GESTURE or commenting out the inner if-statement will make dragging work for you on the right side too.

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants