v0.0.5
screen
Um plugin Flutter para gerenciar a tela do dispositivo no Android e no iOS.
121Curtidas 1 milDownloads em 30 dias40Pontos Pub
Plataformas indisponíveis
clovisnicolas/flutter_screen open-source repository details.
Texto original em inglês. Visite o GitHub para a versão atual.
A Flutter plugin to manage the device's screen on Android and iOS.
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" />
// Import package
import 'package:screen/screen.dart';
// Get the current brightness:
double brightness = await Screen.brightness;
// Set the brightness:
Screen.setBrightness(0.5);
// Check if the screen is kept on:
bool isKeptOn = await Screen.isKeptOn;
// Prevent screen from going into sleep mode:
Screen.keepOn(true);
Lista de dependências 1 itens
{"sdk":"flutter"}Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗