Comments (3)
The use case in this issue is similar to the one at #140471. Could you check if it can assemble this?
from flutter.
The use case in this issue is similar to the one described in #140471. Could you check if it can assemble this?
The use case is similar, but I don't need an out-of-the-box solution like the one he wants.
I have already built a multi-select feature in my gallery app. However, the only way to select items now is by individually selecting each one, and I have not yet integrated a "drag-to-select" feature, which is available in most gallery apps.
To build drag-to-select, I was looking for ways to call a callback when the touch pointer enters a widget (a photo in my gallery, in this case) so I can trigger selection for that photo. I discovered the MouseRegion widget, but unfortunately, it doesn't work for touch screens. I was wondering if it's easy to create a similar widget like MouseRegion or make MouseRegion support touchscreens
I tried to figure out how MouseRegion works internally, but had no luck. I would love to create this and contribute to Flutter if you could let me know what documentation to read to understand it better.
from flutter.
I have the same thought as a user shared at #140471 (comment): it should be built with a new package rather than a built-in feature. Despite that, I will label this to see other's thoughts.
Perhaps #109455 (DragTarget.onWillAccept should trigger when the widget appears under a dragged item (similar toMouseRegion.onEnter)
) could be related to this.
from flutter.
Related Issues (20)
- tech-debt: move `readJsonResults` to utils
- Replace references to ListTile with CupertinoListTile in CupertinoSwitch example HOT 1
- CI builds for windows desktop can fail if Visual Studio installation is incomplete HOT 1
- win-2 low on disk space on local Temp directory. HOT 2
- linux-35 lost external connection phone device. HOT 1
- [tool_crash] FileSystemException: Cannot open file, OS Error: No such file or directory, errno = 2 HOT 1
- Webtransport support HOT 4
- [tool_crash] RPCError HOT 1
- Arrow render error in Text or RichText HOT 8
- [tool_crash] RPCError HOT 1
- Custom font special characters not rendered correctly on Web with CanvasKit HOT 5
- path_provider v2.1.4 return wrong download folder in android HOT 4
- Advanced code not working on https://codelabs.developers.google.com/codelabs/flutter-codelab-first#8 HOT 2
- StateError: Bad state: Failed to start Dart Development Service HOT 1
- Creating flutter projects take too long time and doesn't complete HOT 9
- Can no longer create an sms with message only (without phone number) HOT 2
- ExpansionTile doesn't properly collapse or expand when it contains ListTiles with tileColor HOT 1
- Flutter web Image.network doesn't show variable image link when work with reCAPTCHA Enterprise and Firebase appcheck for storage HOT 4
- TabBar crash with SliverAppBar HOT 6
- multiple text widgets in selection area cannot be selected and right-clicked altogether. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter.