3 ms·
This is what has prevented me from diving into Flutter for a personal project. Although it supports desktop and web, it is first and foremost a tool for buildin
by bmitc 3y ago
This is what has prevented me from diving into Flutter for a personal project. Although it supports desktop and web, it is first and foremost a tool for building mobile applications. For desktop, too much of the API is built around the assumption that you are on a mobile device with a single window and a finger as the pointing device. Feature requests for desktop, such as proper support for mouse-based drag and drop and multiple windows, are either ignored or take forever to develop.
Any platform that tries to support web, mobile, and desktop all at once, of which there are many, are destined to this fate of being spread too broadly and thinly.
- pohuing 3y agoWhat do you mean by mouse based drag and drop? As far as I can tell Draggable and DragTarget work fine on windows and macos at least.
- bmitc 3y agoThe API assumes you are on a relatively small screen and using a finger to drag and drop. Thus, it doesn't provide functionality that you would expect if you were on a desktop or laptop monitor with more space and using a mouse and keyboard where there is a wider variety of things that you would like to happen with a drag and drop interface. The API is primarily assuming you're taking a widget and dragging it with a finger to somewhere just an inch or two away on a phone or tablet screen. Yes, drag and drop "works" on desktop as it is, but the API is not well-designed for desktop-based usage. A lot of ad-hoc type of behavior using global state has to be used.