lecle_screen_manager 0.0.1+5 copy "lecle_screen_manager: ^0.0.1+5" to clipboard
lecle_screen_manager: ^0.0.1+5 copied to clipboard

A Flutter plugin to manage the device's screen on Android and iOS.

lecle_screen_manager #

A Flutter plugin to manage the device's screen on Android and iOS devices. Migrate from screen package

Usage #

To use this plugin, add screen 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:lecle_screen_manager/lecle_screen_manager.dart';

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

// Set the brightness:
LecleScreenManager.setBrightness(0.5);

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

// Prevent screen from going into sleep mode:
LecleScreenManager.keepOn(true);
4
likes
130
pub points
43%
popularity

Publisher

verified publisherlecle.vn

A Flutter plugin to manage the device's screen on Android and iOS.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on lecle_screen_manager