当用户在外部点击时,我试图用GestureDetector取消TextFormField的焦点,但我无法让它工作。onTap从不触发。StatelessWidget { Widget build(BuildContext context) { body: new GestureDetector( print('this does not fire, why
如果我使用ontap,Gesturedetector无法工作,但如果我将其更改为双击,则Gesturedetector可以工作。Widget build(BuildContext context) {
color: _color, print('object');// does not work but