shake icon indicating copy to clipboard operation
shake copied to clipboard

Is it possible to test shaking the device in a widget/integration test?

Open toebgen opened this issue 2 years ago • 1 comments

Is it possible to mock this in a Flutter Integration Test somehow? I am looking for a way to do this programmatically.

toebgen avatar Apr 13 '22 16:04 toebgen

The package uses sensors_plus underneath, so while I need to do a bit more research, the first place I would start looking is their test folder: https://github.com/fluttercommunity/plus_plugins/blob/main/packages/sensors_plus/sensors_plus/test/sensors_test.dart

Currently pushing a few other changes to the package but I'll look into adding tests and mocking this next week.

deven98 avatar Apr 17 '22 10:04 deven98