mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-12-23 22:50:39 +00:00
8 lines
275 B
Dart
8 lines
275 B
Dart
|
import 'package:permission_handler/permission_handler.dart';
|
||
|
|
||
|
class PermissionsService {
|
||
|
Future<PermissionStatus> checkCameraPermission() async => await Permission.camera.status;
|
||
|
|
||
|
Future<PermissionStatus> requestCameraPermission() async => Permission.camera.request();
|
||
|
}
|