flutter-plugins
flutter-plugins copied to clipboard
[desktop_drop] issue when using Responsive framework with scale factor
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
- Use Responsive frame work package with Desktop Drop
- use scale factor (other than 1)
- 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