Im working on flutter web. I need to implement finger touch specific code and mouse specific codes. I have used Listener widget.but it recognizes both mouse panning and finger panning on screen. But I need only mouse panning. Kindly tell me the code which differentiate between finger touch gestures and mouse pointer gestures. Listener code:
Listener(
onPointerMove: (details) {
print('moved');
},
child: Container(height:500,width:300));
Aucun commentaire:
Enregistrer un commentaire