How can I configure the sensors (Accelerometer or gyroscope) to do something when the user shakes or rotate the phone?
I want to show a new string each time the user shakes the phone.
Also I need a button to start and finish the sensors "action". Thanks!!!!!!
Use flutter_shake_plugin and you can try something like this:
If you want to see live example. Take a look at this link I've implemented in one of my apps.