Этот репозиторий содержит Flutter плагины для платформы ОС Аврора.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Vitaliy Zarubin 72eaa3eca5 [update] Update branch packages 1 year ago
..
data [example] Move all example plugins to a separate example app. OS-17394 OS-17572 OS-17584 1 year ago
lib [flutter-plugins] Update copyright 1 year ago
.gitignore [wakelock] Implement wakelock plugin. OMP#OS-17021 2 years ago
README.md [update] Update branch packages 1 year ago
analysis_options.yaml [flutter-plugins] Update copyright 1 year ago
pubspec.yaml [flutter-plugins] Update copyright 1 year ago

README.md

wakelock_aurora

The Aurora implementation of wakelock.

Usage

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

pubspec.yaml

dependencies:
  wakelock: ^0.6.2
  wakelock_aurora:
    git:
      url: https://gitlab.com/omprussia/flutter/flutter-plugins.git
      ref: flutter-aurora-3.3.10
      path: packages/wakelock/wakelock_aurora

*.dart

import 'package:wakelock/wakelock.dart';

// The following line will enable wakelock.
Wakelock.enable();

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