screen_plus 0.0.1 icon indicating copy to clipboard operation
screen_plus: ^0.0.1 copied to clipboard

one screen plugin.

screen_plus #

pub package

A Flutter plugin for finding commonly used locations on the filesystem. Supports Android, iOS, Not all methods are supported on all platforms.

Android iOS
Support SDK 16+ 9.0+

Usage #

To use this plugin, add screen_plus as a dependency in your pubspec.yaml file. Make sure you add the following permissions to your Android Manifest

<uses-permission android:name="android.permission.WAKE_LOCK" />

Example #

// Import package
import 'package:screen_plus/screen_plus.dart';

// Get the current brightness:
double brightness = await ScreenPlus.brightness;

// Set the brightness:

// Check if the screen is kept on:
bool isKeptOn = await ScreenPlus.getBrightnessStatus;

// Prevent screen from going into sleep mode: