Flutter – ontap not trigger on Scaffold body
my example code is body: GestureDetector( onTap: () { print("tap"); }, child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ const Text( 'You have pushed the button this many times:', ), Text( '$_counter', style: Theme.of(context).textTheme.headlineMedium, ), ], ), ), ) but…