Add All the files from the touchpad_demonstrator Flutter App which can be build for Android and iOS
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
class Screen {
|
||||
static const MethodChannel _channel = const MethodChannel('github.com/clovisnicolas/flutter_screen');
|
||||
|
||||
static Future<double> get brightness async => (await _channel.invokeMethod('brightness')) as double;
|
||||
static Future setBrightness(double brightness) =>_channel.invokeMethod('setBrightness',{"brightness" : brightness});
|
||||
static Future<bool> get isKeptOn async => (await _channel.invokeMethod('isKeptOn')) as bool;
|
||||
static Future keepOn(bool on) => _channel.invokeMethod('keepOn', {"on" : on});
|
||||
}
|
||||
Reference in New Issue
Block a user