Open nayanAubie opened 1 year ago
Maybe try messing with the .behavior of the GestureDetector my hope is doing HitTestBehavior.translucent would work. If not maybe wrapping the child in a SizedBox.expand() could work. Neither of those are guarantees but flutter has some weird ways of dealing with taps, and I've had both of those help in the past.
This won't work as I need to hide keyboard when user taps anywhere in the screen
I've used the
GestureDetector
widget for hiding the keyboard when the user taps outside of aTextField
. For that, I am using this widget in thebuilder
callback ofMaterialApp
.main.dart
ar_view.dart
An object was placed successfully when I tap any surface point, I can able to drag it, but can't rotate it even after
handleRotation: true
. If I remove theGestureDetector
widget frommain.dart
then it's working. but I can't remove it.