README.md 976 Bytes

Example

This is a basic example demonstrating the functionality of the wakelock plugin, including enabling & disabling the wakelock and also retrieving the current wakelock status using a FutureBuilder.

See example/lib/main.dart.

Integration testing

For integration testing, this plugin uses example/test_driver. The project has a setup for continuous integration, which will run the integration test to confirm that the plugin is working correctly.
The status for the latest commit is build status.

If you want to run the integration tests yourself, you can run flutter drive --target=test_driver/app.dart from the example directory.