-
-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add more gestures for TreeViewItem #851
Comments
i put a DropDownButton to content of TreeViewItem,and put text widget with gestures to buttonBuilder of DropDownButton. |
I keep this one open, I'm also interested to have a secondary tap on TreeViewIteams. |
I have designed a concept for this. Each To use, it'd be something like: items: [
TreeViewItem(
...,
gestures: {
TapGestureRecognizer: GestureRecognizerFactoryWithHandlers<TapGestureRecognizer>(
() => TapGestureRecognizer(),
(TapGestureRecognizer instance) {
instance
..onTapDown = (details) {}
..onSecondaryTap = () {};
},
),
},
),
], The records:
|
This would be a nice feature! From the point of view of a user, when I see some tree-like element in a desktop app GUI, I would try out these gestures:
In a mobile application I would try out:
Long story short: I think |
Is your feature request related to a problem? Please describe.
i need show menu for every treeViewItem on windows and macos,by "onSecondaryTap".
i need show menu for every treeViewItem on android and ios,by "onLongPress" or "other gestures"
Describe the solution you'd like
return TreeView( selectionMode: TreeViewSelectionMode.single, items: [...], onSecondaryTap: (TreeViewItem item, TapDownDetails details,){ print('onSecondaryTap'); }, onLongPress: (TreeViewItem item){ print('onLongPress'); }, onOtherGestures: (TreeViewItem item){ print('Other Gestures'); }, );
The text was updated successfully, but these errors were encountered: