v0.0.5
screen
一個用於在 Android 和 iOS 上管理設備螢幕的 Flutter 外掛。
121喜歡 1040近 30 天下載40Pub 分數
平台暫無資料
clovisnicolas/flutter_screen open-source repository details.
以下為英文專案原文快照,最新內容請造訪 GitHub。
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);
依賴清單 1 項
{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗