flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

[desktop_drop] issue when using Responsive framework with scale factor

Open Abdullah-Abuzaid opened this issue 3 years ago • 0 comments

First of all, I think I have to address that this is my first time contributing in open source issues so bear with me

What is the issue

The issue is that drop zone area would be shifted and wouldnt be centered to whatever the child widget is.

imagine the red point is where my cursor pointing

The issue happens when you use Responsive Framework package with desktop_drop package. not sure if it happens with all platform but I'm using windows 10 and it happened with me.

from my testing this issue only happens when you use scale factor from responsive framework

this is my widget

Expected Behavior

The area wouldnt be shifted when using Responsive Framework

Current Behavior

The area of dropping is shifted away from the original child widget

Possible Solution

I tried an ugly solution that actually which is changing the factor scale in desktop drop package to be same as the one used in RF :

Steps to Reproduce

  1. Use Responsive frame work package with Desktop Drop
  2. use scale factor (other than 1)
  3. enjoy the chaos 👾

Context (Environment)

Global: Flutter 3.3.9 • channel stable • Tools • Dart 2.18.5 • DevTools 2.15.0 Windows 10

Project: Dart: sdk: ">=2.17.5 <3.0.0" responsive_framework: ^0.2.0 desktop_drop: ^0.4.0

Abdullah-Abuzaid avatar Dec 02 '22 23:12 Abdullah-Abuzaid