W

wakelock_plus

Flutter плагин для платформы ОС Аврора.

Архивный проект! Репозиторий и другие ресурсы проекта доступны только для чтения

wakelock_plus_aurora

The Aurora implementation of wakelock_plus.

Usage

This package is not an endorsed implementation of wakelock_plus. Therefore, you have to include wakelock_plus_aurora alongside wakelock_plus as dependencies in your pubspec.yaml file.

pubspec.yaml

dependencies:
  wakelock_plus: ^1.2.8
  wakelock_plus_aurora:
    git:
      url: https://gitlab.com/omprussia/flutter/flutter-community-plugins/wakelock_plus.git
      ref: aurora-0.5.3

*.dart

import 'package:wakelock_plus/wakelock_plus.dart';
// ...

// The following line will enable the Android and iOS wakelock.
WakelockPlus.enable();

// The next line disables the wakelock again.
WakelockPlus.disable();