September 2019
Beginner
512 pages
12h 52m
English
Again, the difference from the previous examples is minimal:
// part of press_and_hold_event_example.dart (full source code in the attached files)GestureDetector( onLongPress: () { setState(() { _counter++; }); }, child: ... // for brevity);
The only difference from the previous item is the property assigned, onLongPress, which will be called every time a tap is performed and held for some time – a long press – before being released from the screen.
Read now
Unlock full access