Когда я использую обычный жестерстер , я получаю свой терминал, заполненный предупреждениями о событии движения, например:
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
< /code>
В частности, это мой терминал: < /p>
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
W/MotionEvent-JNI(11414): android_view_MotionEvent_nativeGetPointerCount: -1
I/flutter (11414): TEST
Код, необходимый для воспроизведения этой ошибки, является простой кнопкой StatefulWidget с одной кнопкой GestureDetector :
class TestGraphics extends StatefulWidget {
const TestGraphics({super.key});
@override
State createState() => _TestGraphicsState();
}
class _TestGraphicsState extends State {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
GestureDetector(
onTap: () {
print("TEST");
},
child: Container(color: Colors.amber, width: 100, height: 100),
),
],
),
);
}
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... rcount-1-w