Last updated:
0 purchases
screen plus
screen_plus #
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" />
copied to clipboard
Example #
// Import package
import 'package:screen_plus/screen_plus.dart';
// Get the current brightness:
double brightness = await ScreenPlus.brightness;
// Set the brightness:
ScreenPlus.setBrightness(0.5);
// Check if the screen is kept on:
bool isKeptOn = await ScreenPlus.getBrightnessStatus;
// Prevent screen from going into sleep mode:
ScreenPlus.setScreenWake(true);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.