gesturedetector Questions
21
I have two containers in a stack and both containers have GestureDetector.The OnTap for the first container is working fine but it's not working with another container.
The first container is the i...
Whitelaw asked 24/10, 2018 at 9:42
2
Solved
If I have a GestureDetector that have an internal GestureDetector how can I setup it so that both detectors receive the click event?
You can see the running code here:
https://dartpad.dev/37807a51a...
Synaeresis asked 19/2, 2021 at 22:6
3
Solved
EDIT: I've tried wrapping the Container in a Material widget and moving the color property to the Material widget, but I'm placing a bunch of ResourceCards in a horizontal ListView, so the color fr...
Histogenesis asked 21/4, 2020 at 16:42
2
Solved
Am I missing something? The documentation says that events bubble up from the innermost child to the ancestors, but below code will not print "dragged" to the console. It does print "tapped" though...
Uird asked 20/10, 2018 at 21:37
1
I hope the page can slide up, down, left and right, and the outer GestureDetector can receive the event of horizontal sliding when the page cannot slide left and right. What should I do?
I hope the...
Transcontinental asked 9/3, 2023 at 6:45
8
Solved
Is there a better way to check Left/Right Drag in #flutter. I have done it but somtime it works sometime it doesn't.
new GestureDetector(
onHorizontalDragEnd: (DragEndDetails details) {
print(...
Caius asked 2/10, 2017 at 15:15
3
I am creating a drawing canvas with flutter for which I want to use both scale (for zooming, panning and rotating) and Pan (for drawing with fingers) gestures but flutter doesn't allow that since S...
Slippage asked 28/4, 2020 at 20:45
5
Solved
I want to execute a method while a user is pressing down on a button. In pseudocode:
while (button.isPressed) {
executeCallback();
}
In other words, the executeCallback method should fire repeate...
Rh asked 1/9, 2018 at 13:27
1
Solved
I want to hide screen keyboard by onTap outside TextField or anywhere on screen.
Then i wrap my Scaffold with GestureDetector like below.
i already try both with onTap and onTapDown.
GestureDetect...
Raymond asked 7/9, 2022 at 9:15
6
I'm very new to flutter and am trying to figure out how to get a gesture detected on a CustomPaint path. I can click on a host of other things but not on paths for some reason... How do I get this ...
Interrupter asked 18/7, 2019 at 17:59
5
Solved
I am trying to catch the tap event on TextFormField into a flutter Form.
I use a GestureDetector to do that with the TextFormField as child but nothing is firing when a click on it :
@override
...
Wary asked 21/12, 2017 at 17:22
0
I have a Recyclerview and that allow user to change scale by swipping up, I use the gestureDetector and onFling for this, this works fine, but then the user should able to click on an Item of recyc...
Bacchanal asked 27/7, 2022 at 10:51
3
Solved
I need to listen to the user when he stops drag and drop on my RecyclerView (when he drops the selected item).
Can I get this Information through my ItemTouchHelper?
Thanks for helping
Mark: At ...
Correna asked 24/5, 2016 at 23:25
0
I'm creating some kind of image editor (kinda like Canva). For zooming in, out, and panning, I use InteractiveViewer. But the thing is, once I start using InteractiveViewer, I noticed that my other...
Benia asked 26/4, 2022 at 5:42
1
Solved
I have a Stack containing first a ListView, then a transparent Widget with a GestureDetector to click on it. Everything works fine but when I put the mouse inside the GestureDetector I can't scroll...
Waistcloth asked 16/8, 2021 at 15:37
4
Solved
I'm making a widget that has a gesture detector as its root, its child is a column which then has multiple different children views some of which are text fields, but the gesture detector only fire...
Apportionment asked 7/2, 2019 at 10:37
2
Solved
I have a Stack with two widgets inside.
I'm trying to detect the click on the bottom widget of the Stack, which is behind the top one.
I am using HitTestBehavior.translucent, but it only work if th...
Duwalt asked 17/2, 2021 at 14:50
1
I have TabBarView with 3 children, one of them I have a container which has an onPanUpdate gesture.
When I am trying to move container tab bar onHorizontalDragUpdate calls and tab bar changes tab...
Aeronautics asked 27/10, 2019 at 20:53
1
I would like to be able to swipe down to dismiss but with the Hero-Animation.
I tried using a GestureDetector like this:
body: GestureDetector(
onVerticalDragDown: (details) {
Navigator.pop(cont...
Repress asked 2/3, 2021 at 11:35
1
Solved
I'm developing and app where on double tap I need to perform some actions, but they require the position where that double tap was executed. That information is normally carried by the details in e...
Ringsmuth asked 3/8, 2020 at 11:36
2
Solved
I try to create an app which changes the background color to a random color when user taps anywhere on the screen but OnTap function works only when I tap on the text. Please help me how can I fix ...
Boreas asked 20/12, 2019 at 13:37
1
Solved
I need a little help there.
I want to disconnect the user from the app when he has been inactive for 5 minutes. So I used this solution : Detect when user is not interacting the app in Flutter
It...
Gaga asked 27/11, 2019 at 10:1
1
Solved
I want to have a MaterialButton to detect onTapDown, onTapUp and onTapCancel.
Unfortunately MaterialButtons only detect onPressed. So I wrapped it with a GestureDetector but for MaterialButtons, on...
Volva asked 15/5, 2019 at 17:42
1
Solved
Somehow I'm getting same values for both, I'm not able to understand the difference between global and local position in flutter.
RenderBox getBox = context.findRenderObject();
Offset position = g...
Rue asked 21/4, 2019 at 13:56
2
Solved
I was struggling with adding a gesture detector to a subview in my project. Do I override the parent's onTouchEvent or the child's onTouchEvent? Do I make an OnTouchListener and add the gesture det...
Teteak asked 12/7, 2017 at 10:18
1 Next >
© 2022 - 2025 — McMap. All rights reserved.