W

wakelock_plus_aurora

Flutter Plugin that allows you to keep the device screen awake, i.e. prevent the screen from sleeping.

[EN] | RU

wakelock_plus_aurora

Original plugin README

Description

Flutter plugin that allows you to keep the device screen awake, i.e. prevent the screen from sleeping.

Features

  • Enable screen wakelock to prevent screen from turning off automatically
  • Disable screen wakelock
  • Toggle wakelock state
  • Check current wakelock status
  • No special permissions required on any platform

Quick Start

import 'package:wakelock_plus/wakelock_plus.dart';

// Enable screen wakelock
WakelockPlus.enable();

// Disable screen wakelock
WakelockPlus.disable();

Contents

Installation and Building

Add the following dependencies to pubspec.yaml:

dependencies:
  wakelock_plus: ^1.2.8
  wakelock_plus_aurora:
    git:
      url: https://developer.auroraos.ru/git/flutter/flutter-community-plugins/wakelock_plus.git

Compatibility

The plugin is compatible with Flutter 3.32.7, and Aurora OS 5.0.0 and higher.

Usage rules and contributing

The project’s source code is provided under the license, which allows its use in third-party applications.

If you want to contribute to the project, please read the Contributor Agreement.
If you plan to submit your source code for inclusion in the project, you will need to accept the CLA terms.

Information about contributors is available in the AUTHORS file.
The Code of Conduct is the current set of rules of Open Mobile Platform, outlining expectations for interaction between community members during communication and collaboration on projects.