Masterarbeit Richard Stern. Flutter App, sich mit einem Bluetooth-Gerät verbindet und Berührungen auf einem Sensor visualisiert.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Richard Stern a951e9518d Add All the files from the touchpad_demonstrator Flutter App which can be build for Android and iOS 5 years ago
..
android Add All the files from the touchpad_demonstrator Flutter App which can be build for Android and iOS 5 years ago
example Add All the files from the touchpad_demonstrator Flutter App which can be build for Android and iOS 5 years ago
ios Add All the files from the touchpad_demonstrator Flutter App which can be build for Android and iOS 5 years ago
lib Add All the files from the touchpad_demonstrator Flutter App which can be build for Android and iOS 5 years ago
CHANGELOG.md Add All the files from the touchpad_demonstrator Flutter App which can be build for Android and iOS 5 years ago
LICENSE Add All the files from the touchpad_demonstrator Flutter App which can be build for Android and iOS 5 years ago
README.md Add All the files from the touchpad_demonstrator Flutter App which can be build for Android and iOS 5 years ago
pubspec.yaml Add All the files from the touchpad_demonstrator Flutter App which can be build for Android and iOS 5 years ago
screen.iml Add All the files from the touchpad_demonstrator Flutter App which can be build for Android and iOS 5 years ago
screen_android.iml Add All the files from the touchpad_demonstrator Flutter App which can be build for Android and iOS 5 years ago

README.md

Screen

pub package A Flutter plugin to manage the device’s screen on Android and iOS.

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: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);